vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Redirect on Registration (https://vborg.vbsupport.ru/showthread.php?t=140977)

Sychev_S 03-02-2007 09:42 PM

Redirect on Registration
 
Does anybody know how I can automatically redirect someone into their control panel upon registration completetion?

Alright, did it myself.

Find:
PHP Code:

eval(standard_error(fetch_error('registration_complete'$username$vbulletin->session->vars['sessionurl'], $vbulletin->options['bburl'] . '/' $vbulletin->options['forumhome'] . '.php'), ''false)); 

Comment it out //
Insert below

PHP Code:

// Send the User to their picture profile page
    
$vbulletin->url "profile.php?do=editprofilepic"$vbulletin->session->vars['sessionurl'];
        
    eval(
print_standard_redirect('registration_complete')); 


Aur-Phala.Com 05-02-2007 02:12 PM

what file did u edit

Mrdby 05-22-2007 08:25 PM

well?????

da420 05-22-2007 08:37 PM

register.php...

TriMe 12-01-2008 03:05 AM

will this work if there is a confirmation email?

davida500 01-28-2009 06:30 PM

Thank you so much, this is awesome!!!!

ragtek 01-28-2009 06:32 PM

Quote:

Originally Posted by TriMe (Post 1676161)
will this work if there is a confirmation email?

No, because it's in an if condtion
PHP Code:

if ($vbulletin->options['verifyemail'])
                {
                    eval(
standard_error(fetch_error('registeremail'$username$emailcreate_full_url($vbulletin->url $vbulletin->session->vars['sessionurl_q'])), ''false));
                }
                else
                {
                    
$vbulletin->url str_replace('"'''$vbulletin->url);
                    if (!
$vbulletin->url)
                    {
                        
$vbulletin->url $vbulletin->options['forumhome'] . '.php' $vbulletin->session->vars['sessionurl_q'];
                    }
                    else
                    {
                        
$vbulletin->url iif(strpos($vbulletin->url'register.php') !== false$vbulletin->options['forumhome'] . '.php' $vbulletin->session->vars['sessionurl_q'], $vbulletin->url);
                    }

                    if (
$vbulletin->options['moderatenewmembers'])
                    {
                        eval(
standard_error(fetch_error('moderateuser'$username$vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), ''false));
                    }
                    else
                    {
                        eval(
standard_error(fetch_error('registration_complete'$username$vbulletin->session->vars['sessionurl'], $vbulletin->options['bburl'] . '/' $vbulletin->options['forumhome'] . '.php'), ''false));
                    }
                } 

--------------- Added [DATE]1233174777[/DATE] at [TIME]1233174777[/TIME] ---------------

You could use the register_addmember_complete Hook, then it would work without an fileedit

SVTCobraLTD 07-16-2009 05:51 PM

Now how would you make it that if a user selects a certain option during registration, it would then send them to a certain page? But if they do not select one, it just does the normal thing?

Dismounted 07-17-2009 06:08 AM

You just need to check that value, and issue a redirect. The values are found in $vbulletin->GPC.

SVTCobraLTD 07-17-2009 11:11 AM

I not sure i understand 100%. Can you explain a little more?

Dismounted 07-17-2009 11:29 AM

Any values that are passed through the vBulletin Input Cleaner will appear in $vbulletin->GPC. You just have to tweak the code posted above to check another value.

Negrosoo 01-01-2010 01:20 PM

Thank you :P


All times are GMT. The time now is 12:11 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.01289 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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