We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2912
    • 315 Posts
    There is a snippet that will help you. It’s called HighestRated. I had exactly the same problem last week.

    Great little snippet and worked a treat too.
      BBloke
      • 4385
      • 372 Posts
      BBloke, thanks for the heads up.

      I always try to solve everything with Ditto first. Is there a performance hit with HighestRated?

        DropboxUploader -- Upload files to a Dropbox account.
        DIG -- Dynamic Image Generator
        gus -- Google URL Shortener
        makeQR -- Uses google chart api to make QR codes.
        MODxTweeter -- Update your twitter status on publish.
        • 2912
        • 315 Posts
        Not that I’ve noticed. I have it running on a 130+ parent folder with a few TV’s and it’s seems ok but theres no need for speed on my site. I had ditto working for a while but it was strange to see more 3’s at the top rather than any 4’s or 5’s.

        One thing I did was change the math to allow for 2 decimal places to get a more accurate list.
          BBloke
          • 25547
          • 61 Posts
          Quote from: Ross1234 at Apr 20, 2008, 03:29 PM

          When I try to vote, it just goes to the home page and nothing else happens. Any ideas?

          I fixed it now
            • 2912
            • 315 Posts
            No ideas as such apart from having a look at what your browser says the ’link’ for the vote is doing. My snippet call is:

            [!star_rating? &tvName=`MovieStarRating` &onevote=`true` &starTpl=`MovieStarRatingTPL`!]
            


            I guess check that you have the TV created and that its assigned to your desired template and declare it in the snippet parameters (mine is MovieStarRating).

            If I hover my mouse over a voting star FIreFox tells me its going to go to: http://mysite.com/mypage?starvote=3&pid=(docid).
            When you click you cast your vote and the page you voted on should re-appear. If mypage isn’t the same as the page you are on then that could be where the problem lies.

            I can’t think of anything else. Sorry. I’ve not had that problem.
              BBloke
              • 10487 MODX Staff
              • 1,535 Posts
              Also, check that you have called the snippet uncached - [!...!] instead of [[..]]

              If you still have problems, let me know and I’ll have a more in-depth look for you.
                Garry Nutting
                Senior Developer
                MODX, LLC

                Email: [email protected]
                Twitter: @garryn
                Web: modx.com
                • 5529
                • 70 Posts
                Guys...I’m having a hard time getting this thing to display at all.

                I know it works and it’s a bad ass little script but it seems like I’m overlooking something really simple and I can’t for the life of me see it?!

                Here’s my code:

                [!star_rating? &docID=[+id+] &useSession=1 &onevote=1 !]


                Here’s what I get:

                Unable to display rating
                http://skinsbyme.com/skins/ghSkin-Chinese-Dragon.htm


                Can anyone help me get this straightened out?

                Thanks in advance! Love this thing. Would love to use it!
                  • 36592
                  • 970 Posts
                  How about removing the &docID parameter ?
                    • 5529
                    • 70 Posts

                    Thanks so much! It displays just fine now.

                    Should I assume that it works correctly too? Or, is there any way to test this?

                    Quote from: tkfm at Jun 12, 2008, 04:57 AM

                    How about removing the &docID parameter ?
                      • 5529
                      • 70 Posts
                      Actually, when you click to vote it goes to an error page.

                      Is there a debug mode or anything that can help me figure out what’s going on?