Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Prevent threads from rising to the top Details »»
Prevent threads from rising to the top
Version: 1.00, by Zzed Zzed is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

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.

Comments
  #12  
Old 02-15-2003, 03:46 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I chose which forums I don't want to be bumped? or is it all the forums?
Reply With Quote
  #13  
Old 02-15-2003, 04:39 AM
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Location: Glendale, CA, USA
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Koutaru
Can I chose which forums I don't want to be bumped? or is it all the forums?
It is in all forums.
Reply With Quote
  #14  
Old 02-15-2003, 04:59 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for such a quick reply

I was just wondering because I'm creating an advertising forum and I don't want the ads being bumped (kind of like webhostingtalk)

but I still want debates/etc being bumped if they're popular

Nice hack btw
Reply With Quote
  #15  
Old 02-15-2003, 12:29 PM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply & the help Zzed!
.

Dave.
Reply With Quote
  #16  
Old 02-16-2003, 10:53 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job, Zzed!
Reply With Quote
  #17  
Old 02-17-2003, 09:47 AM
Mark Hewitt Mark Hewitt is offline
 
Join Date: Oct 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?)
Reply With Quote
  #18  
Old 02-26-2003, 05:57 AM
Sanni Sanni is offline
 
Join Date: Aug 2002
Location: Australia
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds great

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?
Reply With Quote
  #19  
Old 02-26-2003, 06:08 PM
dnd dnd is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesn't work
i have the same version 2.2.9

but the code in newreply.php is :
PHP Code:
      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

any help?
Reply With Quote
  #20  
Old 03-12-2003, 03:49 AM
WildBill WildBill is offline
 
Join Date: Feb 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this same need, is there something else that will let you tag a forum to behave in the slippery fashion and others not?


Quote:
Originally posted by Koutaru
Thanks for such a quick reply

I was just wondering because I'm creating an advertising forum and I don't want the ads being bumped (kind of like webhostingtalk)

but I still want debates/etc being bumped if they're popular

Nice hack btw
Reply With Quote
  #21  
Old 03-13-2003, 02:13 AM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08394 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete