Zen Cart Logo
Forums / General Questions / Skype box and SSL

Skype box and SSL

Locked

Views: 2,493

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 May 2008, 9:34 AM
#1
giftsbyevy avatar

giftsbyevy

New Zenner

Join Date:
May 2008
Posts:
26
Plugin Contributions:
0

Skype box and SSL

Hey Guys.

Just got onto my new server all is good and i have installed ssl. All images are okay.

However My skype side box is causing drama's.

The site is saying that there is unsecure items on the page. How do i make the skyoe box secure.

Cheers

Glenn.

25 Apr 2009, 5:41 PM
#2
jolla avatar

jolla

New Zenner

Join Date:
Mar 2009
Posts:
18
Plugin Contributions:
0

Re: Skype box and SSL

Ive seen a few people complain about this but no real solution for it...

I found this post addressing the issue:
http://forum.skype.com/index.php?showtopic=58025

Basically you need to make a local copy of the Skype javascript skypeCheck.js and then create a simple php file that will capture the image for you. this will allow you to display the image as if it were a local image on your server rather than remote. This will make SSL work :)

Here is the php file (skypestatus.php):

<?php $u = $_GET['u']; $path="http://mystatus.skype.com/smallclassic/".$u; $im = imagecreatefrompng($path);//. header('Content-type: image/png'); imagepng($im,NULL,0,NULL); imagedestroy($im); ?>

and here will be the modified html, this will have to be tweaked depending on your sidebox. Lets assume both the skypeCheck.js and the skypestatus.php are both in the skype folder in the root of your site.

<script type="text/javascript" src="/skype/skypeCheck.js"></script>

<a href="skype:USERNAME?chat"><img src="/skype/skypestatus.php?u=USERNAME" style="border: none;" width="114" height="20" alt="My status" /></a>

Thanks to sculptex, ethos201, and Fred Trotter for the code :)

Jolla

25 Apr 2009, 8:36 PM
#3
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Skype box and SSL

I have never used the Skype box but you can just disable the Skype box on secure pages.

You can add this code to your modules/sideboxes/your_template/your_skype_box

  
<?php 
if ($request_type == 'NONSSL') {
your original code here...

}
?>