The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating a include template?
On my site I have several ads that are changed occasionally as my site sponsors change. The site is run on vbportal so there are a few different places that I have to change the banner code in order for the changes to be uniformed throughout the site.
What I am wanting to know is if it is possible to create a template that has the banner code and then include that code in the proper sections by using the $file type include that vbulletin uses for its themes. This would allow me to just change the template instead of including the code in each place. How would I go about this? |
#2
|
||||
|
||||
Use the phpinclude template
|
#3
|
|||
|
|||
I have tried that but it never seems to work right. Is there not a way to do it liek I described? When I used to use myphpnuke I was able to use regular php includes. They do not work right in vbulletin when I tried.
|
#4
|
||||
|
||||
If you place the full code in the template or use the include statment there is no reason why it shouldn't work for every file that requires global.php
The phpinclude template is the only one you can add PHP to. |
#5
|
|||
|
|||
Maybe I am not understanding... If I want this code included in a few different pages then what is the procedure?
Code:
<center><smallfont color="FFFFFF"><b>Be sure to check out our sponsors</b></smallfont></center> <center><script language="javascript" src="http://www.pimprig.com/banners/adjs.php?what=22&target=_blank"></script></center> Sorry for the trouble. |
#6
|
|||
|
|||
Just put that in the header or footer, that is on every page except for show_nopermission and the standarderror and standardredirect pages.
|
#7
|
|||
|
|||
But the code needs to go in specific locations. Like in certain table cells, etc.
|
#8
|
|||
|
|||
Then put this in phpinclude:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|