![]() |
hook location for header footer (in thread) plugin?
What hook location for plugin which has to working in HEADER AND FOOTER template in each thread?
Which hook location have I to choose? I try with showthread_complete and showthread_getinfo but it doesn't work The plug-in generate correctly the variable: $testo_adv_header .= "$row_adv_header[adv_text]"; and I stamp it on site correctly: echo "$testo_adv_header"; But in the template the variable does not appear! <td>$testo_adv_header</td> </tr> </table> And for footer template? --------------- Added [DATE]1221900556[/DATE] at [TIME]1221900556[/TIME] --------------- Is it not possible to make a plugin for Header template? For example: in my plugin i create this var: $var1 = "<p>TEST PLUGIN</p>"; if I put in HEADER template this var: $var1 I not read "TEST PLUGIN" Which hook location Have I to use? |
Global_start doesn't work :(
|
The hook parse_templates is just before the header and footer templates are processed. But global_start is also before that so it should have worked. In your plugin, are you setting the variables in a function? If so, you may need a "global" statement to make it work.
|
All times are GMT. The time now is 01:02 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:
|