Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    Thanks!

    Sadly not with just a parameter.

    Remember the plugin does not store any user information in the database. The only way we know the user has voted is through the browser LocalStorage.

    Check out the JavaScript file inside the plugin to see how it deals with it and how it check’s if the user has already voted.

    Good luck!

    Thread Starter muzkle

    (@muzkle)

    Ok, thanks, another question, i’m using to a template file:

    <?=function_exists(‘thumbs_rating_getlink’) ? thumbs_rating_getlink() : ”?>

    Is here a way to only display the amount of thumbs up/down after the user actually vote?

    Like, user see the post, and the buttons only, after he vote, he can see how many votes are there?

    Plugin Author Ricard Torres

    (@quicoto)

    You would have to clone some of the functions from the plugin to your functions.php and modify them.

    Or edit the plugin directly, if you do so remember to change the version number so the future update won’t destroy your changes.

    I’m afraid I can not code it for you.

    Regards.

    Thread Starter muzkle

    (@muzkle)

    Ok, i’ll do it, what about using parameters with <?=function_exists(‘thumbs_rating_getlink’) ? thumbs_rating_getlink() : ”?>

    Like, in the shortcodes?

    Plugin Author Ricard Torres

    (@quicoto)

    Well yes you could as long as you modify the thumbs_rating_getlink function to accept those new parameters.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom query for voted posts’ is closed to new replies.