vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Prevent threads from rising to the top (https://vborg.vbsupport.ru/showthread.php?t=48909)

Koutaru 02-15-2003 03:46 AM

Can I chose which forums I don't want to be bumped? or is it all the forums?

Zzed 02-15-2003 04:39 AM

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.

Koutaru 02-15-2003 04:59 AM

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

Davey 02-15-2003 12:29 PM

Thanks for the reply & the help Zzed!
:D:).

Dave.

Boofo 02-16-2003 10:53 PM

Great job, Zzed! ;)

Mark Hewitt 02-17-2003 09:47 AM

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?)

Sanni 02-26-2003 05:57 AM

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?

dnd 02-26-2003 06:08 PM

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?

WildBill 03-12-2003 03:49 AM

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


Derek 03-13-2003 02:13 AM

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.


All times are GMT. The time now is 04:32 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
  • Page Generation 0.03375 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete