2010-10-11, 05:46 PM
Hi.
I am working on a custom function for my MyBB site.
I got the PHP/MySQL part ready and now need to implement with MyBB design.
I have created a custom php file, ex:
And I have created a new template page.
Lets say I wanna output $arrayTest - how to do that in the template?
Do I have to implode to array into a string and then output the string with, ex: {$string} ?
Best regards
I am working on a custom function for my MyBB site.
I got the PHP/MySQL part ready and now need to implement with MyBB design.
I have created a custom php file, ex:
<?php
define("IN_MYBB", 1);
$templatelist = "test";
require_once './global.php';
add_breadcrumb("Test", "test.php");
$arrayTest = array();
for($i = 0; $i > 10; $i++)
{
$arrayTest[] = $i;
}
eval("\$test = \"".$templates->get("test")."\";");
output_page($test);
?>
And I have created a new template page.
Lets say I wanna output $arrayTest - how to do that in the template?
Do I have to implode to array into a string and then output the string with, ex: {$string} ?
Best regards