[Random member Block] User reputation points // 0.3.1

Forum rules
This forum is not for support requests.

Only post Modifications for Board3 Portal 1.0.x in this forum.
Locked
User avatar

Topic author
gamingboard
Active Member
Posts: 26
Joined: 20. November 2009 15:44
phpBB.de User: gamingboard
phpBB.com User: gamingboard
Location: Free and Hanseatic City of Hamburg, Germany
Contact:

[Random member Block] User reputation points // 0.3.1

Post by gamingboard »

Note: This modification requires that the modification "user reputation points (0.3.1)" and "Board3( 1.0.6)" were installed!

Adds the user reputation points mod to the random member block...

Open "portal/block/random_member.php" and find:

Code: Select all

$template->assign_block_vars('random_member', array(
    'USERNAME_FULL'        => get_username_string('full', $user_id, $username, $colour), 
Add before:

Code: Select all

// User reputation points - Start
// 0.3.1
$user->add_lang('mods/reputation_mod');
// User reputation points - End            
Find:

Code: Select all

)); 
Replace with:

Code: Select all

    // User reputation points - Start
    // 0.3.1
    'S_REPUTATION'        => $row['user_hide_reputation'] ? false : true,
    'REPUTATION'        => $row['user_reputation'],
    'REP_POWER'            => $reputation->get_rep_power($member['user_posts'], $member['user_regdate'], $row['user_reputation'], $row['group_id']),
    // User reputation points - End
    ));
 
Note: You can use this for prosilver and subsilver2!
Open "styles/prosilver/template/portal/block/random_member.html" and find:

Code: Select all

    <!-- IF random_member.USER_FROM -->
        <span style="float:left;"><strong>{L_RND_FROM}:</strong></span><span style="float:right;padding-right:10px;"> &nbsp; {random_member.USER_FROM}</span><br style="clear:both" />
    <!-- ENDIF --> 
Add after:

Code: Select all

	<!-- IF random_member.S_REPUTATION -->
	<span style="float:left;"><strong>{L_RP_TOTAL_POINTS}:</strong></span><span style="float:right;padding-right:10px;"> &nbsp; {random_member.REPUTATION}</span><br style="clear:both" />
	<span style="float:left;"><strong>{L_RP_POWER}:</strong></span><span style="float:right;padding-right:10px;"> &nbsp; {random_member.REP_POWER}</span><br style="clear:both" />
	<!-- ENDIF -->
That's all. ;)
Now upload all files and purges the cache.
(I know that the modification was abandoned >.<)

Demo:
ImageImage
Locked

Return to “board3 Portal v1.0.x - Modifications in Dev”