osCmax v2.5 User Manual
Results 1 to 6 of 6

Does 'Site Maintenance' functions works?

This is a discussion on Does 'Site Maintenance' functions works? within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Does 'Site Maintenance' functions works? How to fix Site Maintenance so that ‘NOTIFY PUBLIC’ and ‘Display when webmaster enabled maintenance’ ...

      
  1. #1
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default Does 'Site Maintenance' functions works?

    Does 'Site Maintenance' functions works?

    How to fix Site Maintenance so that ‘NOTIFY PUBLIC’ and ‘Display when webmaster enabled maintenance’ works?

  2. #2
    New Member
    Join Date
    Jan 2004
    Posts
    23
    Rep Power
    0


    Default Problem with site maintenance

    Just tried this feature. It has a few problems. On the admin side none of the hide features work. I checked the main_page_tpl.php these features have not been installed.

    The notify public feature does not work. The information needed for this to work is in the header.php file which is no longer being accessed. Copy the following to the catalog/includes/warnings.php

    Locate the line:

    // check session.auto_start is disabled


    Replace it with:

    // give the visitors a message that the website will be down at ... time
    if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) {
    $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning');
    }
    // this will let the admin know that the website is DOWN FOR MAINTENANCE to the public
    if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) {
    $messageStack->add('header', TEXT_ADMIN_DOWN_FOR_MAINTENANCE, 'warning');
    }
    // check session.auto_start is disabled


    If display when webmaster has enabled maintenance is true, you TEXT_DATE_TIME displayed on the Down for maintenance page. Still looking into this.

    A question for any one using this mod. If I enter my IP address in admin does this allow me to access my site as normal or just the admin section?

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    23
    Rep Power
    0


    Default A little more info

    If you enter your IP address in Admin and set down for maintenace true, People visiting the site will see the default down for maintenace display. They will still see the header, footer, left and right columns, but clicking on any links or menu will result in nothing happening which is correct. The check status link on the down for maintenance page goes no where, this is missleading and should be commented out. line 36 in down_for_maintenance.tpl.php

    When you set down for maintenace to true, as long as you has entered your correct ip address you will be able to surf your web site as normal. A line at the top of the page warns you that your down for maintenance to the public. You may notice no prices are being displayed. To see the prices again comment out the lines added for this mod in:

    /catalog/includes/classes/currencies.php

    // BOF: WebMakers.com Added: Down for Maintenance
    if (DOWN_FOR_MAINTENANCE=='true' and DOWN_FOR_MAINTENANCE_PRICES_OFF=='true') {
    $format_string= '';
    }
    // BOF: WebMakers.com Added: Down for Maintenance

    The code does not work properly because it does not check your IP address. Hope this information helps.

  4. #4
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default

    Thanks, I'll try.

  5. #5
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default

    Ok. It's work!
    But I see this string(when option is set in true):
    The Admin / Webmaster has enabled maintenance at : TEXT_DATE_TIME.
    How I can give real date|time instead of TEXT_DATE_TIME?

  6. #6
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    If you see ANY_THING_LIKE_THIS (all caps with underscore between words) then your missing a language file or a line in one of the files or a variable set in your MySQL.

    This would/should be set in your admin (MySQL).
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Install : undefined functions err
    By rciosc in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 02-27-2006, 11:40 AM
  2. down for maintenance
    By kof69 in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 09-23-2005, 05:12 AM
  3. Site maintenance fix
    By razz2 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-02-2005, 09:15 AM
  4. price calculation problem, where are the functions?
    By navid in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 07-03-2004, 07:55 AM
  5. looking for PHP guru to modify functions of OSCommerce
    By afterdigital in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-18-2004, 06:41 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
  •