![]() |
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... |
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.
|
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....
|
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"> |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|