View Single Post
  #302  
Old 01 Feb 2015, 15:35
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Real name: Christos Teriakis
Originally Posted by kh99 View Post
I would use hook parse_templates. You say you've tried "many different templates", do you mean other hean 'header'? Of course you know, but double check that you put {vb:raw mybanners} in the same template that you preRegister() to.
hmm... Didn't tried that hook and sounds matching the case. As for the rest. Except a typo that I had at the very begining (ad_global_header_1 instead ad_global_header1), the other were correct. And yes I tried many templates, even custom ones from my addons. So:
  1. Difficult to be the template name or the content as the variable is correct.
  2. PHP code is correct as it works with a test file that I did.
After all the hook must be wrong. Let's try with yours

--------------- Added 01 Feb 2015 at 15:54 ---------------

Originally Posted by kh99 View Post
I would use hook parse_templates.
That did the trick. Thank you.
Reply With Quote