The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Looking for help with code logic
Trying to code logic in group.php file to check for value of a variable. If the variable is empty or not set then automatically redirect to another php page. Is it possible ? Could some one help me here please |
#2
|
||||
|
||||
![]()
What variable? It is possible, but you need to choose a hook where the variable would exist.
|
#3
|
|||
|
|||
![]()
First thanks for replying.
As new group is created, I would like to check the input code variable which is part of the URL as group.php?do=create&code=12345 Would like to check this code variable, if blank or not set redirect to starting php file |
#4
|
||||
|
||||
![]()
Hook into that file as early as possible (probably group_start?), and redirect.
|
#5
|
|||
|
|||
![]()
Thanks for pointing the hook I should be using.
But I am looking for the exaxt syntax of redirect php code which I should be coding. Regards |
#6
|
||||
|
||||
![]()
Use the header() function to issue the redirect (and make sure you exit the script right after the header() call.
http://www.php.net/manual/en/function.header.php |
#7
|
|||
|
|||
![]()
Thanks a million, You are great
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|