Thank You Counter Button WordPress Plugin

thank you counter button wordpress plugin

thank you counter button

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



For those of you, who always stand on front end, TYCB Development version is available at http://downloads.wordpress.org/plugin/thanks-you-counter-button.zip


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 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...
  • 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.
  • 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...
  • shinephp
    You are welcome :). Any troubles with plugin users say about help me to enhance it.
  • 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.
  • Tom
    Not working.
    Waste of time. I lost my blog.
  • 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
    Hi dear 'Thank You Counter Button' plugin users!
    I met the situation when 'Thank You Counter Button' plugin marked as broken for WP version 2.9.1 (5 negative marks opposite 2 positive marks) at wordpress.org. It is possible that some users have troubles with plugin. What I want to say that I still have no any information from them, what is wrong with plugin, what bed experience they have. No one go to here and write specifically what is the problem in order to I can fix it.
    If you have the good experience with this plugin, please support it, register at wordpress.org and click 'Works' button with Compatibility widget at the http://wordpress.org/extend/plugins/thanks-you-... page.
    The lack of response from the plugin users is the real problem. With more than 4 thousands downloads and positive comments here two persons only (including me) clicked 'Works' button for this plugin at http://wordpress.org/extend/plugins/thanks-you-... page. The picture is shown by Compatibility widget is not objective truth now. Let's correct it together.
    Thank you,
    Vladimir.
  • Is it possible the plugin doesn't work too well with WP 2.9?
    I keep getting "Not available" message when I try to view statistics details for particular pages
blog comments powered by Disqus