tinuzz
Forum Replies Created
-
Forum: Reviews
In reply to: [Trackserver] Excelente!!Muchas gracias 🙂
MG
Forum: Plugins
In reply to: [Trackserver] Infobar : Styling and customisation informationsI now see that WordPress has a builtin library to sanitize HTML and allow specific tags:
https://codex.wordpress.org/Function_Reference/wp_kses
I’ll see if that is suitable to use on the infobar, so allow at least some tags like <br>, <b>, <i>, etc.
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Infobar : Styling and customisation informationsHi,
At this time, the infobar only displays information for one user, and there’s nothing in the code to make it behave otherwise. This sounds like a reasonable thing though, so I will think about it, but it raises some questions, like: how big should the infobar be allowed to get, if you have like 10 different users on the map?
Reqarding styling: the infobar is a <div> that has a class ‘trackserver-infobar’, so you can use CSS to style it.
It is currently not possible to use HTML in the infobar. The content is HTML-escaped, so HTML special characters like ‘<‘ and ‘>’ are escaped into HTML entities. I’m not sure if it’s a good idea to allow HTML in the infobar, because it could mess up the page completely. All authors should be trusted to keep it nice and neat, and I’m not convinced that trust is the right thing to base features on 😉
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Update meta of post with last know coordinatesHi,
No, Trackserver does not support that out of the box.
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Update meta of post with last know coordinatesHi,
I assume you’re asking how you would implement this in a plugin.
First, I’m not sure if updating the metadata is the correct way to do it, since it would require you to update the metadata quite often, and possibly far more often than necessary, if no one is looking at the page.
I would probably choose a different solution, and implement something like a shortcode that would get the most recent location in its handler code.
If you must use the metadata way, I think it should be done using a hook in Trackserver that is called each time a new location is added to the database.
In your own plugin, you can add a handler for the (action) hook and update the metadata accordingly. If you want me to add a hook for that, can you create a feature request issue on Github?
https://github.com/tinuzz/wp-plugin-trackserver/issues/new
Thanks,
Martijn.Forum: Plugins
In reply to: [Trackserver] Trackserver & Leaflet MapThe next version of Trackserver will use the same aliases for the JS and CSS as the ‘Leaflet Maps’ plugin does, so that when both are active, the scripts will only be loaded once. A quick test seems to indicate that using both plugins on the same page works nicely after this change.
Since the fix will be part of the next release, I’ll close this topic.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Change start/end track markers with png iconUsing PNGs is still not supported, but as of last Friday’s v4.3 release, you can change the size of the markers using the ‘markersize=<n>’ shortcode attribute. The default is 5. Values below 4, or over 20 probably don’t make a lot of sense.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] slow queriesVersion 4.3 was released Friday, containg the fix.
Forum: Plugins
In reply to: [Trackserver] slow queriesUsing TravisCI, I created a setup in which I can test any database update in a whole bunch of different MySQL and MariaDB versions. Doing his, I have asserted which queries work and are unlikely to cause problems. These database updates will be rolled out with the next version, which will be released as soon as possible. Thank you for your contribution.
Best regards,
Martijn.- This reply was modified 6 years, 8 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] Change start/end track markers with png iconBy the way, the markers used to be PNGs before I changed them to CircleMarkers. This is the commit containing the change:
It might give an idea on how to revert back to PNGs, if you’re into JavaScript…
Forum: Plugins
In reply to: [Trackserver] Change start/end track markers with png iconHi,
Currently, the markers are hardcoded as Leaflet’s ‘L.CircleMarker’ objects, with a fixed size of 5:
https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.js#L10
Changing the size for your installation can be done there, but the change would not survive updates to the plugin.
If you want, you can create a Github issue with a feature request, and I’ll see what can be done, within a reasonable amount of time.
https://github.com/tinuzz/wp-plugin-trackserver/issues
Best regards,
Martijn.Forum: Reviews
In reply to: [Trackserver] 5 +1 Stars!Hi Jeremy,
Thanks for your great review! I am glad you like Trackserver.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Unable ToDownload GPXIf you check the file, pay specific attention to the timestamps. The software you use to display / analyze the GPX should display the same timestamps as the original track in Trackserver. Let me know if anything doesn’t check out.
If you like Trackserver, please consider writing a review here:
https://wordpress.org/plugins/trackserver/#reviews🙂
Best regards,
MartijnForum: Plugins
In reply to: [Trackserver] slow queriesHi @wolfgang61,
I have been working on Trackserver recently, and I would also like to include this change. I have a question however:
which database (MySQL / MariaDB) en which version are you running?
I have added the index on (trip_id,occurred) on my own server (MariaDB 10.1), and I did _not_ have to change the default value of the ‘occurred’ and ‘created’ columns, it accepts ‘0000-00-00 00:00:00’ just fine.
Now I was just reading up on this topic, and it appears that MySQL from 5.7 by default does not accept ‘0000-00-00 00:00:00’, as it is infact an invalid date.
https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_zero_date
I started typing this message, because I wasn’t sure whether to include the code to update the default value, but after reading the MySQL manual, I think it would be best to do so.
Thank you for your contribution. It will be included in the next version of Trackserver, which will hopefully be released within a few weeks.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Unable ToDownload GPXHi,
I just released v4.2.3, with a fix for this bug. Can you upgrade the plugin and see if it works now? There are no other changes to the plugin than this fix.
I have a major feature release coming up, but it’ll take a few more weeks to get ready.
Best regards,
Martijn.