We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23050
    • 1,842 Posts
    Hi albert,

    I guess you should look at css file in order to replace stars.
      • 7923
      • 4,213 Posts
      the ul & li definitions in your css mess up the star rating css


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 33992 ☆ A M B ☆
        • 455 Posts
        i solved it by adding "top:-1px", "left: -3px",... and changing stars.
        but it still has a small problem with FireFox2 yet that it is not important.

        anyway, Thank you for helping, guiding, thinking, typing, timing, looking, reading and etc ing . grin

        Regards
        AHHP
          God loves me. 【ツ】


          MODX.ir (Persian Support)

          Boplo.ir/modx/ (Persian)
          • 24393
          • 83 Posts
          Hi,

          I just upgraded to Ditto 2.0.2 and got the following error:

          « MODx Parse Error »
          
          MODx encountered the following error while attempting to parse the requested resource:
          « PHP Parse Error »
           
          PHP error debug
            Error:	array_key_exists(): The second argument should be either an array or an object	 
            Error type/ Nr.:	Warning - 2	 
            File:	/home/html/assets/snippets/star_rating/rating.class.php	 
            Line:	297	 
            Line 297 source:	 if (array_key_exists($this->passedId, $cArray)) {	 
           
          Parser timing
            MySQL:	0.0179 s	(35 Requests)
            PHP:	0.0951 s	 
            Total:	0.1130 s
            stevesunderland.com
            GRAPHICS | INTERACTIVE | MARKETING
            xhtml + ajax + seo websites powered by modx
            • 30277
            • 75 Posts
            Hello
            Hope this great snippet still supported

            I did ( try to ) follow the installation structure but when i click on a star for test, it redirects me to my main page without count my vote.I am on rc3 with star rating 1.0 .

              • 10487 MODX Staff
              • 1,535 Posts
              Yes, it’s still supported smiley - I’ve been pretty busy recently with work and had to take quite a big chunk of time away from MODx to catch up with everything. I’m back now and will be working on prepping the previously released beta of the CSS Star Rating v2 for a public release over the course of next week.

              On your problem, you will need to call the snippet uncached, like: [!star_rating!]

              Try that for starters, and then let me know if you have any problems.

              Thanks,
              Garry
                Garry Nutting
                Senior Developer
                MODX, LLC

                Email: [email protected]
                Twitter: @garryn
                Web: modx.com
                • 30277
                • 75 Posts
                Hello garryn
                Sorry for askin if its still supported but i saw an ananswered question for 1 month
                Thank you for beeing back and for this great stuff

                I changed [[star_rating]] with [!star_rating!] but it still same
                When i created this test doc i chosed not Cacheable which i m not sure abut the setting but it didnt work with Cacheable either
                I probably missed a point again :’(
                As you can see from the screenshot i didnt put any word in to Template Variables/ star_rating box is it why it dont work ?

                Thank you for reply
                  • 10487 MODX Staff
                  • 1,535 Posts
                  Okay, first thing - move that <base /> tag into the <head></head> section of your template. That could be causing problems.

                  If its redirecting to the homepage then I’m guessing it’s throwing a 404 or an error possibly. Other than that, looks like you have everything in place - what MODx version are you running? And, do you have friendly URLs off on on?
                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 30277
                    • 75 Posts
                    I did move css link to my minimal template but nothing chanced , i dont have a 404., i use 1.0 of ure script.
                    Iam on rc 3 with friendly urls on + i use http://modxcms.com/SEO-Strict-URLs-1335.html + sitemap only

                    Thanks for replying
                      • 10487 MODX Staff
                      • 1,535 Posts
                      Hi tom41, can you please try the attached file and let me know if that fixes the issue. Update the snippet code with that in the attached file.
                        Garry Nutting
                        Senior Developer
                        MODX, LLC

                        Email: [email protected]
                        Twitter: @garryn
                        Web: modx.com