MyBB Community Forums

Full Version: Thumbs Post Rating 1.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Thumbs Post Rating
http://mods.mybb.com/view/thumbs-post-rating

Overview:
This plugin will add a thumbs up / thumbs down rating system on every individual posts. Just like the one on the YouTube comment.

MyBB version support:
1.4 - 1.6

License:
GNU/GPL

Features:
  • Non-obstructive AJAX (sends the rating and updates the result instantly without refreshing the page)
  • Language file support
  • Option to set which usergroup allowed to rate
  • Option to set which forum to be excluded to have the post rating function
  • Option to enable/disable self-rating
  • Option to enable/disable undo rating
  • Option to enable/disable rating in a closed thread
  • Compatible with both normal and classic postbit

Technical information:
Number of files - 6
Database changes
-Added 1 new table
-Added 2 columns on an existing table
Template changes - Modified 2 templates
SQL queries - One per page on showthread.php

Installation:
1. Extract the files inside the "Upload" folder of Thumbs Post Rating zip package.
2. Upload all the files extracted to the root of your forum directory.
3. Login to ACP, go to Configuration > Plugins.
4. Click "Install & Activate" next to the Thumbs Post Rating.

Uninstallation:
1. Login to ACP, go to Configuration > Plugins.
2. Click "Uninstall" next to the Thumbs Post Rating.

Upgrading from previous version:
1. Login to ACP, go to Configuration > Plugins.
2. Click "Deactivate" next to the Thumbs Post Rating.
3. Extract the files inside the "Upload" folder of Thumbs Post Rating zip package.
4. Upload all the files extracted to the root of your forum directory.
5. If required, choose to replace any old files.
6. Back to ACP Plugins section, click "Activate" next to the Thumbs Post Rating.

FAQ
Q: How do I change the position of the rating box?
A: Move the <div class="float_right">{$post['tprdsp']}</div> code in the postbit template.

Q: How do I change the background color of the rating box?
A: Edit the background color value at .tpr_box in [forum directory]/CSS/thumbspostrating.css file.

Change Log
1.3 – 09/08/2011
- New: Undo rating
- New: Set whether the user can rate if the thread is closed
- New: Feedback when the post is not rated successfully
- New: Work with JavaScript disabled
- New: Deleting thread or post deletes rating
- Fixed: Take into consideration user's secondary usergroups when considering the permission
- Fixed: Block against guest rating
- Fixed: SQL injection vulnerability
- Fixed: Request forging vulnerability
- Improved: Codes improvement and rewrite
- Improved: Rating permission includes check for post/thread visibility
- Improved: Disable AJAX if MyBB's disable xmlhttp setting is set
- Improved: JS, CSS, template and language files only loaded when needed
- Improved: Calculation of new rating after submission is done server side (previously client-side)
- Improved: Reduces SQL queries to only 1 per thread (previously 1 per post)
- Improved: Reduces thumb image size by 95%

1.2 - 01/09/2011
- New: Language file support
- New: Ability to set which forum to be excluded to have the post rating function
- New: Ability to enable/disable self-rating
- Improved: Reduces SQL queries
- Improved: Code cleanup

1.1 - 12/24/2010
- Fixed: Rating maybe rated for unlimited no. of times

1.0 - 12/15/2010
- Initial release

Notes:
p/s: I'm still new to PHP and this is just my humble 2nd mod. Feedback is very much appreciated.

You may download the plugin here (attachment below). The file on MyBB mod site maybe temporarily unavailable when awaiting validation.
wowww its very gooddd... like on phpbb3... thank you... Smile
Nice, I surely use this one. Smile
Great work! Thank you. Toungue
i like it, thank you
I like the idea but the rating box seems out of place and should be integrated into the postbit better.
(2010-12-20, 11:01 PM)Steven Wrote: [ -> ]I like the idea but the rating box seems out of place and should be integrated into the postbit better.

you can move it o.O
(2010-12-20, 11:01 PM)Steven Wrote: [ -> ]I like the idea but the rating box seems out of place and should be integrated into the postbit better.
Any place u suggest to make it looks better?

(2010-12-20, 11:21 PM)~Rs Wrote: [ -> ]you can move it o.O
yeah. just move the <div class="float_right">{$post['tprdsp']}</div> code in the postbit template.

I am able to give a thumbs up or down to a single post an unlimited amount of times.
(2010-12-21, 03:45 AM)Solidus Wrote: [ -> ]I am able to give a thumbs up or down to a single post an unlimited amount of times.
Oh. I see the problem. Will be fixing this bug soon. Thx a lot.
(2010-12-21, 03:56 AM)tyyew Wrote: [ -> ]
(2010-12-21, 03:45 AM)Solidus Wrote: [ -> ]I am able to give a thumbs up or down to a single post an unlimited amount of times.
Oh. I see the problem. Will be fixing this bug soon. Thx a lot.

Update: Bug fixed. Submitted and will be able to download soon Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15