Thank You Counter Button WordPress Plugin

thank you counter button wordpress plugin

thank you counter button

Version 1.6.7 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.

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.

download

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(); ?>

    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 have to call thanks_button() inside the posts loop of course as it needs $post->ID to work correctly. Although it has to work inside of pages too.

  • 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 100×26px 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.

download
It is continued on the next page

Pages: 1 2

Tags: wordpress plugin

  • I feel like designing that ugly button with a different style.
  • 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.
  • 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 :[
  • - 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.
  • 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!
  • Thanks for the suggestion. I will include it as alternative choice in the next version.
  • 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-content\plugins\thanks-you-counter-button\thankyou_statistics.php on line 663. I am using the latest version of XAMPP Lite. Any ideas? :-s
  • 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.
    I need to know what language is set at WPLANG variable of your WordPress also. It can be wrong use of ' or " characters in one of translation files probably.
  • Medic84
    How to put button to the center of content?

    P.S. Sorry, for my bad English (I'm Russian :))
  • If you searching 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.

    P.S. Don't worry, your English good enough to understand it. Nothing else does matter.
  • 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
  • Special update 1.6.3 was published to fix this issue. Try it and let me know the result.
    Thanks in advance.
  • 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.
  • I caught the problem in my 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...
  • begede
    Thanks: great plugin
  • begede
    Fatal Error
  • 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.
  • 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... :(
  • Statistics still not working properly...
  • 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.
blog comments powered by Disqus