We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Absolutely gorgeous!

    Was getting a silly error every time the frame loads, "Undefined variable: mod_lang", since I had installed it manually. Needed to set the configuration value.

    One quibble: when deleting a template, the message has "it’s" where it should have "its".

    $_sgl['confirm_6'] =' has been deleted from the database and its folder has been removed';
    
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 26435
      • 1,193 Posts
      Quote from: sottwell at Nov 15, 2006, 06:00 AM

      Silly error every time the frame loads, "Undefined variable: mod_lang".

      Susan, If you upgraded to the latest version of SkinGraft using a version of MRW before 1.8.5, then the MRW did not install the module parameters. (I fixed that in 1.8.5).

      under manage modules -> SkinGraft -> Configuration Tab ->
      paste this:
      &mod_lang=Language;string;english


      later

      -sD-

      *** edit ***
      I guess you already figured that out by your edit above. grin
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
      • Yes, I figured that out.

        I’ve also solved your problem of deleting the entire templates folder. After getting bitten by it!

        Line 318 of sg.inc.php:
        	if($efolder == '') { return $_sgl['err_nof']; }
        

        Not exactly sure what that ’err_nof’ should be...but at least it doesn’t do any deleting.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 26435
          • 1,193 Posts
          Quote from: sottwell at Nov 15, 2006, 06:37 AM

          Yes, I figured that out.

          I’ve also solved your problem of deleting the entire templates folder. After getting bitten by it!

          Line 318 of sg.inc.php:
          	if($efolder == '') { return $_sgl['err_nof']; }
          

          Not exactly sure what that ’err_nof’ should be...but at least it doesn’t do any deleting.

          nice catch Susan, thanks for that code. I will get that into the script. $_sgl is the SkinGraft Language array. err_nof is the no folder error.

          -sD-
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
          • Yes, but all it does is output "PLEASE_DEFINE" (or whatever, I forget exactly now). That’s a really gorgeous module template, by the way.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 26435
              • 1,193 Posts
              Quote from: sottwell at Nov 15, 2006, 06:22 PM

              Yes, but all it does is output "PLEASE_DEFINE" (or whatever, I forget exactly now). That’s a really gorgeous module template, by the way.

              yeah, I put the PLEASE_DEFINE in there so it would try to delete the folder called "PLEASE_DEFINE’, it wouldn’t find it, and would spit out an error, but at least it would not delete the entire templates folder.

              When I was writing this module, one of the early tests deleted the entire assets folder. thankfully it was just a base install I use for writing snippets and modules, and I had a backup, but it appears SkinGraft needs a bit more tweeking yet.

              The template! thanks Susan. it takes a lot of tones from the MODxLight manager theme. I actually used one of the MODxLight images for the background of the CSS "buttons". I rather like it too.

              -sD-
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
              • Yeah, I lost my "templates" folder. Fortunately they were all in the downloads section so I could just upload them all again. Now I make sure to back up the whole folder every time I add a template! Not fun when you are getting close to 20 templates!
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 26435
                  • 1,193 Posts
                  Quote from: sottwell at Nov 15, 2006, 07:31 PM

                  [...] Not fun when you are getting close to 20 templates!

                  hmmm. maybe I should think about adding pagination.

                  -sD-
                    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                    All of the above... in no specific order.


                    I send pointless little messages
                  • Well, I don’t suppose all that many people will be running a template demo site! I have over 40 templates in my local modx templates folder, and will add 17 more when I get all the multiflex templates done!
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 20794
                      • 2 Posts
                      I am getting this error when trying to install SkinGraft:

                      Evaluation of your resource.
                      This does not appear to be a valid MODx Resource Wizard package

                      I saw a post related to this but no one answered. Am I doing something wrong?

                      Thanks