MyBB Community Forums

Full Version: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Release Name:
Thank You/Like System v1.5

Release Version:
v1.5

Release Description:
Thank You/Like System enables users to "Thank" or "Like" posts thus showing their appreciation for a post without necessarily having to bump the thread. This plugin is completely customizable where nearly every aspect of the plugin can be controlled from the settings page. Take a look at the screenshots or the live demo for more info on the available options and usability.

MyBB Compatibility:
v1.4.*/v1.6.*

Edit
Quote:MyBB 1.8.* compatible version
Thank You/Like System v1.9.1

Features:
- Turn plugin on/off with a single option.
- Switch between "Thank You" or "Like" by changing one simple option.
- Thank Yous/Likes are fully ajax compatible.
- Customize Thank Yous/Likes for first post of thread only or for all posts.
- Selectable option to allow/disallow users from removing their Thank Yous/Likes
- Exclude forums where you do not want to use the Thank Yous/Likes system.
- Plugin tracks number of Thank Yous/Likes for users, posts and threads as well as a grand total.
- Shows Thank Yous/Likes in postbit as well as the user's profile.
- Counts both the Thanks/Likes given as well as the Thanks/Likes received and the number of posts received in.
- Finds all threads or posts Thanked/Liked by any particular user as well as threads or posts where a user received thanks/Likes.
- Thank Yous/Likes list can be made to collapse saving space for boards where threads/posts get alot of Thank Yous/Likes.
- Sort the Thank Yous/Likes by username or by order of Date/Time Thanked/Liked
- Show/Hide Date/Time of Thank You/Like and also set the format of the Date/Time
- Works for all modes of views, classic, modern, linear, threaded.
- Thank Yous/Likes can be recounted and rebuilt if they get out of sync for any reason.
- Format list of users who have Thanked/Liked according to their display groups or just keep it plain.

Install:
- Unzip/Unrar and upload ALL the files in the Upload folder to their respective folders.
The files are:
* /thankyoulike.php
* /tylsearch.php
* /admin/modules/tools/thankyoulike_recount.php
* /images/english/postbit_l_add.gif
* /images/english/postbit_l_add.gif
* /images/english/postbit_ty_add.gif
* /images/english/postbit_ty_add.gif
* /inc/languages/english/thankyoulike.lang.php
* /inc/languages/english/tools_thankyoulike_recount.lang.php
* /inc/plugins/thankyoulike.php
* /jscripts/thankyoulike.js

MAKE SURE ALL THE ABOVE FILES ARE UPLOADED FOR THE PLUGIN TO WORK CORRECTLY
- Install and Activate the plugin from the Admin Panel, Plugins section.
- Configure the options to suit your needs on the settings page of the plugin.

