The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Ok I'm wondering if it's possible to create a secondary php includes template or a way to get a php file to only work on a couple of pages. I just need a php to be included on a few pages of the site and it screws up if it's added in wrong spots
|
|
#2
|
||||
|
||||
|
In your phpinclude template put something like this:
Code:
if (substr($PHP_SELF, -strlen('filename.php')) == 'filename.php') {
// Do your stuff
}
|
|
#3
|
||||
|
||||
|
I think this is a very nice tip and a lot of good hack can be structured around this hint..May I suggest publishing it in Hacking Hints Board?
|
|
#4
|
||||
|
||||
|
Ask and ye shall receive.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|