Forums / Templates, Stylesheets, Page Layout / logo shows as non-secure on SSL.. where to change?

logo shows as non-secure on SSL.. where to change?

Locked

Views: 1,771

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
2 Dec 2008, 2:21 PM
#1
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

logo shows as non-secure on SSL.. where to change?

hi

have a couple of images that cause the SSL area to read... 'this page contains secure and non secure items...

I've learned it is a case of finding the HARD coded items.. in my case two images in my template/images.
Also have learned they need to be made to read /mytemplate/images/logo.jpg (without any http:// at the front)

Q: where is this done?

I have found the template header:

<div id="logo_box"><img src="<?php echo HTTP_SERVER . DIR_WS_CATALOG.'includes/templates/'.$template_dir.'/'; ?>images/logo.jpg" alt="" border="0" /></div>

and was expecting to find the http:// and so remove it... but it seems coded code, so must be elsewhere.

So where is the code actually written that can be altered (this is for the main standard logo set top left in zen cart)

Appreciate any know how on this
Thanks
Stephenn

2 Dec 2008, 2:55 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

Provide a link to your site so we can see the offending image url's .

They are probably full url's and appear on a defined page. If so, change the url from http://... to https://...

2 Dec 2008, 3:24 PM
#3
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

the site is:

https://www.pickandclickshop-lingerie.com

the two offending pics are:

  1. logo.jpg (top left)
  2. new_collections.jpg (very bottom right)

nb/ the logo should be a standard prob as we have only replced (renamed) our own image where the zencart logo was... none of the code was altered.

cheers stephenn

2 Dec 2008, 3:36 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

You're using a very strange kind of shared ssl,

https://web232.secure-secure.co.uk/pickandclickshop-lingerie.com/index.php?main_page=login

so you may need to ask your host for the correct path th SSL and then take a look at your setting in configure.php files

The banner image seems to be using a full URL... check your input in banner manager for that image reference.

2 Dec 2008, 4:01 PM
#5
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

The SSL - the host applied it 'as they prefer'. I dont know any different... what seems wierd?

The banner image - (the very bottom one) is actually not on the banners.... the two above are and they are fine in and out of SSL. The banner management therefore works ok... but the bottom of page image is the prob one...

There still must be a place to change the two images from http:// to /images? maybe, hopeso.

cheers
Stephenn

2 Dec 2008, 4:08 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

Compare your tpl_header to the stock file - You will find the coding is the problem. Use the proper override system by defining your logo in the header.php in your language directory.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Dec 2008, 7:59 PM
#7
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

had a look at default compared to my choice template....

default says this:

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

my template says this:

<div id="logo_box"><img src="<?php echo HTTP_SERVER . DIR_WS_CATALOG.'includes/templates/'.$template_dir.'/'; ?>images/logo.jpg" alt="" border="0" /></div>

I'm experimenting with something to get rid of the src.... like this, (but this gives blank page, as is... working on it):

<div id="logo_box"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'includes/templates/'.$template_dir.'/' '</a>' images/logo.jpg alt="" border="0" ; ?></div>

It could be I'm barking up wrong tree here..... I did really hope to find the page where the image/logo said 'http/:' and i could change it to '/mytemplate/myimages'... but i guess this is learning! This is a cool cart, loads to learn.

2 Dec 2008, 10:02 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

Put the STOCK logo call in your template and indicate your logo's name in the includes/languages/english/header.php like you are supposed to and you won't have any problems.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

4 Dec 2008, 4:53 PM
#9
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

thanks for info.... will try and test a way of doing this.... not fluent at structure yet... so will have a play and see what results we create (usually putting most alterations back!)

now that youve given ball park area to work in, we'll have a play.

Cheers
Stephenn

6 Dec 2008, 4:10 AM
#10
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

Put the STOCK logo call in your template and indicate your logo's name in the includes/languages/english/header.php like you are supposed to and you won't have any problems.

lesson learned regarding CUSTOM ... (its a brilliant design thought of the zen team)

we swapped our custom for the STOCK logo code, then adjusted the ../english/header.php, but did not work, so had a closer look...

the stock code refered to 'header_logo' and our new template refered to 'header_logo_box' so we adjusted the stock code to match. Then made a CUSTOM folder in ../english and placed in it an adjusted 'header.php...... adjusted to match the 'header_logo_box' followed by the image name.

Now the logo shows in the SSL areas as well... much more reassuring for the customers

Thank you for your thoughts and pointers. The more I discover about the workings/structure/design of the zen cart, the more impressive it reveals itself to be.

cheers for now
stephenn

10 Dec 2008, 8:47 PM
#11
bbemis avatar

bbemis

Zen Follower

Join Date:
Feb 2006
Posts:
163
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

I'm having the same problem, but I didn't change any of the code. I just created a new image and named it the same as the header image that was there before. If you try to log in, you get the non secure warning. If you choose to not show the non secure images, everything on the page is gone. Please help! The url is https://www.kachinaoutpost.com

Thanks,

Billie

16 Dec 2008, 6:12 AM
#12
ranbir avatar

ranbir

New Zenner

Join Date:
Dec 2004
Location:
Canada
Posts:
57
Plugin Contributions:
1

Re: logo shows as non-secure on SSL.. where to change?

bbemis:
All your buttons are drawn from http: not from https:

and the base href in the top isn't good either for the https status, it may trigger a message that the customer is leaving the ssl site.

16 Dec 2008, 4:16 PM
#14
bbemis avatar

bbemis

Zen Follower

Join Date:
Feb 2006
Posts:
163
Plugin Contributions:
0

Re: logo shows as non-secure on SSL.. where to change?

Ok great, but what do I need to change to make it work. I have not done anything to the buttons so they are being called from the relative path. What needs to change?