Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
kingtas
New Member
New Member



Joined: Apr 13, 2009
Posts: 12

PostPosted: Thu May 06, 2010 6:16 am Reply with quote

What do I need to change so that the news or another page is displayed after a user logs in instead of displaying their personal page? Thanks.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Thu May 06, 2010 8:01 am 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');

_________________
Only registered users can see links on this board! Get registered or login!

Last edited by nuken on Thu May 06, 2010 6:09 pm; edited 1 time in total 
View user's profile Send private message Send e-mail Visit poster's website
kingtas







PostPosted: Thu May 06, 2010 12:01 pm Reply with quote

Great thanks a bunch.
 
eldorado
Involved
Involved



Joined: Sep 10, 2008
Posts: 424
Location: France,Translator

PostPosted: Thu May 06, 2010 5:46 pm Reply with quote

how about that one
Code:


} elseif ($redirect == '') {
            Header('Location : javascript:history.go(-1)');


would be stupid if you log on first page visit Wink

_________________
Only registered users can see links on this board! Get registered or login! (My RN site)- Only registered users can see links on this board! Get registered or login!(cod4 clan) - Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website MSN Messenger
nuken







PostPosted: Thu May 06, 2010 6:56 pm Reply with quote

I don't think you can mix server-side with client-side like that. You could echo the javascript or go all php like this

Code:


 Header('Location:'.$_SERVER['HTTP_REFERER']);


It should keep you on the same page if you login with a side block or the nukeNAV colorbox login. If you login in Your_Account, it will take you to your personal page.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©