The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Good one: Prevent non validated users from showing up on newest member line!
How do I prevent non validated (Registered users) from showing up on:
Welcome to our newest member, (Name). The problem I'm having is the low life people who register with bad names and don't get authenticated with the email verification. They shouldn't show up on the newest member list because they are not validated. Thanks!! |
#2
|
||||
|
||||
I'm not sure if this will work... open includes/functions_databuild.php, find this:
Code:
// get newest member $newuser = $vbulletin->db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE userid = $members[maxid]"); Code:
// get newest member $newuser = $vbulletin->db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE usergroupid = 2 ORDER BY userid DESC LIMIT 0,1"); |
#3
|
|||
|
|||
Anyone try this?
|
#4
|
|||
|
|||
Ok I tried that and I believe it works in that text box. However, once a bogus person registers he also appears on the linve above called Most Users ever online. How do I not show the bogus user until they are validated?
Most users ever online was 46, Yesterday at 08:24 AM. (USER NAME HERE) |
#5
|
||||
|
||||
That Replace should be this:
Code:
$newuser = $vbulletin->db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE usergroupid != 3 ORDER BY userid DESC LIMIT 0,1"); |
#6
|
|||
|
|||
Thank you!
|
#7
|
|||
|
|||
Some reason the code by cyberalien doesn't seem to be working. non verfied users are appearing on the new user line! How come?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|