Results 1 to 9 of 9

Hybrid View

  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?

 

 

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