![]() |
Redirect to non Vb page
This must have come up before, but search as I may I cant find it....
I have added a few pages to my site that require users to be logged in. I have written the php to check if a user is logged in, or to log them in if they are not. Everything hunky-dorey. The problems start when a user clicks on a link on a non vB page and registers. How do you get the redirect to send them back to a non vB page? B. |
edit member php look for the # start login # section and where is says
Code:
$url = $HTTP_REFERER; Code:
$url = $HTTP_REFERER; |
I didnt notice that anyone had replied to this, so I cobbled something together. Your solution seems to be a lot neater.
I added an extra hidden field in the signupadult and register templates: Code:
so that I can pass register.php a new redirect url will be available to register.php when registration was done. Then I added a simple if statement in register.php: Code:
just before the line: Code:
eval(print_standard_redirect('redirect_registerthanks')); Works like a charm. B. |
All times are GMT. The time now is 10:07 AM. |
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:
|