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
    This is an auto-generated support/comment thread for AnythingRating.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    An Ajax dynamic star rating widget for MODx
      • 7231
      • 4,205 Posts
      This is great, nice feature set. I have plans to use this soon. Thanks grin
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 33337
        • 3,975 Posts
        Zaigham (aka zi) Reply #3, 18 years ago
        Looks very nice, one heck of a detailed docs! smiley

        Thanks for sharing it.
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 36926
          • 701 Posts
          Great snippet, thanks. But one problem i have at the moment is i’ve allowed multiVotes but i can’t seem to vote more than once when using FF3. This is fine for safari. Anyone else have the same problem. The stars are shaded in FF3 once i’ve vote. I’m using a Mac. Also i saw a post about a problem with ie6 anyone know if this now works as not been able to test as i don’t have ie.

          Thanks

          Ben
            • 16955
            • 59 Posts
            Sorry, my English is bad...

            I make TopRated for articles on my site.
            Snippet call:
            [!anythingRating? &getTopRated=`1` &atrGrp=`articles` &topTable=`site_content` &topIdField=`id` &topTitleField=`longtitle` &topTableField=`site_content` &topTitle=`pagetitle` &_topTpl=`@FILE:assets/snippets/anythingRating/templates/topRated.tpl.html` &topLinkField=`alias`!]


            Site have friendly URL:
            -Folder1
            --Part1
            ---Articles1
            ---Articles2
            -Folder2
            --Part2
            ---Articles3
            ---Articles4
            --Part3
            ---Articles5
            ....
            Link to Articles4: http://sitename.com/Folder2/Part2/Articles4.htm


            Problem: TopRated must have a link on arcticles (for Articles4: http://sitename.com/Folder2/Part2/Articles4.htm). But I have link http://sitename.com/Articles4.htm

            If I make &topLinkField=`[+id+]` or &topLinkField=`[~id~]` or &topLinkField=`[*id*]` snippet is not worked.


            Please, help me. Thanks.
              • 31227
              • 198 Posts
              <?php
              /*
              russian-utf8.inc.php - for AnythingRating 1.0
              Description: Language strings for AnythingRating
              */
              $_lang['atr_intro'] = 'Rated:';
              $_lang['atr_onestar_outof'] = '%s из %n звезд';
              $_lang['atr_stars_outof'] = '%s из %n звезд';
              $_lang['atr_thanks_voting'] = 'Спасибо за голосование!';
              $_lang['atr_lbstars'] = 'звезд';
              $_lang['atr_lbvote']  = 'голос';
              $_lang['atr_lbvotes'] = 'голосов';
              $_lang['atr_not_registered'] = 'Вы должны быть зарегистрированы!';
              $_lang['atr_already_voted'] = 'Вы уже голосовали!';
              $_lang['atr_enddate'] = 'Голосование закрыто!';
              $_lang['atr_more_less'] = 'Вы не можете поставить оценку более %n или менее %s';
              $_lang['atr_bestlabel'] = 'Лучший по рейтингу %s';
              $_lang['atr_worstlabel'] = 'Худший по рейтинг  %s';
              $_lang['atr_hdrank'] = 'Позиция';
              $_lang['atr_hdscore'] = 'Оценка';
              $_lang['atr_hdnbvotes'] = 'Кол. голосов';
              $_lang['atr_hdtitle'] = 'Название';
              $_lang['atr_hddescr'] = 'Описание';
              $_lang['atr_hdimage'] = '';
              ?>


              It isnt perfect but good enough:)
                Pure MODx sites
                Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
                • 5811
                • 1,717 Posts
                Hi Vait, which charset do you use ? UTF-8 or an other charset ?
                  • 31227
                  • 198 Posts
                  ah crap. i used utf
                  here it is again (attached)
                  also i think there is a problem with the script: the total is 2.5/5 stars 4 votes but the image is 3 and a bit stars.
                  http://www.viriko.ru/articles-ru-mistakes-when-buying-property-in-cyprus.html
                  another example
                  http://www.viriko.ru/articles-ru-amount-of-property-purchase-in-Cyprus-under-law.html
                  3/5 stars, 2 votes. shows 4 stars
                  check it out please

                  also, I would suggest that the following is inserted into robots.txt file as from what I saw (via phpadmin + traceroute) search engines can vote too!:) And the way they vote is they star with the link that comes up first (1 star) and can’t vote anymore as their ip is blocked, this leads to false ratings.
                  Put this into your robots.txt:
                  Disallow: /*.html?q=*&atrGrp=*

                  all my items end in html, you can ofcourse just put *?q=* and block everything
                    Pure MODx sites
                    Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
                    • 1091
                    • 3 Posts
                    Hi! Thanks for sharing this cool snippet! It’s great! But I’m having a little trouble. When I list the rated items in a page, the position in which stars begin to show seems to be moved to the center. So if one of my items is rated with one of five stars, the star that gets illuminated is the center one. Seems like a css issue. What can I be doing wrong?

                    Here’s how I call the snippet in the listing page.
                    [[AnythingRating? &atrGrp=`tutores` &define=`1`]]
                    [!Ditto? &parents=`90` &display=`all` &tagData=`TutorCursos` &tagDelimiter=`</li><li>` &tpl=`listadoTutores`!]
                    


                    And in the template for each one of the items

                    [[AnythingRating? &atrGrp=`tutores` &atrId=`[+id+]` &init=`TutorRating:[+id+]`]]


                    Here’s the actual page

                    http://www.aeuvg.org/index.php?id=237&tags=ecuaciones+diferenciales

                    And a screenshot, so you can get an idea how it look like.

                    http://www.iguanaweb.org/alhvi/files/starts.gif


                    Thanks in advance,

                    Alhvi

                      • 15113
                      • 5 Posts
                      Yea, it seems to be a problem only under IEs. FF and other browsers working fine. Anyone an idea how to fix it?!