The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
|||
|
|||
![]()
Try this
![]() lastten.php Code:
<?php $templatesused = "lastten,lasttenbit"; require ("./global.php"); $threads = $DB_site->query(" SELECT thread.*, forum.*, thread.title AS threadtitle, forum.title AS forumtitle FROM thread LEFT JOIN post ON (post.threadid = thread.threadid) LEFT JOIN forum ON (forum.forumid = thread.forumid) GROUP BY thread.threadid ORDER BY thread.lastpost DESC LIMIT 0,10"); while ($thread = $DB_site->fetch_array($threads)) { if (($counter++ % 2) == 0) $backcolor = "{ secondaltcolor }"; else $backcolor = "{ firstaltcolor }"; $lastpost = vbdate("$timeformat $dateformat", $thread[lastpost]); eval("\$lasttenbits .= \"".gettemplate('lasttenbit')."\";"); } eval("dooutput(\"".gettemplate('lastten')."\");"); ?> Code:
{ htmldoctype } <HTML> <HEAD><TITLE>$pagetitle</title> $headinclude </head> <body> $header <!-- border colour table --> <table cellpadding=0 cellspacing=0 border=0 bgcolor="{ tablebordercolor }" width="{ tablewidth }" align="center"> <tr><td> <table cellpadding=4 cellspacing=1 border=0 width=100%> <tr bgcolor="{ tableheadbgcolor }"> <td colspan=5><normalfont color="{ tableheadtextcolor }"><b>Last ten modified threads</b></normalfont></td> </tr> <tr bgcolor="{ firstaltcolor }"> <td><smallfont>Thread</smallfont></td> <td><smallfont>Forum</smallfont></td> <td><smallfont>Replies</smallfont></td> <td><smallfont>Views</smallfont></td> <td><smallfont>Last Post</smallfont></td> </tr> $lasttenbits </table> </tr></td> </table> <!-- /border colour table --> $footer </body> </html> Code:
<tr bgcolor="$backcolor"> <td><normalfont><a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">$thread[threadtitle]</a></normalfont></td> <td><normalfont><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$thread[forumid]">$thread[forumtitle]</a></normalfont></td> <td><normalfont>$thread[replycount]</normalfont></td> <td><normalfont>$thread[views]</normalfont></td> <td><normalfont>$lastpost</normalfont></td> </tr> I think that was what you were asking for? ![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|