Not Solved Purpose of the function custom template?
#1
Not Solved
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?
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner
Reply
#2
Not Solved
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
Reply
#3
Not Solved
Could make a suggestion for it to the developers.
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner
Reply
#4
Not Solved
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
Reply
#5
Not Solved
(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.
Reply
#6
Not Solved
(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?
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner
Reply
#7
Not Solved
I don't see why you couldn't. You can release plugins that require pluginlibrary.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)