MyBB Community Forums

Full Version: Problem, with new page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I'm not sure, it's the right place, but if it isn't move it please Smile

I have a problem, to load templates in new page. I don't know, how to load it. Sad

if($mybb->input['action'] == "createcharacter") {
	echo 'test';
}

The above code is running fine, but how i load template here?
IMG:
[Image: Untitled.png]
if($mybb->input['action'] == "createcharacter") {
eval("\$page = \"".$templates->get("createcharacter")."\";");
echo $page;
}

add createcharacter with required content in global templates
Thanks, for your answer, I got the templates loaded. How I load contents and make MySQL queries?

[Image: Untitled2.png]
^ you have to do that with php code (using a custom php file)

you can use page manager plugin for making new pages. see also share pages thread for sample pages