MyBB Community Forums

Full Version: How to add {$mysupport_jumpto_bestanswer} to another template, instead of showthread?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know how to add {$mysupport_jumpto_bestanswer} to another template, instead of showthread.php?

When I move it to another template, nothing shows.
As mentioned per https://github.com/mybb/docs.mybb.com/bl...#structure

If it doesn't invoke the template within the eval it will simply not have the variable to "insert".
Thus you'll have to do some core edits to the plugin.
to which template you want the move ..
I was thinking to add it in the postbit template. How would I do that?
Moved to Plugin Support.
Anyone know?
You're going to have to change which function that contains the code to eval the {$mysupport_jumpto_bestanswer} plugs into.

I haven't looked at this particular plugin, but it's probably hooked into showthread_end and you'll want to hook it into postbit instead.

Check out this page for documentation on how plugins work. It'll help you figure out what changes you need to make to the plugin to get what you want. http://docs.mybb.com/1.8/development/plu...asic-usage
(2014-12-05, 01:48 AM)jshort Wrote: [ -> ]You're going to have to change which function that contains the code to eval the {$mysupport_jumpto_bestanswer} plugs into.

I haven't looked at this particular plugin, but it's probably hooked into showthread_end and you'll want to hook it into postbit instead.

Check out this page for documentation on how plugins work. It'll help you figure out what changes you need to make to the plugin to get what you want. http://docs.mybb.com/1.8/development/plu...asic-usage

I couldn't find showthread_end, only showthread_start.
Then that would be what you would need to change.
(2014-12-05, 02:09 AM)jshort Wrote: [ -> ]Then that would be what you would need to change.

It doesn't work.