Varible from URL isnt working with Template.
Posted: Tue Jun 22, 2004 10:53 am
Im running MyBB RC2 (Forum) and im trying to have the page index.php as my central page.
So when i type in:
http://www.tcwonline.org/~dale/index.php?temppage=index
It doesnt show the template (mainsite_index).
Heres the code of index.php:
Please help me find the problem. (OH and the contents of mainsite_index is:)
So when i type in:
http://www.tcwonline.org/~dale/index.php?temppage=index
It doesnt show the template (mainsite_index).
Heres the code of index.php:
Code: Select all
<?php
// Forums Directory
chdir('./forums');
// Get back-end (Don't Touch)
require('./global.php');
// Templates List
$templateslist = "mainsite_header, mainsite_menu, mainsite_".$temppage.", mainsite_footer";
// Start PHP Code Block
// ---------------------------------------|
// ---------------------------------------|
// End PHP Code Block
eval("\$mainsite_header = "".$templates->get("mainsite_header")."";");
eval("\$mainsite_menu = "".$templates->get("mainsite_menu")."";");
eval("\$mainsite_".$temppage." = "".$templates->get("mainsite_".$temppage."")."";");
eval("\$mainsite_footer = "".$templates->get("mainsite_footer")."";");
// Output body template
outputpage("$mainsite_header");
outputpage("$mainsite_menu");
outputpage("$mainsite_".$temppage."");
outputpage("$mainsite_footer");
?>Code: Select all
<font face="verdana" size="1"><b>The D-Frame portal is coming soon. Please feel free to post in the <a href="./forums/" target="_blank">forums</a>.</b></font>