Announcement

Collapse
No announcement yet.

Moderate new members and email verification

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Moderate new members and email verification

    Can you use both?

    It seems that when new users get the activation email and use the hyperlink provided, they go right into the registered group.

    I would like them to go into the waiting approval group.

    Can this be done?
    Regards - John
    Customer info in profile

  • #2
    go to your admin control panel => Change Options => Users and Registration Options => Then turn on the moderate new members option.

    I beleive that is the way.

    Comment


    • #3
      Yes, I have that option turned on. I also have the email verification turned on. I would like to know if they can be used together. I just did a test case and the user when from awaiting email confirmation to registered. I would think that they should go from awaiting email confirmation to awaiting approval.
      Regards - John
      Customer info in profile

      Comment


      • #4
        You have to change the reference number in the register.php file. Change it from 3 to 4. Then the will be in the moderation que.

        Search from "if verify email" then you'll see it.

        Comment


        • #5
          OK, sorry about this post. It now seems to be working fine.

          When a user registers they get the activation email. When they activate their account, they go into the COPA waiting moderation group. Thanks for trying to help Spidey.
          Regards - John
          Customer info in profile

          Comment


          • #6
            Excuse, but I don't agree/understand.
            I tryed with these options:
            Verify Email address in registration = Yes
            Moderate New Members = Yes

            I even set the admin email in notification field of the options.

            Well, whe a new user get back the confirmation email, he can follow the link and becomes a FULL REGISTERED MEMBER without any further validation or moderation by the admin.
            Even, the COPPA group is empty, as long the Users Awaiting Email Confirmation group.
            That user is in 'registered' group !!!!



            How can I make the admin actually moderate him ?

            What's the code hack above described ?

            Thank you

            Comment


            • #7
              Originally posted by JohnL
              OK, sorry about this post. It now seems to be working fine.

              When a user registers they get the activation email. When they activate their account, they go into the COPA waiting moderation group. Thanks for trying to help Spidey.
              that's exactly how it works..
              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment


              • #8
                Originally posted by Jet
                Excuse, but I don't agree/understand.
                I tryed with these options:
                Verify Email address in registration = Yes
                Moderate New Members = Yes

                I even set the admin email in notification field of the options.

                Well, whe a new user get back the confirmation email, he can follow the link and becomes a FULL REGISTERED MEMBER without any further validation or moderation by the admin.
                Even, the COPPA group is empty, as long the Users Awaiting Email Confirmation group.
                That user is in 'registered' group !!!!



                How can I make the admin actually moderate him ?

                What's the code hack above described ?

                Thank you
                you sure.. recheck your settings..
                :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                :: Nginx SPDY SSL - World Flags Demo [video results]
                :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                Comment


                • #9
                  COPPA is off. I don't need as I'm not in U.S.
                  Should I enable and disable it as written elsewhere ?
                  Thnx

                  Comment


                  • #10
                    Originally posted by Jet
                    COPPA is off. I don't need as I'm not in U.S.
                    Should I enable and disable it as written elsewhere ?
                    Thnx
                    COPPA can be disabled
                    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                    :: Nginx SPDY SSL - World Flags Demo [video results]
                    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                    Comment


                    • #11
                      Sorry but .... it doesn't work !!!

                      If I always had COPPA off, when a user confirms its own mail following the link, he is MOVED DIRECTLY to group 2, i.e. 'registered', even the admin still hasn't confirmed the subscription.
                      I guess it's a bug or something else, isn't it ?

                      Thanks again.

                      Comment


                      • #12
                        If you have COPPA turned off, but have Email Verification and Moderate New Members turned on, according to the code it should put them in usergroup #4 - (COPPA) Users Awaiting Moderation after they verify their email.

                        PHP Code:
                            if ($userinfo[coppauser] or ($moderatenewmembers and !$bbuserinfo['posts'])) {

                                    
                        // put user in moderated group
                                    
                        $DB_site->query("UPDATE user SET usergroupid=4 WHERE userid='$u'"); 

                        Comment


                        • #13
                          Sorry... but ...
                          I dupechecked again and again.
                          I actually got that piece of code in register.php.

                          // delete activationid
                          $DB_site->query("DELETE FROM useractivation WHERE userid='$userinfo[userid]' AND type=0");

                          if ($userinfo[usergroupid]==3) {
                          if ($userinfo[coppauser] or ($moderatenewmembers and !$bbuserinfo['posts'])) {

                          // put user in moderated group
                          $DB_site->query("UPDATE user SET usergroupid=4 WHERE userid='$u'");


                          These are my options:
                          Require unique email addresses Yes
                          Allow new user registrations Yes
                          Allow multiple registrations per user No
                          Verify Email address in registration Yes
                          Moderate New Members Yes
                          Use COPPA Registration system No
                          Enable Access Masks? Yes


                          .... I verified the flow checking the user table in DB:

                          Initially, the user is in group 3. When it answers the email following link, he is switched directly to group 2, NOT 4 !!!

                          Note: of course, all the time AdminCP has : There are currently 0 user(s) awaiting moderation.



                          I vene tried to switch on and off the COPPA feature to 'solve the bug' as suggested here by TommyBALL, but ....

                          I can't get out of this cycle....

                          Thanks
                          Last edited by Jet; Mon 10 Dec '01, 5:37am.

                          Comment


                          • #14
                            The code not correctly working seems to be here:

                            PHP Code:
                              if ($verifyemail) {
                                
                            $newusergroupid=3;
                              } else {
                                if (
                            $moderatenewmembers or $coppauser) {
                                  
                            $newusergroupid=4;
                                } else {
                                  
                            $newusergroupid=2;
                                }
                              } 
                            Any reason (how can I debug?), the flow seems not entering the second if clause...

                            Comment


                            • #15
                              Hi. I'm here again...
                              Just realize something with a small debugging code: when the user make a new registration, the $newusergroupid variable is first blank, then - according to the above if-clause, set to 3 or 4 or 2 immediately if is active email-verify, coppa or direct registration.
                              Till now, it's ok.

                              The problem raises only when the user receives the activation code via email, which link leads him to register.php action=act :

                              PHP Code:
                                if ($userinfo[usergroupid]==3) {
                                  if (
                              $userinfo[coppauser] or ($moderatenewmembers and !$bbuserinfo['posts'])) {

                                          
                              // put user in moderated group
                                          
                              $DB_site->query("UPDATE user SET usergroupid=4 WHERE userid='$u'");

                                          eval(
                              "standarderror(\"".gettemplate("error_moderateuser")."\");");
                                      } else {
                                          
                              // activate account
                                          
                              $DB_site->query("UPDATE user SET usergroupid=2 WHERE userid='$u'");

                                          
                              $username=$userinfo[username];
                                          eval(
                              "standardredirect(\"".gettemplate("redirect_registerthanks")
                              .
                              "\",\"index.php?s=$session[sessionhash]\");");
                                      }
                                } 
                              (code you quoted)

                              Now, the question I asked myself was: what's $bbuserinfo['posts'] variable that could
                              be the UNIQUE reason why - if moderatenewmembers=1 and usergroupid=3
                              - the flow doesn't enter the first block of 'if', which sets the usergroupid
                              to 4 ????
                              Better, if it's the number of posts that user made - as I can guess -, what's its meaning here and what reasons it could be > 0 ?

                              The answer ??? Ehhhmmmm!!! I found it with a couple of echos in register.php code: the number of post of the new users I was trying with was MINE !!!!!
                              I made all new registration with Netscape deleting cookies each time, while with IE was managing the AdminCP (coppa, moderate new, etc.) , never logged out !!!
                              Well, when answering to the email (mine), I followed the link with IE, so cookies said that the number of posts was not zero; this reason, entering the above if, the group of the 'under-moderation' user was set to 2 and not to 4 !!!!

                              Almost, I HOPE this could be the scientific reason.... I'll try better !!!
                              I absolutely apologize !



                              Thanks a lot, as usual.

                              P.S.: this mind-storming was very useful, don't you agree ?
                              Last edited by Jet; Mon 10 Dec '01, 9:00am.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X