MyBB Community Forums

Full Version: Add a new template page to usercp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody.
I am trying to do something and I can't figure out how to do it.
I want to add an extra page in usercp.
I modified "usercp_nav_profile" template with the link "usercp.php?action=profile_mobi", I created a new template usercp_profile_mobi in default template set, I added this code
$plugins->run_hooks("usercp_profile_mobi_start");
	$mybb->user['profile_mobi'] = htmlspecialchars_uni($mybb->user['profile_mobi']);
	eval("\$usercp_profile_mobi = \"".$templates->get("usercp_profile_mobi")."\";");
	$plugins->run_hooks("usercp_profile_mobi_end");
to usercp.php file, but when I try to access the link I get a blank page.

can someone guide me how to do this modification?
nobody knows? Sad