Thank You Counter Button WordPress Plugin

thank you counter button wordpress plugin

thank you counter button

This is the visitor’s “Thank you” or “I like it” clicks counter. Every time a new visitor clicks the “Thank you” button one point is added to the total “thanks” counter for this post. Plugin uses AJAX to send data to the server and get it back. So no page reload is required. The plugin stores its counters in its own MySQL table. Only one “thanks” for the same IP-address can be permitted. Plugin can skip all further “Thank you” clicks from that IP-address once it is automatically registered. Total quant of thanks is displayed on the button just to the right from the click invitation text. Invitation text is ‘Thank You’ by default, but it can be changed at the plugin Settings page. Plugin has wide range of options to customize its behaviour and presentation. Live preview will help to select more suitable style.

Plugin has Statistics data table which shows posts list with total thanks quant for every post and time of the latest thank. Rows in the table can be filtered by posting month, category, can be sorted by thanks quant or time of latest thank in the descending or ascending order. Selected post can be viewed or edit directly from this table.

Admin dashboard and sidebar widgets with list of latest thanked or the largests thanked posts (between 3 and 15) are available. Total quant of thanks can be shown. Use widgets control panels to change settings according to your preferences.

The set of shortcodes and content filters is available for this plugin.

Thank You Counter Button has been granted the “Editor’s Pick Award” by FamousWhy.com Thank You Counter Button Famous Software Award.
Version 1.8.1 is available.
download
Thank You Counter Button at FamousWhy.com

Quick Links

FAQ

Installation procedure:

Attention! This plugin will work properly for that WordPress installation only which has “CREATE” permission on its MySQL database. “Create” permission is needed as plugin creates two own DB tables to work with.
1. Deactivate plugin if you have the previous version installed.
2. Extract “thanks-you-counter-button.1.x.x.zip” file archive content to the “/wp-content/plugins/thanks-you-counter-button” directory.
3. Activate “Thank You Counter Button” plugin via ‘Plugins’ menu in WordPress admin back-end.
4. Go to the “Settings”-”Thanks CB” menu item and check/change your preferences to customize how this plugin will work for you.
5. Use “Tools – TYCB Statistics” menu item to analyze how many thanks you get per post, who and from where left them.
6. Use “Appearance – Widgets” menu item to add “Thank You Counter Button” plugin’s widgets to your site.

Settings page

Thank you counter button settings page

Thank You Counter Button Settings page

  • Display -
    Display button at Pages: if it is checked, then shows counter button at the WordPress Pages. If this checkbox is not checked then button is not shown on the Pages.
    Display button at Home page: if this checkbox is checked then counter button is shown for every post at the Home page.
    If both Display checkboxes is not checked then counter button is shown for the single post pages only.
    Do not show button for selected categories: check this checbox and select in opened categories list categories for which you don’t want to show ‘Thank You’ Button.
  • Position in the Post text – these controls allow you to customize the place where click counter button to show in relation to the post content: before, after, shortcode and manual.
    Before: Do you wish to place ‘Thank You’ button before post text? Check ‘Before’. Additional option ‘At first page of multipaged posts only’ will appear on the screen then. If you write multi-paged posts, you have the next variants: 1) show button at every page, 2) show button at the 1st page of multi-paged post only. That second checkbox to the right from ‘Before’ one serves for that purpose.
    After: The same is valid for the ‘After’ checkbox with the difference only that second checkbox is ‘At last page of multipaged posts only’.
    Shortcode [thankyou]: You can place it in any place inside the post content and you will see thanks counter button there.
    Manual: This option allows to hard code counter button somewhere in your blog theme – place thanks_button() function call for that in one of your theme files. For example,

     <?php echo thanks_button('Thank You', true); ?>

    thanks_button() function returns html code for the button as the string. How to use it (make echo or concatenate it with other content, etc.), it is your decision as the theme developer. You can to call thanks_button() inside the posts loop with second parameter set to false to use $post->ID for its work. It works inside of pages too. If second parameter set to true then you get global for the whole site thanks counter with ID=0.

  • Button Caption – it is ‘Thank You’ by default. You can put you favorite words here, e.g. ‘I Like It’, etc. and it will show that text at the counter button.
  • Button Styling
    Add style to div: put CSS code to align button properly (left, right or center). Save settings and see how it will be looked right here at the div style preview section at the bottom of the Settings page.
    button div style preview

    button div style preview


    to the caption font: add CSS for the font family, size, weight selection. You can put font color manually into CSS input field or use the nice color picker, just click on the color circle icon. After you finish edit CSS code click anywhere on screen beyond CSS input field and you will see the visual change as the result of your input immediately.
  • SizeNormal is 120 px width and 40 px height button, Compact is 100x26px button. Change in this option dynamically changes button images which are shown below.
  • Form and Color – You can select from the several predefined colors and forms variants for your blog thanks button. Select one which the most suitable for your theme colors.
  • Custom button image URL – turn on this check box if you prefer to use your own button image. Input the full URL into correspondent text input field, input height and width for your button also.
  • Check IP-address – If this checkbox is turned on then only one point can be added from the unique IP-address if additionally ‘forever’ time limit option is selected. If ‘Only for this period’ time limit option is selected than visitor from that IP can vote again after time in seconds you input will be elapsed.
    If ‘Check IP-address’ checkbox is turned off then IP-address is not controled and visitor can click the button and raise its counter without any limits.
  • Add shortcuts to the buttons for settings quick access – if turned on (checked) shows three shortcuts links (icons) to the right from the “Thank You” button:
    1) Settings “Settings” – lead you to the “Settings page of the TYCB plugin”;
    2) detailed statistics “View statistics details for the post” – shows table with last 35 IP-addresses from which visitors who clicked “Thank You” button came from. Every IP address is linked to the service page where you can see Country, Region and City of that IP (or any custom input IP) address;
    3) hide shorcuts “Hide this shorcuts” – hides shortcuts icons from the all visible “Thank You” buttons. In order show those shortcuts again you need to check (turn on) corresponding checkbox at the plugin Settings page

