MyBB Community Forums

Full Version: Showthread_start hook
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am currently developing a plug-in that needs to output some data just above the first post in a thread like the image below.

[Image: plugin_here.jpg]


I have tried using a few different hooks including showthread_start but it keeps printing the data at the very top of the page before the board logo etc.

Can anyone suggest how I could get the data to print where I need it?

Thanks
I guess you are using echo to output your code? You need to insert a variable into showthread template using the find_replace_templatesets() function. Then in the hook assign something to that variable.
(2014-09-13, 09:27 PM)Destroy666 Wrote: [ -> ]I guess you are using echo to output your code? You need to insert a variable into showthread template using the find_replace_templatesets() function. Then in the hook assign something to that variable.

Ah yes, I see what you mean. Thanks its working now!