2010-12-15, 02:02 PM
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:
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.
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.