Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Location
    Victoria AU
    Posts
    48
    Plugin Contributions
    0

    Default Website Maintenance Message and HTML

    Is there a way to stop HTML that is put into the "Date and hours for notice before maintenance" message from being converted to escaped characters? For instance if I try to put a link in the message for more information this all gets stripped out and replaced with the special char handing like < etc.

    I tried adding PERIOD_BEFORE_DOWN_FOR_MAINTENANCE to $configs_with_special_characters in admin/includes/init_includes/init_sanitize.php however the href=" was still being altered by the sanitize class.

  2. #2
    Join Date
    Mar 2008
    Location
    Victoria AU
    Posts
    48
    Plugin Contributions
    0

    Default Re: Website Maintenance Message and HTML

    I sorted this out by also adding the code as below, but if there's a better way please let me know.

    Code:
        if (!$checks->EOF) {
            if (!empty($checks->fields['val_function']) || $cID === 462) {
                $group = array('configuration_value' => array('sanitizerType' => 'NULL_ACTION', 'method' => 'post'));

  3. #3
    Join Date
    Jul 2023
    Location
    india
    Posts
    1
    Plugin Contributions
    0

    Default Re: Website Maintenance Message and HTML

    Try this..
    HTML Code:
    <!DOCTYPE html>
    <html>
    <head>
        <title>Website Maintenance</title>
    </head>
    <body>
        <div class="maintenance-message">
            <h1>Website Maintenance</h1>
            <p>Our website is currently undergoing maintenance. Please check back later.</p>
            <p>For more information, <a href="https://example.com/maintenance-details">click here</a>.</p>
        </div>
    </body>
    </html>

 

 

Similar Threads

  1. Changing Website Maintenance message
    By coolbaby in forum Customization from the Admin
    Replies: 1
    Last Post: 3 May 2011, 08:25 PM
  2. Website maintenance - want to keep EZI pages and others
    By MaryF in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 5 Dec 2008, 09:54 PM
  3. Error message and no website
    By partspete in forum General Questions
    Replies: 10
    Last Post: 13 Jul 2006, 03:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR