Web Development, Wordpress Development (Plugins)

WordPress Plugin – Weight Loss Tracker

As part of the development of Stop Over Eating, my client needed specific functionality to allow a logged in member to keep track of their weight. As I used WordPress to power their site, it made sense to develop a simple WordPress plugin. With that in mind, I built a very simple plugin to allow a logged in user to record their weight on given dates. This data is then shown in a graph (ChartNew.js) and HTML table. All the site admin needs to do is place a tag on a given page and the user is presented with a form to enter a date, weight and notes for that entry. When the person saves their entry the data table and graph is refreshed. Over time this plugin has had a major re-write (version 2.0) and had a Pro version built (3.0)…

Road Map Read more on WordPress.org   Download from WordPress.org

 

Core Features

An easy to use plugin that allows a user to keep track of their weight history in both tabular and chart format (Chart.js). Simply place the tag “weight-loss-tracker” on a given page and the user is presented with a tabbed form to enter a date (UK or US), weight and notes for that entry. When the person saves their entry the data table and graph are refreshed. The plugin also allows users to specify their target weight which is drawn on the chart as a comparison. If data is entered for an existing date, then the previous entry is simply updated. The graph is shown when there are two or more entries.

The following weight formats are supported:

  • Metric (Kg)
  • Imperial – Stones & Pounds
  • Imperial – Pounds only

Also supports the following tags:

weightloss_weight_difference – total weight lost by the logged in member
weightloss_weight_start – start weight of the logged in member
weightloss_weight_most_recent – end weight of the logged in member
weightloss_weight_difference_from_target – difference from target

Pro Version

Our Pro version has now been released! If you upgrade, you get he additional features:

  • Widgets. Widgets that allow you to display the graph and quick weight entry form within any widget area.
  • Chart and form Shortcodes. That allow you to display the graph and quick weight entry form by placing a shortcode on any post or page.
  • Text Shortcodes. Additional shortcodes for earliest and most recent dates entered.
  • Admin: View / Delete user data. Admin will be able to view and delete existing user data.
  • User preferences. If enabled, the user will be able to select which unit they wish to store their weight in Metric or Imperial. They will also be able to specify date format and clear all their weight data.
  • Bar Charts. Fancy something different to a line chart? The plugin will also support Bar Charts.
  • Decimals. Decimals will be allowed weight in Pounds only or Kg modes.
  • Delete existing entry. A logged in user will be able to delete or edit an existing weight entry.
  • Better Tables.. Data tables in front end and admin will support paging and sorting.
  • Admin: Extra Settings. Extra settings to customise the plugin will be added e.g. number of plot points on graph, rows per page, etc.

Cost

The Pro Version currently costs £25 – upgrade to Pro Version now.

Languages supported

Fully supported (have the majority of translations):

  • English (UK)
  • German (thanks Michael @ Activate the Beast)
  • Dutch (thanks Dennis)

Languages partially supported (have some of the translations):

  • Portuguese-Brazil (thanks Team Jota)
  • French (thanks @alexiarna)
  • Spanish (thanks @idelfonsog2)
  • Romanian (thanks @alexiarna)
  • Danish (thanks @kfasterholdt)

Gallery

 

Previous Post Next Post

You Might Also Like

