Section Maintenance v2.4 Infusion for PHP-Fusion v7
Section Maintenance Infusion v2.4 by HobbyMan released under the Agpl licence | See included agpl.html for more.
What it does:

This infusion allows you to enable or disable access to certain areas of your site to Members and Guests for maintenance or upgrading without the need to shut down the entire site. It allows you to have as many sections as you want offline at any one time or all of them if needed. Supers and Admins can access the offline pages and an admin message will display at the top of each offline page.

Sections:

  • Registration
  • Lost Password
  • Contact
  • Photogallery
  • Articles
  • News and News Categories
  • Forums
  • Members List
  • Downloads
  • Private Messaging
  • Weblinks
  • Submissions
  • FAQ's
  • Profiles
  • All Custom Pages
  • All Infusions [except this one, of course]
  • or all of the above.


Installation:
  1. Upload the section maintenance folder to your infusions folder.
  2. Upload the infusion image [if desired] to administration/images.
  3. Go to Admin Panel - System Admin - Infusions.
  4. In the dropdown menu, choose Section Maintenance and Infuse.
  5. Go to Infusions and Infuse "Section Maintenance".
  6. See Configuration below on how to use.

Core File Modification:

  1. None
CONFIGURATION:
  1. Go to Admin Panel - Infusions - Section Maintenance
  2. Choose which section you want to put offline, enter a reason in the text box. This will be visible to guests, and members. A traffic light beside each section shows you which section is on or offline.
  3. When a guest or member visits an offline section, they will see a message;
  4. To view the Closed Section page, click the "View Offline Page"  link below the submit button.
  5. If you leave the Reason box empty, they will just see the top and bottom lines.
  6. If you want ALL sections offline, just select the "Select All" choice at the bottom, this will override the other choices.

    [Optional]
    Footer: It should be offline for no longer than...
    If wanted, enter a number and choose from "Mins", "Hours", etc. Leave blank if not wanted. A message will appear under "Please try again later;

    Show Admin Message: Yes | No
    This message is will display at the bottom of offline pages to Admins

    Taken offline by ..... on: 00/00/2008 00:00
    Choose Yes or No to show "Taken offline by [username] on: 00/00/2009 00:00"

    Show Image:
    Choose Yes or No to show image on offline page. [Image path: /infusions/section_maintenance/images/maintenance.jpg]
Misc:
  1. Lines 23, 23 and 24 need translating in non English locales
Web: www.phpnuclear.com
Support: www.phpnuclear.com or www.php-fusion.co.uk
Version: 2.4
phpnuclear - Addons for php-fusion

Notes and Changelog
Notes:
  1. If you just want to test it, click the View Offline Page link at the bottom of section_maintenance_admin.php.
  2. If you want to remove this infusion, defuse it as normal.
  3. Only Infusions and NOT panels are effected when All Infusions are selected.
  4. The original Maintenance mode in Admin Panel - System Admin - Miscellaneous remains unaffected. You can still take the entire site offline as before.
  5. Only Admins and above can access offline pages.
  6. If you want to change the date and time format, open section_maintenance_admin.php, find in line 433;




Change '%d/%m/%Y %H:%M to suit. Do the same in section_closed.php, line 54.
 

Previous Versions:

1 If you have a previous version installed, just defuse and overwrite files and then re infuse.

 

Changelog:
  • v2.4
    • Code Cleanup for v7.01
    • Added lostpassword.php
  • v2.3
    • Removed need to modify core files.
    • Add BB Codes to Members Message.
    • Added Registration and Profile to list of sections.
    • Small tweaks and code clean up.
    • Changed access rights to all Admins.
  • v2.2
    • Error: Missing locale sma_512 added
    • Updated Danish Locale by Helmuth added
    • Turkish locale added, thanks to ozan
    • German locale updated, thanks to gozoc.
    • Added Custom Pages and infusions to list of sections.
    • Added option to turn Admins message on or off.
    • Removed Reset Date [not needed].
    • Added check for function fetch_url() to prevent error if used in other file. [Thanx to lelebart for that]
  • v2.1
    • Added admin message for Supers and Admins with checkrights.
  • v2.0
    • There is now just one core file to be modified, instead of the previous 13 or so.
  • v1.4
    • Added contact.php to list. Added link to view section closed message. Add "This section is temporarily offline" to title.
      French Locale added [Thanks to Mndrs78].
  • v1.3
    • Choice of time periods in footer. Added datestamp to footer notice. Added image to offline page.
  • v1.2
    • Danish, German, Bulgarian, Spanish and Dutch Locales added [Thanks to helmuth, gozoc, Haunted, Super and rob]
  • v1.1
    • Cleaned up form code, added 2 optional extras