MyBB Community Forums

Full Version: Calling a custom template from forumdisplay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically I want to add a template to the template set, then call it from forumdisplay

{$header}
{$moderatedby}
{$mytemplate} <!-- This is the custom template -->
{$usersbrowsing}
{$rules}
{$subforums}
{$threadslist}
{$footer}

And the template would be named "forumdisplay_mytemplate".

In the custom template I have:

<br />
test
<br />

But it's not showing up on forumdisplay.

I could just make the edit directly in forumdisplay but I prefer this as it's more organized.

How do I go about doing this?
Where have you defined what $mytemplate is?? You'd need this in a plugin, or forumdisplay.php itself:

eval("\$mytemplate = \"".$templates->get('forumdisplay_mytemplate')."\";");
Perfect. Thanks Matt.