View Full Version : Good one: Prevent non validated users from showing up on newest member line!
howard007
10-26-2006, 04:30 PM
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!!
CyberAlien
10-26-2006, 06:23 PM
I'm not sure if this will work... open includes/functions_databuild.php, find this: // get newest member
$newuser = $vbulletin->db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE userid = $members[maxid]");
and replace with this: // 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");
howard007
10-26-2006, 08:36 PM
Anyone try this? :)
howard007
10-28-2006, 11:50 PM
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)
Kirk Y
10-29-2006, 02:22 AM
That Replace should be this:
$newuser = $vbulletin->db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE usergroupid != 3 ORDER BY userid DESC LIMIT 0,1");
howard007
10-30-2006, 08:53 PM
Thank you!
howard007
11-02-2006, 01:38 AM
Some reason the code by cyberalien doesn't seem to be working. non verfied users are appearing on the new user line! How come?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.