The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
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++; } ?> 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> 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 ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|