2010-10-29, 10:00 PM
Alrighty, so I have some custom pages created, the PHP files would contain codes like this:
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:
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.
<?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.