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

    I don’t know why but inside the anythingRating.css file for selectors : .star-rating a, .star-rating .current-rating replace left:0; by left:-50px;
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      Is it possible to use this snippet to change TV values from the font end? I have drop downs and checkboxes on the front end that users can change but it would be nice to do it with out having to submit a form to change the table value.
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 5811
        • 1,717 Posts
        Is it possible to use this snippet to change TV values from the font end?
        No, this is not the goal of this snippet. Just increase the rating value about something
          • 22840
          • 1,572 Posts
          Could really do with some help here as I can’t get the rating system to show, never mind work lol.

          Basicley I am using Ditto to publish advertisements for pub’s and jot for people to comment on the pub ect and want all users to be able to rate them.

          I have the following in my template:

            [!AnythingRating? &define=`1` &atrGrp=`pubs`!]


          Then in the document I have:

          [[AnythingRating? &define=`1` &atrGrp=`pubs` &nbStars=`5` &itemId=`[*id*]`]]


          I don’t really understand the instructions for installing this and am struggling a bit, so If anyone can help that would be great.

          Also would it be possible to have the calls just in the page template and not have to add them to every page as documents will be getting moved back and forth from the paid advert cat to the free cat displaying diffrent info.

          Thanks for any help offered.
            • 22840
            • 1,572 Posts
            Right, im getting somewhere.

            If I have this in my page template:
             [!AnythingRating? &define=`1` &atrGrp=`pubs`!]


            And this in the page:

            [!AnythingRating? &atrGrp=`pubs` &nbStars=`5` &itemId=`[*id*]`!]


            I can see everything ok ect, however when I vote It just comes up "undifined" after the ajax load and no vote is added.
              • 22840
              • 1,572 Posts
              Tis ok,

              Got it all working now grin
                • 12836
                • 2 Posts
                Alright. I’m a noob when it comes to MODx so be gentle. I’m trying to get the AnythingRating to work properly on my test site on MAMP. I followed the basic set up in the instructions and for some odd reason FF3 flickers like crazy when I scroll over any of the stars (if I scroll over the 3rd star, for example, the fourth begins to flicker repeatedly). When I try out the same page in Safari there seems to be less flickering (but it is still there) AND the click of the star is not consistent. The only star I click that seems to consistently work the first time is the fifth (oddly). I visited the main AnythingRating test page and neither of these browsers seemed to have any issues with the rating on that site so obviously there is something wrong on my end.

                At the top of the content section I placed:
                [!AnythingRating? &define=`1` &atrGrp=`grpName`!]
                Leaving all the defaults just to test it out...

                and then for the specific rated item
                <div id="movie1">
                This is being rated.
                </div>
                [!AnythingRating? &atrGrp=`grpName` &atrId=`movie1`!]
                The end goal will be to allow users to vote on videos but I can’t even get past the basics.

                Any ideas? I really appreciate help anyone can offer.

                  • 12836
                  • 2 Posts
                  Update: I removed the css file left over in the template from when I was testing the CSS-Star Rating snippet and that has stopped the flickering issue. However, in both browsers I’ve tested in so far (Safari and FF3) it seems there is a half of a star added to whatever I vote. I click two stars and it shows two and a half and so on.

                  Also, in FF3 there is an odd dashed line going across half of the stars.

                  Any takers as why this might be? I haven’t added any other css or js files besides whatever comes with a default MODx installation so there isn’t much to conflict with here.
                    • 5811
                    • 1,717 Posts
                    @immersusmedia

                    it seems there is a half of a star added to whatever I vote. I click two stars and it shows two and a half and so on.
                    You are right

                    I haven’t worked on anythingRating since few months and I discover this issue yesterday.
                    Yet, this issue has been already described (and corrected) by Vait. See : http://modxcms.com/forums/index.php/topic,29091.msg180366.html#msg180366

                    I will take in the following days, some time to correct this issue , but first I need to dive again into the code wink

                    @Vait: Do you remenber how you have fixed this issue ?
                      • 15113
                      • 5 Posts
                      Would be nice to have a fix of wrong woting and displaying under IE. But there is another thing: if i upload a saved database, all votings are on zero. whats up there?! can anyone help?

                      thx