Forums / Bug Reports / [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

[Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

Locked

Views: 1,790

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
18 Nov 2006, 8:02 PM
#1
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

[Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

I know its frowned upon, but for my need it will be ok. I am trying to allow only the Contact Us, Shipping & Returns, Privacy, and Conditions of Use to be accessible while in Maintenance mode.

I've tracked what I thought was the limiter down to two areas:
function_lookup.php & init_customer_auth.php

I've added the if statement around the break in the case statement in the init_customer_auth.php file but it still doesn't seem to care.

switch (true) {
  case (DOWN_FOR_MAINTENANCE == 'true'):
  /**
   * if not down for maintenance check login status
   */
  if (($_GET['main_page'] != FILENAME_PRIVACY) or ($_GET['main_page'] != FILENAME_CONTACT_US) or ($_GET['main_page'] != FILENAME_CONDITIONS) or ($_GET['main_page'] != FILENAME_SHIPPING)) {
    break;
  }

I've also tried adding this code to the appropriate area of the function_lookup.php file, also to no avail.

am I missing another area?

18 Nov 2006, 8:19 PM
#2
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

In functions_lookups.php i tried

 case (DOWN_FOR_MAINTENANCE == 'true'):
      // down for maintenance
        $zc_run = false;
        break;

changed to

 case (DOWN_FOR_MAINTENANCE == 'true'):
      // down for maintenance
if (($_GET['main_page'] != FILENAME_PRIVACY) or ($_GET['main_page'] != FILENAME_CONTACT_US) or ($_GET['main_page'] != FILENAME_CONDITIONS) or ($_GET['main_page'] != FILENAME_SHIPPING)) {        
        $zc_run = false;
        break;
}

Still no go.

18 Nov 2006, 8:39 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

Got an interesting situation ... unfortunately, that is a coder term for a bug ... :cry:

I have a solution ... :smartass:

But I need to translate it into english and test the heck out of it so it might be a few ...

Moving this to Bug Reports ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Nov 2006, 9:55 PM
#4
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

Ajeh:

Got an interesting situation ... unfortunately, that is a coder term for a bug ... :cry:

I have a solution ... :smartass:

But I need to translate it into english and test the heck out of it so it might be a few ...

Moving this to Bug Reports ... :lamo:

Bug? But this is just something I'm trying to do custom on my site. Your code is doing what it is supposed to do, I'm just trying to make it not do it by adding a clause for those 4 Information box links.

19 Nov 2006, 4:08 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

Actually no ...

It was coded to already allow those pages ... but it does not ...

There was a cleanup of the code in v1.3.x to tidy tings up and it is a little too tidy ... so it never allows the Down for Maintenance to allow for those pages ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Nov 2006, 1:59 PM
#6
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

Ajeh:

Actually no ...

It was coded to already allow those pages ... but it does not ...

There was a cleanup of the code in v1.3.x to tidy tings up and it is a little too tidy ... so it never allows the Down for Maintenance to allow for those pages ...

LOL So what i was trying to make it do it was already supposed to do :P I understand now. So chalk this up under "Great Minds Think Alike!"

19 Nov 2006, 2:52 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.7] Allowing Information Box links to work for Down_for_maintenance

If you could PM me we could have a quick chat about testing a nice handy dandy fix for this and see if it is working exactly as you wanted it to ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!