Version: 1.00, by Zzed
Developer Last Online: Feb 2012
Version: 2.2.x
Rating:
Released: 02-13-2003
Last Update: Never
Installs: 7
No support by the author.
This hack has been developed and tested on VB 2.2.9.
This hack was actually requested by the moderators in my forum.
This hack gives you the ability to prevent a thread from going back up to the top of your forum. It simply does it by disabling the updates to the lastpost field. It is an addon to the Admin Options in the bototm of a thread. This is an alternative to locking a thread where it allows the users to post new replies but the thread keeps on sinking to the bottom and to the subsequent pages. It is just another way to kill a thread.
I have also created an animated GIF icon that replaces the thread icon.
The threads affected by this hack are referred to as slippery threads because they slip to the bottom of the forum.
Files that are affected by this hack:
- forumdisplay.php
- newreply.php
- postings.php
Templates that are affected by this hack:
- showthread_adminoptions
Tables affected by this hack:
- thread
New files:
- drop.gif
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
This may well be useful for posting in a thread which is about to be locked. i.e. Many times I would like to post a reason for the thread being locked. However I don't want to draw further attention to the locked thread by bringing it to the top of the list (unless there is already a hack for this?)
i'm actually looking for something simular............ basically something to prevent users from resurrecting really old threads. Is there any way that this hack can determine when the last postdate was and automagically turn it into a slippery thread so users cant resurrect it back to the top of the forum?
if ($visible) {
if ($threadinfo[replycount]%10==0) {
$replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'");
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
i replaced it with your code:
PHP Code:
if ($visible) {
if ($threadinfo[replycount]%10==0) {
$replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'");
if($thread[slippery]) {
$DB_site->query("UPDATE thread SET replycount='$replies[replies]',lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
}
} else {
if($thread[slippery]) {
$DB_site->query("UPDATE thread SET replycount=replycount+1,lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
}
}
}
but now i get a blank page when i submit i new reply
This hack wasn't meant to act on all the forums. It was meant for you to be able to place a particular thread on a slippery slope. Keep in mind, those of you that want to make this go forumwide, it will require more coding to do that.