![]() |
This is something I like to do on my homepage. If a post has no replies it needs attention right? I agree so I threw this little hack together that will list your dead topics.
Demo: http://www.extremeforums.com/include/deadtopics.inc.php Code:
<?php ~Chris |
Most people dont want to display threads from private forums so you can do something like this:
Code:
$query = "SELECT * FROM thread WHERE replycount < 1 AND forumid != 34 ORDER BY dateline DESC LIMIT $maxthreads"; Once again Im not familar enough with the structure of vb right now so if anyone knows a better way please let me know ~Chris P.S The != doesnt work on win32 systems (so ive been told) so you might want to use NOT= if your on win32 |
Instead of !=, just use <>
That will clear that issue up. |
How did you make it so that it appears on your homepage? Did you use ssi? If so, what is the ssi code?
|
I put the above code in a file named "deadtopics.inc.php"
and then on my homepage (where I wanted the list to appear)i put: include("/full/path/to/deadtopics.inc.php"); Hope this helps, ~Chris |
Quote:
|
Sure no problem ;)
And yes it has really helped my users get the answers they need because every visitor to my homepage sees this list and they want to be the one to answer a question first.... ~Chris |
How can I exclude more then one forum?
Just use: $query = "SELECT * FROM thread WHERE replycount < 1 AND forumid <> 21 22 23 ORDER BY dateline DESC LIMIT $maxthreads"; Forum ID 21 22 23 or how do I do it? Another Problem: Got some old topics in the list! But they are allready deleted? Why do the y show up an d how kann I delete them? http://std.krawall.de/vbb/dead.php [Edited by The_Sisko on 08-22-2000 at 06:45 PM] |
[QUOTE]Originally posted by The_Sisko
[B]How can I exclude more then one forum? Just use: $query = "SELECT * FROM thread WHERE replycount < 1 AND forumid <> 21 22 23 ORDER BY dateline DESC LIMIT $maxthreads"; Forum ID 21 22 23 or how do I do it? Another Problem: Got some old topics in the list! But they are allready deleted? Why do the y show up an d how kann I delete them? http://std.krawall.de/vbb/dead.php [Edited by TechTalk on 08-22-2000 at 08:22 PM] |
Well I tried to edit the above thread 10 times but it never would change so here we go again:
Quote:
Code:
[B]$query = "SELECT * FROM thread WHERE replycount < 1 AND forumid <> 21 AND forumid <> 22 AND forumid <> 23 ORDER BY dateline DESC LIMIT $maxthreads"; Maybe someone else can shine some light on this problem? ~Chris |
All times are GMT. The time now is 01:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|