In-Portal Issue Tracker - In-Portal CMS
|
||||||||||
Viewing Issue Advanced Details | ||||||||||
|
||||||||||
ID: | Category: | Type: | Reproducibility: | Date Submitted: | Last Update: | |||||
65 | [In-Portal CMS] Front End | feature request | N/A | 2009-06-12 06:08 | 2012-07-25 05:32 | |||||
|
||||||||||
Reporter: | alex | Platform: | ||||||||
Assigned To: | alex | OS: | ||||||||
Priority: | normal | OS Version: | ||||||||
Status: | closed | Product Version: | 5.1.0 | |||||||
Product Build: | Resolution: | fixed | ||||||||
ETA: | none | Fixed in Version: | 5.2.0-B1 | |||||||
Reference: | https://groups.google.com/d/topic/in-portal-dev/asKqHKkJZxI/discussion | |||||||||
Change Log Message: | Added "maintenance mode" for website | |||||||||
Estimate Points: | 3 | |||||||||
|
||||||||||
Summary: | 0000065: Add "Maintenance Mode" option for Website | |||||||||
Description: |
Add ability to put site in "Maintenance Mode". Useful, when site upgrade is made, when users could actually be browsing it (on both admin and front-end). Mode can be turned on by defining constant somewhere or by configuration variable. When mode is on, then all sessions will be automatically ended and when user's visit site or try to login, then warning about maintenance mode will be shown and that they are welcome to visit site later. Could actually specify IP of guy, who is performing maintenance so he could still perform login and browse site, but other users may not. General Rules in "Maintenance Mode": I. ENABLING "Maintenance Mode" ============================== 1. NEW "Maintenance Mode" section under Admin->Configuration->Advanced. Will have options: a. Enable Maintenance Mode (check-box) b. EXCEPTIONS (textarea, IPs separated with semi-column ;) c. TEMPLATE (input, to be shown on Front End, ie. no_permission) d. SYSTEM message (textarea, to be displayed on Admin Login screen) II Front End: ============= 1. END all Existing Sessions and LOGOUT users. 2. REDIRECT all New and Existing Users to "maintenance_template" (new TPL to be added under platform). 3. EXCEPTIONS are IPs specified in Admin Config settings (see above) III Admin: ========== 1. END all Existing Sessions and LOGOUT users. 2. SHOW message on Login screen stating that site is in "Maintenance Mode" and display System Message (defined via Site Configuration in Admin) 3. EXCEPTIONS are IPs specified in Admin Config settings (see above) |
|||||||||
Steps To Reproduce: | ||||||||||
Additional Information: |
There have been some cases when original described functionality (above in description field) will NOT work as expected. For example when there is NO Database connection to the server which leads to NO way of getting/guess if it's a Maintenance mode or IP enabled or the way to show some message stored in DB itself. 1. Following variables will be added to top portion of DEBUG.PHP (after DBG_MAX_SQL_TIME): define('MAINTENANCE_MODE_FRONT', 0); // Set to 1 for SOFT Maintenance mode, set to 2 for HARD Maintenance mode (no DB load) define('MAINTENANCE_MODE_ADMIN', 0); // Set to 1 for SOFT Maintenance mode, set to 2 for HARD Maintenance mode (no DB load) define('MAINTENANCE_MODE_IPS', ''); // Define IP addresses/hosts, which will be able to continue accessing website There will be 2 separate settings - 1 for Front and 1 for Admin with single List of IPs to exclude from Maintenance. User can specify if he wants SOFT or HARD Maintenance mode enabled. Soft Front - all users (except excluded IPs/hosts) are logged out and auto-redirected (301 code) to the specified Front-end template (setting below) Soft Admin - all users (except excluded IPs/hosts) are logged out and auto-redirected (301 code) to the Admin Login page which will display the message (setting below) instead of the usual Login Form. Hard Front / Admin - all users (except excluded IPs/hosts) are logged out and auto-redirected (301 code) to Static page that was generateed from template (setting below) - http://www.yourwebsite.com/system/maintenance.php NOTES: a. in case if there is NO DB Connection (Admin, Front, Cron) for ANY reason - user will be automatically redirected to http://www.yourwebsite.com/system/maintenance.php b. Auto-redirect to 404 page if Soft Maint. template is missing or not specified, but Soft Mode has been enabled. c. Still try redirecting to http://www.yourwebsite.com/system/maintenance.php even if page is missing. 2. Add 4 new Configuration variables under "Website Settings" (after Perform Exact Search): MaintenanceMessageFront (Maintenance Message for Front End) - textarea hint: This message will be shown on Front End when either Soft or Hard Maintenance modes are enabled via debug.php file or there no Database connection. default: Website is currently undergoing the upgrades. Please come back shortly! Thank you for your patience. MaintenanceMessageAdmin (Maintenance Message for Admin) - textarea hint: This message will be shown on Admin instead of Login form either when Soft or Hard Maintenance modes are enabled via debug.php file or there no Database connection. default: Website is currently undergoing the upgrades. Please come back shortly! Thank you for your patience. SoftMaintenanceTemplate (Template for Soft Maintenance) - input field hint: This template will be shown to the Front End users when Soft Maintenance mode is active. default: maintenance HardMaintenanceTemplate (Template for Hard Maintenance) - input field hint: This template will be used to static HTML file under /system folder to be shown on Front-end or Admin when Hard Maintenance mode is active. Static page should be generated from specified here template by clicking "Generate" button. default: maintenance button: add "Generate Page" button next to the Input field with option to generate/regenerate the template. Don't perform generation if "HardMaintenanceTemplate" is empty or does NOT exists. 3. Add maintenance.tpl Template to Advanced and Default themes Using default CMS design and using Front End MaintenanceMessageFront setting. It would be great if we can add nofollow="1" Meta settings for this template in the Head portion of the page |
|||||||||
Relationships |
| |||||||||
Attached Files: |
maintenance_mode_65.patch (10,701) 2011-12-12 04:34 http://tracker.in-portal.org/file_download.php?file_id=1366&type=bug maintenance_mode_core_v2.patch (28,020) 2011-12-28 12:03 http://tracker.in-portal.org/file_download.php?file_id=1424&type=bug maintenance_mode_themes_v2.patch (23,762) 2011-12-28 12:03 http://tracker.in-portal.org/file_download.php?file_id=1425&type=bug maintenance_mode_core_v2-additions.patch (1,203) 2011-12-29 16:32 http://tracker.in-portal.org/file_download.php?file_id=1440&type=bug maintenance_mode_themes_v2-additions.patch (2,833) 2011-12-29 16:33 http://tracker.in-portal.org/file_download.php?file_id=1441&type=bug GeneratePageButtonIssue.png (224,485) 2011-12-29 16:51 http://tracker.in-portal.org/file_download.php?file_id=1442&type=bug maintenance_mode_addon_fix.patch (1,329) 2011-12-30 02:15 http://tracker.in-portal.org/file_download.php?file_id=1443&type=bug |
|||||||||
|
||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-07-25 05:32 | alex | Note Added: 0005008 | ||||||||
2012-07-25 05:32 | alex | Status | resolved => closed | |||||||
2011-12-30 10:43 | alex | Note Added: 0004370 | ||||||||
2011-12-30 10:43 | alex | Status | needs work => resolved | |||||||
2011-12-30 10:43 | alex | Resolution | reopened => fixed | |||||||
2011-12-30 10:41 | alex | Relationship added | related to 0001186 | |||||||
2011-12-30 02:18 | alex | Changeset attached | 5.2.x r14950 | |||||||
2011-12-30 02:17 | alex | Issue Monitored: Dmitry | ||||||||
2011-12-30 02:17 | alex | Note Added: 0004359 | ||||||||
2011-12-30 02:15 | alex | File Added: maintenance_mode_addon_fix.patch | ||||||||
2011-12-29 16:51 | Dmitry | Status | needs feedback => needs work | |||||||
2011-12-29 16:51 | Dmitry | File Added: GeneratePageButtonIssue.png | ||||||||
2011-12-29 16:51 | Dmitry | Note Added: 0004356 | ||||||||
2011-12-29 16:51 | Dmitry | Status | resolved => needs feedback | |||||||
2011-12-29 16:51 | Dmitry | Resolution | fixed => reopened | |||||||
2011-12-29 16:37 | Dmitry | Changeset attached | 1.2.x r14949 | |||||||
2011-12-29 16:37 | Dmitry | Changeset attached | 1.0.x r14948 | |||||||
2011-12-29 16:37 | Dmitry | Changeset attached | 5.2.x r14947 | |||||||
2011-12-29 16:36 | Dmitry | Changeset attached | 1.2.x r14946 | |||||||
2011-12-29 16:35 | Dmitry | Changeset attached | 5.2.x r14945 | |||||||
2011-12-29 16:34 | Dmitry | Note Added: 0004355 | ||||||||
2011-12-29 16:33 | Dmitry | File Added: maintenance_mode_themes_v2-additions.patch | ||||||||
2011-12-29 16:32 | Dmitry | File Added: maintenance_mode_core_v2-additions.patch | ||||||||
2011-12-28 12:06 | alex | Note Added: 0004339 | ||||||||
2011-12-28 12:06 | alex | Status | reviewed and tested => resolved | |||||||
2011-12-28 12:06 | alex | Fixed in Version | => 5.2.0-B1 | |||||||
2011-12-28 12:06 | alex | Resolution | open => fixed | |||||||
2011-12-28 12:06 | alex | Assigned To | !COMMUNITY => alex | |||||||
2011-12-28 12:06 | alex | Changeset attached | 5.2.x r14934 | |||||||
2011-12-28 12:06 | alex | Changeset attached | 1.2.x r14933 | |||||||
2011-12-28 12:05 | alex | Changeset attached | 1.0.x r14932 | |||||||
2011-12-28 12:05 | alex | Changeset attached | 5.2.x r14931 | |||||||
2011-12-28 12:05 | alex | Changeset attached | 1.2.x r14930 | |||||||
2011-12-28 12:04 | alex | Note Added: 0004338 | ||||||||
2011-12-28 12:04 | alex | Status | needs testing => reviewed and tested | |||||||
2011-12-28 12:04 | alex | Note Added: 0004337 | ||||||||
2011-12-28 12:04 | alex | Assigned To | alex => !COMMUNITY | |||||||
2011-12-28 12:04 | alex | Developer | erik => alex | |||||||
2011-12-28 12:04 | alex | Status | needs work => needs testing | |||||||
2011-12-28 12:03 | alex | File Added: maintenance_mode_themes_v2.patch | ||||||||
2011-12-28 12:03 | alex | File Added: maintenance_mode_core_v2.patch | ||||||||
2011-12-27 11:32 | alex | Note Added: 0004329 | ||||||||
2011-12-26 22:30 | Dmitry | Status | needs feedback => needs work | |||||||
2011-12-23 16:18 | Dmitry | Additional Information Updated | bug_revision_view_page.php?rev_id=940#r940 | |||||||
2011-12-18 23:31 | Dmitry | Note Added: 0004272 | ||||||||
2011-12-18 23:30 | Dmitry | Reference | => https://groups.google.com/d/topic/in-portal-dev/asKqHKkJZxI/discussion | |||||||
2011-12-18 23:30 | Dmitry | Change Log Message | => Added "maintenance mode" for website | |||||||
2011-12-18 23:30 | Dmitry | Status | needs testing => needs feedback | |||||||
2011-12-18 23:30 | Dmitry | Summary | Add "Maintenance Mode" option for website => Add "Maintenance Mode" option for Website | |||||||
2011-12-18 23:30 | Dmitry | Description Updated | bug_revision_view_page.php?rev_id=929#r929 | |||||||
2011-12-18 23:30 | Dmitry | Additional Information Updated | bug_revision_view_page.php?rev_id=930#r930 | |||||||
2011-12-12 04:34 | erik | Time Estimate Removed | 5 => | |||||||
2011-12-12 04:34 | erik | Note Added: 0004242 | ||||||||
2011-12-12 04:34 | erik | Assigned To | erik => alex | |||||||
2011-12-12 04:34 | erik | Developer | => erik | |||||||
2011-12-12 04:34 | erik | Status | needs work => needs testing | |||||||
2011-12-12 04:34 | erik | File Added: maintenance_mode_65.patch | ||||||||
2011-12-09 10:20 | Dmitry | Assigned To | alex => erik | |||||||
2011-10-25 22:06 | Dmitry | Additional Information Updated | bug_revision_view_page.php?rev_id=888#r888 | |||||||
2011-10-22 05:37 | alex | Estimate Points | => 3 | |||||||
2011-09-27 06:24 | alex | Time Estimate Added | 5 | |||||||
2011-09-23 21:45 | Dmitry | Note Deleted: 0000056 | ||||||||
2011-09-23 21:45 | Dmitry | Target Version | Icebox => 5.2.0 | |||||||
2011-09-23 21:45 | Dmitry | Additional Information Updated | bug_revision_view_page.php?rev_id=823#r823 | |||||||
2010-08-31 14:25 | alex | Status | active => needs work | |||||||
2010-08-31 14:25 | alex | version | => 5.1.0 | |||||||
2009-10-03 07:54 | administrator | Status | reviewed and tested => active | |||||||
2009-08-09 03:26 | alex | Status | needs work => reviewed and tested | |||||||
2009-06-12 12:28 | alex | Note Added: 0000062 | ||||||||
2009-06-12 12:28 | alex | Status | needs feedback => needs work | |||||||
2009-06-12 10:46 | Dmitry | Note Added: 0000057 | ||||||||
2009-06-12 10:46 | Dmitry | Assigned To | => alex | |||||||
2009-06-12 10:46 | Dmitry | Status | active => needs feedback | |||||||
2009-06-12 10:46 | Dmitry | Note Edited: 0000056 | bug_revision_view_page.php?bugnote_id=0000056#r43 | |||||||
2009-06-12 10:45 | Dmitry | Note Edited: 0000056 | bug_revision_view_page.php?bugnote_id=0000056#r42 | |||||||
2009-06-12 10:45 | Dmitry | Note Added: 0000056 | ||||||||
2009-06-12 10:45 | Dmitry | Target Version | => Icebox | |||||||
2009-06-12 10:45 | Dmitry | Summary | Add site service mode => Add "Maintenance Mode" option for website | |||||||
2009-06-12 10:45 | Dmitry | Description Updated | bug_revision_view_page.php?rev_id=40#r40 | |||||||
2009-06-12 06:08 | alex | New Issue |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|