Author Topic: Mods under contruction  (Read 5760 times)

0 Members and 1 Guest are viewing this topic.

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
Mods under contruction
« on: May 07, 2003, 02:13:37 AM »
I wish can have for   Mods under contruction , so when the admin make change of the site this mods will activate.


 :wink:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Mods under contruction
« Reply #1 on: May 07, 2003, 02:18:54 AM »
and? :?
what whould it do?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
Mods under contruction
« Reply #2 on: May 07, 2003, 07:35:28 AM »
i think he mean so the site can be turned offline. So a message will be shown that the site is under costrution...

Offline Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Mods under contruction
« Reply #3 on: May 07, 2003, 10:42:17 AM »
I think this is a good idea.  :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Mods under contruction
« Reply #4 on: May 07, 2003, 10:58:20 AM »
then, maybe the simplies way to do is add in constants.php something like:
Code: [Select]
// set to 1 for under construction mode
define('CONSTRUCTION', 0);


then in "main" templates just before
include(ROOT_PATH.'includes/page_header.php');
add something like this:
Code: [Select]
if (CONSTRUCTION && $user_info['user_level'] != ADMIN) {
  header("Location: construction.html");
  exit;
}

it will redirect to construction.html page (located in root of 4images) if user is not admin.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
Mods under contruction
« Reply #5 on: May 07, 2003, 02:13:39 PM »
ah yes i think about this 2. But i think he want this in his admin panel switching on or off...

By the way i'm going 2 work on a admin function 2 add more smilies...

How far have u got the smlie creator or haven't done yet?

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
yeah V@no
« Reply #6 on: May 08, 2003, 04:42:22 AM »
thanksV@no but how I add this feature in admin sections so if  he admin he can switching on or off the pages.