MyBB Community Forums

Full Version: How do I do this..?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I editing a template, for example the 'header' template, and I want to display another custom made template in the 'header' template, how do I do it?
I know that probably doesnt make sense. So let me put it this way.
In the 'header' template, to display the welcomeblock tempates, you just type {$welcomeblock}. But when I make a custom template, and type {$mytemplate} for example, it doesnt show.

How do I get it to show?

Hope this makes sense, Im not good at explaining things sometimes Toungue
In theory, and according to the Wiki you can simply Create a template (for example "myTemplate"), and then you should be able to call it from other places like {$myTemplate}. (but don't quote me on this Toungue)

I just tried it once, but didn't work... maybe I did something wrong, but never tried again. So let me know if it works for you Smile
Toungue You need Yumi's phpTemplate conditionals plugin to make it work.