Page 1 of 1

Phoca Map in ssl pages

Posted: 20 May 2014, 00:47
by Erik66
Hello,

I tried using PhocaMaps in a site which works with ssl. Initially the maps(s) will not show. I found it would not load the google a[pi file using https. In file

/administrator/components/com_phocamaps/helpers/phocamapsmap.php

on line 65 and further it says

65 function loadAPI( $src = 'jsapi', $ssl = 0) {
66 $document = JFactory::getDocument();
67 if ($ssl == 1) {
68 $scriptLink = 'https://www.google.com/'.$src;
69 } else {
70 $scriptLink = 'https://www.google.com/'.$src;
71 }

which is, if I interpret it correctly, harcoded to force the component to not use SSL. Once I change line 65 to


65 function loadAPI( $src = 'jsapi', $ssl = 1) {

the PhocaMaps apper on this ssl coded page.

Best regards from

Erik

Re: Phoca Map in ssl pages

Posted: 21 May 2014, 23:46
by Jan
Hi,
which is, if I interpret it correctly, harcoded to force the component to not use SSL. Once I change line 65 to
no, it is exactly opposite. It is not hardcoded, it takes the information from parameters. So just set it in Options.

Jan