22 Comments

  • Reply Olivier 26th July 2015 at 10:17 am

    Hi
    i like your plugin
    I would like to add tags as BMI age. Currently no time but I will work on your plugin…
    but i will as soon as possible
    Thx Olivier
    a french guy

    • Reply YeKen 26th July 2015 at 4:17 pm

      Great Oliver! I look forward to seeing your changes!

  • Reply carliff 31st July 2015 at 6:39 am

    Hi, great plugin YEKEN! Would you be interested to create a variation of this plugin for my company? It’s just short of a couple of features for it to be perfect for what I’m looking for.

  • Reply Fernando 15th October 2015 at 6:51 pm

    Hi YEKEN I am trying to add more fields in the add weight form such as a Picture and mod of the week, can you guide me to know exactly where I should look in the code to add those fields.

    Regards, BTW excellent plugin

    • Reply YeKen 15th October 2015 at 6:55 pm

      Thanks for the compliment Fernando.

      The best place would be includes/short code.php

      I’m currently in the middle of rewriting the entire plugin. As it was never intended to grow like it did! It maybe worth waiting to version 2.0 is released? Around 2-3 weeks..

      😉

      • Reply Fernando 15th October 2015 at 6:57 pm

        Sure I will wait and if you can add those extra fields will be awesome.

        thanks.

        • Reply YeKen 15th October 2015 at 7:00 pm

          There will be a pro version to. I’m not sure yet exactly what features that will also include.. Adding additional fields is a big task. Maybe something for the future but not on my road map right now 😉

      • Reply Josh 14th December 2015 at 9:30 am

        I’m interested in this update as would be perfect for me. Has it been completed?

        Thanks

        • Reply YeKen 14th December 2015 at 10:01 am

          Thanks Josh. Yes 3.0 of the plugin has now been released (although it doesn’t support photos):

          https://wordpress.org/plugins/weight-loss-tracker/

          Cheers,

          Al

          • Josh 14th December 2015 at 12:01 pm

            Hi Al,

            Ah I was hoping it did! I did actually come across this plugin version during my search; but I am a bit confused. Are you able to add custom fields now? Or are you only able to input height and weight?

            I ask because as a trainer I take body measurements which I would like to input also. Progress pictures would be amazing but understand not possible in your plugin.

            Thank you for your reply,
            Josh

  • Reply YeKen 14th December 2015 at 12:06 pm

    Hi Josh,

    I’m afraid it doesn’t support measurements, custom fields or photos at the moment. It’s only real intention (as per plugin name lol) was to just track weight. I’ve been extending it quite a bit over the year. As you can see from my Road Map, 4.0 is to include measurements…

    https://github.com/yekenuk/Weight-Loss-Tracker/wiki/Road-map

    I will also look at adding in photos 🙂

    • Reply Josh 14th December 2015 at 12:25 pm

      Hi,
      It looks like it’s great at what it’s made for! I was only going to track the two, how I came across this… Then I got greedy lol.
      I may still be using this and eagerly awaiting 4.0!!
      Thank you

      • Reply YeKen 14th December 2015 at 12:27 pm

        ha thanks mate! Ah just getting the time / incentive to do it! A big change / step 4.0! What time scales are you thinking?

        • Reply Josh 14th December 2015 at 4:19 pm

          I’m looking to release my new website in the new year. I’m a personal trainer so am expecting a mad January so want to be ready for that!
          Guessing it won’t be ready for then?

          At the moment it looks like I’ll have to use two plugins and put it all together myself so if you could get it done I’d accept any time (and donate for it as would save me a lot of time).

  • Reply YeKen 14th December 2015 at 4:23 pm

    Ah yes New year maybe a tad fine… I’ve other paid projects on as well so they tend to take priority… I have started working on it though… but early days 🙁

    • Reply Josh 14th December 2015 at 5:22 pm

      Yes that makes sense. I’d do the same; wish I could make it myself.
      Please let me know by commenting if you do get time to do it.

      Thank you!

  • Reply YeKen 15th December 2015 at 8:48 am

    Will do… also best to add me on Twitter @yekenuk and keep an eye on my WordPress page https://wordpress.org/plugins/weight-loss-tracker/ – just in case I forget! 🙂

  • Reply Angel 26th December 2015 at 3:48 pm

    Is it possible to use it with multiple people? Like 2 or 3 in a different page? I cannot find out how to do it, thanks.

    • Reply YeKen 26th December 2015 at 4:44 pm

      Yes. Basically place the shortcode on a given page. When a user is loggged in, it will display / store weights for that user.

  • Reply Firas 5th August 2016 at 7:59 am

    Hi,
    As you mentioned in the Road Map “4.0 (Draft outline) – early to mid 2016″…
    Is there any new time estimate for version 4.0 when it will be completed ???
    Thank you 🙂

    • Reply YeKen 5th August 2016 at 8:10 am

      Hi Firas!

      Thanks for getting in touch! A good question, to be honest, I’m really struggling for time at the moment! I’m hoping the latter end of September but it really depends on my work load!

      Fingers crossed. Sorry for the delay.

      Al

    Leave a Reply