We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2912
    • 315 Posts
    This may seem like an odd question or rather something that is just dumb but I’ve been looking at the ratings posted and there seems to be a lot of votes that are scoring 3. I haven’t been too bothered with it myself but a couple of people have commented on it.

    Do any of you think that something could be a little off with the way the ratings work on my site?
    http://il2mdb.montydan.com/
      BBloke
      • 477
      • 19 Posts
      Hello,

      I’ve a problem with CSS Star Rating and AqueousLightX template. Stars display is wrong. embarrassed

      Here is my css file: http://forum.programypc.pl/files/1.css

      PS. Sorry for my poor english.
        • 2912
        • 315 Posts
        Have you got the link to the starRating css file in your template headefer:

        <link href="assets/snippets/star_rating/star.css" type="text/css" rel="stylesheet">
        
          BBloke
          • 477
          • 19 Posts
          @BBloke

          Yes, I have. Stars doesn’t work only in AqueousLightX template. sad

          PS. Your site looks very nice!
            • 2912
            • 315 Posts
            I’ve had some trouble with the stars and my chosen templates. I found using FireFox and FireBug (FF Addon) a great way to figure out whats happening in the CSS styles to be able to make them work and play nice.

            If you have a link to your exmaple it may help others help you.
              BBloke
              • 477
              • 19 Posts
              @BBloke

              Thanks for reply!
              This is my website: http://www.pcpedia.nazwa.pl/
                • 477
                • 19 Posts
                I try your css style: star.css and now work much better smiley
                  • 2912
                  • 315 Posts
                  Cool. I was having a look and found there were a few things inherited from your content.

                  Some well placed !important in the CSS cleared up some issues. I’m glad its all working.
                    BBloke
                    • 25547
                    • 61 Posts
                    When I try to vote, it just goes to the home page and nothing else happens. Any ideas?
                      • 4385
                      • 372 Posts
                      Getting the highest rated documents... using Ditto

                      I tried call ditto using this...
                      [!Ditto? &parents=`3` &hideFolders=`1` &depth=`2` &sortBy=`star_rating`  &display=`5`!]


                      But that gives me the top 5 with the "most" points, not the top rated. (5:1, is rated higher than 6:2 and yet 6.2 will sort higher)

                      I tried creating a TV with the @EVAL’d score, but ditto doesn’t like that. So I modified the snippet.

                      I shifted all $splitVals[] up one ($splitVals[0] = $splitVals[1] , $splitVals[1] = $splitVals[2])

                      126     $newRating = round(($newCount / $newVoteNumber)*100);
                      127
                      128     @ setTemplateVar("$newRating:$newCount:$newVoteNumber", $pid, $tvName);
                      


                      Now when I sort by "star_rating" it uses the first number and ignores anything after the : delimiter.

                      Any problems with this, Garry?



                        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.