vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   problem with new registrations... (https://vborg.vbsupport.ru/showthread.php?t=46939)

Tryfwar 12-23-2002 05:25 PM

problem with new registrations...
 
I have a problem in that when new users register they are automaticly sent to usergroupid=2 which i initially setup as Members.

I need them to be automaticly sent to usergroupid=15 which is my Guest usergroup.

So i ended up enabling the 'Moderate New Members' option in the options. I then have to accept each member 1 at a time and very quickly revert their usergorup from 2 to 15 :(

Anyone know what i can do as a quick fix to make it so that new registerd users automaticly goto the Guest ID please ? :)

Dean C 12-23-2002 05:52 PM

This is not tested btw

In register.php find:

PHP Code:

$newusergroupid=2

Replace it with:

PHP Code:

$newusergroupid=15

Find:

PHP Code:

$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid=2"); 

Replace it with:

PHP Code:

$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid=15"); 

Find:

PHP Code:

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

Replace with:

PHP Code:

 $DB_site->query("UPDATE user SET usergroupid=15$dotitle WHERE userid='$u'"); 

Regards

- miSt

Tryfwar 12-23-2002 07:46 PM

Gonna try it now, thanks Mist :)

Tryfwar 12-23-2002 08:12 PM

woot, it worked! Thanks for that :)

The above worked fine now that i have disabled moderation of new members. When moderation of new members was still enabled after the above mods and i accepted the 2-3 new members, they still seemed to fall into the id=15 usergroup ! :(

I intend not to use moderation again but was just puzzled by this as i couldn't find any more refrences to userid=2 *shrug*

Dean C 12-24-2002 04:08 PM

Hehe yea i just found all references to usegroupid 2 :p


All times are GMT. The time now is 09:56 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.01265 seconds
  • Memory Usage 1,720KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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