MyBB Community Forums

Full Version: Add custom variables to headerinclude?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

My plug-in hooks into showthread_start, it needs to assign a variable like $my_variable to headerinclude template.

I do an eval('$my_variable = "123";') but it does not work: the variable $my_variable has been already placed into headerinclude but it shows nothing.

Please help!
I've found a solution myself, I've used the hook global_start instead of showthread_start