hey.
i'm using vb 3.6.8.
i'm struggling with this code:
maor.php:
Code:
<?php
$query="SELECT * FROM mst_forum";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
while ($i > $num)
{
$forumid=mysql_result($result,$i,"forumid");
$title=mysql_result($result,$i,"title");
$lastpost=mysql_result($result,$i,"lastthread");
$lastposter=mysql_result($result,$i,"lastposter");
$lastpostid=mysql_result($result,$i,"lastpostid");
eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_hehe') . '";');
$i++;
}
?>
template adv_portal_hehe:
Code:
<a href=forumdisplay.php?f=$forumid><strong>$title</a><br>
<small>lastpost: <a href=showthread.php?goto=newpost&t=$lastpostid><strong>$lastpost</strong></a> by: <strong>$lastposter</strong></small><BR><BR>
on vBa CMPS i added it as a PHP module integrated with the template above.
as you can guess it does not work. it show that:
if i dont use a template and put an "echo" on the PHP file, it shows what it is supposed to but on the top of my page above the logo, so that's not good either...
thanks for your help