phi148 Posted January 5, 2007 Posted January 5, 2007 Just trying to think ahead... anybody using any of the contributions for "down for maintenance"? There are a couple out there, and I'm not sure which one works the best.... Thanks!
mtechama Posted January 5, 2007 Posted January 5, 2007 Here are several of them http://www.oscommerce.com/community?contri...mp;category=all Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP!
jfrey Posted January 5, 2007 Posted January 5, 2007 Here are several of them http://www.oscommerce.com/community?contri...mp;category=all It's pretty easy. In the following code substitute <*** YOUR NAME ***> for the name of your site. You can substitute text there for anything you want. Rename index.php in your catalog to index.php.orig (or .buxxxxxx where xxxxxx is the date, like: index.php.bu050107), then upload the file (index.php.maintenance) as index.php in your catalog. When you are done, change your backup index to index.php again. The code: ---------------------------------------------------------------------------------------- <?php $page_title = ''; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text.html; charset=iso8859-1" /> <style type="text/css" media="screen"> body { background-color: #ffffff; } . content { background-color: #f5f5f5; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; } a.navlink:link { color: #003366; text-decoration: none; } a.navlink:visited { color: #003366; text-decoration: none; } a.navlink:hover { color: #cccccc; text-decoration: none; } td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size 13px; vertical-align: top; } .title { font-size: 24px; font-weight: normal; color: #ffffff; margin-top: 5px; margin-bottom: 5px; margin-left: 20px; padding-top: 5px; padding-bottom:5px; padding-left: 20px; } </style> </head> <body> <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method ="post"> <table width="90%" border="0" cellspacing="10" cellpadding="0" align="center"> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <td> </td> <tr> <td colspan="3" bgcolor="#003366"><p class="title"> <*** YOUR NAME ***> is down for maintenance</p></td> </tr> </form> </table> </body> </html> --------------------------------------------------------------------------- Have fun, Jim
phi148 Posted January 5, 2007 Author Posted January 5, 2007 Hi, Deeper links will still be available though... I assume a change to .htaccess would also be needed to only allow my IP in the deeper links...
phi148 Posted January 5, 2007 Author Posted January 5, 2007 Here are several of them http://www.oscommerce.com/community?contri...mp;category=all I realize this... but the question is .. which one works best (for those that use them)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.