We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31227
    • 198 Posts
    Guys, I am having problems with css star rating system, the documentation could really be better. I created the snippet, and called it as
    [[star_raiting? &docID=[+id+] &useSession=1 &onevote=1]]
    [+starRating+]
    [+totalVotes+]

    I made the doc not cachable. I havent created the TV cause I have no clue what to create there.. As i mentioned before, documentation is not very good.
    Also... The search on the forum is terrible.. Seriously whatever I type in the search is too specific.. Guess thats what the google search is for, but it doesnt look like it searches the forums.
      Pure MODx sites
      Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
      • 10487 MODX Staff
      • 1,535 Posts
      Garry Nutting Reply #2, 20 years ago
      It would really help if you actually stated what the problem you are having is ...
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 31227
        • 198 Posts
        ooops... sorry missed that out grin
        The snippet doesn’t load, in the source its just blank space.
          Pure MODx sites
          Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
          • 25663 MODX Staff
          • 12,272 Posts
          Did you misspell the snippet name in your snippets too?

          [[star_raiting...
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 31227
            • 198 Posts
            the snippets name is star_rating
              Pure MODx sites
              Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
              • 7923
              • 4,213 Posts
              so you have mispelled in your snippet call, fix that and it will run.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 31227
                • 198 Posts
                Ok, done that. Now this is what I get "Unable to display rating"
                  Pure MODx sites
                  Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
                  • 10487 MODX Staff
                  • 1,535 Posts
                  Garry Nutting Reply #8, 20 years ago
                  Well, that’s because you haven’t created the TV (looking back at your first post) - create a TV, call it star_rating and assign it to the templates on your site. (If you use the default name of star_rating, you won’t have to amend the snippet call)

                  Also, I don’t think you need: &docID=[+id+]

                  If you’re calling this on the page that needs voting on, it automatically assigns the page ID for you. (and unless you’re using this in conjunction with something like the Ditto snippet, then [+id+] won’t actually be replaced with the page ID)
                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 31227
                    • 198 Posts
                    great, thanks a lot! laugh
                      Pure MODx sites
                      Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
                      • 35268
                      • 1 Posts
                      Hello,

                      First of all thanks a lot for the wonderful snippet.

                      But i have a problem while i call this on each different document it’s display same vote count on each document i also give id hard-code but it does not working for me...can you please help me out so i call it on different document. sad

                      Thanks in Advance!!!