The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
"Welcome to our newest member" not displaying certain usergroups
On our forums we've been using the following line in index.php for quite a while, which prevents new users in certain usergroups from showing up as 'newest member' (COPPA, awaiting email confirmation, banned and suspected spammers). For some reason however this seems to have stopped working. If I compare an older vB index.php to the most recent one however, I don't see anything that explains this though so I'm guessing the cause lies somewhere else.
As my knowledge of the inner workings of vB is quite limited, I'm wondering if anyone can tell me what's changed in vB to make this particular hack stop working and more importantly, how to make it work again? Any input would be appreciated. Code:
// get total members and newest member from template $newuser = $db->query_first("SELECT * FROM " . TABLE_PREFIX . " `user` WHERE usergroupid NOT IN (1,2,3,4) ORDER BY userid DESC LIMIT 1"); [code] $newuser = $db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE usergroupid NOT IN (1,2,3,4) ORDER BY userid DESC LIMIT 1"); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|