The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
indie need if conditional.... 03-06-2005, 06:43 AM
Scrub Change
$users =... 03-06-2005, 07:28 AM
indie No, this caused the page to... 03-06-2005, 07:46 PM
Link14716 foreach is a loop, not a... 03-06-2005, 07:58 PM
why-not Hi
You should really be... 03-06-2005, 08:17 PM
indie Thanks if you can help.... 03-06-2005, 09:11 PM
Link14716 The usergroup markup requires... 03-07-2005, 09:10 PM
|
#1
|
|||
|
|||
need if conditional....
For this chat script, I need an if conditional so when there are no names to display, it says "No members in Chat".
Also, if you can figure out how to use the usergroup html markup for usernames (ex: like bold names for usergroups that have bold names in online box) that would be great. --------------------------------------------- function usersinroom( $room = "" ) { $cms = $GLOBALS['fc_config']['cms']; $list = array(); if($room) { $stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND roomid=?"); $rs = $stmt->process($room); } else { $stmt = new Statement("SELECT userid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL"); $rs = $stmt->process(); } while($rec = $rs->next()) $list[] = array_merge($cms->getUser($rec['userid']), $rec); return $list; } ------------------- then is says: ------------------- $users = usersinroom(); $arr = array(); foreach( $users as $user ) { echo "<a href=\"member.php?userid=$user[userid]\">$user[login]</a>"; } ========================= thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|