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.
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
<!-- 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 -->
Offline
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
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)
<!-- 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 -->
Offline
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
Offline
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
Offline
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:
<!-- 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
Offline
this works for me too.
Genius!
Offline