Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
sowsteady
Regular
Regular



Joined: Apr 09, 2004
Posts: 87
Location: UK

PostPosted: Tue Oct 16, 2007 9:51 am Reply with quote

OK, I tried searching but can't find anything on how or if its even possible to auto-direct a user to the index.php page (or website's homepage) afther they've logged in.

You may want to know why, its embarrassing to explain BUT in fact I made a website using RNv2.10.01 for some old folks who are not that net-savvy. I noticed that (after lots of guidance) they are finally able to register and log-in but then I noticed that they just hang there on the "Your Accounts" page.

It would be nice if they get auto-directed to "Home" after say a couple of seconds.

Of course the challenge now is how to prevent it doing the same when they actually WANT to view their "Your Account" page! Perhaps to answer is auto-direct the first time only?

Any suggestions please? Is this possible to do?
 
View user's profile Send private message Visit poster's website
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Tue Oct 16, 2007 12:19 pm Reply with quote

Open index.php in html/modules/Your_Account/

Around about line 1074 find:

Code:
if (empty($redirect)) {

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


and change to:

Code:
if (empty($redirect)) {

Header('Location: index.php');
 
View user's profile Send private message
sowsteady







PostPosted: Tue Oct 16, 2007 2:03 pm Reply with quote

Hi jakec, many thanks but wouldn't that mod mean that one can never go to the Your Account page anymore?

I'll try it now anyway and let you know.
 
jakec







PostPosted: Tue Oct 16, 2007 2:08 pm Reply with quote

No, it should only redirect when they login. You will notice it is under the function 'login'.
 
sowsteady







PostPosted: Tue Oct 16, 2007 2:12 pm Reply with quote

jakec, I take it back *bow* *bow* *bow*

Works like a charm!!! Dance-Y

Many thanks!
 
jakec







PostPosted: Tue Oct 16, 2007 3:25 pm Reply with quote

RavensScripts
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All 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 ©