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

    (@dudo)

    Hi,
    it works, (here the demo) have you deleted your browser cache?

    Thread Starter Raul Illana

    (@raulillana)

    Sure. The first check is always that.

    For reference, we’re trying to print the shortcode into a google maps infowindow, using a PHP function to print the JS code.

    Here’s the output of the shortcode:

    <div id="yasr_visitor_votes_158385" class="yasr-visitor-votes"><div class="rateit bigstars" id="yasr_rateit_visitor_votes_158385" data-rateit-starwidth="32" data-rateit-starheight="32" data-rateit-value="0" data-rateit-step="1" data-rateit-resetable="false" data-rateit-readonly="true"></div></div>

    Plugin Contributor dudo

    (@dudo)

    For what I see here, seems like you need to call the rateIt jquery plugin…

    jQuery('.rateit').rateit();

    This is only a thought, I can’t help if I don’t see the code, and please remember that yasr was made to work only on post or pages…so this is not a bug

    Thread Starter Raul Illana

    (@raulillana)

    Well, let me guess it was intended to work with the loop and around posts and pages, and not only in posts and pages.
    Also, custom post types are treated as posts, so it should work too.

    We’re listing posts in a term page but inside a loop, so it should work correctly just like in any archive page because archive pages use the loop to show posts data, and even it occurs in this same page in the other loop.
    We loop 2 times to show the term posts in both ways, text and infowindows in the map.

    When i rate some post on the list, if the infowindow is open you can see the stars appearing, but with wrong rating. Also, with another post on a rating update you can see the info loaded into the infowindow. Strange behaviours. :\

    BTW the code you provided does not solve the problem, either if included inside custom JS file or at the end of the gMap script, but remember the code is loaded, because there’s other list of posts showing the stars and able to rate.

    I would provide a URL but it’s in a private machine while under development. If you want access drop me a line over gtalk or mail and i show you. ??

    Plugin Contributor dudo

    (@dudo)

    Just a question: in the settings, did you put “yes” on this question: Show “Visitor Votes” in Archive Page?

    Thread Starter Raul Illana

    (@raulillana)

    Yes. :_)

    Plugin Contributor dudo

    (@dudo)

    Ok, yes yasr should work if there is a loop, not only on works on page obviously, what I meant that it was build to work on post, page, archive, etc, but it wasn’t intended to be included in other places (hovewer, it’s still work 90% of the cases)

    I would provide a URL but it’s in a private machine while under development. If you want access drop me a line over gtalk or mail and i show you. ??

    sorry but I can’t give this kind on support anymore…not for free ??

    Thread Starter Raul Illana

    (@raulillana)

    Don’t worry, i just wanted to help you debug. ??

    So you can’t show the visitor votes and the visitor votes read only shortcodes in the same page?

    Plugin Contributor dudo

    (@dudo)

    this is possible of course, (just like in the demo site) but if you rate on visitor votes, the read only one will no update until you refersh your page

    Thread Starter Raul Illana

    (@raulillana)

    Well, it’s not working in my scenario. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘yasr_visitor_votes_readonly not working’ is closed to new replies.