MyBB Community Forums

Full Version: My page doesn't understand the variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Add this code to your page:
$plugins->run_hooks("knerbacustompage_start");

Then, open inc/plugins/ttposters.php and find:
$plugins->add_hook("index_start", "ttposters_do");
After it add:
$plugins->add_hook("knerbacustompage_start", "ttposters_do");
Ok, edited the file, added the "add_hook".

No changes at all. I don't know if this makes a difference but my forum is located at test.com/topics

and the custom page is located at test.com/mainpage.php
Ah, yes, that would affect it.

Add this code to the php:

define("IN_MYBB",1);
chdir("topics");
include("global.php");
:O Fatal error: Cannot redeclare class phptpl_templates in /home/froggaco/public_html/topics/inc/plugins/phptpl.php(71) : eval()'d code on line 26
What plugin is that?
Template conditionals by Zynga_Burger.
Where else woudl that be declared? :hmm:

What's your forum URL?
Hmmm. Any reason why you'd be including global.php already?
Pages: 1 2 3