vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New user registration..... modification question! (https://vborg.vbsupport.ru/showthread.php?t=36797)

newvbuser 03-31-2002 03:14 PM

New user registration..... modification question!
 
Hi If I have new user registration on, with verification of email, then after verification all users are automatically moved by the program to a "registered users" group.

Is there any way I can have the program instead move them to a group(ID) I setup with minimal access?

Admin 03-31-2002 04:10 PM

In register.php replace in this:
Code:

$usergroupid = 2;
2 to whatever the ID of your that usergroup is. I can't check the files right now but I'm pretty sure that's the line. :)

newvbuser 04-03-2002 06:13 AM

Hey that's so cool, I hope that's the only mod required. Can you please confirm ? :D

newvbuser 04-06-2002 01:25 AM

Firefly could you please confirm this? :confused:

Admin 04-06-2002 07:12 AM

Yes.

newvbuser 04-07-2002 05:31 PM

Quote:

Originally posted by FireFly
In register.php replace in this:
Code:

$usergroupid = 2;
2 to whatever the ID of your that usergroup is. I can't check the files right now but I'm pretty sure that's the line. :)

Hi Firefly, actually the register.php code in 2.2.5 says:

Quote:

if ($verifyemail) {
$newusergroupid=3;
} else {
if ($moderatenewmembers or $coppauser) {
$newusergroupid=4;
} else {
$newusergroupid=2;
}
}


In this case, I want to verify email, and then after that the program should move users to another custom grp automatically after email verification is done.

Right now after email verification is done, all new users are moved to the "registered users group"

I have not glanced at the code later on, but would changing 2 to another ID do this?

Thanks again!

Admin 04-07-2002 05:40 PM

Oops, sorry, I meant to say member.php. You should find that line there. :)

newvbuser 04-08-2002 09:56 AM

Actually in register.php there is another code of line that deals with what happens after activation:

Quote:

// activate account
$DB_site->query("UPDATE user SET usergroupid=2 WHERE userid='$u'");

I think this is where I'd need to change the usergroupid to my group's id?

Could you help please? :confused:

Admin 04-08-2002 12:45 PM

Yes that's where you change the number... sorry about that. :)

newvbuser 04-08-2002 07:14 PM

Are you sure? :D


All times are GMT. The time now is 01:44 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.01065 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete