Log in

View Full Version : Access to $thread array in ad_footer_end


tscargo
12-23-2008, 04:34 AM
Hello,

I am trying to access the $thread variable array in the ad_footer_end template to create some content related advertisement based on the taglist of that thread.

Unfortunately the variable is not available in that template and I do not know enough to 'fix' this.
Any help is appreciated.

Regards,

Taco

--------------- Added 1230044019 at 1230044019 ---------------

I finally figured it out myself. Unfortunately the ad_footer_end template is evaluated in global.php, long before the $thread value is filled.

I have created a plugin that re-evaluates the respective templates to include the output.