MyBB Community Forums

Full Version: Replacing template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I have a problem. How am i replacing template in newreply.php? My plugin checks ID thread. Now i want replace template. I was looking for hook.
$plugins->add_hook("newreply_start", "zmiana_szablonu");

function zmiana_szablonu()
	global $mybb, $thread, $templates,;

//change temp.

I see in newreply.php:
	eval("\$newreply = \"".$templates->get("newreply")."\";");
There is a hook?

Who can help me?