Ok I am getting the following error:
Code:
Parse error: syntax error, unexpected T_STRING in
/home/xxx/public_html/forum/includes/class_core.php(3904) : eval()'d code on line 1
Here's what I have done:
created a new template called mystuff and it just says the following:
Created a plugin that has the following code in it:
Code:
$sql = "select id,headline from mystuff limit 0,10";
$rm = mysql_query($sql);
$li = "";
while ($rs = mysql_fetch_array($rm)) {
$li .=$rs['id']."-".$rs['headline']."<br />";
}
$templater = vB_Template::create('mystuff');
$templater->register('mystuff', $li);
$templater->render();
I should also note that I have the hook set at parse_templates (not sure if that is correct)
All I want to do is take the contest of the variable mystuff and be able to call it from within another template (not the mystuff template)
What am I doing wrong?