View Full Version : how to prevent users being moved to moderation group after changing email
Hi,
I hope this is the right place to ask this question ( I really don't have a better Idea where to post such a problem;) )
I posted this question allready on vbulletin.com and they directed me to this Board...
So...I have the following problem...
My Board is set to moderate new Users appon registration and the validate email option is set to yes.
Unfortunately, also all registered users who change their email are moved into the moderation queue after they have validated their new email.
Is there anyway, that registered users are moved back to the registered group after validating their new email, but still all new registrations have to wait for registration?
Thx for your help...
JDD
PS:
I'm still using vB 2.0.3, but want to update to 2.2.3b soon
can you post a url to your board please?
please upgrade to 2.2.3 asap. there are several security issues fixed in between the 2 releases.
also, you should consider to post your question to vB.com (unless your board is hacked)
regards,
nakkid.
Snake~eyes
03-08-2002, 10:53 PM
Originally posted by JDD
I posted this question allready on vbulletin.com and they directed me to this Board...
Originally posted by nakkid
...also, you should consider to post your question to vB.com (unless your board is hacked)
just thought i'd point that out ;)
Admin
03-09-2002, 04:46 AM
So you want users to be able to CHANGE e-mail address without having to get an activation code?
In member.php find this:
if ($verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==2 or $bbuserinfo['usergroupid']==3) {
and replace that with this:
if (0==1 and $verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==2 or $bbuserinfo['usergroupid']==3) {
First of all thank you for your answers...
FireFly:
This is not exactly what I want to do... Also registered User should verify their email and get an activation code...
My problem is, that allready registered members who change their email are put into user group "Users Awaiting Moderation" but these users should be directly put into the registered group.
so this should be the way I would like it:
New registrations:
Register -> Users Awaiting Email Confirmation -> Users Awaiting Moderation -> Registered Users
For allready registered members:
change email -> Users Awaiting Email Confirmation -> Registered Users
I hope that this explains my question more exactly
Thanks for your time :)
JDD
PS: I think I have to change something in register.php but I don't know excatly where and what :(
Admin
03-09-2002, 11:34 AM
Ahh I get it now! :)
Ok, in the email_activateaccount_change template, replace this:
$bburl/register.php?a=act&u=$userid&i=$activateid
with this:
$bburl/register.php?a=act&u=$userid&i=$activateid&$activateid=1
Now in register.php replace this:
if ($userinfo[coppauser] or ($moderatenewmembers and !$bbuserinfo['posts'])) {
with this:
if ($userinfo[coppauser] or ($moderatenewmembers and $$i!=1)) {
This should do it. BTW, I now see vB already has a check there so that members with posts won't go to moderation again, but if someone still hasn't posted he will go to moderation again, so this should solve it.
Hi FireFly...
Thank you very much for your help... it works just perfect :)
This is why vB was the right decision to choose.. The support even with hacking it, couldn't be better...
Thanks again :) :)
JDD
Admin
03-11-2002, 11:15 AM
Thanks for your kudos. :D
Originally posted by dhogan444
just thought i'd point that out ;) hmm i was drunk.. i think.. ;)
Hi,
it's me again ;)
While playing around with this modification, I discovered the following problem (btw. this affects also the normal not modified vB)
the verify email thing works just perfect as long as the user is in the registered group (ID 2). But on our Board we have several other groups (such as Friends etc) with extended rights than normal registered users. But if these users change their email.. the verification email option wouldn't start at all.. I discovered that this is handled in members.php:
if ($verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==2 or $bbuserinfo['usergroupid']==3) {
$newemailaddress=1;
If I would add other user groups here (with extending the 'or' parameters) they would have to verify their email but than they would be returned to usergroup 2. What I want now is that they should be returned to their old usergroup. I guess I have to add another column in the MYSQL User Table where I must store the old ID. But since I am much of a newbie in this programming stuff, I would be glad if someone could help me with it...
Btw. I believe that this a general vB issue, because the verify email options doesn't make much sense IMO if it is only affecting the registered group. Perfectly it would be Admincp selectable which usergroups have to validate their email.
Greets
JDD
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.