Thank You Counter Button WordPress Plugin

thank you counter button wordpress plugin

thank you counter button

Version 1.7.4 is available. This is the visitor’s “Thank you” or “I like it” click 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.
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.

Settings tab

settings page part 1

settings page part 1

  • 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.
settings page part 2

settings page part 2

  • 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 tab

Thank You-Statistics

Thank You-Statistics

At Statistics tab you can check how many thanks and when were left by your blog visitors. Filtering by post dates, categories and sorting by thanks quant, date-time, paging are available.
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

  • shinephp

    Please let me know more:
    - What version of WordPress do you use?
    - What version of MySQL do you use?
    - What version of PHP do you use?
    - Has your MySQL user the privileges to create tables?
    - What is really happend?
    Without detailed information I can not understand what is wrong with plugin and help you and others.
    And finally, it is working. You can see it here at shinephp.com :) . :
    WordPress 2.9.1 (before it worked under WP 2.8.5, 2.8.6, 2.9), PHP 5.2.12, MySQL 5.0.
    It works at least for
    http://www.mantronic-software.de/
    http://www.massagegeek.com/blog/
    http://equipajedemano.info/
    and the most of 118 WP users (I'm sure) who clicked 'Thank You' button for this post.
    Again: if you met the trouble with this plugin, give me more detailed information. I'm ready to help you, investigate situation and make fix needed.

  • shinephp

    I reproduced the “plugin not working – I lost my blog” problem in case the MySQL user has not “Create” permision at the WordPress MySQL database. Updated version 1.6.1 doesn't affect the whole blog in this situation. I hope the error log file feature will help new plugin users to identify the possible problem and let me know about it in order to make the next update :) .
    Plugin deactivation helped to return the blog to work in any case for any plugin version.

  • http://lyricstranslations.com/ Spring

    Statistics still not working properly…

  • shinephp

    Please tell me more… What is really wrong with statistics in your case?
    If you talk about the 'Not available' message again, I commented it below already: If you have “Check IP-address” option unchecked, then plugin doesn't store button clicker IP information. That's why you don't see any statistics data. I tried TYCB button at your http://lyricstranslations.com/yu-english-lyrics… post and saw that it is possibly your case. I left 3 thanks for that post in a minute from the same IP. Please, confirm it.

  • http://lyricstranslations.com/ Spring

    PS
    sorry … I just saw this…
    I can see the list of IPs if I click on the View Details on the main Statistics page. If I move away from that page (like – change the order to Last Thank Date or try to see the IPs by clicking on the Stats button from an individual post, then I get the Not Available msg).
    So.. it seems as if there’s something wrong…
    Regarding my Misc settings, the Check IP is unticked and I only have the Time limit ticked ( Only for this period seconds)
    If I understood right, you are saying that it’s not working because I have the thing unticked… but how come it’s working on the Main stats then?
    Ah I really don’t want to tick it but I want the stats to work lol

  • http://lyricstranslations.com/ Spring

    I really love this plugin but the stats are not working properly! I can only see the main statistics and not the stats for individual pages nor the stats when I order them per last thanks date… :(

  • http://lyricstranslations.com/ Spring

    PS
    I tried viewing them on many posts and I think we can conclude that the plugin didn't store details for thanks made after December.. Maybe something happened after an upgrade? I am using the newest version btw and I haven't been changing any settings. I ticked the Check IP thing now and seems it worked for new thanks
    Sorry about the whining…

  • http://shinephp.com Vladimir Garagulya

    Thanks for idea.
    I will add the separate option e.g. “Store IP statistics” in the next version possibly which will allow to have Statistics data even “Check IP” is unchecked.

  • shinephp

    You are welcome :) . Any troubles with plugin users say about help me to enhance it.

  • Pingback: wordpress mu plugin commander | WORDPRESS

  • begede

    Fatal Error

  • shinephp

    I need more information to help you. If it is PHP fatal error then PHP writes additional information to the log file or shows it on screen. Please include it in your message.

  • begede

    Problem:
    Fatal error: Cannot redeclare wp_cumulus_widget() (previously declared in /www/htdocs/w0xxxx/wp-content/plugins/wp-cumulus/wp-cumulus.php:305) in /www/htdocs/w0xxxx/wp-content/plugins/wp-cumulus/wp-cumulus.php on line 305

    Thanks BGD

  • shinephp

    Yes. I repoduced it. Thank you for the feedback.
    There is some incompatibility issue between two plugins, TYCB and wp-cumulus. I will investigate problem and make the fix ASAP.

  • shinephp

    I catch the problem in the code and fixed it. Please try the updated version from the trunk/development version of TYCB plugin at
    http://downloads.wordpress.org/plugin/thanks-yo…
    and confirm that 'fatal error' issue was gone. I will publish version 1.6.3 as I get response from you or little later, but today in any case…

  • shinephp

    Special update 1.6.3 was published to fix this issue. Try it and let me know the result.
    Thanks in advance.

  • begede

    Thanks: great plugin

  • Medic84

    How to put button to the center of content?

    P.S. Sorry, for my bad English (I'm Russian :) )

  • shinephp

    If you find the way to show button as
    http://equipajedemano.info/
    you can go to the TYCB plugin Settings page and put into “Add style to the div:” something like this:
    “float: left; margin-left:40%; margin-right: 5px;”
    Your button will be shifted to the center. Play with percent value for margin-left to align button properly.

  • Josef

    Hello! I installed this plug-in no problem; however, when I head over to the statistics tab, I get this error: Parse error: syntax error, unexpected $end in *path*wp-contentpluginsthanks-you-counter-buttonthankyou_statistics.php on line 663. I am using the latest version of XAMPP Lite. Any ideas? :-s

  • shinephp

    Please let me know the exact versions of Apache, PHP, MySQL, WordPress do you have. I will try to build your environment and check how TYCB will work on it. At this moment I have nothing to say to help you as plugin Statistics tab works for me without error messages.

  • 1232234

    I love this plugin, its a fantastic addition to my site!
    Quick suggestion though: Would it be possible for you to base the thanks limit per user, on a cookie? This would be a lot better than logging every ip address (so that users cant thank a post more than once in the set amount of time).
    Even if you could somehow include the option to log thanks by ip address or by cookie within the plugin settings. This would make the plugin even better. Hope you will consider this, thanks once again!

  • shinephp

    Thanks for the suggestion. I will include it as alternative choice in the next version.

  • Moogle Stiltzkin

    Would it be possible to have thank you buttons for specific pages, and also all pages under a category.

    I don't really want thank you button on main page posts :[

  • http://shinephp.com Vladimir Garagulya

    - If you wish remove 'thank you' button from the main page turn off the “Display button at Home page” check box.
    - You have the option to exclude 'thank you' button from the selected categories list also. Turn on the 'Do not show button for selected categories' checkbox and select needed categories from the opened list.
    - You can turn off 'before' and 'after' options both and turn on 'shortcode' checkbox. Then you will have 'thank you' button just for posts or pages where you input shortcode [thankyou] manually.
    Play with these abilities. I hope it could help you to achieve that what you wish.

  • http://www.creativesplat.com CreativeSplat

    I feel like designing that ugly button with a different style.

  • http://shinephp.com Vladimir Garagulya

    Thanks for the comment.
    1st, you can turn on 'custom button image URL' option and use your own button image at your blog. This option included especially for those who don't like default button images for some reason.
    2nd, if you are graphic designer and have ability to design new attractive buttons images set, make it, share it, and it is possible I include it into next plugin version as alternative buttons set.

  • Phankimi

    Thanks for nice plugin ♫

  • Vadim

    [object XMLHttpRequest]

    what is this?

  • http://shinephp.com Vladimir Garagulya

    This is the error message concerning AJAX problem. Could you provide more details: WordPress version, TYCB plugin version, browser, what do you do before you get this error?

  • Vadim

    I think I get this error after I updated the latest version of wordpress (3.0.1). When I click the button “thanks” I get this error. The version of the plugin is the 1.6.8. I get the error with any layout, even if I disable all other plugins. :(

  • http://shinephp.com Vladimir Garagulya

    ShinePHP is updated to WP 3.0.1. I can not reproduce this error.
    It seems that something special in your blog environment lead to this problem. Have you some test blog installation where I could play with it using blog admin privileges?

  • Vadim

    http://www.narutoplanet.it/wo/wp-admin/

    nick: Vladimir
    pass: garagulya

    thank you!

  • http://shinephp.com Vladimir Garagulya

    Thank for the trust. 1st, I did not use those credentials for this moment. Just checked this thing:
    TYCB plugin makes AJAX call when visitor clicks on button. URL is
    http://www.narutoplanet.it/wo/wp-admin/wp-content/plugins/thanks-you-counter-button/thankyou-ajax.php
    Direct use of this URL returns me your site root index page. It seems that direct call of files is forbidden on your site for some subdirectories, possibly with use of .htaccess settings. Without such direct call to thankyou-ajax.php TYCB plugin doesn’t work.

  • Vadim

    I don’t understand. .htaccess file has no restriction for subdirectories. I tried to install WP on a different domain but is the same thing. What can I do? :(
    http://www.animelion.com/wo/

  • http://shinephp.com Vladimir Garagulya

    I’m sorry. It was my mistake. I have put wrong URL in previous message yesterday. It is correct now (I removed wp-admin from there). And, Yes, I can access .css, .txt, .js files in the ‘thanks-you-counter-button’ directory via HTTP.
    But I see ‘HTTP 500 Internal Server Error’ when try to call any .php file from there.
    The same thing is happened for
    http://www.animelion.com/wo/wp-content/plugins/thanks-you-counter-button/thankyou-ajax.php
    PHP code is not executed from the plugin subdirectory for some reason.
    Check user permissions for .php files at the plugin subdirectory. It should be 644 or ‘rw-r–r–’.
    If you have some other plugin installed, try to call its .php file directly. Do you see error code 500? If not, compare user permissions for .php files.
    Do you have access to the HTTP server and PHP error log files?
    If it is possible for you, you can give me FTP access to your site. I will try to isolate the problem. Send user name and password to this address [my 1st name][AT sign]shinephp.com. You can find it in the thankyou.php file also. Or use this site ‘Contact’ page form to reach me directly.

  • Vadim

    Thank you Vladimir! I changed the permissions of the php files from 644 to 755 and now everything works correctly! Thank you again! :)

  • http://twitter.com/BoiteAWeb Julio Potier

    There is a XSS security hole in the versions 1.4 to 1.6.8 (last)
    Author has been contacted.
    Wait and see.
    Julio from www . boiteaweb . fr (web security audit)

  • http://shinephp.com Vladimir Garagulya

    Hi Julio.
    I’m working now to fix it and hope to publish the updated code today.
    I appreciate your help.
    Thank you.
    Vladimir.

  • http://shinephp.com Vladimir Garagulya

    Version 1.6.9 of “Thank you counter button” plugin is available. XSS security hole mentioned above is fixed I hope.
    Julio, it would be quite good if you could take a look on the updated code and share with us your conclusion.
    Thanks again.

  • http://twitter.com/BoiteAWeb Julio Potier

    1.6.9 fix the 1.6.8 hole, it works really fine ! Nice job ! Thank you Vladimir

  • Anonymous

    This is very cool. Is the count supposed to show up when they hit the button? Should they see that it got counted or does it just show up when they come back to the page. I wasn’t sure if I messed it up, or if it always showed no feedback. Either way a great widget. Thanks.

  • http://shinephp.com Vladimir Garagulya

    Thank you. Counter on the button itself should be updated just after click without page reload.
    TYCB widget counters are updated just with with page reload. AJAX behavior is not realized for TYCB widgets content. I did not make it as it could slow down reaction on the button click.

  • Anonymous

    That sounds good. I think I messed mine up because when you click the button itself doesn’t update. I tried to delete the widget and download it again, but it still doen’t update. Is there anyway to set it back to what it originally was? thanks.

  • http://shinephp.com Vladimir Garagulya

    Please give me the URL to page/post with button to try it and see what is going wrong?

  • Anonymous

    It works now, sorry about that. Not sure what I did, but must have fixed it. Thank you.

  • Pingback: say thanks

  • Pingback: Thank You Counter Button Wordpress Plugin Shortcodes | ShinePHP.com

  • http://shinephp.com Vladimir Garagulya

    What WordPress version do you use? TYCB v. 1.7 is for 3.0 and upper versions only. It will not work with any earlier WordPress version as I excluded from its code all staff deprecated from WP version 3.0.Do you have any error messages in your PHP error log? Setting WP_DEBUG (define(‘WP_DEBUG’, true);) – true in wp-config.php could help to see any errors on screen.

  • http://twitter.com/shaneholden Shane Holden

    I’m looking for something exactly like this, but I’d like to be able to capture who “thanks”. Any plans to add anything where they can put in their name, url, email, basically a much shorter comment form, that can display who thanked you for the post elsewhere on the page? Thanks!