MyBB Community Forums

Full Version: Purpose of the function custom template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After reading this topic:

http://community.mybb.com/thread-134853.html


I came to the sad conclusion that themers cannot use the add new template function in any useful way cause you can't use it anyway in your themes.

So what it for then?
It's mainly for plugins that use template hooks. They create their own templates and, through the plugin, activate it and insert it into other templates.

And I agree that it should be available to use by theme designers. I've wanted to use it so many times :p
Could make a suggestion for it to the developers.
You can use <template templatename> (so for example <template footer>) to call template inside other template after installing this plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=464
(2013-04-21, 11:32 PM)Destroy666 Wrote: [ -> ]You can use <template templatename> (so for example <template footer>) to call template inside other template after installing this plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=464

I had no idea that template conditionals could do this. I've been wasting my life.
(2013-04-21, 11:32 PM)Destroy666 Wrote: [ -> ]You can use <template templatename> (so for example <template footer>) to call template inside other template after installing this plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=464

But can you release a theme on mybb that depends on a plugin to function properly? Most likey not right?
I don't see why you couldn't. You can release plugins that require pluginlibrary.