vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Admin's can register new users without logging out (https://vborg.vbsupport.ru/showthread.php?t=114646)

Kingzor 05-02-2006 10:00 PM

Admin's can register new users without logging out
 
Hi, this is my first ever public mod :banana:

Figured this would be usefull for testing mods that modify the way people register such as
https://vborg.vbsupport.ru/showthread.php?t=106685

To install:
open register.php and find:
Code:

        if ($vbulletin->userinfo['userid'] AND !$vbulletin->options['allowmultiregs'])
        {
                eval(standard_error(fetch_error('alreadyregistered', $vbulletin->userinfo['username'], $vbulletin->session->vars['sessionurl'])));
        }

Replace it with:
Code:

        if ($vbulletin->userinfo['userid'] AND !$vbulletin->options['allowmultiregs'] AND !$vbulletin->userinfo['usergroupid']==6)
        {
                eval(standard_error(fetch_error('alreadyregistered', $vbulletin->userinfo['username'], $vbulletin->session->vars['sessionurl'])));
        }

repeat for the 3 time it appears and done.
Please inform me if there are any bugs or security holes in it!

Ahsin1 05-03-2006 03:26 AM

thanxxxxx

plateau 05-03-2006 05:11 AM

good idea!

by the way, how can i do multi-logon? thanks!

DrewM 05-03-2006 09:08 AM

Whats the point I mean you can add accounts in the admin cp?

wtrk 05-03-2006 03:41 PM

Quote:

Originally Posted by Larrysw
Whats the point I mean you can add accounts in the admin cp?

I was just thinking the same thing.

Valter 05-03-2006 04:43 PM

Yes but sometimes you need to go through registration process to test some hacks etc... I guess this is to use in such situations.

Zachery 05-03-2006 04:57 PM

why not just set
$vbulletin->options['allowmultiregs']

to on when its an administrator?

Tralala 05-03-2006 05:02 PM

I can see this being useful, as I test login/registration procedure all the time. Logging out/logging back in, or using multiple browsers, is sometimes a pain.

Thanks for this, Kingzor!

Kingzor 05-03-2006 05:18 PM

Quote:

Originally Posted by Larrysw
Whats the point I mean you can add accounts in the admin cp?

Like when i installed https://vborg.vbsupport.ru/showthread.php?t=106685
it was a pain in the ass to logout test it login change some settings logout again and repeat untill i got it just the way i wanted.

Zachery 05-03-2006 06:07 PM

Quote:

why not just set
$vbulletin->options['allowmultiregs']

to on when its an administrator?
ehhem


All times are GMT. The time now is 05:48 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.00999 seconds
  • Memory Usage 1,728KB
  • 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