The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
edit member php look for the # start login # section and where is says
Code:
$url = $HTTP_REFERER; eval("standardredirect(\"".gettemplate("redirect_login")."\",\"$url\");"); } else { $bbuserinfo=getuserinfo($userid); eval("standardredirect(\"".gettemplate("redirect_login")."\",\"$url\");"); } Code:
$url = $HTTP_REFERER; eval("standardredirect(\"".gettemplate("redirect_login")."\",\"$url\");"); } else { $bbuserinfo=getuserinfo($userid); eval("standardredirect(\"".gettemplate("redirect_login")."\",\"http://www.url.com\");"); } |
#3
|
|||
|
|||
![]()
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:
<input type="hidden" name="benurl" value="$_REQUEST[benurl]" /> 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:
if(strlen($_REQUEST['benurl']) > 0){ $url = "http://www.vitalphysique.co.uk/".$_REQUEST['benurl']; } just before the line: Code:
eval(print_standard_redirect('redirect_registerthanks')); Works like a charm. B. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|