Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

  • Index
  •  » ClickCartPro 6
  •  » addthis widget - to main skin - but hten have problem with https

#1 09-23-2008 08:57:09

antsevo
Member
From: Surrey, UK
Registered: 02-08-2005
Posts: 592
Website

addthis widget - to main skin - but hten have problem with https

I am trying to add the addthis.com widget to all pages of our site, so its to be placed in the main skin.

However I am having a problem over the secure section of our site, and no too sure how to get around this.

I have made the image file for the widget and placed it in the correct folder, along with the javascript, I thought that would solve the secure/non-secure errors - but this is not the case.

It would seem that the extra images that appear when you rollover may be causing the error.

So anyone any idea how to get around this.

This is the code

Code:

<!-- ADDTHIS BUTTON BEGIN -->
<script type="text/javascript">
addthis_pub             = 'forafters.co.uk'; 
addthis_logo            = 'http://www.forafters.co.uk/skins/Ecom/media/forafters-sex-toys.gif';
addthis_logo_background = 'ffffff';
addthis_logo_color      = '808080';
addthis_brand           = 'Forafters.co.uk';
addthis_offset_left          = -109;
addthis_options         = 'favorites, email, facebook, myspace, stumbleupon, digg, delicious, more';
</script>
<div><a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="/skins/Ecom/media/bookmark.gif" width="125" height="16" border="0" alt="" /></a></div>
<script type="text/javascript" src="/skins/Ecom/scripts/addthis_widget.js"></script>
<!-- ADDTHIS BUTTON END -->

Anthony - Personalised and Celebrity Face Masks
Anthony - Adult Toys

Offline

 

#2 09-23-2008 09:04:44

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: addthis widget - to main skin - but hten have problem with https

You're using hard coded links for the logo and the href link.  They need to be relative links like you've done for the image near the end of that bit of code as well as the link to the JS itself.

Offline

 

#3 09-23-2008 09:27:53

antsevo
Member
From: Surrey, UK
Registered: 02-08-2005
Posts: 592
Website

Re: addthis widget - to main skin - but hten have problem with https

I am still having problems, with this link: http://www.addthis.com/bookmark.php

I have tried copying the code into the scripts folder and calling it from there, but I am still getting the non secure error.

My code now looks like this (with all files in the relevent places)

Code:

<!-- ADDTHIS BUTTON BEGIN -->
<script type="text/javascript">
addthis_pub             = 'forafters.co.uk'; 
addthis_logo            = '/skins/Ecom/media/forafters-sex-toys.gif';
addthis_logo_background = 'ffffff';
addthis_logo_color      = '808080';
addthis_brand           = 'Forafters.co.uk';
addthis_offset_left          = -109;
addthis_options         = 'favorites, email, facebook, myspace, stumbleupon, digg, delicious, more';
</script>
<div><a href="/skins/Ecom/scripts/bookmark.php" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="/skins/Ecom/media/bookmark.gif" width="125" height="16" border="0" alt="" /></a></div>
<script type="text/javascript" src="/skins/Ecom/scripts/addthis_widget.js"></script>
<!-- ADDTHIS BUTTON END -->

Anthony - Personalised and Celebrity Face Masks
Anthony - Adult Toys

Offline

 

#4 09-23-2008 13:22:16

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: addthis widget - to main skin - but hten have problem with https

From there website & how I overcame the problem:


Do you have a secure version of the widget (https)?
Yes. In the code of the widget, just replace this http://s7.addthis.com or http://s5.addthis.com.... with this: https://secure.addthis.com/.


Rob


Rob

Offline

 

#5 09-23-2008 13:37:37

antsevo
Member
From: Surrey, UK
Registered: 02-08-2005
Posts: 592
Website

Re: addthis widget - to main skin - but hten have problem with https

Hi Rob,

I don't think that will work, as the normal homepage is not secure, it's only secure after a custome gets to the checkout and then goes back to the homepage, or completes the checkout and gets directed for the homepage.

So I don't want a secure version for the normal homepage, but I do want a secure version for the secure homepage... if that makes sense


Anthony - Personalised and Celebrity Face Masks
Anthony - Adult Toys

Offline

 

#6 09-23-2008 16:07:05

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: addthis widget - to main skin - but hten have problem with https

Hi

That is the same as my site - I have my own SSL on the default CCP pages but the homepage, etc are not secure. My code looks like this:

Code:

<!-- AddThis Button BEGIN -->
<script type="text/javascript">addthis_pub  = 'The Picture Framing Experts';</script>
<a href="https://secure.addthis.com//bookmark.php" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="https://secure.addthis.com//button1-bm.gif" width="125" height="16"  alt="" /></a><script type="text/javascript" src="https://secure.addthis.com//js/152/addthis_widget.js"></script>
<!-- AddThis Button END-->7

When I installed it I had the same problem with a pop up saying some elements weren't secure. After checking the Addthis website I used found a cure.

ROb


Rob

Offline

 

#7 09-23-2008 16:20:46

antsevo
Member
From: Surrey, UK
Registered: 02-08-2005
Posts: 592
Website

Re: addthis widget - to main skin - but hten have problem with https

Thanks Rob..

I'll give that a try tomorrow...

Anthony


Anthony - Personalised and Celebrity Face Masks
Anthony - Adult Toys

Offline

 

#8 09-24-2008 05:22:52

antsevo
Member
From: Surrey, UK
Registered: 02-08-2005
Posts: 592
Website

Re: addthis widget - to main skin - but hten have problem with https

Thanks Rob, it now works!!


Anthony - Personalised and Celebrity Face Masks
Anthony - Adult Toys

Offline

 

#9 03-16-2009 14:14:08

sushisushi
Member
From: barnsley, UK
Registered: 06-26-2008
Posts: 88
Website

Re: addthis widget - to main skin - but hten have problem with https

this works for me too.

Genius!


Buy sushi making ingredients, sushi party kits and Japanese food at wwwsushisushi.co.uk

Offline

 
  • Index
  •  » ClickCartPro 6
  •  » addthis widget - to main skin - but hten have problem with https

Board footer