We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5340
    • 1,624 Posts
    Hi,

    I am trying to implement the star rating like in modxcms.com site.

    The system works only when you are viewing the whole article but when I try to implement it in the list of bolgs(I want to use this for blogs) the stars do not show correctly. I even tried the solution given in a post below
    change line 67 to
    setcookie(’cssStarRating’ . $pid, ’novote’, time() + $ovtime);

    What I did:
    Part of nl_blog chunk
    <h3><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h3>  [[star_rating? &docid=`[+id+]` &viewOnly=`true`]]


    I think the docid does not work as it should.


    Also I would like to reset the voting of all the blogs to 0 and I found this and I did not understand it:
    To null a rating, set the TV you are using for the star rating in the document to: 0:0

    Thx
      • 10182
      • 3 Posts
      You just need to set the tv called star_rating to zero. Thats all.