Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: snazster on March 28, 2010, 09:54:08 AM

Title: change login landing page
Post by: snazster on March 28, 2010, 09:54:08 AM
Hi,

I'd like users to login from any page but be redirected upon successful login to a page called index33.php.

Where and how do I make these changes - I've looked through sources/loginout.php and tried a couple of changes to no avail - can anyone suggest anything? 
Title: Re: change login landing page
Post by: Kays on March 28, 2010, 10:48:37 AM
Hi, something to try. In LoginOut.php look for:


// Set the login URL - will be used when the login process is done.
if (isset($_SESSION['old_url']) && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
$_SESSION['login_url'] = $_SESSION['old_url'];
else
unset($_SESSION['login_url']);


and add the following after it. Change index33.php to the full url to that page. the http://  needs to be there.


  $_SESSION['login_url'] = 'index33.php';
Title: Re: change login landing page
Post by: snazster on March 28, 2010, 11:31:49 AM
Hi,

Thanks for ttrying. 

That didn't do it for me.  The url still ends up being ...index.php?PHPSESSID=4648083f5ec750558be832ec8e795ccc;action=forum

Any ideas? 
Title: Re: change login landing page
Post by: snazster on March 30, 2010, 03:13:55 PM
This has become quite important for me now but I see to be going round and round in circles trying to solve the problem - does anyone else have any ideas? 

Title: Re: change login landing page
Post by: Antechinus on April 21, 2010, 07:57:18 AM
Do you still need help with this?