Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Map only shows when I'm logged in (FF,Opera,Chrome), but does show all the time on IE #65

Closed meulie closed 9 years ago

meulie commented 9 years ago

http://pub.meulie.net/picture/85-01_078_de_waag_te_alkmaar

This page contains a map, But for those who use Chrome, FF or Opera it only shows when you're logged in. IE does show the map to non-logged in visitors though.

xbgmsharp commented 9 years ago

There is no code base on browser. Looks like another plugin is generating the issue.

<link href="/plugins/piwigo-openstreetmap/leaflet/leaflet.css" rel="stylesheet">
<script data-rocketsrc="/plugins/piwigo-openstreetmap/leaflet/leaflet.js" type="text/rocketscript"></script><style type="text/css">#map{height:300px;}</style>

This is data-rocketsrc is not from the plugin. This come from cloudfare. http://stackoverflow.com/questions/9681032/why-is-wordpress-placing-text-rocketscript-instead-of-text-javascript-when-u

Try to follow the provided solution.

meulie commented 9 years ago

Hmm, the problem persists, even after disabling Rocket Loader for the entire site.

xbgmsharp commented 9 years ago

The add_before feature need to visible the guest. Check https://github.com/xbgmsharp/piwigo-openstreetmap/wiki#add-location-before for details.

meulie commented 9 years ago

Yes, that was it! :) I switched add_before to a field visible to all, and now it works like a charm. Thanks :+1:

(peculiar it worked in IE though...)