Tricked Out News

Welcome to TON. This site is dedicated to development of addons for the RavenNuke™ CMS
Follow Us:
Tricked Out Mods: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Change the page a user is sent to after login
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> RavenNuke
View previous topic :: View next topic  
Author Message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Thu May 06, 2010 3:34 pm 
Post subject: Change the page a user is sent to after login
Reply with quote

In modules/Your_Account/index.php on around line 223 find:

Code:
} elseif ($redirect == '') {

            Header('Location:modules. php? name=Your_Account&op=userinfo&bypass=1&username=' . $username);


change the location to what you want them to go to. Example for redirect to index:

Code:
} elseif ($redirect == '') {

            Header('Location: index.php');


Example stay on same page if you use side block or nukeNAV colorbox login and in Your Account it goes to your personal page:
Code:
Header('Location:'.$_SERVER['HTTP_REFERER']);

_________________
Tricked Out News
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> RavenNuke All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©