Added row numbers to memberslist (to check out how you're ranked with # of posts ;)

git-svn-id: file:///svn/phpbb/trunk@1896 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2002-01-16 19:08:10 +00:00
parent 5d70014c83
commit abb97b4eb8
2 changed files with 6 additions and 3 deletions

View file

@ -238,6 +238,7 @@ for($i = 0; $i < count($members); $i++)
$template->assign_block_vars("memberrow", array(
"U_VIEWPROFILE" => append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $user_id),
"ROW_NR" => $i + $HTTP_GET_VARS['start'] + 1,
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $username,
@ -292,4 +293,4 @@ $template->pparse("body");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
?>

View file

@ -10,7 +10,8 @@
</table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th height="25" class="thCornerL">&nbsp;</th>
<th height="25" class="thCornerL">#</th>
<th class="thTop">&nbsp;</th>
<th class="thTop">{L_USERNAME}</th>
<th class="thTop">{L_EMAIL}</th>
<th class="thTop">{L_FROM}</th>
@ -20,6 +21,7 @@
</tr>
<!-- BEGIN memberrow -->
<tr>
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">&nbsp;{memberrow.ROW_NR}&nbsp;</span></td>
<td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.PM_IMG}&nbsp;</td>
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle">&nbsp;{memberrow.EMAIL_IMG}&nbsp;</td>
@ -30,7 +32,7 @@
</tr>
<!-- END memberrow -->
<tr>
<td class="catbottom" colspan="7" height="28">&nbsp;</td>
<td class="catbottom" colspan="8" height="28">&nbsp;</td>
</tr>
</table>
<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">