Hello there! I’m making a site similar to?https://www.fmylife.com/
I would like to make a voting system like they have it on their website.
Since I’m using a query loop to loop through all posts and show only post excerpts, , the vote for individual posts applies to every post. So basically if I vote in one place, it adds a vote on all the posts.
Here is the image: https://imgur.com/IhjgW36
It would work okay if I was adding the voting to the post itself,
but since I am embedding the shortcode on the excerpt on the front page, it works as I described above.
Is there any way to work around that? Thank you in advance.
]]>Hi
Wordfence report, to protect your site from this vulnerability, the safest option is to deactivate and completely remove “Thumbs Rating” until a patched version is available. Please investigate the issue and resolve it promptly in the next update.
Thank you for a great plugin!
]]>I recently upgraded my site from PHP 7 to PHP 8, and Thumbs Rating stopped recording votes or displaying vote counts.
In an earlier thread on this topic, it was suggested that cache software might interfere with Thumbs Rating, so I disabled WP Super Cache and retested, with the same result: When I use PHP 7.x, Thumbs Rating works properly, but with PHP 8.x, it doesn’t record votes.
I’m currently running the site on PHP 7.4, but since 7.4 is deprecated I’d like to upgrade to PHP 8 as soon as this issue can be resolved.
]]>WordPress Thumbs Rating Plugin <= 4.1.0 is vulnerable to Race Condition. Is there a solution to this now?
]]>So, I had an issue a while ago on my site with a user who wanted to have some fun with the votes of a post, and ran a script to give it 5600+ upvotes, by clearing LocalStorage between each vote.
What I wonder is, could there be any workaround to prevent this? Perhaps a global vote count limit for a certain time, or something… I’m not sure. Do you have any suggestion how to stop it from happening again?
Thanks for a great plugin by the way, works well even though I have 220+ entries loading at once on home.
]]>How would I make it so the thumb-down count is only displayed to the author and admins (hide the thumb-down count from the public)?
People can still vote thumb-down, however, only the author and admins can see the results. Only the thumb-up results can be seen by everyone.
]]>When a user has already voted, this plugin doesn’t allow voting again and it is a very good feature.
But it is possible to remove it just for admins?
I can change/code the plugin files if you help a little bit.
Thanks
]]>I love the simplicity of the Thumbs Rating plug-in! I’m not a techie … can I change the buttons to thumb emojis?
]]>I need a plugin to like comments. Is it possible to create a function to work on comments? I’ve looked everywhere, and none are as good and simple as yours.
]]>First of all, thank you for the simple but great plugin.
The plugin works perfectly on my server running PHP 7.
However, I tested it on PHP 8 and the buttons always return “0”.
Please let me know if it’s compatible with PHP 8.
]]>Hello,
To get into the point, Can we have Average rating and total ratings?
Total ratings is easy: votes up + votes down
Avarage rating: can be achieved by;
One thumb up = 5 rating
One thumb down = 1 rating
By this formula we can get average rating like other rating plugins.
Of course, this is a good feature to add schema rating feature for google.
Thanks for effort
]]>Hi,
I would like to count +1 when visiting page A and count -1 when visiting page B and show the result of the two numbers (up – down = result) in one field. Is that possible? Is it also possible to reset the buttons in the frontend? Or do an automatic reset at the end of the day? Thank you.
If anyone wants to reset the votes/count of the thumbs, can be used the following code in the functions.php file.
function reset_thumbs_rating(){
if(is_front_page()){
$args = array (
'post_type' => 'post',
'posts_per_page' => -1,
);
$reset_thumbs_rating_query = new WP_Query($args);
if ( $reset_thumbs_rating_query->have_posts() ) {
while ( $reset_thumbs_rating_query->have_posts() ) {
$reset_thumbs_rating_query->the_post();
$post_id = get_the_ID();
update_post_meta($post_id, '_thumbs_rating_up', null);
update_post_meta($post_id, '_thumbs_rating_down', null);
}
}
wp_reset_query(); wp_reset_postdata();
}
}
add_action('wp_footer', 'reset_thumbs_rating');
After adding the code, change the POST TYPE ID from the post_type parameter of the query for the post type you’re using it. I’ve used the default post type ID.
Then go to the homepage of the website and refresh the page. It should reset the votes.
If it does, then make sure to comment/remove the above code, otherwise, on each homepage refresh, the votes will be reset. ??
Thanks
]]>Hi
I just installed your plugin…and went and changed the CSS colors for hover, vote up and vote down….and saved…unloaded cache, even turned the plugin off then turned back on…but none of the colors have changed.
Here are the codes as inserted in the CSS file:
.thumbs-rating-container button:hover {
color: #f2a6c4;
}
.thumbs-rating-container .thumbs-rating-up,
.thumbs-rating-container .thumbs-rating-down {
padding: 0.5em;
color: white;
}
.thumbs-rating-container .thumbs-rating-up {
background: #28b3d2;
}
.thumbs-rating-container .thumbs-rating-down {
background: #ffa66e;
}
.thumbs-rating-container .thumbs-rating-already-voted {
display: none;
font-size: 0.9em;
padding-top: 1em;
}
.thumbs-rating-container .thumbs-rating-already-voted.thumbs-rating-show {
display: block;
}
have I done this wrong? Also am I correct that I have to copy/paste the shortcode into place because there is not a button to click to automatically paste the code into the classic editor as you write?
Thank you so much.
Hi,
we have just started using the plugin and it works great. There is just a problem in combination with our caching plugin (WP Fastest Cache).
The cache obviously isn’t deleted/updated after the plugin receives a vote. Therefor the next visitors see just +5 votes for instance but after voting they see the votes are much higher (eg. +21).
The caching plugin provides a hook/function for invalidating the cache of a page/post. Is there also a hook in the thumbs rating that is called with every vote received? Or could one be added?
thanks
Albert
Hello,
Is there any way to add IP logging as well to the plugin. That would be extremely helpful for those who delete cookies from the browser.
Thank you.
How can the markup generated in thumbs_rating_getlink
be customized?
I want to use the updated version 4.0.3 but I need the markup used in the previous versions (3.x) with counters separated from text.
I think the button generation should be hooked so it can be customized from a custom theme.
Thank you!
]]>Like this simple yet reliable plugin.
However the container may in some cases collide or overlap with other elements in the front view.
I am testing another plugin of related posts, which diplay same area of Thumbs Rating in the end of a post. And the solution is to modify css like below:
.thumbs-rating-container {
clear: both;
}
If anyone faces same issue, this may give some hints.
]]>Hi Ricard! Love the plugin =) Any chance on updating it to get rid of the jQuery dependency any time soon? Thanks for developing it and keep up it with your podcast!
]]>Hello,
could this plugin work with images displayed by the Impreza / WP Bakery Grid element?
Thanks
I saw that you have implemented “Top Rated Posted within the last XX days” via shortcode after reading this support thread: https://www.ads-software.com/support/topic/how-to-sort-top-rated-posts-by-date/
Can you advise what part of the shortcode changes the time period?
https://prntscr.com/ugsdhr
Cheers,
Steve
Hi,
I’m using this (great!) plugin in my website with the following code:
<?=function_exists('thumbs_rating_show_up_votes') ? thumbs_rating_show_up_votes() : ''?>
Is it possible to show the button without the +&number of votes (so only Vote up for instance)?
Thanks!
]]>Is there a way to only use the Vote-up? (so not showing the Vote-down button).
Many thanks,
I saw that a previous post here mentioned using
$total = get_post_meta($post_id, ‘_thumbs_rating_up’, true) + get_post_meta($post_id, ‘_thumbs_rating_down’, true);
to get the sum of the votes to display. How do you do this?
My goal is to have the sum of the votes be displayed on each post. I have the plugin enabled to show the vote buttons on every post, but they show only the thumbs up total and the thumbs down total, but not the sum of the two.
]]>Hello,
I like the simplicity of your plugin.
I would like to achive the following:
I’m just showing the Upvote Button (disable Downvote via CSS), which is no problem. Then i want to show the Upvote-Counter not in the Button but in an extra container above the button. Is there a way to update the counter dynamically when the button is clicked?
Thanks
Heiko
I was wondering if there’s a way to know which IP address upvoted at what time. This would be used for demographic tracking. I know that it is tracked somewhere since the plugin prevents someone from voting twice, but is there a visible way to view the addrss?
]]>Hey. I’m having an issue with displaying more than the default 5 posts in the top rated shortcode. I am using this format in the them and I’ve also tried amending the loop in the plugin file but no luck.
<?php echo do_shortcode('[thumbs_rating_top type="positive" posts_per_page="30" post_type="free_stuff" show_votes="yes" order="DESC"]'); ?>
Any help would be brilliant thanks.
]]>Hi, my goal is to add your voting system to a custom WP_User_Query.
I’ve tried this but obviously it doesn’t work because the $post_id is not correct.
// The User Query
$user_query = new WP_User_Query( $args );
// The User Loop
if ( ! empty( $user_query->results ) ) {
foreach ( $user_query->results as $user ) {
...
echo do_shortcode('[thumbs-rating-buttons]');
}
}
Any help please?
]]>I looked back through a few pages and didn’t see anything in regards to this. Is there any way to change your vote after you’ve clicked one of the buttons?
Let’s say I accidentally vote something up when I meant to vote it down. In my head, I want to click on the up vote button again to “undo” or remove my vote so I can click on the other button. This doesn’t seem to be the case, and there isn’t any visible button for a user to clear their vote.
Is there anything built in to achieve this?
Thanks!
]]>Hi Thumbs,
OK, this is FREAKY… I deactivated and reinstalled again. Now the MENU links for the settings is gone, no longer showing on the menu area????
The plugin is ACTIVATED, The menu was there before, I looked all over for good 10-15 minutes, still can’t locate, it’s GONE!!!!!
I even logout and login again.. NO LUCK..
Please help, Thanks
]]>