Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2002, 08:05 PM
JDD JDD is offline
 
Join Date: Oct 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-08-2002, 09:47 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-08-2002, 10:53 PM
Snake~eyes Snake~eyes is offline
 
Join Date: Oct 2001
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JDD
I posted this question allready on vbulletin.com and they directed me to this Board...

Quote:
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
Reply With Quote
  #4  
Old 03-09-2002, 04:46 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you want users to be able to CHANGE e-mail address without having to get an activation code?
In member.php find this:
Code:
  if ($verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==2 or $bbuserinfo['usergroupid']==3) {
and replace that with this:
Code:
  if (0==1 and $verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==2 or $bbuserinfo['usergroupid']==3) {
Reply With Quote
  #5  
Old 03-09-2002, 10:26 AM
JDD JDD is offline
 
Join Date: Oct 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-09-2002, 11:34 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh I get it now!

Ok, in the email_activateaccount_change template, replace this:
Code:
$bburl/register.php?a=act&u=$userid&i=$activateid
with this:
Code:
$bburl/register.php?a=act&u=$userid&i=$activateid&$activateid=1
Now in register.php replace this:
Code:
    if ($userinfo[coppauser] or ($moderatenewmembers and !$bbuserinfo['posts'])) {
with this:
Code:
    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.
Reply With Quote
  #7  
Old 03-11-2002, 07:07 AM
JDD JDD is offline
 
Join Date: Oct 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 03-11-2002, 11:15 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your kudos.
Reply With Quote
  #9  
Old 03-12-2002, 08:21 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dhogan444
just thought i'd point that out
hmm i was drunk.. i think..
Reply With Quote
  #10  
Old 03-18-2002, 03:50 PM
JDD JDD is offline
 
Join Date: Oct 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
if ($verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05858 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete