MyBB Community Forums

Full Version: Custom Pages & Unknown Location
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alrighty, so I have some custom pages created, the PHP files would contain codes like this:

<?php

define("IN_MYBB", 1);
define("KILL_GLOBALS", 1);
require "global.php";

add_breadcrumb("Custom Page 1", "custompage1.php");

eval("\$custompage1= \"".$templates->get("custompage1")."\";");
output_page($custompage1);
?>

And of course with the custom global template "custompage1"
And etc

It all works just fine, but it and along with custom plugins all appear as "Unknown Location".

I've already attempted these solutions:
http://community.mybb.com/thread-48649.h...ocation%22

And possibly a few more that I can't summon off the top off my head.

I also attempted to add this piece of code in the functions_online.php:

		case "custompage1":
			$user_activity['activity'] = "Custom Page 1";
			break;

I was pretty confident this wasn't going to work, but I just had to try.
Is there any other solution I can attempt?

Thanks.
Any input at all?
I would like to know this to....
I'd love to know this too please. So, bump?