We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6513
    • 28 Posts
    HI,
    I am using AnythingRating but cannot get it to submit to teh DB. I can vote but it returns "undefined" in the div id="vote".
    I’ve looked through all the code I can think of and have come up with no solutions. I really would like to use this snippet and any help is greatly appreciated smiley

    Thanx,
    Daniel
      • 5811
      • 1,717 Posts
      Could you check that the js file : assets/snippets/anythingRating/js/anythingRating.js is correctly loaded.

      Check that you have: <base href="http://your_domain.com/"></base> in the header of your template document.
        • 5507
        • 14 Posts
        Hello all,

        So..I’m having a lot of bots (google, yahoo, amazon etc...) rating stuff on my website. This is less than ideal..I read that adding rel=nofollow to the rating links would solve that problem (mostly), but I’m not sure how to add this to the PHP to make it happen. It seems like it should be around line 262 in anythingRating.class.inc.php ::
          $liPh = array(
                      '[+atr.onclick+]' => 'rate(\''.$i*100/$nbs.'\',\''.$grp.'\',\''.$id.'\');return false;',
        			  '[+atr.href+]' => $this->getUrl($curl),
                      '[+atr.title+]' => $label,
                      '[+atr.class+]' => 'stars'.$i,
                      '[+atr.lnk+]' => $i


        But this doesn’t seem to work..any ideas?

        Thanks!!
          • 20413
          • 2,877 Posts
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 5507
            • 14 Posts
            Oh..durrr. Missed that one. Thanks Mr. Haw!
              • 5644
              • 78 Posts
              How to block users from voting for another item per page if he already voted for some item on the page,
                • 5644
                • 78 Posts
                And Once more. [+atr.rank+] don’t work in template and i can’t show the rank of each item
                  • 22164
                  • 50 Posts
                  Installed easily then ran into the following message while trying a first vote:

                  Warning: Cookie names can not contain any of the following ’=,; \t\r\n\013\014’ in

                  /xxx/xxx/domains/xxx.xx/public_html/assets/snippets/anythingRating/classes/anythingRating.class.inc.php on line 450


                  When I try to show the top rated items I get this error:
                  AnythingRating. The table modx_ doesn\’t exist!

                  Apart from that I would love to see this develop into a solution like on a m a z o n.com where people can rate and leave comments/testimonials/reviews which are then sorted on the basis of the number of votes.

                  So my question is 3-fold, 1 and 2: how to fix the above errors?

                  Question number 3 is can this be built developed into a larger scale a m a z o n type of review/rating system.

                  I would be willing to fund it (budget permitting)

                    Happy to have left Back Pain | Sciatica behind.
                    • 5811
                    • 1,717 Posts
                    Installed easily then ran into the following message while trying a first vote:

                    Warning: Cookie names can not contain any of the following ’=,; \t\r\n\013\014’ in

                    /xxx/xxx/domains/xxx.xx/public_html/assets/snippets/anythingRating/classes/anythingRating.class.inc.php on line 450
                    This is probably due to the name of the label you choose for your group. Check the &atrGrp parameter
                        &atrGrp [Any combination of characters a-z, underscores, and numbers 0-9 | 'ratings']   (mandatory)
                            unique rating group name

                    When I try to show the top rated items I get this error:
                    AnythingRating. The table modx_ doesn\’t exist!
                    This is due to the above error. The modx_"atrGrp" hasn’t be set up.
                    Apart from that I would love to see this develop into a solution like on a m a z o n.com where people can rate and leave comments/testimonials/reviews which are then sorted on the basis of the number of votes.
                    I will send you an answer by PM about this.
                      • 22164
                      • 50 Posts
                      Thanks, seems to work now.

                      How can I change the text, or remove it altogether that says: 4.5/5 stars (5 votes) or just show part of it?
                        Happy to have left Back Pain | Sciatica behind.