We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26435
    • 1,193 Posts
    This is a module I have been working on.
    it is called SkinGraft.
    it is a template manager for MODx.
    see, you can graft a new skin onto your site.

    Install instructions included, as well as a few SkinGraft-compatible templates.

    ATM, It does not install extra chunks or TVs so templates that have a bunch of chunks and TVs will not be easily upgraded to SkinGraft packages.

    A SkinGraft package is a zip file that extracts to a folder which includes a file with the html, a preview image(400x300), the associated style sheets and images, and "skin.php", a file that the template author fills out with descriptions, titles, and locations of files. unzip one of the included packages to see the structure.

    once the module is installed, a user can run the SkinGraft module to edit, rename, set default, etc all existing templates, BUT ALSO, select a SkinGraft package (template.SkinGraft.package.zip) to install. during the installation, you can edit the HTML, name, etc... and set the package to be the new default template for docs, change all docs to use this template, change all docs that use the old template to the new template, or just install it.

    PLEASE!!! BACK UP YOUR "assets/templates" FOLDER BEFORE USING THIS! just in case wink.
    if a template’s folder says "assets/templates//" do not delete this template from within SkinGraft. it will remove your templates folder! yikes... sorry about that... working on this one!

    check it out. this is VERY beta, but I am looking for feedback (but mostly looking for help wink ).

    later

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


      I send pointless little messages
      • 6726
      • 7,075 Posts
      Installable templates ? Now is a feature I didn’t think we’d get this soon, it will make a lot of people very happy (given the number of request we get about that !). Also, a few templates in the package, that’s great too smiley

      I’ll give this a go sometime next week and report !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 23109
        • 25 Posts
        hi Scotty,

        i get an Error "Could not select database"

        MODx version 0.9.5 beta
        Version codename rev 1392
        Apache/2.0.49
        PHP/5.0.4
        MySQL 4.0.18

        regards,
        Peter
          Grafik & Grossformatdruck: www.druck-schmie.de
          Bildergalerie: www.bilder-schmie.de
          • 26435
          • 1,193 Posts
          Quote from: PeterH at Oct 11, 2006, 06:59 AM

          hi Scotty,

          i get an Error "Could not select database"

          MODx version 0.9.5 beta
          Version codename rev 1392
          Apache/2.0.49
          PHP/5.0.4
          MySQL 4.0.18

          regards,
          Peter

          Hi Peter.
          This is an error on the initial instantiation of the skinGraft object. I think it might be a proble with the config.inc.php file in the modx directory. sometimes there are backticks (`) around the database name. I will work on a fix for this that will hopefully not screw up normal function. I took out the backticks in my confic.inc.php file.

          has anyone else got this error right away?

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


            I send pointless little messages
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            I always have to strip the backticks from the database name whenever I use the config.inc.php file externally. Does anybody know why they are there in the first place?
              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
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: sottwell at Oct 11, 2006, 10:01 AM

              I always have to strip the backticks from the database name whenever I use the config.inc.php file externally. Does anybody know why they are there in the first place?
              Yes this is to escape the name in case certain reservered words or characters are used, but instead of just adding it when it needed them, it was stored on that way.
                • 26435
                • 1,193 Posts
                Quote from: sottwell at Oct 11, 2006, 10:01 AM

                I always have to strip the backticks from the database name whenever I use the config.inc.php file externally. Does anybody know why they are there in the first place?

                @ Peter: I updated the first post. try beta 0.2.

                @Susan & Open Geek: I added $dbase = trim($dbase, "`"); after the config file is included. I already took the backticks out of my config files on all my installations (because of this problem) so I can’t tell if this is a proper solution. Is this what you two would suggest?

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


                  I send pointless little messages
                  • 2762
                  • 1,198 Posts
                  Great Module Scotty! - downloaded and will try today wink
                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

                    MODx IT  www.modx.it
                    -----------------------------------------------------

                    bubuna.com - Web & Multimedia Design
                    • 23109
                    • 25 Posts
                    Hi Scotty,

                    Quote from: ScottyDelicious at Oct 11, 2006, 10:48 AM

                    @ Peter: I updated the first post. try beta 0.2.

                    this works, i can play around in the Manager.
                    I cant install the Demo-Templates, but i guess its a problem with the Server, which will change next Days.
                    I will retry then...

                    thanks for your Work kiss

                    Peter
                      Grafik & Grossformatdruck: www.druck-schmie.de
                      Bildergalerie: www.bilder-schmie.de
                      • 26435
                      • 1,193 Posts
                      Quote from: PeterH at Oct 12, 2006, 01:55 PM

                      Hi Scotty,

                      this works, i can play around in the Manager.
                      I cant install the Demo-Templates, but i guess its a problem with the Server, which will change next Days.
                      I will retry then...

                      thanks for your Work kiss

                      Peter

                      What happens when you try to install the demo templates?

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


                        I send pointless little messages