Frederik Liljefred. M.D.
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationYeah, it saves the WOEID and some times not…
Eg if you set in a WOEID and saves it. Return to the runnerslog setting and “Enable Weather Measurement” the data is saved. But it is deleted again if you want to:
Enable Temperature Measurement
Enable Windchill Measurement
Enable Humidity Measurement
Enable Textbased Weather Description
Enable Weather Data from YahooAnd dont put in a WOEID when you are enabling the above… Do you get the same result?
Regarding your redesign and idea I like it 😀
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationWe can start having it in the metabox 😀
Im at #wordpress if you have time and I need help 😀 …
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationTake your time – it was not criticism, it was just a bug I find when I tried to test it…
Keep up the good work..
Another thought. Should the weather data be in the meta-box as the other date or should it be in the footer of the post like the weather postin’ plugin?
What is your plan?
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationCool the admin seems to work perfect I get:
city: Odense
humidity: 83%
wind chill: 18
wind direction: 190
wind speed: 14.48
temperature: 18
weather: Mostly CloudyI dont know if this is bug or not?
If you first set your WOEID and go to Runners Log Setting and Enable “Enable Temperature Measurement” it delete the WOEID …
IF we want temperature to be auto-enabled when the user installs the plugin you can add it to:
function runnerslog_activatein runnerslog.phpForum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsbtw: My idea was the way to store it in the postmeta database should be something like _rl_gear_item_$id
Where $id is the of the gear.
Forum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsI dont understand that mysql 😀 Its over my level…
First I think we need to add all the gear items in use to the meta box…
When you have a better insight in the meta box let me know 🙂
I think we need to distance fields in the gear database. Else there could be a problem if the user later edit the distance manually in the gear manager, wouldnt there?
Forum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsThanks!
Well I think the backend is pretty much done. Maybe I should add a category field, but I dont think we need that one.
I have started coding a [runners_log_gear] plugin where you specify the id like [runners_log_gear id=”2″] to set in the given gear. You find the id in the gear manager list. [runners_log_gear] should give you a list of all you gear that are IN USE. I should be able to do that part.
The problem is:
The meta box
I think the best solution would be that a select box for every item in use is added in the meta box. The user then “check” which items he have used on the course. Im not able to code that :S
The use should be stored in the database related to the meta box like the other meta box fields: pulse avg, time etc.In the gear list database we should have a new field: gear_distance_calculated. gear_distance_calculated should be the sum of the distances the item is used in wordpress. In other words this field is updated every time you use your item (when its cheked in the meta box). The total distance for the item should be: gear_distance + gear_distance_calculated. Does it make sence? In this way gear_distance is a start distance – if you item isnt brand new.
Im not able to write that mysql to update gear_distance_calculated.
Forum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsIf you have time I – and want to – I might need some help finishing the rest of this add-on.
Im a little stocked here :S
Forum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsAbout optional bought date
Well, Im not sure to solve howto control he fields. What if the user enter a bought year and not a day and month? Howto handle that?Meta-box
I still dont know howto do this best – but a field per category was a solution but it could result in tons of fields where you have to choose item from a dropdown menu. That is a very user-unfriendly solution.Need to think a little more about that :S
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationNice research 😀
Forum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsOptional fields
Now Price and Distance is optional.Its more difficult to handle optional Boughht date. Because either but day, month and year have to be specified or non of them. Im not able to add that kind of support :S So I kept that mandatory.
Regarding Distance – that field is a little more tricky and I need to find a solution. Distance should only be editible when you add the item because after that the distance is increased every time you track the use of the item (that’s the plan). Else there should be 2 distance fields. One you can edit and one there is set to 0 from start and increased every time you use the item. In the gear-list the distance could be the sum of the 2 distances. What is the best solution?
Accessing table
I dont understand this issue… What do you want? Do you miss being able to easy access “items in use”, “item not in use”?
In my localhost you get the gear-manager table when you press the “gear manager icon” in the left. As standart you get the list of items in use.Howto integrate the gear list to the meta-box
Well Im sorry to say but I havent found a solution for that yet. One solution could be a multi-select-drop-down-menu in the meta-box. Here you have list of the “active” items in the gear list. When you select the items the item-id is stored in the data base related to the metabox. But I dont know if I have those skill, yet. And Im not sure howto handle multi values in a database field. If more items is selected how to store the data best? As a list 1,3,5 – If item with it 1 and 3 and 5 is select. Hmm we may take one thing at the time.
First I want to finish the backend 🙂Forum: Plugins
In reply to: Select Image from Media Library for custom fieldI need something like too 🙂
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationIt’s up to you.
I think the google API seems more straightforward to use.
But if you’re able to solve it with the yeahoo then feel free 😀
Regarding adding content to the footer I think you can use:
add_action('wp_footer','function-name');Forum: Plugins
In reply to: [Plugin: Runners Log] Running gear statisticsGood lock – Im working on it right now, so please re-download the latest dev-version tonight
Forum: Plugins
In reply to: [Plugin: Runners Log] Weather integrationThere is a new version for testing 😉
What do you think – so far?
oops should have been in the gear-post – please reply in that one 🙂