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

    Thats great news smiley Obviously this will aid in improving the system a lot due to stopping multiple votes in any way smiley

    Regards,

    Tom.
      • 36416
      • 589 Posts
      Quote from: redstormj at Feb 27, 2008, 12:35 AM

      I found this really nice rating script and I though it would be awesome if we could have this as a modx snippet sometime:
      http://widgets.rabidlabs.net/ratings/v1.2/

      Doesn’t work in Internet Explorer 6 for me...
        • 24731 ☆ A M B ☆
        • 211 Posts
        Quote from: Eol at Feb 28, 2008, 03:04 AM

        Quote from: redstormj at Feb 27, 2008, 12:35 AM

        I found this really nice rating script and I though it would be awesome if we could have this as a modx snippet sometime:
        http://widgets.rabidlabs.net/ratings/v1.2/

        Doesn’t work in Internet Explorer 6 for me...

        You are right, I just noticed it doesn’t work on IE sad that’s a shame, such a nice looking script.

        Jose
          • 11041
          • 82 Posts
          Very nice looking script that. It does work in IE7 for me, but it is annoying as it causes an iframe to appear around the rating options themselves...
            • 19326
            • 1 Posts
            Quote from: goldeagle at Mar 02, 2008, 12:36 AM

            Very nice looking script that. It does work in IE7 for me, but it is annoying as it causes an iframe to appear around the rating options themselves...

            Actually, the IFrame is just for displaying the demo of the widget (to avoid conflicts between the site JavaScript and each widget/version’s JavaScript).

            If you view the standalone HTML, you’ll see that there aren’t any IFrames as part of the wiget’s standard use.
              • 2091
              • 44 Posts
              My client has signed up for this Hacker Safe service and they are saying that the star_rating snippet is vulnerable to mysql injections. I fixed this in other pieces of code on the site, but I can’t figure out how to do it with the star_rating snippet. Does anyone have any experience with this problem?

              Thanks.
                • 10487 MODX Staff
                • 1,535 Posts
                @ArkWeb: If you could PM me a bit more info on what the Hacker Safe service are saying, I’ll be happy to look into it.
                  Garry Nutting
                  Senior Developer
                  MODX, LLC

                  Email: [email protected]
                  Twitter: @garryn
                  Web: modx.com
                  • 5529
                  • 70 Posts
                  Quote from: garryn at Jul 07, 2006, 03:49 AM

                  No need ... removing the alias value will allow it to be used for all combinations of friendly url settings. smiley

                  So, I apparently am not getting how to implement this snippet with SEO friendly URLs. If my call looks like this, what is wrong with it:

                  [!star_rating? &docID=[+id+] &useSession=1 &onevote=1 !]

                  When I hit my page, it says ’Unable to display rating’

                  I’m guessing it’s because my docID is not using an ID but a SEO friendly URL. If so, how can I call the snippet and give it the correct parameters at the same time.

                  CML

                  PS Sorry if this is a dumb question but I’m just getting my head around things here.
                    • 10487 MODX Staff
                    • 1,535 Posts
                    If your star rating is for the same page as it’s being displayed on, then you won’t need to pass the &docID - the snippet will automatically default to the current page ID if &docID isn’t passed as a parameter. Also, make sure you use backticks, that could be a possible of your problem as well.

                    Try using:
                    [!star_rating? &useSession=`1` &onevote=`1`!]
                      Garry Nutting
                      Senior Developer
                      MODX, LLC

                      Email: [email protected]
                      Twitter: @garryn
                      Web: modx.com
                      • 24731 ☆ A M B ☆
                      • 211 Posts
                      Quote from: cmlawson at Mar 21, 2008, 08:56 PM

                      Quote from: garryn at Jul 07, 2006, 03:49 AM

                      No need ... removing the alias value will allow it to be used for all combinations of friendly url settings. smiley

                      So, I apparently am not getting how to implement this snippet with SEO friendly URLs. If my call looks like this, what is wrong with it:

                      [!star_rating? &docID=[+id+] &useSession=1 &onevote=1 !]

                      When I hit my page, it says ’Unable to display rating’

                      I’m guessing it’s because my docID is not using an ID but a SEO friendly URL. If so, how can I call the snippet and give it the correct parameters at the same time.

                      CML

                      PS Sorry if this is a dumb question but I’m just getting my head around things here.

                      On a side note, [+id+] is a placeholder used by ditto, if this is not within a ditto call, I am not sure if it would work or not. Try [*id*] which is the global id variable.

                      Jose R. Lopez