Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I hide unsecure links when secure pages are shown?

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

Locked

Views: 1,183

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Feb 2009, 2:22 PM
#1
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

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?

23 Feb 2009, 2:26 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

23 Feb 2009, 2:32 PM
#3
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

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

kobra:

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.

23 Feb 2009, 2:48 PM
#4
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

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?

23 Feb 2009, 3:04 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

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

23 Feb 2009, 5:38 PM
#6
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

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?

23 Feb 2009, 6:04 PM
#7
ajeh avatar

ajeh

Oba-san

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

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!

23 Feb 2009, 6:28 PM
#8
dmm2020 avatar

dmm2020

Zen Follower

Join Date:
Feb 2009
Posts:
157
Plugin Contributions:
0

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

Ajeh:

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.

23 Feb 2009, 6:31 PM
#9
ajeh avatar

ajeh

Oba-san

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

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

Nifty little switches in Zen Cart, eh? :cool:

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 ... :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!