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)

Zzed 02-13-2003 10:00 PM

Prevent threads from rising to the top
 
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

Davey 02-14-2003 07:42 PM

Nice to see you're giving more options for the administrators :D.
Well done and I'll surely be using this.
I'll tell you how it goes.

Dave.

amykhar 02-14-2003 08:08 PM

The problem with this hack is that my members would immediately report a bug. Then, when told that their thread has been intentionally sunk, they would start screaming bloody murder. I prefer to just get my talkative moderators to bury bad threads the old fashioned way :D

Davey 02-14-2003 09:51 PM

This is good for locked topics though and it works like a beaut so far.
Well done man! Keep up the excellent work.
Only trouble is the image.
Looks a bit tacky and it doesn't suit my black background :(.
Is it possible to change it?

Dave.

Zzed 02-14-2003 09:56 PM

Thank you for your kind words. :)

You can replace the image with any 15x15 icon.

Davey 02-14-2003 10:00 PM

Yeah but I'm horrible with graphics.
An image with an envelope with an arrow pointing down would work IMO.
Ex: Use the locked thread image and replace the lock with an arrow pointing down.
I don't understand Photoshop so I cannot acheive this, or I would.
*Cries*.

Dave.

PS: No problem. Since I installed this on my board:
/me clicks install now.
I like this hack, really keep up the good work.
I'll report back here if I find any sneaky little bugs that need squashing.

PS: Oh and by the way, you might wanna redo this so that it uses the 'hot' topic and the 'new' topic and the topic with the circle (you participated in) rather than just a simple one time only image. Maybe you could release this in the next version?
And also have it so you can set the Slippery prefix customized in the ACP?

Dave.

Link14716 02-14-2003 10:02 PM

Good idea, but wouldn't the forumdisplay.php edit work better like this?

Code:

      if($thread[slippery] == 1) {
        $thread[icon]='<img src="images/drop.gif"  border="0" alt="">';
        $thread[typeprefix] = "Slippery: $thread[typeprefix]";
      }

Or am I missing something? :)

TECK 02-14-2003 10:18 PM

Is also great for vbHome (lite) forum. :)

Davey 02-14-2003 11:09 PM

Okay I've decided for my use I don't want the image (as it would interfere with the thread closed image).
How do I get rid of the image and just keep the prefix?

Dave.

Zzed 02-15-2003 02:48 AM

Quote:

Originally posted by Davey
Okay I've decided for my use I don't want the image (as it would interfere with the thread closed image).
How do I get rid of the image and just keep the prefix?

Dave.

Thank you again for your kind words. :)

If you want to get rid or the icon, just remove the following line:

PHP Code:

$thread[icon]='<img src="images/drop.gif"  border="0" alt="">'



All times are GMT. The time now is 11: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
  • Page Generation 0.03310 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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