The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
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 created a new template called mystuff and it just says the following: Code:
{vb:raw mystuff} 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(); 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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|