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 -> phpnuke 7.6
Author Message
bfnuke
Hangin' Around



Joined: Feb 01, 2006
Posts: 43

PostPosted: Mon Feb 06, 2006 8:39 am Reply with quote

When a user logs into the site, they are sent to:

/modules.php?name=Your_Account&op=userinfo&bypass=1&username=test_reg


But I would like them sent to the home page. Looking through the Your_account module, I see that it checks a variable called "$redirect" and if blank, it sends them there. My question is, where do I set this variable normally? Haven't been able to come across it yet.

and yes I know I could "force" it to be something in the module, but the variable is there for a reason Wink


Last edited by bfnuke on Mon Feb 06, 2006 12:04 pm; edited 1 time in total 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Mon Feb 06, 2006 10:21 am Reply with quote

well if your point is to redirect them to another page i suggest you take out the variable in your account only and replace with any prefered url/link.
if im not mistaken the variable $redirect shows up 6 or 7 times in nuke.
changing it all wouldnt be a good idea.
 
View user's profile Send private message
bfnuke







PostPosted: Mon Feb 06, 2006 11:31 am Reply with quote

Actually, I am looking for where it gets SET for your_account. Is there a admin knob somewhere?
 
hitwalker







PostPosted: Mon Feb 06, 2006 1:05 pm Reply with quote

well its not realy set anywhere.
when you search nuke $redirect it willl pop up in 7 files ,all of them are related to the forum and posting.
and it apears in index.php of the your account.
but i couldnt find where its defined..
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Feb 06, 2006 1:06 pm Reply with quote

No it doesn't get set unless a specific script sets it

If your login sets the redirect variable, then it will do this.

If you just want to change the initial redirect, change the line
Code:


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

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
bfnuke







PostPosted: Tue Feb 07, 2006 7:41 am Reply with quote

So basically it is there for us to "use", but is not used anywhere by default... Interesting..

Yeah, I already changed the code, but wondered if there was a more graceful way via config.
 
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 -> phpnuke 7.6

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 ©