This addon adds buttons below your posts (or somewhere else) to make it easy to get reactions to the post, but without the hassle of writing a whole comment. It makes it easier for the reader to interact with you. The buttons are configurable (how many, what text, position) and simply are counters to how often they were clicked. There is also a widget and a shortcode to show the top x posts with the most clicks for each button.
Latest version: Download Reaction Buttons v2.1.2 [zip]
Q. Are there any shortcodes?
- They are described in the install tab.
Q. My reaction buttons don’t update
- Is your PHP installation new enough? Reaction buttons require at least PHP 5.2.
- Do you use a cache plugin? When the page is cached as soon as you reload the page your vote isn’t shown anymore until the cache is cleared. See below.
- (This shouldn’t apply since version 2.0.0 anymore.) Do you use any special characters like exclamation marks in your button names?
Q. I want to deactivate reaction buttons in certain situations
- Next to the normal options (categories, page types, post options, …) you can set the global variable $reaction_buttons_deactivate to true e.g. in your plugin or certain theme regions to deactivate reaction buttons during the execution of that code. But don’t forget to set it to false again when you are done!
Q. How can the plugin work with plugins that cache the posts to increase page performance?
- I added an option to refresh the cache of a page after a button was clicked. But the cache plugin has to be supported by reaction buttons.
Q. What cache plugins are supported for automatic cache refresh?
- W3 Total Cache
- Quickcache seems to be working with an easy workaround, check hengxis solution in the forums
Q. My plugin isn’t listed, can you add support?
- Sure, use the wordpress support forums with a link to the plugin and I’ll check it out next time I’ve got time for the plugin. If you want it fast, check the documentation of the cache plugin and find me the function to delete single page caches. Then it shouldn’t be a problem to implement shortly.
Q. How can I prevent users from voting twice?
It surely is not secure against somebody with bad intent, since they can just delete the cookie and reload the page. If I would save the IP instead, most users could reconnect their internet connection and get a new IP and sometimes on high traffic sites, a user wouldn’t be able to react, because somebody else with this IP already clicked. This plugin wants to make it easy to get the users reactions and easy and secure don’t work together. The only secure way is letting them log in, but then you wouldn’t get any reactions at all, since 99,9% wouldn’t bother.
- Added css-class ‚rb-chosen‘ that is added to the clicked button when only one click is allowed. If you allow to click each button at least once, use the old voted class instead.
- fixed https related problem (replaced bloginfo() with site_url())
- added the possibilities to sort the buttons by votes
- Changed the structure, CSS updates of custom CSS will be necessary.
- Changed the way buttons are saved. They are simply numbered now, so there shouldn’t be any problems with special characters. The plugin should automatically convert your reaction counts on the first run to the new system.
- New graph feature, display the votes as a graph instead of buttons. This will possibly look bad and need css updates to match your blogs style.
- bump for new wordpress version
- fixed an error in the new widget controls
- added option for post thumbs to the widgets
- added show_post_thumb (true/false) to the [reaction_buttons_most_clicks] shortcode
- fixed an error with the [reaction_buttons_most_clicks] shortcode, only_buttons doesn’t have to be set anymore to show all buttons
- added German translation
- fixed a few errors regarding translation
- updated a few functions that were deprecated and threw notices on systems running with debug
- added the option to show the full post in the widgets
- fixed an error that read the wrong settings variable for the one widget
- fixed an error in the „clicked statistics“ page
- small error prevented setting the percentage precision to zero
- added the option to show percentage values instead of absolute reaction count
- added a global var to deactivate reaction buttons from other code. See the FAQ for more info.
- another small bugfix regarding the button statistics widget: Strip shortcodes (like image caption) from the excerpt.
- small bugfix regarding the button statistics widget: If no button was given, it didn’t show any buttons at all instead of all. Thanks max_Q for the fix.
- had to bump the required version of wordpress to 3.3 because of the new button statistics widgets features.
- new features in the button statistics widget (and shortcode):
- option show an excerpt of the post
- option to only display selected buttons
- Added donate link in the wordpress plugin directory
- added a feature to let users vote multiple times
- added a „reaction summary“ as option and shortcode: Engage with your users by including the most clicked button in a summary, e.g. „Most people found this post interesting!“ while „interesting“ is the most clicked button.
- changed cookie handling
- added support for deleting the page cache after clicking a button
- supported cache plugin: W3 Total Cache
- very small java script change
- Well, it’s 11.11, so this is the Kölle Alaaf release! 🙂
- No just kidding, just found a small error in the previous release with the HTML-tagline, fixed now.
- small update, added the possibility to use HTML in the buttons taqline
- added reaction_buttons_click_count($post_id) to include number of reactions per post in own themes. Returns the accumulated number of clicks of the specified post.
- added the possibility to only allow only one vote per post. (Thanks Vlad for most of the code!)
- added the option to show the results only after the user voted.
- small changes for 3.0
- tested with 3.0rc3
- added code for a second widget and statistics page: Show the top x posts with the most overall clicks.
- added code for a statistics page in the backend from Fábio Silva
- added a shortcode for the widget (show top x posts…)
- added the possibility to deactivate reaction buttons based on categories.
- fixed a small error that prevented the ajax update in buttons with more than one whitespace.
- hopefully solves the problem with mod_security due to a filename with „cookie“ in it… sigh
- removed the possibility to multi vote by clicking really fast (before the ajax response came in)
- added the shortcode [reaction_buttons] (can be activated in the config)
- added the possibility to add the buttons after the post, above the post, via shortcode and directly in your theme by using a php function. Got the idea for those options from TYCB, thanks! 🙂
- fixed a small settings error
- fixed a bug in the widget, sorting was screwed
- bugfixes and cleanup on the widget
- small cleanups in the settings
- added a widget, that shows the posts with the most clicks for each button.
- Added the possibility to activate cookies in the backend, so that you can only vote once on that browser. (Anyone with malicios intent can circumvent that pretty easily of course…)
- fixed issues with spaces
- fixed issues with apostrophs
- some changes in the settings area
- First public release.