jeanpoldupont
Forum Replies Created
-
Forum: Plugins
In reply to: [Hide Dashboard Notifications] New Features – Submit your ownPlease start with fixing the last no permission error ! Many problems with customers !!!
Same issue with 1.3.4. User role editor.
Forum: Plugins
In reply to: [Hide Dashboard Notifications] Plugin Conflict With WPS Hide LoginSame issue with 1.3.4. User role editor.
Forum: Plugins
In reply to: [Hide Dashboard Notifications] Here same bug as the otherSimply block upgrade to last release …
I use a plugin like this : Easy Updates Manager then with FTP put the previous release of hide dashboard notification , then block the update with Easy Updates Manager.
As I use the Hide dashboard on all my sites … big work.
Forum: Plugins
In reply to: [List category posts] Post type “Attachment” not listedThanks zymeth !
Forum: Plugins
In reply to: [List category posts] Post type “Attachment” not listedJust tried, same bad result.
Forum: Plugins
In reply to: [Disable Unused Block Editor Blocks] ImprovementsYes !
I just bought the pro version! ??
Forum: Plugins
In reply to: [Travelers' Map] How insert GeoJSON with GetJSON ?Merci Camille pour votre explication, et surtout pour votre super plugin ??
Jean-Pol
Forum: Plugins
In reply to: [Travelers' Map] How insert GeoJSON with GetJSON ?Après recherches et lectures, j’ai tenté ceci, qui fonctionne :
document.addEventListener('cttm_map_loaded', function (e) { jQuery.getJSON('/wp-content/themes/blocksy-child/OSMB-lux-be.json', function (data) { L.geoJson(data).addTo(cttm_map[0]); }); }, false);
Il semble que le code dans la boucle n’est pas correct …
Forum: Plugins
In reply to: [Travelers' Map] How insert GeoJSON with GetJSON ?Camille, merci pour votre réponse !
J’ai mis en place votre code :
add_action( 'wp_enqueue_scripts', 'my_custom_script_load' ); function my_custom_script_load(){ wp_enqueue_script( 'prov-lux', '/wp-content/themes/blocksy-child/prov-lux.js', array( 'jquery' ) ); }
dans le fichier prov-lux.js :
document.addEventListener('cttm_map_loaded', function (e) { for (var i = 0; i < cttm_map.length; i++) { jQuery.getJSON('/wp-content/themes/blocksy-child/OSMB-lux-be.json', function (data) { L.geoJson(data).addTo(cttm_map[i]); }); } }, false);
Mais ?a ne fonctionne pas.
Le fichier .geojson est simplement renommé .json.
j’ai l’erreur javascript suivante :
Uncaught TypeError: t is undefined addTo https://travail.europedirectlux.be/wp-content/plugins/travelers-map-2.0-Multiple-markers/includes/public/js/leaflet/leaflet.js?ver=5.8:5 <anonymous> https://travail.europedirectlux.be/wp-content/themes/blocksy-child/prov-lux.js?ver=5.8:4 jQuery 9 <anonymous> https://travail.europedirectlux.be/wp-content/themes/blocksy-child/prov-lux.js?ver=5.8:3 triggerMapLoadedEvent https://travail.europedirectlux.be/wp-content/plugins/travelers-map-2.0-Multiple-markers/includes/public/js/init-travelers-map.js:35 initTravelersMap https://travail.europedirectlux.be/wp-content/plugins/travelers-map-2.0-Multiple-markers/includes/public/js/init-travelers-map.js:14 <anonymous> https://travail.europedirectlux.be/wp-content/plugins/travelers-map-2.0-Multiple-markers/includes/public/js/travelersmap.js?ver=5.8:5 EventListener.handleEvent* https://travail.europedirectlux.be/wp-content/plugins/travelers-map-2.0-Multiple-markers/includes/public/js/travelersmap.js?ver=5.8:3 leaflet.js:5:64070
La page est la suivante : https://travail.europedirectlux.be/leurope-dans-notre-region/
Déjà merci pour l’attention portée à mon problème !
Forum: Plugins
In reply to: [Travelers' Map] How insert GeoJSON with GetJSON ?This code load in the admin !
jQuery.getJSON(“LOSMB-lux-be.geojson”,function(data){ var datalayer = L.geoJson(data ,{ onEachFeature: function(feature, featureLayer) { featureLayer.bindPopup(feature.properties.Name); } }).addTo(cttm_map); });
But how load in the front end ?
Thanks !
Forum: Plugins
In reply to: [Travelers' Map] Placement map zoomed and centeredThanks Camille !
Forum: Plugins
In reply to: [Travelers' Map] Placement map zoomed and centered/** * Init leaflet */ var cttm_map = L.map('travelersmap-container').setView( [45.280712, 5.89], 3 //Zoom 3 );
I imagine that is what needs to be changed.
Is it possible to do this without working in your code ?Ok ! Thanks.
Thanks.