PDA

View Full Version : Registration Redirect?


DaveNGU
04-18-2013, 09:20 PM
Is there an easy way to redirect after registration? I'm trying this:

$templater = vB_Template::create('registration_complete');

$templater->register_page_templates();
$templater->register('header', $header);
$templater->register('navbar', $navbar);
$templater->register('footer', $footer);

eval(print_output($templater->render('registration_complete', $username,
$vbulletin->session->vars['sessionurl'], fetch_seo_url('forumhome', array())), '', false));

Which in all honesty is a fair bit of guess work :p, my only problems are that it shows some sort of numbers while its printing the output and their username isn't showing in the header where we have 'Welcome {vb:raw username}'. Is there a better way to do this?

Thanks