We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    A couple of minor improvements:

    In the copy of the css file that goes in "manager/media/styles", the path to the background image has to be "url(../images/misc/buttonbar.gif)", while in the copy that goes into "manager/media/styles/MODx" it has to be "url(../../images/misc/buttonbar.gif)"; note the extra level up.

    Line 638 of the language file, or where it says
    $_lang["my_account"] = "My Account";
    

    Replace that space with a non-breaking space character. It stops that "jumping" behavior in the top menu.

    In the CSS file, change the margins of the secondary menu a bit:

    #nav li ul a {
        border: 0;
        float: left; /*ie doesn't inherit the float*/
        color: #000;
        padding:2px 5px;
        font-weight: normal;
        margin-left:-20px;
        margin-right:20px;
    }
    


    That positions the menu a bit more comfortably under the main links.
      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
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Even prettier:

      #nav li ul a {
          border: 0;    
          float: left; /*ie doesn't inherit the float*/    
          color: #000;
          padding:3px 5px;	font-weight: normal;
          margin-left:-20px;
          margin-right:20px;
      }
      #nav li:hover ul a:hover, #nav li.over ul li a:hover { /*for ie - the specificity is necessary*/
          background:#b0ccf1 url(../../images/misc/buttonbar.gif) top left repeat-x;
      }
      


      Watch out for that background url path! Up two levels from media/styles/MODx, only one from media/styles!
        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
        • 1764
        • 680 Posts
        There is someting very strange going on with the QuickEdit Quick Start page. The whole page is repeated about a dozen times for some reason. Plus none of the code is showing up (which is due to using actual [**] instaf of html entities).

        I shoud be able to fix this but I don’t have time rigth now, maybe in a couple hours.
          • 4018
          • 1,131 Posts
          Ok...I’ve attached the files that I’ve added some modest changes to. These have been posted on the forum before...but I figured I’d step up to the plate and post the changed files for reference sakes. smiley Here’s what I’ve done:

          /manager/includes/document.parser.class.inc.php

          Added a REDIRECT_ERROR type for the sendErrorPage function to force a 404 error before redirecting to the error page. This will help with spiders and such expecting a 404 error rather than getting a 302.

          /manager/includes/tmplvars.format.inc.php

          Changed the class name for the richtext DIV from "MODX-rte" to "MODx_RichTextWidget". Call me anal...I just think it makes more sense. Might as well be consistent! smiley

          /manager/processors/save_content.processor.php

          This fix has been documented before on Flyspray. Has to do with the fact that alias names can’t be uppercase. So...I just commented out the strtolower function in the stripAlias function and added the ability to use uppercase letters to one of the preg_replace lines. This shouldn’t cause any problems with alias names since MySQL compares string values on a case-insensitive basis anyways. smiley

          That’s all! Hope these get added to the trunk! laugh

          Jeff


            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Quote from: aNoble at Oct 25, 2005, 08:49 AM

            There is someting very strange going on with the QuickEdit Quick Start page. The whole page is repeated about a dozen times for some reason. Plus none of the code is showing up (which is due to using actual [**] instaf of html entities).

            I shoud be able to fix this but I don’t have time rigth now, maybe in a couple hours.

            Fixed. It’s a problem with the editor; if you put &#91 in the editor, that’s exactly what it will display. If you go to "source" and put it in, the editor converts it back to [. The solution is to set the document not to use the editor.
              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
              • 1764
              • 680 Posts
              Quote from: sottwell at Oct 25, 2005, 10:25 AM

              Fixed. It’s a problem with the editor; if you put &#91 in the editor, that’s exactly what it will display. If you go to "source" and put it in, the editor converts it back to [. The solution is to set the document not to use the editor.

              Thanks Susan, did you also figure out why the content is repeated? If not I’ll see if I can figure it out.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                I suspect that it had something to do with the [ * content * ] tags, but I may be wrong. I cleaned it up; is it duplicated again?

                No, I see it’s OK. It may have had something to do with those content tags and the quickedit plugin tripping over each other.
                  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
                  • 33337
                  • 3,975 Posts
                  Reference to Susan’s Layout 4 menu.

                  Its looking nice now !

                  any way here is full package to update into svn. Ryan ! wink

                  l4mnu.php goes to Frames,
                  Language file goes to includes\lang folder
                  rename default-l4navbar.css to l4navbar.css and put it inside media/styles.
                  rename modx-l4navbar.css to l4navbar.css and put it inside media/styles/modx.

                  best regards,
                  zi
                    Zaigham R - MODX Professional | Skype | Email | Twitter

                    Digging the interwebs for #MODX gems and bringing it to you. modx.link
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Quote from: zi at Oct 25, 2005, 11:41 AM

                    Reference to Susan’s Layout 4 menu.

                    Its looking nice now !

                    any way here is full package to update into svn. Ryan ! wink

                    l4mnu.php goes to Frames,
                    Language file goes to includes\lang folder
                    rename default-l4navbar.css to l4navbar.css and put it inside media/styles.
                    rename modx-l4navbar.css to l4navbar.css and put it inside media/styles/modx.

                    best regards,
                    zi

                    Take special care that the correct versions of the css files go into the correct folders; otherwise you will not get the background bar image.
                      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
                      • 25663 MODX Staff
                      • 12,272 Posts
                      Susan, is the content you’ve edited at pixelhick.com? I want to commit that change.
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me