The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is it possible to use SERVER variables in templates?
I'm looking to do something like this PHP code:
PHP Code:
Is there a "template friendly" version for similar code? Or do I have to find a hook to place this sort of thing in? |
#2
|
|||
|
|||
So you're looking to do the redirect in the template? I wouldn't recommend doing that since you have to rely on the meta redirect tag or a JavaScript redirect which is worse than a normal redirection through a header.
|
#3
|
|||
|
|||
Thanks for the advice?
What would be the best hook location to try to do something similar via PHP? I need to compare variables to determine if the user is a guest and also what script/page they are viewing before determining to redirect to https or not. |
#4
|
|||
|
|||
Try the hook "init_startup", that should be the first hook in vBulletin to be executed.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|