![]() |
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 |
what's the method to include the code (display the dead topics) on a non vb page via .shtml at another webhost.
i'm hosting my vb entry page on a separate hosting account (www.entrypagehost.com/index.shtml), away from the forum (www.forumhost.com/index.php)!! can you help me with the code, including the dead topic list on my entry page. the include("/full/path/to/deadtopics.inc.php"); method doesn't work! thx a lot! yours vanessa |
well i got this to work at http://animeboards.net
to include the php file i did Code:
<?php Code:
<?php you need to use .php, .php3 file for it to work... what i did was create index.php3 which includes all of the above and then include index.php3 into a index.shtml file in the index.php3 file i had at the very top before <html> tag the following Code:
<? |
I want to post the top X most popular posts for the last X days. Not the most popular ever, but just for the last X days, so that the recent popular ones stay popular.
Thoughts as to how to do it? |
This script seems to be very server intensive. I am using:
Code:
<?php |
Change SELECT * FROM
to SELECT threadid, title FROM |
Ok. What about this Active topics hack from EVA2000. Can you give me any ideas on how to optimize it:
Code:
<? |
Rangersfan: That change makes it a bit faster, but its still pretty slow.
|
All times are GMT. The time now is 07:39 PM. |
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:
|