Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: SSL issue with Addthis

SSL issue with Addthis 11 years 4 months ago #1625

Hi,

After searching for what reason did the addthis image seems corrupt under chrome it seems come from this :

in template/html/com_virtuemart/productdetails/default.php

Around line 43 :
function currentPageURL() {
    $curpageURL = 'http';
    if ($_SERVER["HTTPS"] == "on") {$curpageURL.= "s";}
    $curpageURL.= "://";
    if ($_SERVER["SERVER_PORT"] != "80") {
    $curpageURL.= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
    } else {
    $curpageURL.= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    }
    return $curpageURL;
}

This is what support from addthis said :
if you are using AddThis on a https:// page you will need to make some small changes.

In the code of the widget replace:

s7.addthis.com or s5.addthis.com
with:

s7.addthis.com/
That's it. All features will continue to work the same.

My server run https and its seems something wrong with this :
www.kubevent.fr/index.php/video/2012-11-12-14-57-57-460/barco-rlmw12-detail

If you go on my link with internet explorer you have to accept to show unsecure display

Attachment Capture_2012-12-14-2.PNG not found



Under chrome its the same it doesnt show unsecure content because of theses unsecure links :

Attachment Capture23.PNG not found



Which code did i have to modify for add httpS like addthis support advise for ?

i have just try here : in template/html/com_virtuemart/productdetails/default.php
to add this code :
<!-- AddThis Button BEGIN -->
 
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
 ...script.....text/j-avascript">var addthis_config = {"data_track_addressbar":true};......script end
script ........="text/j-avascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50cb9bb900379c11">
<!-- AddThis Button END -->

but it s herited from curlpage function nop ?? if i add
src="s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50cb9bb900379c11">

it doesn't working .

thanks for all your support .

Regards
The topic has been locked.

SSL issue with Addthis 11 years 4 months ago #1638

Hi,

First of all open this CSS file:
www.kubevent.fr/templates/rt_ionosphere/html/com_virtuemart/assets/css/flexibleVM2Global.css

look at the 1st line:
@import url(http://fonts.googleapis.com/css?family=Oswald:400,300);
change it with this:
@import url(https://fonts.googleapis.com/css?family=Oswald:400,300);

Then open this PHP page:
www.kubevent.fr/templates/rt_ionosphere/html/com_virtuemart/productdetails/flexv2.php

(you are using flexv2.php not default.php)

And find this LINE:
<s cript type="text/j-avascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f734d3509f75765"></s cript>
and change it with this:
<s cript type="text/j-avascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f734d3509f75765"></s cript>

Then you should be good to go.

Regards.
Last Edit: 11 years 4 months ago by Support.
The topic has been locked.

SSL issue with Addthis 11 years 4 months ago #1644

Hi and thank you very much for your advise and help. I spend many hours on this website it so important for us. and you seems known very well all the problems héhé ):.

1 -For the SSL part and modifications it seems almost perfect . Just seems that after this modifications of the url of the css i am not sure the fonts displays good . what is your opinion ?


2 - As error just stay 2 images interpreted as image but transferred with MIME type text/html
www.kubevent.fr/index.php/video/components/com_virtuemart/assets/images/facebox/closelabel.png".
www.kubevent.fr/index.php/video/components/com_virtuemart/assets/images/facebox/loading.gif". facebox.js:187
From the script facebox.js at ligne 186 - 187 Maybe you have a little idea to fix that if its really a problem ?

Thank you for your time. I hope not to be annoying ):
The topic has been locked.

SSL issue with Addthis 11 years 4 months ago #1654

Hi,

1- Google supports both HTTPS and HTTP
so basically;
@import url(fonts.googleapis.com/css?family=Oswald:400,300);
and
@import url(fonts.googleapis.com/css?family=Oswald:400,300);
are targeting the same exact file. It is also valid for the Google jQuery API libraries. So, no there shoudln't be any difference in Oswald font stylize just because you have changed the protocol to HTTPS. You can try to open both of those URL:
fonts.googleapis.com/css?family=Oswald
and
fonts.googleapis.com/css?family=Oswald

you will see they are both working and targeting the same exact CSS file. (google is using Google Inc. SSL certificate)

2- That issue has nothing to do with our VM Template. Open this JS file:
ROOT/components/com_virtuemart/assets/js/facebox.js

And look for these lines:
loadingImage : 'components/com_virtuemart/assets/images/facebox/loading.gif',
closeImage   : 'components/com_virtuemart/assets/images/facebox/closelabel.png',

And change them with these:
loadingImage : 'https://www.kubevent.fr/components/com_virtuemart/assets/images/facebox/loading.gif',
closeImage   : 'https://www.kubevent.fr/components/com_virtuemart/assets/images/facebox/closelabel.png',

Everything will be good then.

Regards.
Forum Support.
The topic has been locked.

SSL issue with Addthis 11 years 4 months ago #1682

Solved for this one :) I doesnt know where mark it as Solved .
Thanks for this support ticket :)
The topic has been locked.

SSL issue with Addthis 11 years 4 months ago #1696

Hi,

Your welcome. I am glad things get worked as expected.

Case solved. Topic is closed.
The topic has been locked.
Time to create page: 0.220 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo