MyBB Community Forums
[1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [1.4.x/1.6.x] Thank You/Like System v1.5 (Updated: 10/26/2011) (/thread-59652.html)



RE: [Release 1.4.x] Thank You/Like System (Update: v1.1 Released) - VAPOR - 2010-09-17

I will be adding this to my subscriptions....waiting 4 an update.


RE: [Release 1.4.x] Thank You/Like System (Update: v1.1 Released) - Lo. - 2010-09-18

Wow welcome back G33k.


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.1 Released) - - G33K - - 2010-09-20

Here is v1.2 of the plugin. Fully compatible with MyBB 1.6


/**********************/
/* Thank You/Like System v1.2 by -G33K - */
/* MyBB v1.4/v1.6 Plugin */

Change Log:

Version 1.2
- Compatibility with MyBB v1.6
- Bug fixes: SQL error on plugin activation on some systems, W3C Validation, member_profile not getting properly 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
- 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
- Initial Release


CONTENTS

I. Description
II. Features
III. Install
IV. Upgrade
V. Uninstall
VI. More Information


I. 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.

II. 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.


III. 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.

IV. 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.
- VERY IMPORTANT: Recount and Rebuild the Thank You/Like data using the Recount/Rebuild Link on the plugin page or by going to AdminCP>Tools>Recount Thank You/Like. You need to do this in order to synchronize the data since this plugin adds new features and data that were previously not there.
- If you had any custom modifications to the templates, Check the templates.
- Done!

V. UNINSTALL:
This plugin has 2 parts to uninstalling. This is done to preserve all the data that is tracked by the plugin for all the Thank Yous/Likes during a routine Deactivate/Uninstall to either troubleshoot an issue with your board or to upgrade forum software.

**To Uninstall the plugin in order to update either the plugin or MyBB or any other reason:**
- Deactivate the plugin from the Admin Plugins menu. This will preserve all the Thank Yous/Like data which tracks which user has Thanked/Liked which post so that when you reinstall the plugin the data will be available.

------------------------------------

**To COMPLETELY UNINSTALL the plugin including all the data that tracks the Thank Yous/Likes for every user and post you will need to do the following:**
WARNING: FOLLOWING THE STEPS BELOW WILL COMPLETELY REMOVE ALL OF THE Thank You/Like DATA FOR EVERY USER AND POST. DO

THIS ONLY IF YOU ARE NO LONGER PLANNING TO USE THE PLUGIN OR YOU HAVE A BACKUP OF THE DATA.
- First deactivate and uninstall the Thank You/Like plugin from the plugins menu.
- Next, Upload the uninstallthankyoulike.php file from the Uninstaller folder to /inc/plugins on your server.
- Activate once and Deactivate the Uninstaller plugin. Make sure no error messages show up on the plugin info for the

Uninstaller.
- After deactivating you can safely delete all the uninstaller and Thank You/Like Plugin Files. The plugin is completely removed.


VI. MORE INFORMATION:
This section is for those who want to know more about the plugin, specifically which templates the plugin changes and new ones that it offers. Users who are using a customized template and are not satisfied with the default layout that the plugin provides may want to look in this section on how to customize the plugin and which templates to edit.

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_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.

Recounting and Rebuilding the Thank You/Like stats:
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).

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.

For screenshots, check out the v1.1 post here (No change in appearance between v1.1 and v1.2):
http://community.mybb.com/thread-59652-post-430459.html#pid430459

Plugin Validated!
http://mods.mybboard.net/view/thank-you-like-system

Alternate download location
http://geekplugins.com/



RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - Nayar - 2010-09-20

Thanks a lot for the update Smile

Going to use it right now


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - alv4 - 2010-09-20

Nice update.
Thaanks Smile


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - VAPOR - 2010-09-20

Pure Awesomeness....


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - shoaib - 2010-09-22

when i click on "Find all thanked posts"

it is giving this error


MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1054 - Unknown column 'uid' in 'where clause'
Query:
SELECT fid FROM mybb_moderators WHERE uid='1'


how to solve it?


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - - G33K - - 2010-09-22

(2010-09-22, 08:56 AM)shoaib Wrote: when i click on "Find all thanked posts"

it is giving this error


MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1054 - Unknown column 'uid' in 'where clause'
Query:
SELECT fid FROM mybb_moderators WHERE uid='1'


how to solve it?

Update to the latest release (v1.2)
If you already updated, make sure you uploaded all files overwriting the old ones


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - christinaxx - 2010-09-23

I installed exacially how you said and I don't even see the option to like the post on my forum... :s


RE: [Release 1.4/1.6] Thank You/Like System (Update: v1.2 Released) - - G33K - - 2010-09-23

(2010-09-23, 04:00 AM)christinaxx Wrote: I installed exacially how you said and I don't even see the option to like the post on my forum... :s

Can I get the link to your board and a test account with the plugin activated so I can have a look at it.