![]() |
url store for redirection
Scenario:
User clicks a link on the site and is taken to a new page, not the planned one, and is provided with a link to return to where he was planning on going. Can I add something somewhere (like in global.php) to grab this? I tried HTTP something or other but it didn't seem to grab the place where I originally planned on going. For example, a user is in forum 12 and clicks on a link to a thread but instead gets taken to this different page and then is given a link to go to the thread from the new page. I'm pretty set for the rest of the code I think, I just can't get the location for the place to redirect to~ |
bump - anyone know? :)
|
Umm is this vB or not?
|
Well, er, yes. :)
Not that it'd have to be right, or is there something vB specific for it? |
Um well if you know how to get the user back to where they should be going use:
PHP Code:
|
Quote:
header functions cuse error (headers allready sent) vb have a functions for header redirect that dosent couse and error exec_header_redirect($url) should work better. |
Nah, I actually need the url of where their comming FROM before I can send them there, which was my problem. ;)
I think I'm going to end up doing it a different way though -- instead of everywhere, only have this happen in the forumhome/index page(s). Thanks for the input though~ |
You'll need to modify sessions.php to include a new sessionvar then :) $_SESSION['prevlocation'] = $_SERVER['REQUEST_URI']; I did this on my latest project :)
|
All times are GMT. The time now is 09:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|