Advertisement:

Please help, URGENT! thanks

Aloittaja oguzmans, tammikuu 05, 2008, 11:55:36 AP

« edellinen - seuraava »

oguzmans

hello, my issue is this, after the registration process my site redirects to the main site, however I want it to redirect to the forum site, how can I change the redirect process on smf after registration? thanks

codenaught

Haven't tested this, but hopefully it works.

Sources/Register.php:

Find:

redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);


Make it:

redirectexit('action=login2;registered;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);


Sources/LogInOut.php:

Find:

// Some whitelisting for login_url...
if (empty($_SESSION['login_url']))
redirectexit();


Make it:

// Some whitelisting for login_url...
if (empty($_SESSION['login_url']) || isset($_GET['registered']))
redirectexit();


How do I modify files?
Dev Consultant
Former SMF Doc Coordinator

Advertisement: