PDA

View Full Version : Show Thread Enhancements - User Powered Moderation System Lite (Post Management System)


eXtremeTim
04-16-2007, 10:00 PM
What this hack does:

This hack allows your users to rate the individual posts in the threads so that they can effectively moderate them somewhat. By defualt posts with a negative rating thats below a predefined threshold (defined by admin) will be collapsed with an expand link there to show the hidden posts.

Features:
Admin Definable threshold
*User definable threshold if enabled (will use the admin defined threshold as a fallback for if the user has no threshold defined)
*Ability to define which usergroups posts can never be hidden by defualt
*Ability to define which usersgroups posts may never be rateable

Uses ajax to update the post rating so no page reloading. Has a fallback method for boards that dont use ajax and users that dont have javascript. Users who dont use javascript will still be able to rate the posts but they will not be able to use the toggle function to show or hide a post.

Planned Additional Features:
Ability to enable the system on a per forum basis
Full usergroup permissions control
A point system where users votes if enabled will no longer always be +/-1. The point system would basicly create a set of criteria similiar to the reputation system with a given value for each time a criteria is met and that value will effect their rating potential in either a possitive or negative way depending on what you have setup.
Others that just havent been thought of yet.

Some Background Information:
This hack uses no queries to when displaying the posts. Infact the only queries in this system are done when a rating is added. Making this hack extremely server friendly.


*professional version features.


Version 1.0.1 Released
Whats fixed?
Fixed a bug regarding the private message system.

How to upgrade?
Just reload the plugin



Edit:

Missed the following two queries for the package for install so for now just run them in phpmyadmin replacing TABLE_PREFIX with your table prefix.

SQL Query: (how to run queries (http://en.wikipedia.org/wiki/Wikipedia:Database_queries#Quick_instructions_for_ running_your_own__MySQL_queries))
ALTER TABLE `TABLE_PREFIXpost` ADD `rating` INT( 10 ) NOT NULL DEFAULT '0'; CREATE TABLE `upms_posts` ( `pid` INT( 10 ) NOT NULL , `uid` INT( 10 ) NOT NULL , `value` VARCHAR( 10 ) NOT NULL , `ipaddy` VARCHAR( 50 ) NOT NULL ) ENGINE = MYISAM ;

Note to not touch the table upms_posts as it is not designed to be prefixed for future reasons.

eXtremeTim
04-17-2007, 09:10 AM
What is this?

Are you a user of digg.com? Well they have a comment system there where users can in essence do a positive or negative vote on a post and at x negative the post is hidden by default. This hack replicates this features on vbulletin.

vip-q.com
04-17-2007, 09:32 AM
great I like it :)

Installed :)

eXtremeTim
04-17-2007, 09:33 AM
Glad to hear that. :)

ddr
04-17-2007, 10:57 AM
good idea. thanks

Bad Bunny
04-17-2007, 03:18 PM
I definitley like this...gonna install for later reference. Thanks!

ZomgStuff
04-17-2007, 03:24 PM
Very nice!

eXtremeTim
04-17-2007, 07:18 PM
I take it so far so good on the installs?

fluentdesigns
04-17-2007, 08:01 PM
one suggestion... add ability for the post to be totally removed and not readable by others at all anymore.

eXtremeTim
04-17-2007, 08:49 PM
Maybe in a later version. :)

theaonline
04-18-2007, 12:43 AM
This jacks up my PMs. It puts the rating thing uptop but won't let me expand and automagically closes them.

eXtremeTim
04-18-2007, 12:53 AM
I will release a pm fixed version shortly. I have had rare reports of this problem before.

theaonline
04-18-2007, 01:25 AM
let me know if I can help troubleshoot. I dig this mod. Solves a specific problem!

I am using a fairly vanilla install of vb 3.6.5 - current not legacy postbit

I ended up putting <if condition="THIS_SCRIPT!='private'"> around the add in statements, but this is a cheap hack. Let me know the correct way when you get a chance.

Cheers,

joel

eXtremeTim
04-18-2007, 07:11 AM
Thats basically what needs to be done. I was just going to do it in the plugin side of it all.

aceofspades
04-18-2007, 08:15 AM
Nice! Installed.

theaonline
04-18-2007, 12:46 PM
Thats basically what needs to be done. I was just going to do it in the plugin side of it all.

I just made it worse trying to jack with it. I will wait for you to get it updated so I don't break everything ;)

eXtremeTim
04-18-2007, 11:43 PM
Update should be coming later tonight sorry about the delays.

eXtremeTim
04-20-2007, 04:04 AM
Anybody having the private message problem could you please pm me with a list of hacks you have installed? Im trying to see if we possible have a conflict between this hack and another since its a selective problem.

eXtremeTim
04-20-2007, 04:47 AM
Released version 1.0.1 which fixes the private message issue.

Remember if you use this hack please click the install link. :)

theaonline
04-20-2007, 02:54 PM
Perfect. Thank you.

theaonline
04-20-2007, 05:56 PM
I have a couple of suggestions:

