Hi, im trying to create a new page that is generated from a template.
Im a noob to php. but after studying the other files here I have borrowed the following code.
however there is a problem with this line
Can anyone help me by correcting this line or by provideing me with a better script.
Thanks in advance.
Im a noob to php. but after studying the other files here I have borrowed the following code.
<?php
require "./global.php";
global $settings, $theme, $templates;
$templatelist = "new_page"
/eval("\$new_page = \"".$templates->get("new_page")."\";");
outputpage($new_page);
?>
The code almost works and generates a page from my template with all the mybb headers and footer loading up.however there is a problem with this line
/eval("\$new_page = \"".$templates->get("new_page")."\";");
causing this error message to be displayed at the top of the page Quote:Warning: Division by zero in .....forum/new_page.php on line 5
Can anyone help me by correcting this line or by provideing me with a better script.
Thanks in advance.