Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: oguzmans - tammikuu 05, 2008, 11:55:36 AP

Otsikko: Please help, URGENT! thanks
Kirjoitti: oguzmans - tammikuu 05, 2008, 11:55:36 AP
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
Otsikko: Re: Please help, URGENT! thanks
Kirjoitti: codenaught - tammikuu 28, 2008, 03:04:49 IP
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? (http://www.simplemachines.org/community/index.php?topic=24110.0)