Since the user can't vote on their own post, a conditional to not have the voting display at all on your own post would be a lot cleaner. Also, the AJAX isn't updating the vote. It removes the up/down, but doesn't increment the counter. "Toggle" to me seems ambiguous. Toggle what? "Hide Post"/"Reveal Post" would convey more accurate information. I also have a semi-difficult time getting to the +/- buttons. These should probably be beefier and perhaps iconic.

Works great though, these are just style suggestions really.

eXtremeTim
04-20-2007, 07:50 PM
Thanks for pointing that out. :)

eXtremeTim
04-23-2007, 09:30 AM
I will hopefully get the update for this out in the next 2-3 days which will include better ajax that will update all the information correctly.

kniveswood
04-24-2007, 04:47 PM
Great mod! Looking forward to implementing it when it becomes a little more feature-packed. :)

pete_brady
04-24-2007, 04:57 PM
Great mod! Looking forward to implementing it
ditto.

aggiefan
04-24-2007, 07:38 PM
yeah ive got it installed.... didnt see the manual db changes so it took me a bit to get it working properly.

i also second the changes to the look... i think a small thumbsup and down icon would work better than the plus/minus. also the toggle text should be changed to something else. not sure what exactly but toggle doesnt tell me anything about the rating.

also where would one get info about the "pro" version? i assume that will have all the cool stuff or will the lite version have most things?

abramelin
04-26-2007, 08:27 PM
great mod! waiting for the new version. i also suggest to use icons instead of + / -
thanks!

eXtremeTim
04-27-2007, 12:45 AM
This hack wont be getting to many more features since most of them are going into the professional edition of it which is available for $29.95.

The professional version already has the ability for users to specify their own thresholds as well as ability to specify which groups are unhidable and even which groups are unrateable.

If you are interested in the professional version please contact me via pm and we can get you taken care of.

eXtremeTim
04-27-2007, 12:47 AM
if anybody can provide some icons for me to replace the + and - with that would be great.

abramelin
04-27-2007, 08:07 AM
you can use these icons from digg, they are not copyrighted to digg. there are lots of known sites that uses these icons. if user want to change it later, he/she just replace them with the news :) also what are the full list of pro version? $29 is very much i think. you should make an observation that what are the costs of the payed mods nowadays and what are their features. thanks

tazB.ca
04-28-2007, 03:45 AM
greatt :D I've been waiting forever for this

theaonline
04-28-2007, 06:39 PM
The icons really jazz it up. If nothing else it makes it so that you can actually hit up or down.

subnet_rx
06-06-2007, 10:19 PM
Nice hack, I'd love to see this one develop with even more features. I have tried to implement this somewhat using the rep system, but it has never worked out with rep power varying so much from user to user.

Brew
08-14-2007, 02:38 AM
After installing this I lost sigs.

Running vB 3.6.8

EDIT:
I think the problem is the hack I installed that puts the sigs at the bottom of posts. It may be either the CSS for this or the <span tag.

Picture below:

EDIT:
Nevermind. I was using span tags that messed up the tables....all OK now :)

sickstrings
08-15-2007, 11:02 PM
you can use these icons from digg, they are not copyrighted to digg. there are lots of known sites that uses these icons.
Great Mod! Can someone provide instructions on how to make the mod use these "thumb" icons? I already downloaded the images... no what?

Brew
08-25-2007, 10:59 PM
Great Mod! Can someone provide instructions on how to make the mod use these "thumb" icons? I already downloaded the images... no what?

Go to Manage Products.

Edit the product called "EWT - User Powered Moderation System Lite"

Go to "Styles & Templates" and select the Edit link for the template "ewt_upms_postlinks".

This is where the html is for displaying info.

Here's the code I use for my set up. You can probably adjust it to fit how you want to set it up. Also don't forget to upload the images found elsewhere in this thread.


<span id="post_$post[postid]_hidden" $spanstyle class="smallfont">Post by $post[username] below threshold </span><a href="#post$post[postid]" onclick="alterpostdisplay('post_$post[postid]'); return false;" class="smallfont">Toggle</a> ($post[rating]) <span id="upms_$post[postid]"><a href="misc.php?do=upms_non_ajax&amp;p=$post[postid]&ratingvalue=positive" onclick="upms_process('$post[postid]', 'positive'); return false;"><img src="images/up.png" border="0"></a> <a href="misc.php?do=upms_non_ajax&amp;p=$post[postid]&ratingvalue=negative" onclick="upms_process('$post[postid]', 'negative'); return false;"><img src="images/down.png" border="0"></a></span>
Copy/paste the above into notepad or something to edit it.

You can see the img src tags in there. The images are in the ./images folder for my set up.

I also added parenthesis around the score and took out the brackets ("[ ]").

You'll need to play with it to get it to work for you.

I hope this helps!

You can see it running at http://www.politicalforums.net (http://www.politicalforums.net/)

Brew
08-26-2007, 03:41 PM
The total number of the score is not updated with AJAX.

Is this ability only in the pro version?