We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3457
    • 4 Posts
    Thanks in advance!

    Customer wanted a new page (FAQ). So I was able to add the link on the menu, and the content. But now, the pages, on the menu distorts the Logo. You can see here that the logo and menu now have a space. When I remove the FAQ, it goes back to normal.
    Need that fixed. Not sure how. www.bowtiecarpetcleaners.com

    Second, there is a chunk which at the bottom of the back pages says you can get a discount if you belong to the following:

    Now the icons DO NOT SHOW. I went into the chunk code, and added some line breaks since on the new FAQ, the text was overlapping the discount icons and tried to move the chunk lower. Didn't work and now there are no icons.

    the html when edited will ADD slashes. This should work?

    ' <!-- <div id="discount"><p><h2>10% discount if you belong to the following organizations.</h2></p>

    -->
    <table id="discount"> '

    <tr>
    <td colspan="3"> <p><h2>10% discount if you belong to the following organizations.</h2></p><br >
    </td>
    </tr>
    <tr>
    <td><img width="128px" src="assets/templates/site/images/demo/discount3.gif"></td>
    <td><img width="128px" src="assets/templates/site/images/demo/discount.gif"></td>
    <td><img width="128px" height="70px" src="assets/templates/site/images/demo/discount1.gif"></td>
    </tr>
    <tr>
    <td><img width="128px" height="70px” src="assets/templates/site/images/demo/discount6.gif"></td>
    <td><img width="128px" height="70px" src="assets/templates/site/images/demo/discount4.gif"></td>
    <td><img width="128px" height="70px" src="assets/templates/site/images/demo/discount5.gif"></td>
    </tr>
    </table>
    <!-- </div> -->


    Then when edited, it will add slashes:

    \\\' <!-- <div id=\\\"discount\\\"><p><h2>10% discount if you belong to the following organizations.</h2></p>

    -->
    <table id=\\\"discount\\\"> \\\'

    <tr>
    <td colspan=\\\"3\\\"> <p><h2>10% discount if you belong to the following organizations.</h2></p><br >
    </td>
    </tr>
    <tr>
    <td><img width=\\\"128px\\\" src=\\\"assets/templates/site/images/demo/discount3.gif\\\"></td>
    <td><img width=\\\"128px\\\" src=\\\"assets/templates/site/images/demo/discount.gif\\\"></td>
    <td><img width=\\\"128px\\\" height=\\\"70px\\\" src=\\\"assets/templates/site/images/demo/discount1.gif\\\"></td>
    </tr>
    <tr>
    <td><img width=\\\"128px\\\" height=\\\"70px” src=\\\"assets/templates/site/images/demo/discount6.gif\\\"></td>
    <td><img width=\\\"128px\\\" height=\\\"70px\\\" src=\\\"assets/templates/site/images/demo/discount4.gif\\\"></td>
    <td><img width=\\\"128px\\\" height=\\\"70px\\\" src=\\\"assets/templates/site/images/demo/discount5.gif\\\"></td>
    </tr>
    </table>
    <!-- </div> -->

      • 3457
      • 4 Posts
      Oh, it didn't show the code. but before file location, table name, table columns etc, it adds those slashes as you see. then the code is broken.
        • 3749
        • 24,544 Posts
        The problem is most likely that magic_quotes_gpc is turned on for the server.

        http://php.net/manual/en/security.magicquotes.disabling.php


        ---------------------------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
        MODx info for everyone: http://bobsguides.com/modx.html
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting