The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Add second php include group or for certain pages??
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.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|