We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Wendy, please PM with details where some of the core team folks can take a peek under the hood, so to speak. Thanks!
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 32241
      • 1,495 Posts
      sure thing ryan, I’ll do that either tonight or tomorow, kinda in the middle of project right now, but as soon as I have free time, I will setup a testing account. Hemmm... I think I might need one too for developing my modules and etc. It’s better to have it in seperate installation, don’t you think, rather than in production website?

      Anyway, looking forward to be updated with the decision of multi lingual and sub sites, plus quick edit ability to create a new document. grin
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 32241
        • 1,495 Posts
        Hi guys, here is the testing site to try on

        http://test.djamoer.net/
        http://test1.djamoer.net/

        Notice the link for dropdownmenu on the right site. You can see that it will automatically truncate the front alias, when you’re on test1.djamoer.net. It will aso set the starting page and error page to the document that has that alias the same with the domain being used.

        Anyway, feel free to look around, you can enabled or disabled this on manager site setting, which have 2 addition for enabling/disabling, as well as determine the main domain for the site.

        Known issue, the hack can’t differentiate between www.test1.djamoer.net and test1.djamoer.net. It can be fixed with a few addition to the code, but I’m just way too lazy, so I use mod rewrite to make sure that all the incoming www.test1.djamoer.net will directed to test1.djamoer.net
          Wendy Novianto
          [font=Verdana]PT DJAMOER Technology Media
          [font=Verdana]Xituz Media
          • 32241
          • 1,495 Posts
          Just wanna bring this thing up again.

          I attached the files that I modified on the core code.

          You can find all the code that I added being commented with "subsites", so you guys can search with subsites as the keyword to find the code that I added.

          I think it works just fine so far for me. Never encounter any problem in integrating other snippet without having to hack the snippet again.

          Regards,
            Wendy Novianto
            [font=Verdana]PT DJAMOER Technology Media
            [font=Verdana]Xituz Media
            • 32241
            • 1,495 Posts
            Official hack from me. Hope you guys find it useful.

            Please report back to me, if there is any bugs or problems.

            Sincerely,
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 2762
              • 1,198 Posts
              Wendy great work! i’m trying it, but probably i’m doing something wrong.. can you help me?

              1) I created a subdomain modx.tattoocms.it
              2) uploaded your files
              3) created a new folder (id 86)
              4) Subsites: enabled subsites
              5) Site Main Domain : modx.tattoocms.it 86

              i got:
              Fatal error: Cannot use [] for reading in /var/www/html/manager/includes/document.parser.class.inc.php(827) : regexp code on line 1

                Free MODx Graphic resources and Templates www.tattoocms.it
                -----------------------------------------------------

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

                bubuna.com - Web & Multimedia Design
                • 32241
                • 1,495 Posts
                You need to define an error page as well.

                maybe the same with your main site will be fine.
                maybe like this one
                modx.tattoocms.it 86 86
                
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 2762
                  • 1,198 Posts
                  Quote from: Djamoer at Feb 28, 2006, 03:34 PM

                  You need to define an error page as well.

                  maybe the same with your main site will be fine.
                  maybe like this one
                  modx.tattoocms.it 86 86
                  

                  Thanks Wendy

                  Done, but output the same error sad

                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

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

                    bubuna.com - Web & Multimedia Design
                    • 32241
                    • 1,495 Posts
                    Are you using the one on the first post?
                    I look into the code, but there is no regexp use on that specific line. Could you open up your document.parser.class.inc.php and look for line 827, what’s listed on there?

                    Thanks Banzai
                      Wendy Novianto
                      [font=Verdana]PT DJAMOER Technology Media
                      [font=Verdana]Xituz Media
                      • 2762
                      • 1,198 Posts
                      I’ve tried both zip files Subsites Hack.zip and Subsites v1.0.zip with the same error.
                      Need to use a specific alias name or install modx in the subdomain?

                      in document.parser.class.inc line 827 i have:
                      $documentSource = preg_replace($in, $out, $documentSource);    


                      thanks smiley
                        Free MODx Graphic resources and Templates www.tattoocms.it
                        -----------------------------------------------------

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

                        bubuna.com - Web & Multimedia Design