vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to prevent users being moved to moderation group after changing email (https://vborg.vbsupport.ru/showthread.php?t=35877)

JDD 03-08-2002 08:05 PM

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

TECK 03-08-2002 09:47 PM

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

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 ;)

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:
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) {

JDD 03-09-2002 10:26 AM

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:
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.

JDD 03-11-2002 07:07 AM

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

TECK 03-12-2002 08:21 AM

Quote:

Originally posted by dhogan444
just thought i'd point that out ;)
hmm i was drunk.. i think.. ;)

JDD 03-18-2002 03:50 PM

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


All times are GMT. The time now is 01:41 AM.

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.01134 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete