The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Exaclty as seen on progresstalk.com
Anyone have this hack or is there one? I have searched btw |
#2
|
||||
|
||||
What would you like to order this by?
i.e Top XX latest threads with no reply? That is quite easy to do: PHP Code:
Just upload to your forum's folder, and include using SSI. |
#3
|
|||
|
|||
Thank you very much Firefly! I am gonna try this soon
Thanks again! |
#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>"; } ?> |
#5
|
|||
|
|||
also out of curiousity how hard is it to make it the last XX threads in the last 24 hours?
That might save some old unanswered posts showing up? Just wondered, may chose to keep it like it is |
#6
|
||||
|
||||
LOL, I am so dumb.
Forgot to echo the stuff. PHP Code:
|
#7
|
|||
|
|||
would this interfere with tubedogs top xx posters?
Its just I get the new.php working fine.. So I add this to phpinclude.. ob_start(); require("/home/wbbforum/www/topposters.php"); $noreplytopic = ob_get_contents(); ob_end_clean(); I then use $noreplytopic in one of my templates and it shows the top XX posters ???? So I had top xx posters twice?? |
#8
|
|||
|
|||
my fault.. I am stupid..
I copied the php include from the topposters one.. D'oh I feel stupid now ha ha |
#9
|
|||
|
|||
ok I changed it to new.php
I then got this,.. Fatal error: Cannot redeclare stripslashesarray() in /home/wbbforum/public_html/global.php on line 10 Any ideas? |
#10
|
|||
|
|||
sorted it../
Removed the require global from the php file.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|