![]() |
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: |
You have to process the template.
Add a hook to cache_templates PHP Code:
PHP Code:
|
Quote:
I found it.. AdminCP -> Plugin System -> Add New Plugin :) Thanks again merk! |
|
All times are GMT. The time now is 08:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|