=== Plugin Name === Contributors: aliakro Tags: weight, graph, track, stones, kg, table, data, plot Requires at least: 4.0.0 Tested up to: 4.1 Stable tag: 1.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Donate link: Paypal: email@YeKen.uk 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 table. == Description == 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 table. Place the tag [weightlosstracker] 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. The following weight formats are supported: - Metric (Kg) - Imperial - Stones & Pounds - Imperial - Pounds only 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. 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 Languages supported: - English (UK) - French - Romanian - Need a translation? Email us: email@YeKen.uk * Developed by YeKen.uk * Paypal Donate: email@YeKen.uk == Installation == 1. Upload `weight-loss-tracker` directory to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Open the file general/define_globals.php and make any required changes. == Frequently Asked Questions == = Does it create any custom mySQL tables = Yes it creates one to store weight information per user = Does it support the Avada theme? = Yes. In general/define_globals.php set WE_LS_SUPPORT_AVADA_THEME to "true". = How do I switch it from Metric (Kg) to Imperial (Stones / Pounds)? = Yes. In general/define_globals.php set WE_LS_IMPERIAL_WEIGHTS to "true". = How do I switch it between Imperial Stones & Pounds to Imperial Pounds Only? = In general/define_globals.php set WE_LS_IMPERIAL_UNITS set the value to either: - stones_pounds = Stones and Pounds (default) - pounds_only = Pounds only = Can I change measurement units while the site is live? = It is only recommended if you first installed the plugin at version 1.6 (as it stores measurements in Kg / Pound). Before this, you may find data isn't present for previous date entries. == Screenshots == 1. A basic view of the plugin displayed to the user (in Avada theme support mode) == Changelog == = 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