osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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’ ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-06-2004, 05:44 AM
New Member
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
valaridz
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-11-2004, 05:51 AM
New Member
 
Join Date: Jan 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SWILLIAMS
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-13-2004, 09:41 AM
New Member
 
Join Date: Jan 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SWILLIAMS
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-15-2004, 02:27 AM
New Member
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
valaridz
Default

Thanks, I'll try.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-15-2004, 02:57 AM
New Member
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
valaridz
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 02-16-2004, 06:00 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,795
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 04:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax