Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Weight Loss Tracker

Allow registered users of your website to track their weight and relevant body measurements. History can be displayed in both tables & charts.

Core Features

An easy to use plugin that allows registered users of your website to track their weight and relevant body measurements. Their history can be displayed in both tables, charts, widgets and various shortcodes. 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
[weightloss_target_weight] - user's target weight (if specified)

Pro Shortcodes:

[weight-loss-tracker-chart] - Displays a chart
[weight-loss-tracker-form] - Displays a form
[weight-loss-tracker-table] - Displays a data table
[weight-loss-tracker-most-recent-bmi] - Displays the user's BMI for most recent weight
[weight-loss-tracker-total-lost] - Total lost / gained by the entire community.
[weight-loss-tracker-league-table] - Show a league table of weight loss users.

[Read our Shortcode guide on GitHub](https://github.com/yekenuk/Weight-Loss-Tracker/wiki/Shortcodes)

Pro Version

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

  • Measurements. If enabled, users can now track measurements alongside their weight entries. As admin, you can allow the user to track one or more of the following: "Bicep - Left", "Bicep - Right", "Forearm - Left", "Forearm - Right", "Calf - Left", "Bust / Chest", "Buttocks", "Hips", "Navel", "Thigh - Left", "Thigh - Right" and "Waist" (Please get in touch if you have additional fields).
  • Community Stats. Shortcodes to rendered total / lost by community and a league table of who has lost the most in the community.
  • Body Mass Index. If enabled by admin, once a user has added their Height (via user preferences tab) a BMI value will be presented in data tables.
  • 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.
  • Better Admin:
    • View / Delete user data**. Admin will be able to view and delete existing user data.
    • Extra Settings. Extra settings to customise the plugin will be added e.g. number of plot points on graph, rows per page, etc.
  • 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 suppor`````t 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.

Languages support

Fully supported (have the majority of translations):

  • English (UK)

Languages partially supported (have some of the translations):

  • Italian (thanks @Salvo)
  • Norwegian - Norsk bokmål (Thanks Rodrigo)
  • Danish (thanks @kfasterholdt and @spaniole)
  • Dutch (thanks Dennis, Yvon & Bart)
  • Finish (thanks Ari)
  • French (thanks @alexiarna)
  • German (thanks Michael @ Activate the Beast)
  • Hungarian (thanks Noam)
  • Portuguese-Brazil (thanks Team Jota)
  • Romanian (thanks @alexiarna)
  • Spanish (thanks @idelfonsog2)

Need a translation? Email us: email@YeKen.uk

Documentation

Need further help? Please visit the Wiki:

Weight Loss Tracker Wiki @ Github

Donate

Paypal Donate: email@YeKen.uk

Author YeKen
Profile
Contributors aliakro
Tags bicep, bmi, body, centimeters, chart, cm, data, graph, helper, hip, history, inches, index, kg, lose, loss, mass, Measurements, plot, pounds, responsive, stones, table, target, thigh, track, waist, weight
  1. weight-loss-tracker screenshot 1

    All three tabs of the main [weight-loss-tracker] shortcode

  2. weight-loss-tracker screenshot 2

    Tab one of [weight-loss-tracker]: Chart, Target and Weight form.

  3. weight-loss-tracker screenshot 3

    Tab two of [weight-loss-tracker]: Target Weight and Weight History

  4. weight-loss-tracker screenshot 4

    Tab three of [weight-loss-tracker]: User preferences page

  5. weight-loss-tracker screenshot 5

    Examples of random placements of [weight-loss-tracker-chart] and [weight-loss-tracker-form]

  6. weight-loss-tracker screenshot 6

    Examples of the Chart and Form widgets

  7. weight-loss-tracker screenshot 7

    Settings page: General

  8. weight-loss-tracker screenshot 8

    Settings page: User Experience

  9. weight-loss-tracker screenshot 9

    Settings page: Chart

  10. weight-loss-tracker screenshot 10

    Settings page: Measurements

  11. weight-loss-tracker screenshot 11

    Admin - managing user data

  1. Install "Weight Loss Tracker" via the "Plugins" page in WordPress Admin (or download zip and upload).
  2. Setup the plugin in WordPress Admin panel by goto to Settings > Weight Loss Tracker
  3. Create a page that users will visit. Within the page content add the shortcode [weightlosstracker].
  4. Voila

4.1.9

  • Updated Dutch translations (thanks @Robin)
  • Updated Italian translations (thanks @Salvo)
  • Bug fix: Deal with negative numbers in ws_ls_pounds_to_stone_pounds() and ws_ls_to_stone_pounds() - Thanks (@GatorDev)

4.1.8

  • Updated German translations (thanks @Christian)

4.1.7

  • Bug fix: Corrected nonce name. Issue on some installs to do with verfiying nonces used to secure AJAX calls for loading user data in Admin.

4.1.6

  • Added fixes to sort issues with Ultimate Tables plugin when both including the Datatables JS library.

4.1.5

  • Updated Danish translations (thanks @spaniole)

4.1.4

  • Added % lost / gained to stats table.
  • Changed graph text when no weight data has been entered.
  • Added some additional Danish translations for date picker.

4.1.3

  • Added some Norwegian (Norsk bokmål) translations (Thanks Rodrigo).
  • Date picker now translated into relevant locale - the majority driven from the WP Locale object. The words "Today" and "Done" can further be translated if provided.
  • Bug fix: Removed rogue double quote in Chart HTML (Thanks Rodrigo).
  • Bug fix: Only include ws_ls_config_advanced_datatables[] JS object when actually on the admin User Data page (Thanks Rodrigo).
  • Bug fix: Only include wp_config[] JS object once. If multiple widgets / shortcodes were placed it would embed the object more than once.

4.1.2

  • Bug fix: When saving weight data / targets it was trying to generate stats when the user didn't have a Pro license. This caused 500 errors!
  • Bug fix: Stats settings should only be editable in Pro mode.
  • Updated "Go Pro" page

Thanks @Terrence and @Steevie for your help!

4.1.1

Bug fix: Certain array declarations causing issues on non PHP7 sites.

4.1

  • New shortcode: [weight-loss-tracker-total-lost] - Total lost / gained by the entire community.
  • New shortcode: [weight-loss-tracker-league-table] - Show a league table of weight loss users.
  • New cron job that runs every hour to refresh old user stats.
  • Upgraded DataTables.js library to 1.10.13.
  • Upgraded Chart.js library to 2.4.0.
  • Bug fix: If weight data was empty the Chart widget would throw a PHP exception. Now fixed.
  • Bug fix: Forcing a SQL query to uppercase was causing issues with case sensitive MySQL table names. Thanks Rodrigo!

4.0.3

  • Added Hungarian (Magyar) translations - about 80% translations supplied. Thanks Noam.

4.0.2

  • Added some more Dutch translations (thanks Yvon and Bart).
  • Bug fix: Chart yAxes can now be translated
  • Bug fix: Measurement labels can now be translated on form.
  • Bug fix: Measurement columns can now be translated in data table.
  • Bug fix: Measurement columns can now be translated in admin when viewing user data.
  • Bug fix: Header and footer columns on user data page (admin) can now be translated

4.0.1

  • Added "Shoulders" to measurement fields.
  • Changed order of measurement fields to be more inline with body order.

4.0

Pro Changes:

  • Support for measurements added - can now add and edit measurements for each entry!
  • Measurements for "Bicep - Left", "Bicep - Right", "Forearm - Left", "Forearm - Right", "Calf - Left", "Bust / Chest", "Buttocks", "Hips", "Navel", "Thigh - Left", "Thigh - Right" and "Waist".
  • Height can also be specified on the user preferences page.
  • If height is specified the BMI value for the given height / weight will be displayed.
  • New Shortcodes: [weight-loss-tracker-most-recent-bmi] - Displays the user's BMI for most recent weight given. The argument "display" determines what is rendered: 'index' - Actual BMI value. 'label' - BMI label for given value. 'both' - Label and BMI value in brackets

Other changes:

  • Upgraded jQuery Datatables library to 1.10.12
  • Upgraded Chart.js to version 2! (1.0.2 to 2.3.0)
  • Target Weight line is now dashed to make it stand out more.
  • New chart option added to start y Axes at 0 (instead of auto calculated).
  • Use of tabs defaults to "Yes" on settings page.

Bug fixes:

  • User preferences are now cached correctly.
  • Fixed nounce check when fetching all user data.
  • Various minor bug fixes.

3.6.1

  • Fudge fix to remove .git folder from plugin directory!

3.6

  • Added the shortcode [weightloss_target_weight] to display the user's target weight (assuming they have specified one).

3.5.1

  • BUG FIX: Additional logic around array_reverse when rendering a chart to ensure the object is an array and not empty.

3.5

  • Added locale support for advanced data tables (Pro feature)
  • Updated Dutch translations for advanced data tables and others

3.4.1

  • CSS is included by default as some installations had issues. JavaScript includes have been moved to footer.

3.4

  • Modified the including of JavaScript / CSS dependencies. To reduce conflicts with other plugins, JavaScript and CSS files are only included when widgets and shortcodes are placed.

3.3

  • Added some additional Romanian translations (although not complete for plugin).
  • BUG FIX: Finnish translation files were given the wrong code so not included as expected.

3.2

  • Updated Finnish translations.

3.1.1

  • Modified the main charts ([weight-loss-tracker-chart] and [weight-loss-tracker]) so they display the most recent date entries as opposed to the earliest.
  • BUG FIX: Fixed difference in date ordering of widget and main charts. Previously the Widget displayed dates in desc as opposed to asc.

3.1

Pro Changes:

  • Added new Shortcode for displaying a data table: [weight-loss-tracker-table] - By default it will display data for the current user logged in. Specifying the attribute "user-id" will allow you to display a table for the given user e.g. [weight-loss-tracker-table user-id="5"]
  • Admin can now specify a message to be displayed in the place of widgets when the user is not logged in.
  • BUG FIX: Charts and Form shortcodes now display a login message when the user isn't logged. Previously they would see the data weight data for admin account.

Core changes:

  • Can now specify the minimum number of weight entries needed before chart is displayed e.g. [weight-loss-tracker min-chart-points=5]
  • Improved jQuery loading of tabs. Tabs are hidden until jQuery has rendered them correctly (this will stop the unstyled tabs appearing).
  • "Clear Target" button added to target forms.

3.0.1

  • Extended MySQL table checker to ensure the data table for user preferences has been created.
  • Removed CSS import statements for Open Sans and Lato.

3.0

Wey hey! Our first Pro version, if you upgrade you get the following 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.

Core changes:

  • Removed support for Avada theme
  • Changed jQuery to document ready instead of window ready (jQuery kicks in quicker)

2.0.1

BUG FIX: Target weight was appearing twice on non-tabbed mode.

  • Removed some reundant jQuery regarding old tab library.
  • Added an additional CSS rule to override some theme CSS causing issues.

2.0

This is a major release of the plugin and a complete rewrite of its core. As the plugin has grown unexpectedly the code base has became unmaintainable and each upgrade was a pain in the a$$. So, this version fixes that and provides a solid base for the future Pro version. Changes in this release:

New features:

  • Better out the box styling and look - looks sharper and more presentable with no need for CSS knowledge.
  • Supports UK and US date formats
  • jQuery UI tabs replaced with cleaner, animated and responsive tabs.
  • Shortcode name added [weight-loss-tracker] (works in exactly the same way as [weightlosstracker]).
  • Admin menu has been expanded (ready for Pro version).
  • Improved form validation and added more visual cues to prompt the user to correct the form.

Bug fixes:

  • Other shortcodes (like weightloss_weight_difference) return the weight unit but no value when not logged in. Fixed to return nothing at all.
  • Tab index order fixed on forms.

Underlying changes:

  • Added caching to database queries - all queries are cached for upto 15 minutes. This will reduce the number of queries against the MySQL database and reduce overall load. It is estimated that DB queries will reduce by two thirds.
  • All JavaScript (e.g. Chart) has been removed from inline statements to external files.
  • All JavaScript and CSS files have been minified.
  • Redundant / development copies of JavaScript, PHP and CSS files have been removed. Folder structures have been simplified and tidied.
  • Increased chart height. Will be configurable in future releases.
  • Major refactoring of ALL code.
  • Various PHP performance tweaks to increase load time (e.g. replacing all double quotes for strings and replacing with single).
  • Added additional CSS class names to HTML elements allowing developers to target their CSS better.
  • Support added for multiple charts to be placed (the base to build shortcodes / widgets in the Pro version).

1.20.1

BUG FIX: Previous release broke the "Delete all data" button on admin page. Fixed.

1.20

  • Changed input fields for weight to: type="number".
  • Settings page: Added logic to check the required MySQL tables are present. If not, an option to rebuild them is available.
  • Removed redundant upgrade script to add column to main data table.
  • BUG FIX: If DateInterval class is not present (i.e. older version of PHP) disable date range selection on weight history table
  • BUG FIX: Stopped non numeric values being entered for target weights.
  • BUG FIX: When in Stones & Pounds mode, maximum pounds that can be entered is limited to 14.

1.19.2

  • BUG FIX: Rookie mistake! Left debug data in!

1.19.1

  • BUG FIX: Pound Only value not being saved correctly.

1.19

  • Ability to specify the line and fill colours used on the graph. (thanks for the suggestion @Hardware Guru)
  • Added Spanish translations - THANKS @idelfonsog2
  • BUG FIX: In some cases the MySQL Target table was not being created correctly. The activate logic has been modified to correct this.

1.18

  • BUG FIX: Gave the language function a unique name as clashing with some other plugins.
  • IMPROVEMENT: Removed -50px off width of graph.

1.17

  • Updated Romanian translations for admin page - THANKS @alexiarna
  • Removed some redundant PHP files.
  • BUG FIX: All text translated on admin page. One piece of text wasn't being translated.

1.16

  • Added Danish translations - THANKS @kfasterholdt
  • Updated Romanian translations (front end) - THANKS @alexiarna

1.15

  • Removed upgrade check. This was trying to recreate the MySQL table for target data and throwing errors on some installs.
  • Added versions numbers when enqueuing Js and CSS scripts.
  • Tidied up includes statements.

1.14

  • Chart.new.js (library used for charts) has been reverted back to Chart.js. Unfortunately this means labels are lost on graphs. However, Chart.js is still maintained by the developers.
  • New option to display plot points on graph. If enabled, target and recorded weight will be displayed on hover.
  • Chart JavaScript tidied up.
  • BUG FIX: Removed references to jQuery Tabs when Tabs disabled.

1.13

  • BUG FIX: Some third party plugins / installs insert additional input fields within

<

form>. Added additional code to remove any non expected ones. - BUG FIX: Target form appears when tabs enbaled - regardless of whether or not Targets are enabled.

1.12

  • Added a button on admin page to delete all existing user data.

1.11

  • Added an admin page to manage settings for plugin

1.10

  • Weight History data presented on seperate tab

1.9

  • Users can now specify their target weight
  • New short code [weightloss_weight_difference_from_target] - end weight of the logged in member to display the difference between target and latest weight
  • New filters to filter data by week

1.8

  • Upgraded Datepicker to use jquery (as opposed to HTML5 control) for better browser support

1.7

  • Added Dutch translations

1.6

  • Now supports pounds only. As opposed to just Stones / Pounds
  • Translations added for:
    • Romanian
    • French
  • Minor tweaks to conversions between stones / pounds
  • Corrected ws_ls_to_stone_pounds to calculate pounds correctly
  • [weightloss_weight_difference] corrected to display pounds
  • Small bug fixes

1.5.1

Minor bug fix for new tags. Writing out values in the wrong place.

1.5

  • Replaced chart.js with chartNew.js (https://github.com/FVANCOP/ChartNew.js/) to allow graph axis labels
  • Axis labels added to graph
  • Bug fix. Imperial measurements are now displayed on the graph in pounds (as opposed to stones / lbs) due to this bug:

    The problem is plotting imperial values on a graph. Say you have the following imperial data (stones / pounds) data:

    '15 7','15 3','15 0','14 12','14 10','14 7'

    I originally added a decimal place to stones / ozs so I can graph it:

    '15.7','15.3','15.0','14.12','14.10','14.7'

    At a glance it looks like this should work.

    However, the 14.7 is treated as 14.70 and therefore comes higher than 14.10.

    I couldn't see a quick way to correct this. So to be safe (and save me time), I've changed it to display in pounds only

1.4

  • Added 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

1.2 / 1.3

  • Various changes made upon feedback from WordPress submission

1.1

  • Support imperial as well as metric weights

1.0

  • Initial Build

Do you have any guides / documentation?

Yes, I'm currently expanding my Wiki: Weight Loss Tracker Wiki @ Github

Does it create any custom mySQL tables

Yes it creates three:

  • WP_WS_LS_DATA_TARGETS - Stores user target data
  • WP_WS_LS_DATA - Store weight and measurement information per user
  • WS_LS_DATA_USER_PREFERENCES - Stores user preferences

What date formats doe it support?

Currently it supports both UK (dd/mm/yyy) and US (mm/dd/yyyy) date formats.

What measurement formats doe it support?

Currently it supports both Centimetres (CM) and Inches.

How do I change the plugin settings?

In WordPress Admin goto Settings.

How do I switch it from Metric (Kg) to Imperial (Stones / Pounds)?

In WordPress Admin goto Settings > Weight Loss Tracker and change the setting "Weight Units" to the desired type.

How do I enable tabs?

Yes. In WordPress Admin goto Settings > Weight Loss Tracker and change the setting "Display data in tabs?" to Yes.

Can I change measurement units while the site is live?

Yes. Only recommended if you first installed the plugin at version 1.6 or greater. Newer versions stores measurements in Kg and Pounds. Versions prior 1.6 didn't so you may find data isn't present for previous date entries.

How do I disable "Target weight"

Yes. In WordPress Admin goto Settings > Weight Loss Tracker and change the setting "Allow targets?" to No.

Share  
Download
Version 4.1.9

Requires WordPress version: 4.1.0 or higher

Compatible up to: 4.7.2

Last Updated 10 Feb 2017

Date Added: 13 Dec 2014

Evaluation
star1
star2
star3
star4
star5

5 stars
17 ratings
6,338 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0