View Full Version : Welcome newest member
CrazyFish
01-13-2007, 08:12 PM
Hello who can help me out with this?
Threads: 3,127, Posts: 17,906, Members: 319
Welcome to our newest member ( name get incerted here)
Tell me is there a way to mod this or get rid of this? I keep getting people signing up on my site with rude and inappropriate names. I have it set-up that new members must be approved through me before having access to the site. But the welcome to our newest member( ) and the name shows up before my approval. Hope you understand what I'm trying to say here.
Thank-you
I was told there was a code to fix this, that way untill I approve the user, the will not show up in the newest member list?
Dominic
01-14-2007, 01:05 AM
Simple fix, Go to the FORUMHOME template and find either
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
Or if you can't find the first code, find this <phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
And remove it.
NeoToxic
01-14-2007, 09:03 AM
He wants it to show when the user is approved
untill I approve the user, the will not show up in the newest member list?
WhaLberg
01-14-2007, 10:09 AM
Hello who can help me out with this?
Threads: 3,127, Posts: 17,906, Members: 319
Welcome to our newest member ( name get incerted here)
Tell me is there a way to mod this or get rid of this? I keep getting people signing up on my site with rude and inappropriate names. I have it set-up that new members must be approved through me before having access to the site. But the welcome to our newest member( ) and the name shows up before my approval. Hope you understand what I'm trying to say here.
Thank-you
I was told there was a code to fix this, that way untill I approve the user, the will not show up in the newest member list?
How you think to approve the user? I mean with changing the usergroup?
Dominic
01-14-2007, 11:58 AM
Oh he said Tell me is there a way to mod this or get rid of this? so i told him how to get rid of it.
CrazyFish
01-15-2007, 01:16 AM
I was hoping not to get rid of it all together, just didn't want the name to show up till after approval. Can this be done?
Mungky
02-16-2007, 03:26 PM
I would love some help with this, too.
There was a hack available to restrict the selection of the "newest member" to certain usergroups; I had it installed on an earlier version of vB, but it doesn't seem to work with the current version.
I believe this is the code from the previous hack:
$newuser = $DB_site->query_first("SELECT userid, username
FROM " . TABLE_PREFIX . "user
WHERE usergroupid NOT IN (3,4)
ORDER BY userid DESC
LIMIT 1");
$newuserid = $newuser['userid']; // set template variables
$newusername = $newuser['username'];
I tried substituting the above for the following in the index.php file, which I believe is the equivalent of where it worked in previous versions of vB:
$newusername = $vbulletin->userstats['newusername'];
$newuserid = $vbulletin->userstats['newuserid'];
However, this gave a fatal error; there are some differences between the coding styles in the old vs. newer versions of vB, but unfortunately I only know enough about PHP to do very low-level tweaks to suit my forum's needs.
If anybody who knows their way around these things could help out, it would be much appreciated!
EDITED TO ADD: I am using 3.6.4.
paul41598
02-16-2007, 04:13 PM
Try $db->query_first
rather than:
$DB_site->query_first
Mungky
02-16-2007, 04:28 PM
Try $db->query_first
rather than:
$DB_site->query_first
Worked like a charm. Thank you so much!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.