aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2002-01-16 19:08:10 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2002-01-16 19:08:10 +0000
commitabb97b4eb8b923f4e9a844c46d1ae53988aa11b1 (patch)
tree5b2cec9045698c97242027862c369c63fc9de6f1
parent5d70014c836148b1e20ceade4de5d971fe27b309 (diff)
downloadforums-abb97b4eb8b923f4e9a844c46d1ae53988aa11b1.tar
forums-abb97b4eb8b923f4e9a844c46d1ae53988aa11b1.tar.gz
forums-abb97b4eb8b923f4e9a844c46d1ae53988aa11b1.tar.bz2
forums-abb97b4eb8b923f4e9a844c46d1ae53988aa11b1.tar.xz
forums-abb97b4eb8b923f4e9a844c46d1ae53988aa11b1.zip
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
-rw-r--r--phpBB/memberlist.php3
-rw-r--r--phpBB/templates/subSilver/memberlist_body.tpl6
2 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index f7554749dc..f18bcb4a89 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -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);
-?> \ No newline at end of file
+?>
diff --git a/phpBB/templates/subSilver/memberlist_body.tpl b/phpBB/templates/subSilver/memberlist_body.tpl
index bf60119cad..4f9a2ec09d 100644
--- a/phpBB/templates/subSilver/memberlist_body.tpl
+++ b/phpBB/templates/subSilver/memberlist_body.tpl
@@ -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">