Ricard Torres
Forum Replies Created
-
Forum: Plugins
In reply to: [Thumbs Rating] Rating doesn’t work on excerptsHello there,
Lists of posts are usually a problem unless done well because the plugin might catch the page id (where all the posts are listed) rather than the actual post. It’s hard to debug from here, I don’t know what could be wrong.I’d suggest looking into the source https://plugins.trac.www.ads-software.com/browser/thumbs-rating/trunk/thumbs-rating.php and try to add the functions manually where you need them, like thumbs_rating_getlink
Maybe the plugin is too simple for your needs, this is very lightweight.
Forum: Plugins
In reply to: [Thumbs Rating] The problem of securityHello @koka777
I’ve read the report and not sure what to do about it.
If you have any insights on how to comply, I’m happy to apply a patch
Thank you.
Forum: Plugins
In reply to: [Thumbs Rating] The problem of securityHello, I have no idea what you refer to.
Could you provide more information?
Thank you
- This reply was modified 1 year, 3 months ago by Ricard Torres.
Forum: Plugins
In reply to: [Thumbs Rating] Doesn’t work on PHP 8Thank you @sipxstream I have updated the codebase with this change and hopefully make it PHP 8.0 compatible.
You may update to the plugin version 5.0.0
Thank you!
Forum: Plugins
In reply to: [Thumbs Rating] Doesn’t work on PHP 8Hi there,
It turns out WordPress only has, at this moment, beta support for PHP8
With that said, I’d encourage you to downgrade to PHP7 and wait until it’s fully supportedMore on this:
Proposal: Criteria for Removing “Beta Support” from Each PHP 8+ Version
Thank you
Forum: Plugins
In reply to: [Thumbs Rating] Doesn’t work on PHP 8Hello
Do you get any specific error in the browser console or the apache/nginx logs?
To be honest have not made any changes to this in a long time. I’ll see if I can find a slot to try locally.
Forum: Plugins
In reply to: [Thumbs Rating] Thumbs Rating <= 4.1.0 – Race ConditionThe plugin is very simple and things like this are bound to happen.
I guess what you’re saying is 2 users clicking at the same time and only 1 being tracked?
I have no solution for this unfortunately.
Forum: Plugins
In reply to: [Thumbs Rating] To prevent unlimited votes for users clearing LocalStorageAfraid not, it has been ages since I last search for them.
Forum: Plugins
In reply to: [Thumbs Rating] To prevent unlimited votes for users clearing LocalStorageYeah the plugin is just too simple to prevent any of that. There are more complex plugins out there with IP logging and such.
The way the votes are stored here is in the post metadata table. There no info about date or who, just a field for plus votes and another field for minus votes. That’s all.
If that’s something that happens to you, I’d perhaps suggest using a different plugin.
- This reply was modified 2 years, 3 months ago by Ricard Torres.
Forum: Plugins
In reply to: [Thumbs Rating] Hide Thumb Down CountYou have CSS classes to select each element
To hide the down votes in the FE add this to your custom CSS:
.thumbs-rating-down { display: none !important; }
Let me know if this works for you.
Forum: Plugins
In reply to: [Thumbs Rating] Hide Thumb Down CountIn the frontend I don’t know but I think you have the vote columns in the Dashboard, in the posts list.
Forum: Reviews
In reply to: [Thumbs Rating] Really Great, Exactly What I Was Looking ForThank you for the review.
I’m afraid changing the vote is not possible. The plugin does not store any user information.
Forum: Plugins
In reply to: [Thumbs Rating] Is it possible to allow unlimited votes for admins?Clean solution! Well done @bloggingandwb
Forum: Plugins
In reply to: [Thumbs Rating] Is it possible to allow unlimited votes for admins?Sure it’s possible. I don’t have the exact code, though.
Here’s a general idea on how you could do it
1) Using something like user_can_edit_user https://developer.www.ads-software.com/reference/functions/user_can_edit_user/ you could print a data attribute in the HTML https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
An idea:
<body data-isadmin="<?=user_can_edit_user()?>">
2) Then check that data attribute and not set the localStorage here lines 26 & 27 https://plugins.trac.www.ads-software.com/browser/thumbs-rating/trunk/js/general.js
const isAdmin = document.querySelector('[data-isadmin]') === "true"
Hope this helps!
- This reply was modified 2 years, 10 months ago by Ricard Torres.
Forum: Plugins
In reply to: [Thumbs Rating] Change buttons to emojis?Hi there!
I think it’s possible but you do need to change/add some code to your theme. You would need to feel a little comfortable with CSS and maybe PHP
No user interface to do that. To do this without coding you probably need a different plugin.
If you feel up to the task, we can try
- This reply was modified 2 years, 10 months ago by Ricard Torres.