WordPress.org

Forums

WP-PostRatings
[resolved] Error when voting on iPhone (10 posts)

  1. ndh01
    Member
    Posted 9 months ago #

    When I vote on an iPhone/iPad, the first vote appears to do nothing. If I tap a second time I get the message "Please rate only 1 post at a time." I am not using a caching plugin.

    https://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    Does it work on the desktop in the first place?

  3. ndh01
    Member
    Posted 9 months ago #

    Hi Lester. Yes voting works great on the desktop.

  4. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    What is your site URL? Does it a load a different theme for mobile?

  5. ndh01
    Member
    Posted 9 months ago #

    Hi Lester. I narrowed it down to this: Seems to be an issue between your plugin and fastclick.js.

    https://github.com/ftlabs/fastclick

    It occurs when this script is loaded, which makes since that it doesn't effect desktop browsers. I'm not sure what the true conflict is but I hope you may be able to determine.

    Thank you

  6. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    Not too sure if you can add class="needsclick" to the vote button in WP-Admin -> Polls -> Polls Templates as mentioned in the docs

  7. ndh01
    Member
    Posted 9 months ago #

    Hi Lester. I'm not seeing how to add that to vote button. The only docs I have seen are in the read me. Is there another set of docs to reference? Currently my vote template has :

    %RATINGS_IMAGES_VOTE% (<strong>%RATINGS_USERS%</strong> votes, average: <strong>%RATINGS_AVERAGE%</strong> out of %RATINGS_MAX%)<br />%RATINGS_TEXT%
  8. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    Technically you need to modify the plugin wp-postratings.php.

    Find: class="post-ratings-image"
    Replace with: class="post-ratings-image needsclick"

    If it does not work, I am afraid you can't use both together.

  9. ndh01
    Member
    Posted 9 months ago #

    Lester,

    Adding class="needsclick" to the following lines does remedy the issue.
    lines 1050,1053,1055, 1058, 1071,1074,1076,1079

    Would this make its way into your code someday or will I need to always edit after an update?

    Thank you for your help!

  10. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    You have to make an updated every time since this is conflict which is not generic and specific to users who used fastclick.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.