Forum Replies Created

Viewing 15 replies - 31 through 45 (of 324 total)
  • Plugin Author Camille V

    (@socrapop)

    Dear @zebullon,

    First, you have some jquery errors on the posts and pages, “jQuery is not defined”, you should maybe check with your WP Optimize settings to see if you can remove the error. (maybe by disabling minification of javascript ?)

    The error might come from here because on the page where Travelers Map is working, your Jquery errors are not shown.
    The error with Travelers Map is this line :

    Uncaught SyntaxError: invalid escape sequence

    Which is very strange because the string is cleaned before sent to your page so there is no error.

    Please try to clean your wp-optimize cache, if it’s not working, try to deactivate it, and then if it’s working try to change some settings in the javascript optimization until it works. If it doesn’t work even with wpoptimize deactivated, come back here ?? (well come back here anyway, it’s nice to know if it’s working again)

    Have a nice day, Camille

    • This reply was modified 1 year, 3 months ago by Camille V.
    Plugin Author Camille V

    (@socrapop)

    Oh okay I did not understand it was the custom excerpt you were using. It seems that it’s not accepting HTML and break the map + make the marker disappear in the edit interface.

    I will have to debug it and update the plugin before you can use that with html :/ Do you have the possibility to use the post excerpt instead ? Some theme don’t use them.

    Plugin Author Camille V

    (@socrapop)

    Dear @orahdev,

    Let me recap what I understood :

    1 / You want to add a button in the exceprt but can’t because it destroys your map :
    Are you valid HTML code to your page (are you familiar with HTML ?)
    I tried with this and it works (you have to customize the link with css) :

    <a class='btn' >Exceprt button</a>

    2/ You want the whole popover to be clickable, not only the thumbnail part. You can only do this if the excerpt is hidden, sorry.

    Plugin Author Camille V

    (@socrapop)

    Hi !

    Thank you, I will update HTML purifier to it’s latest release ??

    Plugin Author Camille V

    (@socrapop)

    Dear @sunlight1976 ,

    Did you succeed to debug it? Because I see everything working on my end ^^’

    Forum: Plugins
    In reply to: [Travelers' Map] zoom +1
    Plugin Author Camille V

    (@socrapop)

    Bonjour,

    Non il n’existe pas de paramètre comme ceci, il y a bien un paramètre pour limiter le zoom, mais pas pour zoomer +.
    La raison est simple, la carte calcule toute seule le zoom maximum pour faire rentrer tous les marqueurs ! Un zoom +1 ferai dépasser certains marqueurs en dehors de la carte (c’est d’ailleurs ce que je vois en essayant sur votre site)

    Plugin Author Camille V

    (@socrapop)

    Bonjour,

    J’ai regardé dans les données qui remonte sur le site, il y a un marqueur qui est défaillant, je ne saurai pas expliquer pourquoi mais vous pouvez surement corriger le problème en re-sauvegardant la page, ou en ajoutant un marqueur sur cet article.
    Il s’agit de la page https://www.location-cancale.biz/test/

    Elle remonte dans les données mais n’a pas de marqueur, ce qui est normalement impossible, avez-vous effectué des modifications en base de donnée ou ajouté la taxonomie privée de Travelers’ Map à la main ?
    Dans tous les cas, je pense que re-enregistrer la page devrait corriger le problème, tenez-moi au courant !

    Plugin Author Camille V

    (@socrapop)

    Dear @fastnormal,

    Sorry for the late answer, as I see on your site, the cookie banner or something is messing with the website and the page is reloading indefinitly.

    Did you succeed to make the map work ? I can see behind the cookie warning an image of the map.

    Plugin Author Camille V

    (@socrapop)

    Dear @kuiperonline,

    It is not possible with the plugin to link the markers with a line, you would have to do custom development for that.
    Also, the info box can only be opened by a click because that is how leaflet is working :/
    Sorry for the double negative answer ^^’

    Plugin Author Camille V

    (@socrapop)

    I see, do you have the ability to add some javascript code to your website?

    If you can, then you can add the code below to your homepage:

    <script>
    document.addEventListener('cttm_map_loaded', function (e) {
      for (let i = 0; i < cttm_map.length; i++) {
        cttm_map[i].setView([45.30824,5.85554], 10);
      }
    }, false);
    </script>

    This will set the center of the on “La dent de Crolles”, (it’s the example on my documentation), you can play with the latitude/longitude ([45.30824,5.85554]) and zoom level (10) to get what you want.

    Another way would be to add a category or a tag to all the metropolitan posts and pages, so you can filter the map with this category/tag (but the other would disappear)

    I just thought of something else, you could add the post_id=7 parameter on the shortcode, 7 being the id of your homepage (it could be something else, you can find how to find the ID here. That way, even if we are not on the homepage, it would be centered on it.

    I hope this can fix your issue

    Plugin Author Camille V

    (@socrapop)

    Dear @ctocanier,

    Do you have a travelers map shortcode on this page? Or anywhere on your constant layout (header/footer)?

    After looking at the line mentioned in the error, it seams to be a shortcode with the parameters this_post or centered_on_this.

    I can add a variable check in the next update, but in the meantime you could find where the shortcode is and remove it from this page if not necessary.

    Plugin Author Camille V

    (@socrapop)

    Dear @seanrnicholson,

    Yes, I will continue to support this plugin. Even if new features are not necessarily coming because I have little to no personnal time for it, I will update in case someting breaks with a new version of WordPress.

    Plugin Author Camille V

    (@socrapop)

    Dear @edent

    Sorry for the late reply. As of now, it’s not possible, but it will be in the next update (for developers only for now). I added the possibility to add custom fields to the popovers with a filter.

    I think it’s over, but I did not have the time to write a documentation (and forgot, it was 3 months ago xD), so if you want to get is now and try, here is the github branch 2.2.0 : https://github.com/Socrapop/travelers-map/tree/2.2.0

    You can use the filter cttm_postdata_filter added in the plugins code here : https://github.com/Socrapop/travelers-map/commit/066388f3536c0b4b07cf50c2c2c783a3202949c4

    I hope this helps, I have little to no time to write the documentation at the moment unfortunately, but it should not be that difficult to add a field to the cttm_markers array. You will have to hide it with css too I think because the custom field will be added to the popovers. (I did not think of the possibility of an “invisible” field for a javascript purpose)

    PS: I changed my computer and don’t even have my dev environment anymore to give you a code snippet ^^’

    Have a great day,

    Camille

    Plugin Author Camille V

    (@socrapop)

    Bonjour, je viens de mettre en place de nouveaux paramètres des headers de sécurité sur mon site, il va falloir attendre que le cache de google se régénère pour voir si cela change quelque chose !

    Bon week-end,

    Camille

    Plugin Author Camille V

    (@socrapop)

    Bonjour @vince16 ,

    Je suis toujours impressionné par la spécificité de certaines question d’utilisateur comme la v?tre ??

    En regardant l’onglet réseau de la console de mon navigateur sur la page du cache, je vois que le fichier javascript du plugin …travelers-map/includes/public/js/dist/travelersmap-bundle.js n’est pas chargé à cause d’un erreur CORS Missing Allow Origin

    Alors, pourquoi uniquement ce fichier, je ne sais pas, c’est un peu un mystère ! Est-ce que cette erreur se retrouve également sur votre site ?

    Pour la solution, je ne peux pas tester maintenant car je n’ai pas d’accès à mon serveur d’ici. Soit il suffit de rajouter des règles CORS dans les headers HTTP, soit il s’agit d’un paramétrage au niveau de Google et j’ai peur que nous ne pouvions rien faire. Je ne m’y connais pas assez dans ces règles de sécurité pour vous répondre avec certitude, il faut que je test.

    • This reply was modified 1 year, 10 months ago by Camille V.
Viewing 15 replies - 31 through 45 (of 324 total)