WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Runners Log] Few suggestions (67 posts)

  1. Jared Atchison
    Member
    Posted 4 years ago #

    Hey man, great plugin.

    I have a couple suggestions though.

    Instead of making users mess with the ugly custom fields meta box that WordPress used by default, consider making a custom write panel (meta box) for your fields. This will pretty things up greatly. It's also really easy to do since you already have the custom fields!

    If you need help, just let me know or ping me in IRC - jared^. I'm usually on during work days.

    Also, not sure how you would go about this, but it would be great if the plugin would have an option for us state side peeps which would let us use miles instead of km!

    cheers

    http://wordpress.org/extend/plugins/runners-log/

  2. frold
    Member
    Posted 4 years ago #

    Thank your for your feedback.

    Im very glad if someone else can and will use Runners Log.

    I totally agree it could be nice if it was more easy to add your data after you did a run. Im pretty new to wordpress I first installed it the 19th of Dec 2009, so... :)

    Im also not the must skilled programmer (Im a M.D professionaly) but I have gladly used #wordpress for help.

    I will contact your on IRC

    Regard miles - it already on the todo-list.

    I would love to get some help :)

    Best regard, and happy new year

    Frederik

  3. awanderingsole
    Member
    Posted 4 years ago #

    I'm so glad I came across this. I am actually looking for a plugin to upload my garmin stats to but to also show routes on a google map. Is this a possibility in the future or do you know of an easy way to upload my info to google maps?

  4. frold
    Member
    Posted 4 years ago #

    @awanderingsole

    Well, I think I can say that this will not support import of data from your garmin tool. This is far over my skills. So unless there is a skilled coder that can and will add that feature - I have to disappoint you...

    But for that you can use garmin.connect.com - its a very powerfull tool.

    If you like to have a list of your latest run uploaded to garmin.connect in a widget you can use the Garmin Connect plugin: http://garminconnect.codedrobot.com

    But to use this plugin you have to manually add your data...

    Best regards,

    Frederik

  5. frold
    Member
    Posted 4 years ago #

    Hmm I can see Garmin got a API: http://developer.garmin.com/web-device/garmin-communicator-plugin/

    Well, it is not first priority - but should be possible to add a map in your post: eg. like: http://developer.garmin.com/web/communicator-api/apidemo/garminDeviceDisplayDemo.html

  6. jasbg
    Member
    Posted 4 years ago #

    Hi

    I'm new to WP - and not very good at php - but i know how to use an editor (notepad++) and to find my way around in the maps and the theme of WP.
    So now i have been trying for hours to make this plugin work - but all i get is this message at the top line:

    Meters is the setting atm - and nothing more !

    And i have checked php extensions - as i understand is only used for the graphic part - and they ar both activated.

    php_gd2
    php_phar
    ---------------------------------------------------
    What can i be doing wrong - any ideas would be very welcome - thanks !

    Regards

    Jens, denmark

  7. frold
    Member
    Posted 4 years ago #

    Hey Jens,

    Thanks for trying to install this mod.

    What did you paste into your template?

    Did you make any new post with distance and time?

  8. Schoengeist
    Member
    Posted 4 years ago #

    Would be great to add a shortcode like runnerslog to integrate stats in posts!

  9. frold
    Member
    Posted 4 years ago #

    @Atonality

    Its on the todo list.

    I did try but wasnt able to add it. I think jaredatch would try to add it :D

  10. Jared Atchison
    Member
    Posted 4 years ago #

    Yes, they are on the to-do list :)

  11. jasbg
    Member
    Posted 4 years ago #

    I pasted:

    <?php if (function_exists(runners_log_basic)) echo runners_log_basic(); ?> into the page file og the template like this:

    page.php
    --------------------

    <?php
    /*
    HeatMap Theme 2
    Author: Stuart Wider
    Copyright: Stuart Wider 2009
    Website: HeatMapTheme.com
    This file last updated: 19/10/2009

    This file is part of HeatMap Theme 2

    HeatMap Theme 2 is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    any later version.

    HeatMap Theme 2 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
    */
    ?>

    <?php get_header(); ?>

    <!--
    page.php
    ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->

    <?php if (function_exists(runners_log_basic)) echo runners_log_basic(); ?>

    <!--
    Content of the page (inc comments and post details)
    ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->

    <div id="page-body-wrapper">

    <div id="content">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <!--
    The Post
    ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->

    <div class="post-content">

    <!--
    Widget Area: [All Content] Above
    ~~~ -->
    <?php dynamic_sidebar('[All Content] Above'); ?>

    <!--
    The Post Title
    ~~~ -->
    <h1 class="h1-underline"><?php the_title(); ?></h1>
    <!--
    Widget Area: [Content Item] Above
    ~~~ -->
    <?php dynamic_sidebar('[Content Item] Above'); ?>
    <!--
    Widget Area: [Content Item] Left
    ~~~ -->
    <?php dynamic_sidebar('[Content Item] Left'); ?>
    <!--
    Widget Area: [Content Item] Right
    ~~~ -->
    <?php dynamic_sidebar('[Content Item] Right'); ?>
    <!--
    The content itself
    ~~~ -->
    <?php the_content(''); ?>

    <!--
    Pagination for Multi-page posts
    ~~~ -->
    <?php wp_link_pages('before=<p class="multi-page">Pages:&after=</p>'); ?>

    <!--
    Widget Area: [Content Item] Below
    ~~~ -->
    <?php dynamic_sidebar('[Content Item] Below'); ?>

    </div> <!-- class="post-content" -->

    <div class="clearFloat"></div>

    <!--
    Post Details
    ~~~ -->
    <div class="post-details">

    <p class="comment-button-box">

    <?php if (('closed' != $post->comment_status)) { // if the comments are not closed then show the comment box ?>

    <span class="comment-button">#respond">
    <?php comments_number('Skriv en kommentar', '1 kommentar', '% kommentarer');?>
    - Hvad synes du?</span>  

    <?php } ?>

    Artikel af
    <?php echo get_the_author(); ?>
    <?php /* the_author_posts_link(); */ /*uncomment this if you actually want a link to the authors posts - it reveals the authors username though - or am I being too security concious? */?>
    -
    <?php the_date(); echo ' at '; the_time(); /* changed date and time format 19/10/09 so that default system date and time is used instead of preset date and time */ ?>
    </p>

    <?php if (('closed' != $post->comment_status)) { ?>

    <p>Katagorier:
    <?php the_category(', ') // if the comments are not closed then show the categories and tags too ?>
      Tags:
    <?php the_tags('') ?>
    </p>

    <?php } ?>

    <p>
    <?php edit_post_link('(Edit)', '', ''); ?>
    </p>

    </div> <!-- class="post-details" -->

    <!--
    <?php trackback_rdf(); ?>
    -->

    <?php endwhile; else: ?>
    <h2 class="h2-simulate-h1-size">Ingen svar fundet</h2>';
    <?php endif; ?>

    <!--
    The comments
    ~~~ -->

    <?php if (('closed' != $post->comment_status)) { // if the comments are not closed then show the comments template ?>

    <div class="comment-item">
    <?php comments_template('',true); ?>
    </div> <!-- class="comment-item" -->

    <?php } ?>

    <!--
    Widget Area: [All Content] Below
    ~~~ -->
    <?php dynamic_sidebar('[All Content] Below'); ?>

    </div> <!-- id="content" -->

    <?php get_sidebar(); ?>

    </div> <!-- id="page-body-wrapper" -->

    <?php get_footer(); ?>

    <!--
    End of page.php
    ~~~ -->

  12. frold
    Member
    Posted 4 years ago #

    @jasbg

    Im not sure, but what is your question?

  13. frold
    Member
    Posted 4 years ago #

    Now 1.6.0 is released - the short code release.

    Now the following short codes is supported:

    [runners_log_basic]
    [runners_log_graph]
    [runners_log_graphmini_distance]
    [runners_log_graphmini_hours]
    [runners_log_graphmini_calories]
    [runners_log_pie_distance]
    [runners_log_pie_hours]
    [runners_log_pie_calories]
    [runners_log_bar_distance]
    [runners_log_bar_hours]
    [runners_log_bar_calories]

    I was able to add it myself :)

  14. jasbg
    Member
    Posted 4 years ago #

    Sorry - I tried to copy the complete page.php file to show where I placed the installation line. What I have done is this:

    I pasted:

    <?php if (function_exists(runners_log_basic)) echo runners_log_basic(); ?>

    into the page.php file of the template. But nothing happens - what am I missing here ?

  15. frold
    Member
    Posted 4 years ago #

    Did you paste in any data?

    In the form box?

    http://s.wordpress.org/extend/plugins/runners-log/screenshot-1.png

  16. Jared Atchison
    Member
    Posted 4 years ago #

    I'm at work so I can't look it up - but I don't think you need to echo the function, you should be able to just call it.

    Also, try using the shortcode(s) in a page/post with the new release.

  17. jasbg
    Member
    Posted 4 years ago #

    Thanks to both of you for your answers here !

    And the plug has come to live - i have seen graphs down the page now.

    my problem right now is understanding the bigger picture - how to use this in practical.

    Questions:

    1: I.m sure the user has to register first - before given the opportunity to use the Runners Log - in what user group ?

    2: You log on to this user-group: How does the user actually get to input the data (through a modifies comment field or what:)

    3: Given all og the above in place - can userdate be stored - so that he can follow a devellopment in his performance !

    Many questions - but this is getting vere exithing !

    Runners Log Appear as you can on the 'make new post, page': Can this new post somehow be made into where you can input data - or does this have to be done through a comment field ?

    Jens

  18. jasbg
    Member
    Posted 4 years ago #

    Just came to mind !

    It would explain a lot to see how this plug is actually used on a site that is up an running with the plugin. Do any of you know of such a site (have a link) possibly !

    Jens

  19. frold
    Member
    Posted 4 years ago #

    @jasbg

    Im using the:

    [runners_log_basic]

    Eg here: http://www.liljefred.dk/frederik/lob/nytarsl%C3%B8bet-2009-i-odense/

    Im using:

    [runners_log_graph]
    [runners_log_graphmini_distance]
    [runners_log_graphmini_hours]
    [runners_log_graphmini_calories]
    [runners_log_pie_distance]
    [runners_log_pie_hours]
    [runners_log_pie_calories]
    [runners_log_bar_distance]
    [runners_log_bar_hours]
    [runners_log_bar_calories]

    Here: http://www.liljefred.dk/frederik/runners-log/

  20. jasbg
    Member
    Posted 4 years ago #

    Ok and thanks a lot again, Frederik !

    Loking at your blog i take it - it's not an 'open' blog you run. Meaning the people that use your plugin is 'friends' - and people you know - and you actually have to register people yourself (its not an open register system)

    And as you use the plug right now - you se one 'run' at a time - no 'loking back' comparison etc.

    Well i think I now just about understand how you use your Runners Log plug (and what your intentions were when you made it /got the idea)

    So now my job is to try to fit it in tecnically - as I would like it to be a open register system - If possible.

    I'll imform you if I succeed ! :)

    Later

    jens

  21. frold
    Member
    Posted 4 years ago #

    Im not sure what you want to?

    I havent played with user registration.

    For me a blog is a personal page where you post and readers post comments.

    If you want to use it in a multible user system where each user have its own blog you could rename the customs fields like:

    _rl_time_value to _rl_time_value_$username

    where $username is the posters unique username...

    But I have no idea about your setup and what you try to....?

  22. pleuriticus
    Member
    Posted 4 years ago #

    Installed the plugin in 2.9.1, added the basic short code to a page.... nothing showed up. Completely blank page.

    So, I put the PHP code to call the plugin into a page template... still nothing shows up. plugin was installed and activated through dashboard. I recently have had other problems getting plugins that use shortcode to work, so there may be other problems.

    other plugins include clean-contact and TinyMCE.... Is there a chance that there is some conflict among plugins?

  23. frold
    Member
    Posted 4 years ago #

    Did you create a run or two? One or 2 posts - where you put in at least a distance and time.

    And btw; I dont think its fair to report this plugin as broken - as you say you have had problems with other mods.

    This mod is working and I have spent hours on it. So please dont behave like that...

  24. pleuriticus
    Member
    Posted 4 years ago #

    Yes, and it didn't show up even after. However, for some reason when I reinstalled with the 1.6.5 just up, it worked like a charm, so I'm happy with that. :)

    By the way, nice work on this plugin. I was about to write my own (although I could barely justify spending the time on another project!), before I noticed this on existed.

    Thanks and Cheers!

  25. frold
    Member
    Posted 4 years ago #

    I glad it work for you..

    If you want to - you'r welcome to share where you use the mod in: http://wordpress.org/support/topic/358411?replies=1

    Best regard,

    Frederik

  26. klojo
    Member
    Posted 4 years ago #

    hi,

    first thank you for creating this plugin, it really is something i was looking for.

    but i have a small problem.

    if i use [runners_log_basic] in a post it shows up the way its suppossed to be.
    but if i use it again in a second post on the same page it doesn't show up in the second post, but instead it creates an error in /wordpress/wp-content/themes/suffusion/dbx.js

    Bericht: Object required
    Regel: 6
    Teken: 6512
    Code: 0

    just take a look here

    http://test.klimda.nl/wordpress/

    and look at the second post. also notice that the sidebars are missing.

    just click on the second post and u will see that side bars are there again. also the post will be displayed complete now.

    i hope you can help me out with that problem.

    Best regards,

    Koen

  27. frold
    Member
    Posted 4 years ago #

    @klojo

    First of all thank you for installing and testing my pluigin.

    And thank you for reporting a bug.

    After looking in the code I can see there was an "unclosed"
    <li> tag in runners_log_basic.

    I should now have been fixed. And a 1.6.6. should be released.

    Will you please report back if it solved the issue?

    Another thing.

    I couldnt recall the error here:

    /wordpress/wp-content/themes/suffusion/dbx.js
    
    Bericht: Object required
    Regel: 6
    Teken: 6512
    Code: 0
  28. klojo
    Member
    Posted 4 years ago #

    @frold

    hi thanx for looking into the problem. i upgraded to version 1.6.6 but the problem still exists.

    if there are more then one post with the runners_log_basic on one page, only the first post displays the info.

    if i use some of the graphs it shows in all the posts.

    the error mentioned in my first post was created by the suffusion theme so to be on the safe side i changed the theme to an other theme. but still the problem exists.

    Koen

  29. frold
    Member
    Posted 4 years ago #

    Hmm

    Im sorry but Im not sure how to solve it then?

    Maybe jaredatch is?

  30. klojo
    Member
    Posted 4 years ago #

    @frold

    hi i think i solved the problem, i have edited the runnerslog.php.

    i have taken the function hms2sec ($hms) out of the
    function runners_log_basic()

    i am not sure but i think that defining a function inside a function isn't the right way. (really i am a noob in PHP so dont get angry if i am wrong)
    anyway i have taken out lines 132-140

    // Let us convert the total running time into seconds
    	function hms2sec ($hms) {
    	list($h, $m, $s) = explode (":", $hms);
    	$seconds = 0;
    	$seconds += (intval($h) * 3600);
    	$seconds += (intval($m) * 60);
    	$seconds += (intval($s));
    	return $seconds;
    	}

    and placed them after line 328 and before line 330

    add_shortcode('runners_log_basic', 'runners_log_basic');
    
    function runners_log_graph() {

    and i tested it on my site and now it seems to work.

    so i hope you have the infromation to correct the problem now.

    anyway i really enjoy your work and eally going to use it on my site :)

    koen

Topic Closed

This topic has been closed to new replies.

About this Topic