Upgrade:
- Make a note of the plugin settings and any custom template changes you made.
- Deactivate old version
- Upload new files overwriting where necessary. (Some servers don't work well with overwriting, in those cases its better to just delete the old files and upload the new ones)
- Refresh the Plugins page. You should now see the Plugin showing the current version. You should also see "Install and Activate" under the controls.
- Install and activate the plugin. Go to settings change settings to your requirements.
- If you had any custom modifications to the templates, Check the templates.
- Optionally run the Recount and Rebuild of Thank You/Like data
- Done!

Uninstall:
The regular Uninstall in the admincp will only remove the templates and settings, it will NOT remove the database tables that hold all the data for the thanks/likes. This is by design to protect users from accidentally loosing all their thank you/like data.
If you want to completely remove the plugin including all the data in the database and the tables that this plugin added then you need to upload an empty file named "tyl_unlock" to the forum's root then go ahead and uninstall it as usual from the Admincp and the plugin will be completely uninstalled.

Incase the Uninstall option is not there (possible if you already tried uninstalling before uploading the tyl_unlock file) then just install first and immediately uninstall.

Templates Added:
Global>thankyoulike
Template containing The block with the list of users who have Thanked/Liked a post for the default view.
Global>thankyoulike_classic
Template containing The block with the list of users who have Thanked/Liked a post for the classic view.
Global>thankyoulike_expcollapse
Template For the Expand/Collapse image which Expands/Collapses the block of Thank Yous/Likes
Global>thankyoulike_button_add
Template for the button to add Thank You/Like. If you do not want to use an image, change it to text here.
Global>thankyoulike_button_del
Template for the button to delete Thank You/Like. If you do not want to use an image, change it to text here.
Global>thankyoulike_users
Template for the list of users who have Thanked/Liked a post
Global>thankyoulike_postbit
Template for the block of Thanks Given/Thanks Received in the postbit
Global>thankyoulike_memprofile
Template for the section added to user's profile which shows the number of Thank Yous/Likes stats.

Templates Changed:
Show Thread Templates>showthread
Changes to include the jscript for the plugin.
Post Bit Templates>potbit
Changes to include the Add/Remove Thank You/Like button and the block for the Thank Yous/Likes for the default view.
Post Bit Templates>postbit_classic
Changes to include the Add/Remove Thank You/Like button and the block for the Thank Yous/Likes for the classic view.
Post Bit Templates>postbit_author_user
Changes to include the number of user's Thank Yous/Likes in the postbit stats of the user.
Member Templates>member_profile
Changes to include the section in user's profile to show Thank Yous/Likes stats.

Notes:
- Permissions for if a user can Thank/Like a post is dependant on whether they can post in that thread or not. Guests, however can never thank/like a post regardless of guest post option.
- Obviously, the post opener will not be able to Thank/Like the post.
- Deleting a thread/post will remove all its related Thank Yous/Likes and reduce the count for the users who have Thanked/Liked that thread/post.
- Merging posts will merge the Thank Yous/Likes too removing duplicates and updating counts.
- Deleting a user will remove all the user's Thank Yous/Likes from all the posts.
- If you move a thread to a forum that has been set to exclude Thank Yous/likes it will not show any Thank Yous/likes and will not allow adding/removing any Thank Yous/Likes while in that forum. The Thank Yous/Likes will however be preserved so that they will be visible again if the thread is moved out of the excluded forum.
- If for any reason your stats seem off you can recount the Thank Yous/Likes. Doing so will remove any orphaned Thank Yous/Likes and recount them for each user and post. Orphaned Thank Yous/Likes are those that might have been left behind on a post or user being deleted by not using the mod interface (like directly from the databse for example).
- To customize the postbit block, you can use the following variables:
$post['tyl_unumtyls']: Number of thanks given
$post['tyl_unumrtyls']: This is fully formatted string (xx in yy posts)
$post['tyl_unumrcvtyls']: Number of thanks received
$post['tyl_unumptyls']: Number of posts in which the thanks were received

Change Log:
Version 1.5
- Fixed CSRF vulnerability (Thanks to Paul H. for reporting it)
- Fixed issue with stats when thanks were over 1000

Version 1.4
- MySQL > 5.5 compatibility and some database collation changes.
- Moved the Thanks Given/Received block in the postbits to templates so it can be easily customized
- Changed cleanup_json function name to avoid conflict with other plugins with the same function
- Changed the uninstall procedure, now user has to upload tyl_unlock file to uninstall and remove all the data, a warning is shown on the plugin page if tyl_unlock file is found letting the user know that uninstalling will delete the data from the database
- Added Paypal donate button which will only show in the plugin list if it is activated. Donations are appreciated Wink

Version 1.3.1 (04/22/2011)
- Fixed spinner hanging when using Like

Version 1.3 (04/21/2011)
- Fixed issues with MyBB v1.6.3 and the new prototype version that comes with it
- Backward compatible with 1.4 now: Fixed the issue with the search on 1.4
- Added Online Activity to the search page, no more Unknown Location
- Removed the uninstaller. Now if you want to completely remove the thanks including the data from the database, you'll need to edit the plugin file and uncomment the lines in the Uninstall function, otherwise only settings and template edits are removed.
- Improvements: Huge reduction in SQL queries, Better template editing, Settings do not get removed on deactivation
- Other minor bug fixes.

Version 1.2 (09/20/2010)
- Compatibility with MyBB v1.6
- Bug fixes: SQL error on plugin activation on some systems, W3C Validation, member_profile not getting edited properly on some systems, spinner hanging on some systems with Internet Explorer, incorrect date/time on search pages when sorting
- Thankyou/Like buttons now fallback to the default english buttons if it can't find the correct language/theme button for thanks/like

Version 1.1 (11/25/2009)
- Added Thanks/Likes Received count and displaying both Thanks/Likes Given and received in postbit user details and member profile
- Fixed AJAX caching issue with IE browsers where Thanking/Liking the same post and removing continuously resulted in the browser using cached ajax results thus giving irrelevant updates.
- Fixed postbit user details in PM, Announcement and Preview to properly parse the user details and not show %%TYL_NUMTHANKEDLIKED%%.
- Changed behaviour of the Thanks/Like button for guests. Now if a guest clicks on Thanks/Like button they are taken to the login page and after successfully logging in the thanks/like is processed. Previously it just gave a message that guest can not add Thanks/Likes.
- Minor bug fixes.

Version 1.0 (11/14/2009)
- Initial Release

Screenshots:
[attachment=15988][attachment=15983][attachment=15984][attachment=15985][attachment=15986][attachment=15989][attachment=15990][attachment=15991][attachment=15992]

Download Links:
http://mods.mybboard.net/view/thank-you-like-system
http://geekplugins.com/

--------------------------------------------------------
To check if all templates were edited properly or to add the template edits manually, check this thread:
http://community.mybb.com/thread-59652-p...#pid599058

PSD of the buttons used in the plugin:
http://community.mybb.com/thread-59652-p...#pid429459
Feel free to use the psd to change text/colors layout to your own needs.

If you are looking for thanks buttons for Mint/Midnight/Black/Orange/Sun themes, check out these made by leesester:
http://community.mybboard.net/thread-596...#pid432921

If you want to show thanks stats in prostats then check this post out: http://community.mybboard.net/thread-596...#pid434368

To import thanks from another plugin have a look at this post: http://community.mybb.com/thread-59652-p...#pid618957
Wow. Good. Waiting for the links. Thanks! Big Grin
wow finally a decent system
i cannot wait to test it Big Grin
Thanks for finally!

I really implement it.

Later I will upload a translation Wink

Best Regards.

Just a question, How many queries make the plugin on the Showthread?

Why dont use a mirror for alternative download, I cant wait for it Smile

Edit: Here is a Download Mirror http://archivos.vidaensupalabra.com.ar/m...emv1.0.rar
This looks great dude.
Definitely the best thank you system, I might install it at console world.
Thanks and congrats!
Looks like a awesome plug-in...can't wait to test the plug-in...Blush
Please, upload to a mirror to test it.
Advance Thank You Plugin. Very good. Thanks, - G33K -.
cool.. thanks a lot G33K Smile im going to use this too XD