The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Call one template from another..
I'm probably going to get laughed at for this one, I have a really dumb question that I tried to research already (for the past hour), but the answers were confusing to say the least. :nervous:
I'm trying to put Google AdSense on my forums, and instead of inserting the code into each template I want the AdSense code in, I created a template called 'GoogleAdsenseCode' in my primary parent style. I tried adding the line $GoogleAdsenseCode in the template FORUMHOME where I wanted the code, and of course nothing happened. I vaugly recall a couple years ago when I tried to make my own custom hack for vB3.0, I had to edit a php file. In vB3.5, apparently they made it somewhat less messy, but I for the life of me can't find a relevant 'tutorial' on how to do it . Any help would be GREATLY appreciated! :bunny: |
#2
|
|||
|
|||
You have to process the template.
Add a hook to cache_templates PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Quote:
I found it.. AdminCP -> Plugin System -> Add New Plugin Thanks again merk! |
#4
|
|||
|
|||
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|