Thread Rating:
  • 14 Vote(s) - 3.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Thumbs Post Rating 1.3
#1
Star 
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.


Attached Files
.zip   ThumbsPostRating1.3.zip (Size: 23.92 KB / Downloads: 780)
Reply
#2
wowww its very gooddd... like on phpbb3... thank you... Smile
Just Ordinary my MyBB
Reply
#3
Nice, I surely use this one. Smile
Reply
#4
Great work! Thank you. Toungue
Reply
#5
i like it, thank you
[Image: advertising.png]
Reply
#6
I like the idea but the rating box seems out of place and should be integrated into the postbit better.
[Image: 422.png]
Reply
#7
(12-20-2010, 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
[Image: advertising.png]
Reply
#8
(12-20-2010, 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?

(12-20-2010, 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.

Reply
#9
I am able to give a thumbs up or down to a single post an unlimited amount of times.
[Image: hdoE.png]
m1ne.net - coming soon
Reply
#10
(12-21-2010, 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.
(12-21-2010, 03:56 AM)tyyew Wrote:
(12-21-2010, 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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)