data reset buttons ‘Return to Defaults’ button from the Misc section allows automatically return all options to its default values. ‘Reset Counters’ button allows to clear all counters for all posts with all click history together. Be carefull when press this button, you can lose the valuable data if you will act without care.

Statistics page

Click “Tools – TYCB Statistics” menu item to open “Thank You Counter Button” plugin Statistics page. There you can check how many thanks and when they were left by your blog visitors. Filtering by post dates, categories and sorting by thanks quant, date-time, paging are available. One click GEO IP (where your visitor from) service from shinephp.com is available at statistics details page.

Thank You Counter Button Statistics page

Thank You Counter Button Statistics page

Post Detailed Stat

Post Detailed Stat


With click on the IP-address or the special link under it You can see, from which IP “thanks” for that post were left and from what country, region, city that IP came from.


Widgets

thank you counter button admin dashboard widget

thank you counter button admin dashboard widget


With widgets you can see yourself (admin dashboard widget) and show to your blog visitors (look on the sidebar widgets to the right) current information about the most thanked or latest thanked post, including the total quant of thanks information.

Admin dashboard widget control panel can be opened by click on the “Configure” link at the right top corner of the widget title bar.
Sidebar widget can be configured via standard WordPress widget configuration panel at the widgets sidebar. Use own CSS (insert it into your theme style.css file) to customize widget appearance and make it more attractive. Available widget CSS classes (thanks_quant_for_post, thanks_total_quant_label, thanks_total_quant_value) are shown at the image below:

Thanks Widget CSS

Thanks Widget CSS

download
It is continued on the next page

Guaranteed pass exam with help of latest testking 642-812 exam tutorials including testking 70-640 questions and testking 70-642 answers.

Pages: 1 2

