Zen Cart Logo
Forums / Addon Sideboxes / How to display absolute links sidebox both in SSL and NONSSL page?

How to display absolute links sidebox both in SSL and NONSSL page?

Locked

Views: 2,669

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
10 Mar 2010, 1:24 AM
#1
jc_m avatar

jc_m

New Zenner

Join Date:
Jan 2010
Posts:
19
Plugin Contributions:
0

How to display absolute links sidebox both in SSL and NONSSL page?

In includes/modules/sideboxes/yourtemplate/absolute_links.php,

Is it possible to change this code so it can be displayed on both ssl and nonssl page?

  if ($request_type == 'NONSSL') {
10 Mar 2010, 1:29 AM
#2
kobra avatar

kobra

Black Belt

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

Re: How to display absolute links sidebox both in SSL and NONSSL page?

absolute_links.php is not a file that is part of the distribution

Did you look for a support thread for the mod?

10 Mar 2010, 1:50 AM
#3
jc_m avatar

jc_m

New Zenner

Join Date:
Jan 2010
Posts:
19
Plugin Contributions:
0

Re: How to display absolute links sidebox both in SSL and NONSSL page?

I can't find a support thread for this mod.

Only 3 PHP files uploaded.

  1. includes/languages/english/extra_definitions/YOUR_TEMPLATE/absolute_links_defines.php

  2. includes/templates/YOUR_TEMPLATE/sideboxes/tpl_absolute_links.php

  3. includes/modules/sideboxes/YOUR_TEMPLATE/absolute_links.php

The only 'SSL' word I'd found is in the absolute_links.php file.

10 Mar 2010, 1:52 AM
#4
kobra avatar

kobra

Black Belt

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

Re: How to display absolute links sidebox both in SSL and NONSSL page?

Most will drop side boxes on secure pages to avoid the issue you are seeing

10 Mar 2010, 2:01 AM
#5
jc_m avatar

jc_m

New Zenner

Join Date:
Jan 2010
Posts:
19
Plugin Contributions:
0

Re: How to display absolute links sidebox both in SSL and NONSSL page?

I just want to display the absolute links sidebox on my customer's account page.

10 Mar 2010, 2:07 AM
#6
kobra avatar

kobra

Black Belt

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

Re: How to display absolute links sidebox both in SSL and NONSSL page?

I just want to display the absolute links sidebox on my customer's account page.
This should be OK as they are just links and can be http

Only thing that will break is if you pull an image or other item into the page from an http location versus from a https location as in an image that exists off your server

10 Mar 2010, 2:21 AM
#7
jc_m avatar

jc_m

New Zenner

Join Date:
Jan 2010
Posts:
19
Plugin Contributions:
0

Re: How to display absolute links sidebox both in SSL and NONSSL page?

This idea just came up.

What if I just duplicate the sidebox. So I have two identical sidebox but with different purpose. One will appear on secure page & the other one on non secure page.

I will then change the code,

1.absolute_links.php

  if ($request_type == 'NONSSL') {  

2.absolute_links_2.php

  if ($request_type == 'SSL') {  

Do you think this would work?

10 Mar 2010, 2:53 AM
#8
kobra avatar

kobra

Black Belt

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

Re: How to display absolute links sidebox both in SSL and NONSSL page?

Do you think this would work?Not necessary for link to another site
Are you getting errors?

Post a Link to your aite

11 Mar 2010, 3:34 PM
#9
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: How to display absolute links sidebox both in SSL and NONSSL page?

kobra:

Most will drop side boxes on secure pages to avoid the issue you are seeing

How do we turn off sideboxes on secure pages? I need to drop my live help box in SSL.

<apologies if I'm hijacking your thread :lookaroun>

11 Mar 2010, 3:56 PM
#10
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: How to display absolute links sidebox both in SSL and NONSSL page?

Tapper:

How do we turn off sideboxes on secure pages? I need to drop my live help box in SSL.

<apologies if I'm hijacking your thread :lookaroun>

Hey! Found something
http://www.zen-cart.com/forum/showthread.php?t=120388

But this turns blank sidebox off only for checkout and login. But if someone logs in and then browses around they'll get the SSL error

11 Mar 2010, 4:23 PM
#11
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: How to display absolute links sidebox both in SSL and NONSSL page?

Sorry for making a mountain out of a molehill! It's pretty simple

This bit will turn off the sidebox on all SSL pages

if ($request_type == 'SSL') {
$show_blank_sidebox = false;
}

11 Mar 2010, 10:13 PM
#12
kobra avatar

kobra

Black Belt

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

Re: How to display absolute links sidebox both in SSL and NONSSL page?

But if someone logs in and then browses around they'll get the SSL error
If you have this setup correctly it will automatically switch back to http when leaving any https page