We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9053
    • 18 Posts
    Hi yurican.
    I’m not sure, but maybe such lags are because of poor JS code used. I’ll try to look at mootools this week, and post updated code here.
    I’ve tested ajaxed star rating on my local server in FF2. 1-2 sec lag is noticeable, but no freezing.

    And by the way, XHTML above is not valid. I really need to remade this..
      "Sorry for my english"
      • 27889
      • 415 Posts
      I have a false url when I hit a star :
      http://dp-site.fr/finaliser-le-projet.html?starvote=5&pid=145
      but my page is :
      http://dp-site.fr/accueil/finaliser-le-projet.html?starvote=5&pid=145
      I have changed all the links lines in the snippet :
      <li><a href=’" . $modx->makeUrl($modx->documentObject[’id’], $modx->documentObect[’alias’], ’starvote=1&amp;pid=’ . $docID) . "’ title=’" . $_lang[’one_star’] . "’ class=’one-star’>1</a></li>
      with:
      <li><a href=’" . $modx->makeUrl($modx->documentObject[’id’], ’’, ’starvote=1&amp;pid=’ . $docID) . "’ title=’" . $_lang[’one_star’] . "’ class=’one-star’>1</a></li>

      I use FURL with alias path.
        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
        • 22586
        • 74 Posts
        I am using this on ModX 0.9.6... does it work under this version?

        Just checking before I go in deep to find out what is malfunctioning. I can call [!star_rating!] , no problem. But if I use useCookie or useSession, I get zero output. I am logged in as an admin when I do this.
          • 10666
          • 68 Posts
          @Paintbox.Are you by any chance browsing the page under Linux when that problem appears ?
            • 22586
            • 74 Posts
            No, I am using it with XAMPP, on and from a local system (test environment)

            I seem to be using the correct attributes. I have both tried using it on a template and in a document, same behaviour. I’ve tried the official v1 and the v2_beta posted earlier.
              • 10666
              • 68 Posts
              I have the same problem as you, but from what I’ve seen, there seems to be an issue with cookie handling with Linux clients. A somewhat related issue has occured when I tried making a script that needed cookies and ungziping and unserializing them lead to the same problems as the ones with these script. Also, I should note that when browsing the site from Windows, the problem does not occur to me. Weird thing...
                • 22586
                • 74 Posts
                Well I hope to get into it sometime this week, will report here if I find out anything new.
                  • 14796
                  • 59 Posts
                  So has anyone been able to get this to work for modx 96 with the cookies on?
                    • 16194
                    • 103 Posts
                    How can I display the average rating as a number below the stars?
                      Impossible is nothing - with ModX
                      • 19739
                      • 1 Posts
                      im a noob can someone write a detailed install guide including how to call the star rating in the template??