Gowtham
Forum Replies Created
-
Forum: Plugins
In reply to: [WP GPX Maps] Hovertext: Correct UnitsGreetings.
I was able to resolve both issues. All edits are in
js/WP-GPX-Maps.js
.******************************
For issue #1 (incorrect units in the hovertext/tooltip), the solution was replacing
_formats.push( l_y );
with
_formats.push( l_x );
in the
if ( graphEle != '' ) {
block – around line #1220.******************************
For issue #2 (number of decimal places in the graph’s tooltip/hovertext), the solution was replacing
return Math.round( tooltipItems[0].xLabel, fpt.dec ) + fpt.suf;
with
return tooltipItems[0].xLabel + fpt.suf;
in the
tooltips: {
section of thevar hoptions = {
block – around line #1130.******************************
Furthermore, I opted to add a single space between the metric and its unit. This was accomplished by making
l_x
andl_y
look as follows (I just useuom = 1
anduom = 2
) – around line #1040.if ( '1' == unit ) { /* feet / miles */ l_x = { suf: ' mi', dec: 1 }; l_y = { suf: ' ft', dec: 0 }; } else if ( '2' == unit ) { /* meters / kilometers */ l_x = { suf: ' km', dec: 1 }; l_y = { suf: ' m', dec: 0 };
******************************
A couple pages where the solution can be observed are
https://sgowtham.com/journal/2023-grandmas-marathon/(uom = 1)
https://sgowtham.com/journal/2023-american-birkebeiner/
(uom = 2)
I hope these help someone looking for similar solution.
My best,
Gowtham (G)
Scheduled import seems like it’s a paid only feature.
I will look into other plugins that can do what I need. If nothing works out, I will write one of my own.
Thank you for your help!
Thank you.
I have been using 3.0.7 and not upgrading anymore.
I use this plugin in close to 100 different posts/pages in my WordPress site – primarily as dashboard or status updates of various activities. I’ll look forward to your response.
Forum: Plugins
In reply to: [WP GPX Maps] Unable to upload GPX mapI fixed the error locally (version 1.5.05):
- Open
wp-gpx-maps_admin_tracks.php
- Search for the string
action=
. There should be two instances (lines #32 and #58) - Replace
/wp-admin/options-general.php?page=WP-GPX-Maps
with/FOLDER_NAME/wp-admin/options-general.php?page=WP-GPX-Maps
FOLDER_NAME
is where you have installed WordPress (e.g.,wordpress
)- Save and close the file
- This reply was modified 6 years, 8 months ago by Gowtham.
Forum: Plugins
In reply to: [Plugin: wp-visitors] Problem with WP-Visitors and WP 2.7@begger:
I am looking into it. I believe I have followed the steps (for writing a WP) plugin but won’t rule out mistakes from my end. Will certainly fix it by v1.2.Apologies for inconvenience.
-g
- Open