Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2009
    Posts
    157
    Plugin Contributions
    0

    Default How do I hide unsecure links when secure pages are shown?

    I rely on banner exchanges and advertising to get traffic flowing to my website, so I have a number of banner advertisements on my storefront page. This means that I have a mix of secure and unsecure links up front. I want to eliminate the confusion with the dialog box that pops up when you navigate to a secure page that has unsecure links.

    How do I had all the side boxes, including the banners in the footer when the secure pages (login, register, and order related) are displayed?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I hide unsecure links when secure pages are shown?

    Links are not the issue and you mist have hard coded images or the like that you can convert to realitive to take care of this.

    As you did not provide a link to your site this is the best that I can suggest
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2009
    Posts
    157
    Plugin Contributions
    0

    Default Re: How do I hide unsecure links when secure pages are shown?

    Quote Originally Posted by kobra View Post
    Links are not the issue and you mist have hard coded images or the like that you can convert to realitive to take care of this.

    As you did not provide a link to your site this is the best that I can suggest
    I am afrad I don't understand.

    The graphics I use on my page are generated by Zencart itself, and then there is the SSL logo, and my banner logo on top of the page.

    My website is: http://dmsoft-wy.com/store if you want to take a look.

  4. #4
    Join Date
    Feb 2009
    Posts
    157
    Plugin Contributions
    0

    Default Re: How do I hide unsecure links when secure pages are shown?

    Just a follow up, I see part of the issue you describe on my webpages. I have absolute links rather than relative. I will be converting those to relative tonight.

    However, the banners and ads all use absolute links to images from external websites, most using script to change banner images now and then. I hate to eliminate banner ads complety because I need that traffic. How is that fixed?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I hide unsecure links when secure pages are shown?

    If you can define where all of these are tou can add/adjust code in your copy of tpl_main_page.php similar to

    Code:
    if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payment,checkout_confirmation,checkout_success')) ) {
      $show_bannerFour = false;
      $show_bannerFive = false;
      }
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Feb 2009
    Posts
    157
    Plugin Contributions
    0

    Default Re: How do I hide unsecure links when secure pages are shown?

    Thanks, that might do it. I assume I replace "banner####" in the snippet you give me with like "footer3" which are variables I use in the banner manager to determine where the banners get displayed?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How do I hide unsecure links when secure pages are shown?

    If you are using the Banner Manager ... you could use the built in setting for:
    Banner on SSL Yes No
    NOTE: Banner can be displayed on Secure Pages without errors
    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!

  8. #8
    Join Date
    Feb 2009
    Posts
    157
    Plugin Contributions
    0

    Default Re: How do I hide unsecure links when secure pages are shown?

    Quote Originally Posted by Ajeh View Post
    If you are using the Banner Manager ... you could use the built in setting for:
    Bingo!!! That did it.

    If you would not mind accessing http://dmsoft-wy.com/store and testing the adjusted settings out by accessing the login/register link I would deeply appreciate it.

    You should get no dialog and now go straight to the account registration apge.

    Thank you very much for that input. You eliminated a nagging security issue that I was getting very frustrated with.
    I think anyways.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How do I hide unsecure links when secure pages are shown?

    Nifty little switches in Zen Cart, eh?

    Thanks for the update that this is working for you ...

    I didn't see anything obvious on going through the site but do be sure to test it completely ...
    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!

 

 

Similar Threads

  1. Unsecure images, on secure pages.
    By dwessell in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Jan 2010, 04:16 PM
  2. Secure and Unsecure issues
    By renewal777 in forum General Questions
    Replies: 17
    Last Post: 25 Aug 2008, 04:13 AM
  3. No Product Displayed When Sub Cats Are Shown
    By bumba000 in forum General Questions
    Replies: 4
    Last Post: 21 May 2007, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg