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
Phoca Map in ssl pages
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Map in ssl pages
Hi,
Jan
no, it is exactly opposite. It is not hardcoded, it takes the information from parameters. So just set it in Options.which is, if I interpret it correctly, harcoded to force the component to not use SSL. Once I change line 65 to
Jan
If you find Phoca extensions useful, please support the project