aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-05-11 23:35:29 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-05-11 23:35:29 +0000
commitddbc01bb360da2d05ca2ab992a291e8cfd9006c8 (patch)
treee075c80cf06a9773a478eeb7e7cc6a5f7b48f512 /phpBB/memberlist.php
parentd3adc86325503a66c7fe0bf95ca1877855ebc7bb (diff)
downloadforums-ddbc01bb360da2d05ca2ab992a291e8cfd9006c8.tar
forums-ddbc01bb360da2d05ca2ab992a291e8cfd9006c8.tar.gz
forums-ddbc01bb360da2d05ca2ab992a291e8cfd9006c8.tar.bz2
forums-ddbc01bb360da2d05ca2ab992a291e8cfd9006c8.tar.xz
forums-ddbc01bb360da2d05ca2ab992a291e8cfd9006c8.zip
More work on memberlist
git-svn-id: file:///svn/phpbb/trunk@273 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index af81b25995..6c3c3066e6 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -42,16 +42,16 @@ if(!$start)
switch($mode)
{
case 'top10':
- $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website
+ $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email
FROM ".USERS_TABLE." WHERE user_id != ".ANONYMOUS." AND user_level != ".DELETED." ORDER BY user_posts ASC LIMIT 10";
break;
case 'alpha':
- $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website
+ $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email
FROM ".USERS_TABLE." WHERE user_id != ".ANONYMOUS." AND user_level != ".DELETED." ORDER BY username ASC LIMIT $start, ".$board_config['topics_per_page'];
break;
default:
- $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website
+ $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email
FROM ".USERS_TABLE." WHERE user_id != ".ANONYMOUS." AND user_level != ".DELETED." ORDER BY user_id ASC LIMIT $start, ".$board_config['topics_per_page'];
break;
}
@@ -83,11 +83,13 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
for($x = $start; $x < $selected_members; $x++)
{
+ unset($email);
$username = stripslashes($members[$x]['username']);
$user_id = $members[$x]['user_id'];
$posts = $members[$x]['user_posts'];
$from = stripslashes($members[$x]['user_from']);
$joined = create_date($board_config['default_dateformat'], $members[$x]['user_regdate'], $board_config['default_timezone']);
+
if($members[$x]['user_viewemail'] != 0)
{
$email = str_replace("@", " at ", $members[$x]['user_email']);
@@ -98,10 +100,10 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
$email = "&nbsp;";
}
- if($members[$x]['user_website'])
+ if($members[$x]['user_website'] != '')
{
$url_img = $images['www'];
- $url = "<a href=\"".stripslashes($members[$x]['user_website'])."\"><img src=\"".$url_img."\" /></a>";
+ $url = "<a href=\"".stripslashes($members[$x]['user_website'])."\"><img src=\"".$url_img."\" border=\"0\"/></a>";
}
else
{
@@ -148,8 +150,12 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
$total_members = $total[0]['total'];
$pagination = generate_pagination("memberlist.$phpEx?mode=$mode", $total_members, $board_config['posts_per_page'], $start, TRUE);
}
- $template->assign_vars(array("PAGINATION" => $pagination));
}
+ else
+ {
+ $pagination = "&nbsp;";
+ }
+ $template->assign_vars(array("PAGINATION" => $pagination));
$template->pparse("body");
}