• Hi Timo,

    Thanks for all your great work on this plugin.

    Can you point me in the right direction, I’d like to be able to edit the locations shown on the map to remove the time in the window once you click on the waypoint, I only want to show the date I was there, not the time. Which file in the plugin directory on my server would I need to modify?

    Thanks,

    Simon.

    • This topic was modified 3 years, 4 months ago by simonbeertv.
    • This topic was modified 3 years, 4 months ago by simonbeertv.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author techtimo

    (@techtimo)

    Hi Simon,

    thanks for your kind words.

    this is a valid point! So far I have only users who like to see more data then the Spot is sending … ??

    If you are concerned about privacy this is quite a problem, since currently via the AJAX call (when your browser asks the data from your wordpress server) it is possible to get all data the spotmap plugin is storing. Just not the feed password.

    If it’s just about the point that you like to show less data, you can modify the popup text generation maphandler.js file under /spotmap/public/js/maphandler.js on the line 484 and the following.
    If you like to disable the popup at all you can remove the following part from line 524:
    .bindPopup(message)

    I will look into a more permanent option. Do you use the Block or the shortcode?

    // Timo

    Thread Starter simonbeertv

    (@simonbeertv)

    Thanks Timo, I use the shortcode to embed on the page.

    Thread Starter simonbeertv

    (@simonbeertv)

    Playing with the js code above.

    I really, really want to add a link to certain waypoints. I have added a row in the database, called link and added the following code to the js file within the message box:

    if (entry.link)
                message += 'Blog: ' + '<a href=' + entry.link + '>Click here</a>' + '</br>';

    This works really well, it just means I need to enter links to blogs via phpadmin at the moment.

    To make this easier it would be great to have a tab in the plugin that lists all the waypoints and lets you add a link to whatever ones you want. These links could be to twitter, or instagram, blog entries, whatever the user wants.

    All the best and thanks again,

    Simon.

    • This reply was modified 3 years, 4 months ago by simonbeertv.
    • This reply was modified 3 years, 4 months ago by simonbeertv.
    • This reply was modified 3 years, 4 months ago by simonbeertv.
    Plugin Author techtimo

    (@techtimo)

    Hi Simon,

    I see your need for this. The problem is that this Plugin is desinged to show the data the spot is sending. It is not really meant to edit the data. THough I was thinkin a lot about this in the past.
    I don’t see this making myself in 2021 to be honest though.

    Custom links might make it too complicated, but adding new markers for blog posts which are assigned with a geolocation could be shown in the map. E.g. all blog posts published with a geolocation in the timerange specified for the Spotmap.
    — But this will go beyond what the plugin should do (but it would be nice…)

    I see there are option to store metadata in blogposts:
    https://developer.www.ads-software.com/plugins/metadata/managing-post-metadata/
    I was thinking for similar things on photos uploaded to WordPress. Unfortunaltey WP is cutting the geolocation stored in the photo exif data…

    Some kind of point management needs to be added anyway. Directly via the block or via the Dashboard. To move markers that are sent not entirely correct and delete markers. This would be the right place to be able to change the text of the CUSTOM markers, which would then include any link to where ever you need it.
    In addition the popup field should be configurable + options to decide wether the popup is shown or not.
    In your case it’ll be only shown on CUSTOM and maybe OK messages with a minimum of information but ofcourse with the Message part, which you could edit alter on.
    OkayOkay this is how it could work. What do you think?

    Editing the plugin code manually is generally speaking not a good idea, since if I push a new Version to WPorg you will loose the changes you made as soon as download the new version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing time from waypoints’ is closed to new replies.