Support » Plugin: YASR - Yet Another Star Rating Plugin for WordPress » Visitor votes don't get saved

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi,
    can you please disable lazy load and try again?

    Thread Starter Marc Bijl

    (@newoceans)

    Hey Dudo, thnx for the quick reply!

    Lazy load did the trick, it’s working again like a charm! 🙂
    I don’t depend on lazy load yet, but is there something I can do, so that both lazy load and yasr work together?

    Once again, thnx very much, keep up the good work mate!
    Cheers, Marc

    Thread Starter Marc Bijl

    (@newoceans)

    Hi Dudo,

    is there anything I can do to run both lazy load and yasr?

    Cheers,
    Marc

    Plugin Contributor dudo

    (@dudo)

    you should edit a little of code and disable the loader image, but you should repeat this everytime the plugin is updated.

    If you wish, I can indicate what row you’ve to edit

    Regards,
    Dario

    Thread Starter Marc Bijl

    (@newoceans)

    Hi Dudo,

    Thnx for the explanation and help mate! For now, it’s allright, I’ll keep it like this. Perhaps in the future, I keep your suggestion in my mind…

    BTW
    Is there a chance the plugin will be (made) compatible in the future?

    Cheers,
    Marc

    Plugin Contributor dudo

    (@dudo)

    This is what happens

    This is yasr default javascript code:

    var loaderHtml = "<div id=\"loader-visitor-rating\" >  Loading, please wait <img src=http:\/\/<strong>YOURDOMAIN</strong>\/wp-content\/plugins\/yet-another-stars-rating-pro\/img\/\/loader.gif title=\"yasr-loader\" alt=\"yasr-loader\"><\/div>";

    This is the same code with lazyload

    var loaderHtml = "<div id=\"loader-visitor-rating\" >  Loading, please wait <img src="http://<strong>YOURDOMAIN</strong>/wp-content/plugins/lazy-load/images/1x1.trans.gif" data-lazy-src="http:\/\/<strong>YOURDOMAIN</strong>\/wp-content\/plugins\/yet-another-stars-rating-pro\/img\/\/loader.gif" title=\"yasr-loader\" alt=\"yasr-loader\"><noscript><img src="http:\/\/<strong>YOURDOMAIN</strong>\/wp-content\/plugins\/yet-another-stars-rating-pro\/img\/\/loader.gif" title=\"yasr-loader\" alt=\"yasr-loader\"></noscript><\/div>";

    It put it’s own image using the quotation marks (“) and breaking the default javascript code.

    I think that lazyload should first check what is used between quotation marks (“) or apostrophe (‘) and only then insert it’s own code.
    But it doesn’t do this check breaking all the code that use the quotation marks

    Thread Starter Marc Bijl

    (@newoceans)

    Ok, thnx for the explanation! 😉

    Plugin Contributor dudo

    (@dudo)

    Can you please try with the last version of yasr? (1.0.3)

    Thread Starter Marc Bijl

    (@newoceans)

    Hmm, seems to work like a charm now!

    Thnx very much, mate! 😉

    Can you please give it a try yourself here:
    http://www.my2pix.nl/fotografie/etalage/

    Just gave this one a 4-star rating, so please add yours too…

    Keep up the good work!

    Plugin Contributor dudo

    (@dudo)

    Ok, lazyload error is disapperead 🙂

    But I haven’t be able to vote: your page has a js error, I think caused from the caching plugin

    Thread Starter Marc Bijl

    (@newoceans)

    Hi Dudo, thnx for investigating!

    I’m using WP Rocket for caching, as far as I know one of the best…

    First I deactivated WP Rocket, and tried voting (through another browser, does that count?). Couldn’t.

    Then I activated WP Rocket again, emptied the cache, deactivated again, and tried voting (through another browser). Couldn’t either.

    Right now WP Rocket is still turned off. May be you can take another look?

    Thread Starter Marc Bijl

    (@newoceans)

    Hmm, sorry, guess I made a mistake. Right now, a few minutes I later, I am able to rate again (with WP Rocket deactivated). But there’s an important thing here to notice: if I’m understanding things right, Lazy Load is part of the WP Rocket caching plugin. So with WP Rocket deactivated, Lazy Load disappeared as a post setting too, and therefore YASR does it’s job right again!

    Makes it complicated to test things, right?

    Plugin Contributor dudo

    (@dudo)

    Yes it’s working here too 🙂

    Thread Starter Marc Bijl

    (@newoceans)

    Yes, because (I wrote) WP Rocket was deactivated.

    Can you please try again now: I activated WP Rocket again, and turned on Lazy Load for all four blog posts.

    Thnx!

    Plugin Contributor dudo

    (@dudo)

    Uhm, the lazy load issue doesn’t seems to appear anymore , but seems like wp-rocket is serving a kind of cached version of the page. But honestly I don’t know!

    Here https://wordpress.org/support/topic/compatibility-with-wp-rocket-2?replies=1#post-7255718 you can read a wp rocket author that give me the code to clean the post cache after a rating is give…but in your case, seems like impossible give a rating at all!

    Try to ask to wp-rocket developer if they can assist with a particolar settings to use with their plugin!

    Best,
    Dario

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Visitor votes don't get saved’ is closed to new replies.