Log in

View Full Version : Hate non-design template hacks?


Bilderback
09-23-2008, 02:41 AM
I do - cant stand them, especially when someone says "Add this code..." right after a template hook.
In the past, I have hacked alot of templates but after countless hours of updating them after upgrades,
I have decided to go anti-template hack.
Can anyone point me in the right direction so I can learn how to hook properly for a simple eval(template) ?
For example, I saw a template hack that wants you to add Google adsense code to your header template right after $ad_location[ad_header_logo] :eek:
What would be the proper way to simply hook that location via plugin to a Google adsense template instead?
Also, in order to hook certain $ad locations, would I hook global_start?
I just need direction please, so I can kick the template hacking habit.

Lynne
09-23-2008, 03:00 AM
See this thread - Template Hook (https://vborg.vbsupport.ru/showthread.php?t=147447&highlight=template+hook)

Bilderback
09-23-2008, 03:54 AM
wow - how did I miss that... :erm:
Thanks alot.
I actually viewed that thread briefly and thought it was simply a list of the hooks.
Didnt scroll far enough to see the plugin code at bottom.
Thanks again