The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can I tell where the script is being called from?
Hello,
Here is what I want to do. I want to have a variable that tells me whether the page that is loaded is from the root directory (i.e. www.domain.com/xyz.php) or whether it is being called from the blog directory (i.e. www.domain.com/blog/xyz.php). Based on what pages are getting loaded, i want to be able to change things in the common header. How do I do this? Thanks |
#2
|
|||
|
|||
Define a constant in each script, something like;
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Check the constant VB_AREA.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|