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.
Relax G33K Wink I wasn't having an attitude... especially not with such a great plugin. We were just trying to avoid giving a test account because we're very private. Ending up having too was OK in the end I guess, but I wish I hadn't been incommunicado from Goggalor for almost 2 weeks keeping me from being able to really look into it codewise. So thanks. Smile
I found what is wrong however my default language is English I had to confirm this once, then it works.
But now the other problem is its only showed on the first post in every thread.
Post 2, 3, 4, 5 etc does not have this button.
(2009-11-14, 11:59 AM)- G33K - Wrote: [ -> ]Without a proper Thank you plugin around I had been getting quite a few requests for this, so here it is.

************************
EDIT (11/25/2009):
Plugin updated to version 1.1.
To read more about the release including the change log, features added and so on, click: http://community.mybboard.net/thread-596...#pid430459
************************

************************
EDIT (11/18/2009):
If you're having a problem with hanging at the spinner loading image, then please check that you have all the template edits as described in this post: http://community.mybboard.net/thread-596...#pid426555
************************


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

Change Log:

Version 1.0
- Initial Release


CONTENTS

I. Description
II. Features
III. Install
IV. Uninstall
V. 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.
- Finds all threads or posts Thanked/Liked by any particular user.
- 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. 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, WANT TO START OVER CLEAN 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.


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




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

I am also in the process of setting up a new location where I can demo my plugins and allow users to download from, once that is up, I shall update here with the link.
Here is a temporary link:
http://geekplugins.com/mybb/thankyoulikesystem/

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

I am having a problem with this , I am using windows 7 with IE 8 and it just hangs up and doesn't work. I got this plug in from here:

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

if you need a test account Please Let me know.....

linky: http://www.bigezworld.com

Many thanks!
Also this plug in does NOT make the correct template edit in the user cp but the rest of the template edits are there..... I know where to find them I thought I'd just pass it along...
(2009-12-01, 05:39 PM)spinning Wrote: [ -> ]I found what is wrong however my default language is English I had to confirm this once, then it works.
But now the other problem is its only showed on the first post in every thread.
Post 2, 3, 4, 5 etc does not have this button.

Board Settings>Configuration>Thank You/Like System Settings>
There is a setting there to choose whether you want to show thanks only on first post or all posts.

(2009-12-01, 08:25 PM)radone29 Wrote: [ -> ]
(2009-11-14, 11:59 AM)- G33K - Wrote: [ -> ]Without a proper Thank you plugin around I had been getting quite a few requests for this, so here it is.

<snip>

I am having a problem with this , I am using windows 7 with IE 8 and it just hangs up and doesn't work. I got this plug in from here:

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

if you need a test account Please Let me know.....

linky: http://www.bigezworld.com

Many thanks!

Could I have a test account so I can have a look at it.

Quote:Also this plug in does NOT make the correct template edit in the user cp but the rest of the template edits are there..... I know where to find them I thought I'd just pass it along...

This plugin does not make any changes to user cp templates. As for the other templates, the plugin uses a search and replace to insert the needed templates so with non-default templates it sometimes will not find the correct place to insert the template edit. In that case you need to check the templates to make sure the template edits are there.

Anyway, let me have that test account so I can check it out.
(2009-12-01, 11:39 PM)- G33K - Wrote: [ -> ]
(2009-12-01, 05:39 PM)spinning Wrote: [ -> ]I found what is wrong however my default language is English I had to confirm this once, then it works.
But now the other problem is its only showed on the first post in every thread.
Post 2, 3, 4, 5 etc does not have this button.

Board Settings>Configuration>Thank You/Like System Settings>
There is a setting there to choose whether you want to show thanks only on first post or all posts.

(2009-12-01, 08:25 PM)radone29 Wrote: [ -> ]
(2009-11-14, 11:59 AM)- G33K - Wrote: [ -> ]Without a proper Thank you plugin around I had been getting quite a few requests for this, so here it is.

<snip>

I am having a problem with this , I am using windows 7 with IE 8 and it just hangs up and doesn't work. I got this plug in from here:

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

if you need a test account Please Let me know.....

linky: http://www.bigezworld.com

Many thanks!

Could I have a test account so I can have a look at it.

Quote:Also this plug in does NOT make the correct template edit in the user cp but the rest of the template edits are there..... I know where to find them I thought I'd just pass it along...

This plugin does not make any changes to user cp templates. As for the other templates, the plugin uses a search and replace to insert the needed templates so with non-default templates it sometimes will not find the correct place to insert the template edit. In that case you need to check the templates to make sure the template edits are there.

Anyway, let me have that test account so I can check it out.

you have a pm Wink
G33K, when they say user CP they mean profile page Wink
I've been raking my brain out for the past couple of hours trying to get to the root of the problem with the loading image getting stuck in some IE versions and I think (I hope) I've found what the problem was. I'm still trying to test it properly before doing a proper release, however, I'm attaching a thankyoulike.php file here for those who have been having problem on IE to try out and see if it fixes your problems. That way I can be sure its been fixed.
Overwrite this file with the one in the forum root NOTE: THIS FILE GOES IN THE FORUM ROOT, NOT IN THE PLUGINS FOLDER!

This file is only to fix the loading issue in IE, if you're having the loading issue in other browsers too check your templates first.

Also, Goggalor, although I haven't yet tested this in IE7, it is possible that you might have been having the issue in IE7 due to the bug I found here, so please test out this file and let me know how it goes.
Hey, after update MyBB script to version 1.4.10 we have a problem.

Counter and fuctions work good, but all new posts are counted to postlist, where I helped. All posts.

That's a mistake.

Please help, e-work[at]o2.pl
(2009-12-02, 11:08 AM)- G33K - Wrote: [ -> ]<snip>

Also, Goggalor, although I haven't yet tested this in IE7, it is possible that you might have been having the issue in IE7 due to the bug I found here, so please test out this file and let me know how it goes.

Thanks and I'll report back when I fully test this out.
IT WORKS PERFECTLY!

Thank you so much for this! It's a great plugin. Your hard work is appreciated!
I would like to add one more thing. I can deal with the template editing as mentioned on page 6 but you should know it's not very consistent. I installed this on my test board where you looked the other day and it' inserts all the correct edits in the correct places. On others it does not. I have no idea why this would happen as the only edits I needed to do were in the member profile template. All the others were fine. My template for member profiles is not customized at all.

This seems to be random. But again, for me not a big deal, just thought you'd like to know for any future updates.
Ok... I d/l the file from MyBB and uploaded it properly. Triple-checked to make sure I uploaded all the pertinent files correctly.

When I went to activate it, I got this:

Quote:MySQL error: 1146
Table 'db197252097.templates' doesn't exist
Query: DELETE FROM templates WHERE title='thankyoulike'

Maybe its a stupid question, but maybe not. How do I fix this?

Thanks.