MyBB Community Forums

Full Version: Where to find custom template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I added a template set but when i goto template I can not find.
So, where i can find my added template.

oh i found it in Ungrouped Templates
But one question for header template we use {$header} then header comes
Like that i have added A Template name Rupload so how to make the code like that {$header} so my rupload template will come
You have to run a hook, say you want your template in UserCP:

$plugins->add_hook('usercp_start', 'mytemplate_activate');

Then you have to evaluate the template with the hook when usercp starts to load.

function mytemplaye_activate(){
	global $db, $mybb, $mytemplate, $templates;
	eval("\$mytemplate = \"".$templates->get("mytemplate")."\";");
}

Now you can use the variable in your usercp template to include your custom template:

{$mytemplate}
I want my template in new thread/new reply
So, can u give me for that
And where to add all codes. my template name is Rupload