The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Redirect after LOGIN from custom page
I have a custom PHP page that checks to see if user is logged in before they can perform a function.
If not logged in the login windows appears in an overlay window Then the user logs in BUT... they are redirected to their control panel What do i have to send the LOGIN form so it remember to redirect back to the custom page that was requesting the login details? |
#2
|
||||
|
||||
Quote:
I don't understand the need for this extra verification. |
#3
|
|||
|
|||
i am using vb3.8...
Sorry i am not the actual programmer for the custom page... what token should the custom PHP page have in order to send the proper information to the login form so it redirects? |
#4
|
||||
|
||||
It sounds like the "custom page" is superfluous, unnecessary.. I still don't understand why it is necessary.
|
#5
|
|||
|
|||
Is your custom page in the same directory as your forum (where global.php is)? If so, you should be able to call print_no_permission() if they aren't logged in and it should redirect back to your custom page after login. For instance, this test program works:
Code:
<?php include('./global.php'); if ($vbulletin->userinfo['userid'] == 0) { print_no_permission(); } else echo "Hello " . $vbulletin->userinfo['username']; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|