The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
Hey I put in the code and called it new.php
I then tried to run http://www.wannabebigforums.com/new.php to test it before I incuded it in the forums and got a blank screen ![]() Heres my php file.. Code:
<?php error_reporting(7); require("./global.php"); $whereforum=""; // if you would like to select threads only from one forum, // uncomment the following line and replace 1 with the ID // of that forum. // $whereforum="AND forumid='1'"; // how many threads would like to display? $threadnum="10"; // path to your vBulletin? (no trailing slash please) $pathtovb="http://www.wannabebigforums.com"; $threadlist=""; $allthreads=$DB_site->query("SELECT threadid,title FROM thread WHERE replycount='0' $whereforum ORDER BY dateline LIMIT $threadnum"); while ($thread=$DB_site->fetch_array($allthreads)) { if ($threadlist!="") $threadlist.="<br>"; $threadlist.="<a href=\"$pathtovb/showthread.php?threadid=$thread[threadid]\">$thread[title]</a>"; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|