vote5 – Advanced WordPress Voting Plugin

NEW! Learn JavaScript by example. Code snippets, how-to's and tutorials. Try now!

vote5 v4.2.4

Last released on May 11, 2021 in WordPress Plugins

Price: $17.00 · License: GPL-3.0 · Reviews

vote5 Description

The vote5 plugin allows users to vote on posts and administrators to manage votes, ban/unban IP addresses and search/filter votes. The plugin log displays a paginated table with attached posts, IPs and time of vote. The administrator is able to modify votes and see which posts have been modified. All votes are stored as custom values.

vote5 Security

User votes are recorded both in the plugin’s database and in the custom meta values database. All posts have a custom key attached to them, holding the current votes value. Users behind web proxies or missing an HTTP referrer will be blocked, and votes will not be recorded. All votes use IP and cookie checks.

If you disable the Show button automatically option, you have to manually add the code <?php if (function_exists('vote5_get')) { vote5_get('get'); } ?> in your post or page template, right after the_content() function.

Use <?php if (function_exists('vote5_get')) { echo vote5_get('value'); } ?> to display the number of votes anywhere in the loop.

Use [vote5count id="78"] to display the vote count for a particular post or page ID.

Extended documentation is available inside the plugin.

How to restrict voting based on IP address

If you need to restrict voting based on IP address, follow the steps below. The default behaviour of the plugin does not allow this, so you’ll need to make a slight change to like.php.

Open the file using a text editor and find line 75:

if (!isset($_COOKIE['liked-' . $post_ID]) && (int) $banStatusByIp === 0 && ($timeStatusByIp > ($v5_days * 86400) || !is_numeric($timeStatusByIp))) {

Replace it with:

if (!isset($_COOKIE['liked-' . $post_ID]) && (int) $banStatusByIp === 0 && (int) $voteStatusByIp === 0) {

Now, your users won’t be able to vote from the same IP, ever again.


= 4.2.4 =
* FEATURE: Added [vote5-button] shortcode
* UPDATE: Improved admin UI
* UPDATE: Improved performance by enqueuing assets only when the button is visible
* UPDATE: Updated WordPress compatibility
* UPDATE: Updated PHP compatibility to 7+
* UPDATE: Updated FontAwesome to 5.15.3

= 4.2.3 =
* FIX: Fixed issue with PHP 8 unsupported operand types: string + int
* FIX: Added license details
* UPDATE: Updated WordPress compatibility
* UPDATE: Updated PHP compatibility
* UPDATE: Updated FontAwesome to 5.15.2
* UPDATE: Sanitized all POST requests

= 4.2.2 =
* FIX: Refactored comparisons for better performance
* FEATURE: Added messages for successful and restricted votes
* UPDATE: Updated WordPress compatibility
* UPDATE: Updated FontAwesome to 5.1.0

= 4.2.1 =
* UPDATE: Added vote count shortcode
* UPDATE: Updated WordPress compatibility

= 4.2 =
* UPDATE: Updated AJAX function for WordPress 4.7 compatibility
* UPDATE: Performance updates
* UPDATE: Updated FontAwesome to 4.7.0
* UPDATE: Updated WordPress compatibility
* UPDATE: Updated WordPress version requirement
* UPDATE: Updated CSS styles to target all button variants

= 4.1.0 =
* UPDATE: Refactored Google chart code according to latest update
* UPDATE: Moved and localized JS file for WordPress script enqueue compliance
* UPDATE: UI tweaks
* FEATURE: The manual template function now obeys the CPT/category conditions

= 4.0.2 =
* UPDATE: Updated FontAwesome to 4.6.3
* UPDATE: Updated WordPress compatibility
* UPDATE: Updated WordPress version requirement
* UPDATE: Replaced browser detection with WordPress native detection

= 4.0.1 =
* UPDATE: Updated FontAwesome to 4.6.1
* FIX: Fixed search to work with InnoDB (removed FULLTEXT)
* UI: UI updates to forum adding/editing
* UI: Removed old icon

= 4.0.0 =
* UPDATE: Updated versioning scheme to x.y.z
* UPDATE: Updated compatibility with WordPress 4.3+
* UPDATE: Added dismissable notices
* UPDATE: Added Edge detection in Browser.php
* UPDATE: Cleaned up settings and options
* UPDATE: Init optimization
* UPDATE: Updated copyright, dates, readme.txt, links and help panels
* UPDATE: Simplified button styling
* UPDATE: Added FontAwesome button icon

= 3.1.0 =
* FIX: Removed a call to a missing function
* FIX: Removed get_browser() references, as browscap.ini is not available on all servers
* FIX: Removed an uncommented function (generating errors)
* FIX: Added error suppression to gethostbyaddr()

= 3.0.1 =
* Major overhaul
* Fixed deprecated database queries
* Fixed redundant filter panel
* Added AJAX delete/ban vote actions

= 2.4.5 =
* Added option to return vote value only

= 2.4.4 =
* Added button colour options (text and background)
* Fixed 3 warnings for WordPress 3.6
* Fixed a deprecated capability check
* Removed several CSS rules, as they were inherited from the main stylesheet

= 2.4.3 =
* Added top X most voted posts shortcode
* Added a widget class skeleton implementation
* Minor code optimization
* Tested with WordPress 3.6-alpha

= 2.4.2 =
* Added option to include/exclude custom post types
* Added individual filtering with total number of votes

= 2.4.1 =
* Added hostname to vote logs
* Removed an unused Javascript file

= 2.4 =
* Added better cookie check and vote fraud detection
* Added special category to show the vote button

= 2.3.0 =
* Fixed a PHP warning
* Fixed a rendering error with "0" votes
* Cleaned up button styles (no more animation, shadows and borders)

= 2.2.0 =
* Fixed a deprecated function
* Fixed version number
* Fixed plugin header
* Fixed some titles
* Added helper box inside post/page editing screen
* Added option to select posts, pages, or both
* Added a better help section
* Tweaked button UI and behaviour

= 2.1.0 =
* First public release