MyBB Community Forums

Full Version: Custom template eval location
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I'm working with XThreads, attempting to create a slick classifieds section for my forum.

I'd like to display the author portion next to the xthreads fields. In order to do this I've determine I need to create a custom template that hooks into the postbit. However, I cannot get my custom template to work.
eval("\$custompostbit = \"".$templates->get("custompostbit")."\";"); 


I've added the following line to global.php and showthread.php at the bottom, but {$custompostbit} does not pull the custompostbit template. Any ideas where this line should be? I would post a link but I'm developing everything locally right now.

Thanks!
(2015-12-28, 02:53 PM)squid267 Wrote: [ -> ]I've added the following line to global.php and showthread.php at the bottom

Definitely not there if that's supposed to be a post template. Could be somewhere here: https://github.com/mybb/mybb/blob/featur...t.php#L547 but I'm not sure why you're editing any core in the first place, I'm quite certain XThreads supports <template [template_name]> calls in templates. If not, you can activate this: http://mybbhacks.zingaburga.com/showthre...464&page=9 or this: http://mybbhacks.zingaburga.com/showthread.php?tid=260