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’ ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Does 'Site Maintenance' functions works? How to fix Site Maintenance so that ‘NOTIFY PUBLIC’ and ‘Display when webmaster enabled maintenance’ works? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| Thanks, I'll try. |
|
#5
| |||
| |||
| 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
| ||||
| ||||
| 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 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! |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Install : undefined functions err | rciosc | osCMax v2 Installation issues | 0 | 02-27-2006 12:40 PM |
| down for maintenance | kof69 | osCMax v2 Installation issues | 0 | 09-23-2005 06:12 AM |
| Site maintenance fix | razz2 | osCMax v1.7 Discussion | 1 | 02-02-2005 10:15 AM |
| price calculation problem, where are the functions? | navid | osCommerce 2.2 Modification Help | 4 | 07-03-2004 08:55 AM |
| looking for PHP guru to modify functions of OSCommerce | afterdigital | osCommerce 2.2 Modification Help | 0 | 03-18-2004 07:41 PM |