- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 47 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - newbie question -wondering what the name of top menu bar is [ ]
Author
Message
FHFGhost
Lieutenant
Joined: Jan 26, 2003
Posts: 279
Location: Huntsville, AL
Posted:
Wed Sep 24, 2003 2:18 pm
I'm not sure I follow. Here is the part of the code that I assume is the part I need to change. What do I need to change to show site admins only?
Code:
$sql = "select s.uname, u.user_id, b.rank_title, u.user_allow_viewonline "
. "from nukecs_users u, nukecs_session s, nukecs_bbranks b where s.unam"
. "e=u.username and b.rank_id=u.user_rank";
$result = $db->sql_query($sql);
echo "<BR> <a href=\"modules.php?name=Forums&file=staff"
_________________ "I don't know what the key to success is, but the key to failure is trying to please everybody"..Bill Cosby
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Wed Sep 24, 2003 2:32 pm
Right and add after the b.rank_id=u.user_rank:
and u.user_level=2
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
FHFGhost
Lieutenant
Joined: Jan 26, 2003
Posts: 279
Location: Huntsville, AL
Posted:
Wed Sep 24, 2003 6:01 pm
Thanks ZX, that worked perfect! Really appreciate that!
_________________ "I don't know what the key to success is, but the key to failure is trying to please everybody"..Bill Cosby
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Wed Sep 24, 2003 11:18 pm
Anytime
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
Goto page Previous 1 , 2 , 3
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum