The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
||||
|
||||
![]()
This is the code that I use on my homepage.
Code:
<table width="100" cellspacing="0" cellpadding="0" border="0"> <? require("/path/to/vb/config.php3"); $db = mysql_connect("localhost", "userid", "password"); mysql_select_db("forum_db", $db); $num_active = 10; $twentyfourhours= 24*60*60; $date1 = time() - $twentyfourhours * 1; $myselect = "select threadid, title from thread where lastpost > $date1 and forumid <> 34 order by lastpost desc limit $num_active"; $result = mysql_query($myselect); if ($row = mysql_fetch_array($result)) { do { printf("<tr valign=\"top\">\n<td valign=\"top\" align=\"center\"><img src=\"/images/square.gif\" alt=\"\"> </td>\n<td><font class=\"forum\"><a href=\"http://www.redhotsweeps.com/forum/showthread.php3?threadid=%d\" target=\"_blank\">$row[title]</a></font></td>\n</tr>\n", $row[threadid], $row[title]); }while ($row = mysql_fetch_array($result)); } ?> </table> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|