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),
Code: Select all
// User reputation points - Start
// 0.3.1
$user->add_lang('mods/reputation_mod');
// User reputation points - End
Code: Select all
));
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
));
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;"> {random_member.USER_FROM}</span><br style="clear:both" />
<!-- ENDIF -->
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;"> {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;"> {random_member.REP_POWER}</span><br style="clear:both" />
<!-- ENDIF -->
Now upload all files and purges the cache.
(I know that the modification was abandoned >.<)
Demo: