mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Viewforum gets moderator list now
git-svn-id: file:///svn/phpbb/trunk@74 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dcc2b2fe19
commit
f51b6b9345
1 changed files with 9 additions and 4 deletions
|
@ -27,9 +27,9 @@ include('common.'.$phpEx);
|
||||||
// If not give them a nice error page.
|
// If not give them a nice error page.
|
||||||
if(isset($forum_id))
|
if(isset($forum_id))
|
||||||
{
|
{
|
||||||
$sql = "SELECT f.forum_type, f.forum_name
|
$sql = "SELECT f.forum_type, f.forum_name, u.username, u.user_id
|
||||||
FROM ".FORUMS_TABLE." f
|
FROM ".FORUMS_TABLE." f, ".FORUM_MODS_TABLE." fm, ".USERS_TABLE." u
|
||||||
WHERE forum_id = '$forum_id'";
|
WHERE f.forum_id = '$forum_id' AND fm.forum_id = '$forum_id' AND u.user_id = fm.user_id";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -54,7 +54,12 @@ if(!$forum_row)
|
||||||
}
|
}
|
||||||
|
|
||||||
$forum_name = stripslashes($forum_row[0]["forum_name"]);
|
$forum_name = stripslashes($forum_row[0]["forum_name"]);
|
||||||
$forum_moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">james</a>";
|
for($x = 0; $x < $db->sql_numrows($result); $x++)
|
||||||
|
{
|
||||||
|
if($x > 0)
|
||||||
|
$forum_moderators .= ", ";
|
||||||
|
$forum_moderators .= "<a href=\"profile.$phpEx?mode=viewprofile&user_id=".$forum_row[$x]["user_id"]."\">".$forum_row[$x]["username"]."</a>";
|
||||||
|
}
|
||||||
|
|
||||||
$pagetype = "viewforum";
|
$pagetype = "viewforum";
|
||||||
$page_title = "View Forum - $forum_name";
|
$page_title = "View Forum - $forum_name";
|
||||||
|
|
Loading…
Add table
Reference in a new issue