Tags: wordpress plugin

  • Theo

    Hi,

    Cool plugin. When I hover over the button, the text says “please click to left thanks” or something like that. How do I change this text, and also the text after someone has made a click? Thanks.

  • http://shinephp.com Vladimir Garagulya

    There is no user interface to change this text.
    If you are comfortable with light changing of PHP code you can make this easy. Open thankyou.php file, go to lines #176, 179 and edit needed text there. Be careful with PHP syntax :) .

  • Theo

    Beautiful, thanks!

  • http://shinephp.com Vladimir Garagulya

    Hello Jeff,

    Excuse me for the late reply, I’m on short vacation now. I not put donate button on site and plugins pages as Paypal doesn’t allow to accept money for clients from some countries and from Russia too. I can spent money only with my paypal account.
    People who wish to make donation can make it according to the information at this page
    http://shinephp.com/donate

    Thanks for using russian words in your message :) .

    Regards,
    Vladimir.

  • Anonymous

    HI,
    i have a problem. I have a problem some people could vote a lot of time. But i limited this at just 1 by IP for 2weeks.

    i have something like this in logs (10 o 20 “thanks”): 123.456.789.123,

    I dont’ why i have the “,” at the end of IP adress….

    P.S.: i use the plugin for a photo contest , in 2day i have 800 thanks, i thing a could get 6 or 7000 thanks in 2 weeks… :/

    N.B:. i’m french, sorry for my bad english.

  • http://shinephp.com Vladimir Garagulya

    It seems as somebody sends faked IPs to your server.
    I will add the checking for valid IP parts (1..254) ranges to the future version and option to delete clicks from the selected IPs to cleanup counter in the future version.
    This time you can correct counters with MySQL direct access:
    find post Id for which you need to correct button counter and use this SQL command
    update wp_thanks_counters set quant=100 where post_id=NNN limit 1
    IP addresses are stored in the wp_thanks_readers table.

  • Moonshin3

    Hey Vladimir, any news if you’ll release an updated version of the thank you plugin any time soon? I really could use category based widget that shows thanks.

    Either way, keep up the good work!

  • http://shinephp.com Vladimir Garagulya

    Thanks.
    I can not tell you the exact time when the next update will be ready. Time is a problem :) .
    I’m working on some new features. Option to change button image when visitor hovers mouse over it will be added. Category based widget to show thanks will be realized too. This work will be finished at the end of May, may be in June… It is very approximately.

  • Anonymous

    Hello, I’ve tried to put the function in a button CSS but it does not work.

           
           
       

  • http://shinephp.com Vladimir Garagulya

    Hello,
    What do you try to achieve?

  • http://shinephp.com Vladimir Garagulya

    You can prepare button sized image with transparent background and the icon from the left. You will get icon with text after it that way. If you wish text only prepare full transparent image.

  • Amopichat

    Hello,
    Thanks a lot for your plug in. I got a parse error on the last line of thankyou_statistic.php. Any idea ? thanks
    And is it possible to have 2 button to count 2 separate things ? I reinstall the plug iin with a different name ? thanks

  • http://shinephp.com Vladimir Garagulya

    Hello,
    Please show, what error message you’ve got.
    No, it’s not possible to count more than 1 thing. More that 1 plugin copy installed simultaneously will not work correctly as they will use the same database tables.
    Do you talk about something as ‘Like’ and ‘Unlike’ counters in the same post?

  • puz

    How can i add the counter button to anywhere else in my post?

  • http://shinephp.com Vladimir Garagulya

    Insert [thankyou] shortcode somewhere in the text.

  • Anonymous

    Hello Valdimir. Any news on an update? As a novice coder, would it be difficult to modify the script to only show the top thanked posts in a given category (as oppose to overall)?

  • http://shinephp.com Vladimir Garagulya

    Hello,
    Good news is that I made something for it. I even updated this post a little. It contains some information about features which are not available in the current version.
    Bad news is that update is still not finished.
    As addition I discovered that current version show thanks in widgets for the posts and pages only. It fully ignores custom post types. So it will be useful to add ability to select post type and category, taxomy inside them. I will try to manage my time to find a day or two to build next version for “Thank You Counter Button”.

    Yes, it could be difficult to novice coder to add filter by category. SQL expression modification is needed.  You should join additional table or two and check if thanked post has needed category or not.

  • Hlns

    Hello,
    Thank you very much for this plugin. It’s what I was looking for !!
    Just a problem : the time is for 12 hours and I don’t have neither am or pm…..
    Any solution ? (I use a french translation, maybe that’s why ??)

  • http://shinephp.com Vladimir Garagulya

    Hello,
    Thanks.
    If you write about time of ‘thanks’ click in a widgets, it uses time format from your WordPress settings – check Settings-General for that.

  • Hlns

    You find it !!!
    I don’t use it as a widget but for my personal use in my dashboard.
    Before install it I had a 24h WordPress general setting but the plugin changed it…
    It’s now corrected
    Thanks

  • Jan

    Hey Vladimir. Nice Plugin, but somehow it doesnt work on my blog ;)
    I placed the button in the header but when i click on it, nothing changes :(
    You can check it out at http://www.sagehorn.net.. and yes, its the pile of shit
    i already changed the permissions to 777…

    any idea?
    greets and thanks for your work!

  • Jan

    Hey Vladimir. Nice Plugin, but somehow it doesnt work on my blog ;)
    I placed the button in the header but when i click on it, nothing changes :(
    You can check it out at http://www.sagehorn.net.. and yes, its the pile of shit
    i already changed the permissions to 777…

    any idea?
    greets and thanks for your work!

  • http://shinephp.com Vladimir Garagulya

    Hello Jan.

    1st, what I see. There are not any javascript from ‘Thank You Counter Button’ plugin package is loaded to your page. It’s clear why button doesn’t work. But it’s still unclear why correspondent javascript code is not loaded. If that is possible, could you please, try to deactivate all other plugins except of TYCB and see if it will work then? It is possible we have some conflict between plugins. If that’s true, then activating plugins back one by one you can discover the conflicting plugin and send its name to me. I will try to fix the problem. Other thing – it could be incompatibility with your theme problem. Is it free and I can download it somewhere?

  • http://shinephp.com Vladimir Garagulya

    Hello Jan.

    1st, what I see. There are not any javascript from ‘Thank You Counter Button’ plugin package is loaded to your page. It’s clear why button doesn’t work. But it’s still unclear why correspondent javascript code is not loaded. If that is possible, could you please, try to deactivate all other plugins except of TYCB and see if it will work then? It is possible we have some conflict between plugins. If that’s true, then activating plugins back one by one you can discover the conflicting plugin and send its name to me. I will try to fix the problem. Other thing – it could be incompatibility with your theme problem. Is it free and I can download it somewhere?

  • Jan

    Thank you for the answer!

    I tried but couldnt find any plugin that interrupts the button.. I just actualized and tried the button ;)
    I Already replaced the pluginfiles of the counter, but nothing happened. Maybe i made some other mistake…? I placed the shortcode somewhere in the header region..
    My Theme is actually this:

    Twenty Ten 1.1

    Its more or less a standard-theme

  • http://shinephp.com Vladimir Garagulya

    Actually I didn’t plan to place button beyond the posts and pages. But I didn’t see the reason why button shouldn’t work you way. As the main problem – plugin javascript code is absent. Let me ask you a question which could seems stupid (excuse me if you have such feeling) – Is ‘Thank you counter button’ plugin activated?
    Please send here screenshot of the TYCB plugin Settings page from your site.

  • Jan

    hehe, thx for your answer. I’m not afraid of doing something stupid, but rather not recognizing it ;)
    The plugin is definitvely activated. when i stop it, the whole header crashed down..

    I examined the whole story again, and it turned out, that i just had to activate the option “Button auf der Startseite und den Kategorie-, Tag- und Archiv-Seiten anzeigen.” (In english circa: Activate Button on the startpage and Category, Tag, Archive… etc..) And yes, in the rearview, its a bit stupid. I thought, it would be enough to use the option “manual”

    But BIG thanks! Everything is fine now. ;)

  • Anonymous

    Hi, I have been using your plugin for the last 4 months. It’s a great idea. Now today I converted my posts to various custom posts. For some reason the thanks statistics have disappeared too. Although the number of thanks is the same, it cannot show the thanks from the custom posts. Any idea how this can be solved?

  • http://shinephp.com Vladimir Garagulya

    Hi, Thanks for the information.
    I discovered this problem recently at one of my sites and didn’t make the fix yet. Unfortunately, TYCB plugin counts thanks for the standard posts and pages only. It fully ignores custom post types.
    Good news: I’m working on fix for this issue. It’s possible that I will publish it in 1-2 weeks, with some other new staff I promised to publish in June :) .

  • PC

    Thanks :)

  • http://shinephp.com Vladimir Garagulya

    Hello dear users of “Thank  you counter button” WordPress plugin. I’m sorry about so long delay with next version release. Time is a real problem. So real date of next release is postponed again. Please do not build your blog development plan on the base of this plugin update date. I’m not sure when it will be made.
    TYCB plugin is in work. You can take a look on the screenshot of updated Settings page below.
    The only thing you may be  sure – I’m still here and support of all my WordPress plugins will be continued.

    Thanks.

  • Hlns

    Hi,
    For 1 month everything great, but now when I want to see the statistics I have : “Fatal error: Out of memory (allocated 30670848) (tried to allocate 311296 bytes) in /homepages/22/d159534284/htdocs/wp-content/plugins/thanks-you-counter-button/thankyou_statistics.php on line 494″
    Nevertheless on my dashboard the counter still change.Any idea ? Thanks

  • http://shinephp.com Vladimir Garagulya

    Hi,

    line 494 looks as this:

    $currentSortDirTitle = __('Ascending order', 'thankyou');

    As you can see it is not some huge data volume operation, just one more variable assignment. And you met ‘out of memory’ error here. I suppose that you installed some new plugin recently. Just for experiment, try to deactivate one of recently installed plugins and check if you can see ‘Statistics’ from ‘Thank You Counter Button’ plugin.

  • Pingback: Thank You Counter Button review, discussions, does it work, and ratings on Loadwp.com | Loadwp.com

  • Jordi Reig

    Hi, everybody!

    I want to know if there is any way to find the number of “Thank you” by member or userId of my site to show in his profile. 

    Also, if it’s possible… I want to list the “Thank you” posts of member or userId.

    Thanks in advance!

    Best Regards.
    Jordi Reig.

  • http://shinephp.com Vladimir Garagulya

    Hi Jordi!

    Thank you for suggestions.  Plugin must have such functionality, really. I will consider it for further plugin development. But I don’t promise to make it fast due to general time problem. 

    Current version of plugin doesn’t store WordPress logged-in user Id, just visitor IP address. So you have not information about users to extract it yourself. I should add a user_id field to the Db table and fill it, if user is logged-in to WordPress before press “Thank You” button.

    Regards,
    Vladimir.

  • khalil janjua

    great plugin … thanks

  • Sassas1991

    Hi can i use 3 different thank you button on my page with different counts

  • http://shinephp.com Vladimir Garagulya

    Hi,
    No, all thanks buttons inside one post or page will have the same counter as they use post/page ID for counter identifier.
    You can have buttons with different counters at the blog home page only where you list different posts excerpts.

  • Jim Rose

    I like the button too.  Simple and useful.  Thought I would like the username instead of the ip-address in the table. So, like the post_id, I passed the username out and back in.  Works like a gem.

  • http://shinephp.com Vladimir Garagulya

    Thank you.

    Obviously, blocking thanks after click by the username will work for registered and logged-in users only. In this case do you plan to block thanks from not-logged-in users? You will lost a lot of thanks from one-time visitors then.

  • http://twitter.com/MissKika Miss Kika

    hello!  Had the same question as sassas1991 about multiple buttons in one page~ I also was hoping to use the plugin for this!  I have a page of images (possible items I want to sell on a store for example) and wanted to give people the option to click all the choices/buttons they enjoy.  Is there any way to make this possible so that its not limited to one button per page?  Overall its a really wonderful plugin and so easy to use!!  I just wish I could use it  the way I was hoping :(
    thank you so much for developing this :)

  • http://shinephp.com Vladimir Garagulya

    Hi,

    Thanks for good words :) .

    As you are the second potential user of such (multiple buttons with separate counters on one page) feature I will consider to add it in one of the future versions. It could be the good extension to the current functionality of the plugin.
    But please be aware that it could take months, as my plans to publish the update for this plugin were postponed a few times already.

    Regards,
    Vladimir.

  • http://twitter.com/MissKika Miss Kika

    Thank you very much for considering to add it to the update! I know for me it would be super useful, I would assume others as well… the only thing I have found that offers a similar feature is a voting gallery which was a bit much and complex.  Its nice to just shortcode your plugin right under the things I needed “like” clicks on :D

    Thank you for your fast reply and I will be looking forward to an update if you have the time! Please keep up the wonderful work, it is appreciated very much!

  • chetan

    Hi,

    I use the plugin on http://projectcloud.info/ . I am getting an error “object object” whenever the button is clicked. It stopped working in October – 9th I think. 

    Thanks again for developing this wonderful plugin!

  • chetan

    Hey,

    I just wrote to you a few minutes ago. The problem got fixed after I reloaded the plugin but now all my older thank you’s have disappeared. Any clue how can I can retrieve them?

  • http://shinephp.com Vladimir Garagulya

    Hi,

    If you deleted plugin using WordPress ‘Delete’ link at ‘Plugins’ panel before make new installation, you lost  your old thanks data. “Thank You Counter Button” plugin has ‘uninstall’ feature and make full cleanup if you delete it via WordPress.
    Check if you have any records for your old posts in the ‘wp_thanks_counters’ DB table. If not you can add some records manually, field names in the table are self-explained. Ask, if you have more questions.

  • chetan

    Hey, the problem is back. There is no error but the thank you is not registered. When the page is refreshed the counter appears as if it was not clicked. Any advice?

    I do have a backup. I’ll try to merge the table to get back the old numbers. 

  • chetan

    I waited for sometime and thanks is taking a little longer to get registered so I don’t think there is a problem with the plugin as such. Thanks again. I’ll let you know if i am able to merge the tables.

  • http://shinephp.com Vladimir Garagulya

    OK. Good luck in restoring your data.