vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Use thread ratings to hide bad posts (https://vborg.vbsupport.ru/showthread.php?t=145706)

aggiefan 04-25-2007 01:02 AM

Use thread ratings to hide bad posts
 
Any ideas out there on how to program a statement that says, "if thread has a rating of x after x number of votes, hide thread?"

This serves as a subtle user moderation hack without the intrusiveness or unappealing looks of the current self-moderated board hacks that are out there...

fly 05-03-2007 01:26 AM

I have one that closes a thread if the rating dips below a 2. I'll post it tomorrow for you to look at, if you'd like.

aggiefan 07-02-2007 04:25 PM

i'd be interested in seeing this. Does this take into account how many votes? I wouldn't want one user being able to lock a thread....

RedTyger 07-02-2007 04:40 PM

Easily done, if you're OK with modifying templates. In the threadbit template, you can use this to alter the appearance of the threadbit (each section dedicated to a thread in a list of threads).

Code:

<if condition=" $thread[voteavg] AND $thread[voteavg] < 2">
Your threadbit template for rubbish threads
<else />
The contents of your normal threadbit template
</if>

The 2 is the limit for the thread's average vote, so it'll kick in a 1.99 or less average. Just change the number to what you want.

fly 07-04-2007 08:50 PM

1 Attachment(s)
Okay, here's the hack Andreas setup for me. If, after 5 votes, the rating is below 2 than the thread is closed. Its also set up to reopen if the rating goes about 3, but that requires file edits since people can't normally vote on a closed thread.

I'd start a hack thread, but this was originally coded by Andreas and I'm unable to really support it.

If someone could figure out a way to make a post showing that the thread is closed with this hack, I'd think you were pretty cool.


All times are GMT. The time now is 07:03 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.01035 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete