Changeset 1930304
- Timestamp:
- 08/25/2018 08:55:17 PM (8 years ago)
- Location:
- point-tracker
- Files:
-
- 6 edited
- 21 copied
-
tags/1.3.1 (copied) (copied from point-tracker/trunk)
-
tags/1.3.1/README.md (copied) (copied from point-tracker/trunk/README.md)
-
tags/1.3.1/README.txt (copied) (copied from point-tracker/trunk/README.txt) (4 diffs)
-
tags/1.3.1/admin/class-point-tracker-admin.php (copied) (copied from point-tracker/trunk/admin/class-point-tracker-admin.php)
-
tags/1.3.1/admin/js/point-tracker-admin.min.js (copied) (copied from point-tracker/trunk/admin/js/point-tracker-admin.min.js) (1 diff)
-
tags/1.3.1/admin/partials/point-tracker-log-pg.php (copied) (copied from point-tracker/trunk/admin/partials/point-tracker-log-pg.php)
-
tags/1.3.1/admin/partials/point-tracker-main-pg.php (copied) (copied from point-tracker/trunk/admin/partials/point-tracker-main-pg.php) (1 diff)
-
tags/1.3.1/admin/partials/point-tracker-participant-pg.php (copied) (copied from point-tracker/trunk/admin/partials/point-tracker-participant-pg.php)
-
tags/1.3.1/includes/ajax/activity-ajax.php (copied) (copied from point-tracker/trunk/includes/ajax/activity-ajax.php)
-
tags/1.3.1/includes/ajax/challenge-ajax.php (copied) (copied from point-tracker/trunk/includes/ajax/challenge-ajax.php)
-
tags/1.3.1/includes/ajax/entry-ajax.php (copied) (copied from point-tracker/trunk/includes/ajax/entry-ajax.php)
-
tags/1.3.1/includes/ajax/participant-ajax.php (copied) (copied from point-tracker/trunk/includes/ajax/participant-ajax.php)
-
tags/1.3.1/includes/class-point-tracker-activator.php (copied) (copied from point-tracker/trunk/includes/class-point-tracker-activator.php)
-
tags/1.3.1/includes/class-point-tracker-deactivator.php (copied) (copied from point-tracker/trunk/includes/class-point-tracker-deactivator.php)
-
tags/1.3.1/includes/class-point-tracker.php (copied) (copied from point-tracker/trunk/includes/class-point-tracker.php) (2 diffs)
-
tags/1.3.1/point-tracker.php (copied) (copied from point-tracker/trunk/point-tracker.php) (2 diffs)
-
tags/1.3.1/public/class-point-tracker-public.php (copied) (copied from point-tracker/trunk/public/class-point-tracker-public.php)
-
tags/1.3.1/public/js/point-tracker-public.min.js (copied) (copied from point-tracker/trunk/public/js/point-tracker-public.min.js)
-
tags/1.3.1/public/partials/point-tracker-challenge-list-pg.php (copied) (copied from point-tracker/trunk/public/partials/point-tracker-challenge-list-pg.php)
-
tags/1.3.1/public/partials/point-tracker-challenge-pg.php (copied) (copied from point-tracker/trunk/public/partials/point-tracker-challenge-pg.php)
-
tags/1.3.1/public/partials/point-tracker-my-activity-pg.php (copied) (copied from point-tracker/trunk/public/partials/point-tracker-my-activity-pg.php)
-
tags/1.3/README.txt (modified) (1 diff)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/admin/js/point-tracker-admin.min.js (modified) (1 diff)
-
trunk/admin/partials/point-tracker-main-pg.php (modified) (1 diff)
-
trunk/includes/class-point-tracker.php (modified) (2 diffs)
-
trunk/point-tracker.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
point-tracker/tags/1.3.1/README.txt
r1929974 r1930304 6 6 Requires PHP: 5.6 7 7 Tested up to: 4.9.8 8 Stable tag: 1.3 8 Stable tag: 1.3.1 9 9 License: Apache-2.0 10 10 License URI: https://www.apache.org/licenses/LICENSE-2.0 … … 22 22 1. Extract the 'point-tracker.zip' file in the '/wp-content/plugins/' directory or install using the plugin installer in WP 23 23 2. Activate the plugin through the 'Plugins' menu in WordPress 24 3. The Point Tracker admin menu is used to administer the challenges, its activitie , and participants.24 3. The Point Tracker admin menu is used to administer the challenges, its activities, and participants. 25 25 4. Navigate to the Point Tracker -> Point Tracker admin menu 26 26 5. Fill out the form and create a challenge (add a name, start and end dates, and a description) then click "Save" … … 52 52 You can either delete it yourself or if they visit the View My Activity page (/my-activity/?chal={linkcode}), they will be able to delete it themselves 53 53 54 = How can I create a custom page = 55 56 After you've created a challenge copy the unique code for that challenge. Create a new page at Page -> Add New. Give it a name and whatever content you'd like. Then where you'd like to put the challenge form simply type [challenge chal={challenge code you copied}][/challenge], then publish the page. That is all. 57 54 58 = I'd like a leader board = 55 59 … … 79 83 * Fixed incompatibility with plugins that have a save_post hook 80 84 85 = 1.3 = 86 * Changed shortcode to [challenge] instead of [challenge_page] 87 * Added "chal" parameter to shortcode to allow for creating custom pages 88 * Bug fixes 89 90 = 1.3.1 91 * Set the challenge end date to be no earlier than the start date (can't end before you start) 92 * Fixed bug in showing challenge list 93 81 94 == Upgrade Notice == 82 95 -
point-tracker/tags/1.3.1/admin/js/point-tracker-admin.min.js
r1929974 r1930304 23 23 }table1.row().remove().draw();},error:function(xhr,status,error){console.error(error);},dataType:"json",method:"post"});}$("#participant-log").change(get_log);function stringToBoolean(string){if(string==undefined){return false;}switch(string.toLowerCase().trim()){case"true":case"yes":case"1":return true;case"false":case"no":case"0":case null:return false;default:return Boolean(string);}}function check_for_error(data){$("#msg div").remove();$("#msg").removeClass("err-msg,warn-msg");var err=false;if(data=="0"){$("#msg").html("<div>There was an error</div>"); 24 24 $("#msg").addClass("err-msg");err=true;}if(data.error){$("#msg").html("<div>"+data.error+"</div>");$("#msg").addClass("err-msg");err=true;}if(data.warning){$("#msg").html("<div>"+data.warning+"</div>");$("#msg").addClass("warn-msg");err=true;}if(data.success){$("#msg").html("<div>"+data.success+"</div>");}if($("#msg").html()){$("#msg").show(300);}if(err){setTimeout(function(){$("#msg").hide(300);$("#msg").html("");},3000);}else{setTimeout(function(){$("#msg").hide(300);$("#msg").html("");},1500);}return !err; 25 }function beforeAjaxSend(){$("#loading,#waiting").show();$("#waiting").animate({"opacity":"0.5"},300,"linear");}function ajaxComplete(){$("#loading,#waiting").hide();$("#waiting").animate({"opacity":"0"},300,"linear");}var opts={lines:25,length:25,width:5,radius:50,scale:1,corners:1,color:"#000",opacity:0.25,rotate:0,direction:1,speed:0.5,trail:60,fps:20,zIndex:2000000000,className:"spin-thingy",top:"50%",left:"50%",shadow:false,hwaccel:false,position:"absolute"};var target,spinner,table1,table2;$("#start-date,#end-date,#act-start,#act-end").datepicker({dateFormat:my_object.date_format}); 26 if($("#loading").length){target=document.getElementById("loading");spinner=new Spinner(opts).spin(target);}dialog=$("#dialog-form").dialog({autoOpen:false,height:400,width:350,modal:true,buttons:{"Add Leader":addLeader,Cancel:function(){dialog.dialog("close");}},close:function(){form[0].reset();}});form=dialog.find("form").on("submit",function(event){event.preventDefault();addLeader();});$("#add-leader").button().on("click",function(){dialog.dialog("open");});$(".tooltip-field").tooltip({show:{effect:"slideDown",delay:100},hide:{effect:"slideUp",delay:250}}); 27 }); 25 }function beforeAjaxSend(){$("#loading,#waiting").show();$("#waiting").animate({"opacity":"0.5"},300,"linear");}function ajaxComplete(){$("#loading,#waiting").hide();$("#waiting").animate({"opacity":"0"},300,"linear");}var opts={lines:25,length:25,width:5,radius:50,scale:1,corners:1,color:"#000",opacity:0.25,rotate:0,direction:1,speed:0.5,trail:60,fps:20,zIndex:2000000000,className:"spin-thingy",top:"50%",left:"50%",shadow:false,hwaccel:false,position:"absolute"};var target,spinner,table1,table2;$("#start-date").datepicker({dateFormat:my_object.date_format,onSelect:function(date){var dt2=$("#end-date"); 26 var minDate=$(this).datepicker("getDate");dt2.datepicker("option","minDate",minDate);}});$("#end-date").datepicker({dateFormat:my_object.date_format});if($("#loading").length){target=document.getElementById("loading");spinner=new Spinner(opts).spin(target);}$(".tooltip-field").tooltip({show:{effect:"slideDown",delay:100},hide:{effect:"slideUp",delay:250}});}); -
point-tracker/tags/1.3.1/admin/partials/point-tracker-main-pg.php
r1929974 r1930304 60 60 </div> 61 61 <div> 62 <input type='text' id='end-date' placeholder='End Date...' 62 <input type='text' id='end-date' placeholder='End Date...' 63 63 class='tooltip-field' title='End date for the challenge' /> 64 64 </div> 65 <div >66 <input type='checkbox' id='approval' class='tooltip-field' 67 title='Do you want to approve requests to join the challenge (requires account)' />68 <label for='approval'>Approval Required?</label> 65 <div class='tooltip-field' 66 title='Do you want to approve requests to join the challenge (requires account)'> 67 <input type='checkbox' id='approval' /> 68 <label for='approval'>Approval Required?</label> 69 69 </div> 70 70 <div> -
point-tracker/tags/1.3.1/includes/class-point-tracker.php
r1929974 r1930304 73 73 $this->version = PT_PLUGIN_NAME_VERSION; 74 74 } else { 75 $this->version = '1.3 ';75 $this->version = '1.3.1'; 76 76 } 77 77 $this->plugin_name = 'point-tracker'; … … 263 263 } 264 264 265 if(is_user_logged_in() ) {265 if(is_user_logged_in() && !$list) { 266 266 if (! Point_Tracker::is_user_in_challenge($chal->id, get_current_user_id()) && $chal->approval) { 267 267 header("Location: {$list_page->guid}?chal={$chal_link}"); -
point-tracker/tags/1.3.1/point-tracker.php
r1929974 r1930304 17 17 * Plugin URI: https://github.com/godsgood33/point-tracker 18 18 * Description: Allow network marketing leaders to create challenges and let people track their points. 19 * Version: 1.3 19 * Version: 1.3.1 20 20 * Author: Ryan Prather 21 21 * Author URI: https://github.com/godsgood33 … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('PT_PLUGIN_NAME_VERSION', '1.3 ');38 define('PT_PLUGIN_NAME_VERSION', '1.3.1'); 39 39 40 40 /** -
point-tracker/tags/1.3/README.txt
r1929974 r1930304 79 79 * Fixed incompatibility with plugins that have a save_post hook 80 80 81 = 1.3 = 82 * Changed shortcode to [challenge] instead of [challenge_page] 83 * Added "chal" parameter to short code to allow for creating separate pages 84 * Bug fixes 85 81 86 == Upgrade Notice == 82 87 -
point-tracker/trunk/README.txt
r1929974 r1930304 6 6 Requires PHP: 5.6 7 7 Tested up to: 4.9.8 8 Stable tag: 1.3 8 Stable tag: 1.3.1 9 9 License: Apache-2.0 10 10 License URI: https://www.apache.org/licenses/LICENSE-2.0 … … 22 22 1. Extract the 'point-tracker.zip' file in the '/wp-content/plugins/' directory or install using the plugin installer in WP 23 23 2. Activate the plugin through the 'Plugins' menu in WordPress 24 3. The Point Tracker admin menu is used to administer the challenges, its activitie , and participants.24 3. The Point Tracker admin menu is used to administer the challenges, its activities, and participants. 25 25 4. Navigate to the Point Tracker -> Point Tracker admin menu 26 26 5. Fill out the form and create a challenge (add a name, start and end dates, and a description) then click "Save" … … 52 52 You can either delete it yourself or if they visit the View My Activity page (/my-activity/?chal={linkcode}), they will be able to delete it themselves 53 53 54 = How can I create a custom page = 55 56 After you've created a challenge copy the unique code for that challenge. Create a new page at Page -> Add New. Give it a name and whatever content you'd like. Then where you'd like to put the challenge form simply type [challenge chal={challenge code you copied}][/challenge], then publish the page. That is all. 57 54 58 = I'd like a leader board = 55 59 … … 79 83 * Fixed incompatibility with plugins that have a save_post hook 80 84 85 = 1.3 = 86 * Changed shortcode to [challenge] instead of [challenge_page] 87 * Added "chal" parameter to shortcode to allow for creating custom pages 88 * Bug fixes 89 90 = 1.3.1 91 * Set the challenge end date to be no earlier than the start date (can't end before you start) 92 * Fixed bug in showing challenge list 93 81 94 == Upgrade Notice == 82 95 -
point-tracker/trunk/admin/js/point-tracker-admin.min.js
r1929974 r1930304 23 23 }table1.row().remove().draw();},error:function(xhr,status,error){console.error(error);},dataType:"json",method:"post"});}$("#participant-log").change(get_log);function stringToBoolean(string){if(string==undefined){return false;}switch(string.toLowerCase().trim()){case"true":case"yes":case"1":return true;case"false":case"no":case"0":case null:return false;default:return Boolean(string);}}function check_for_error(data){$("#msg div").remove();$("#msg").removeClass("err-msg,warn-msg");var err=false;if(data=="0"){$("#msg").html("<div>There was an error</div>"); 24 24 $("#msg").addClass("err-msg");err=true;}if(data.error){$("#msg").html("<div>"+data.error+"</div>");$("#msg").addClass("err-msg");err=true;}if(data.warning){$("#msg").html("<div>"+data.warning+"</div>");$("#msg").addClass("warn-msg");err=true;}if(data.success){$("#msg").html("<div>"+data.success+"</div>");}if($("#msg").html()){$("#msg").show(300);}if(err){setTimeout(function(){$("#msg").hide(300);$("#msg").html("");},3000);}else{setTimeout(function(){$("#msg").hide(300);$("#msg").html("");},1500);}return !err; 25 }function beforeAjaxSend(){$("#loading,#waiting").show();$("#waiting").animate({"opacity":"0.5"},300,"linear");}function ajaxComplete(){$("#loading,#waiting").hide();$("#waiting").animate({"opacity":"0"},300,"linear");}var opts={lines:25,length:25,width:5,radius:50,scale:1,corners:1,color:"#000",opacity:0.25,rotate:0,direction:1,speed:0.5,trail:60,fps:20,zIndex:2000000000,className:"spin-thingy",top:"50%",left:"50%",shadow:false,hwaccel:false,position:"absolute"};var target,spinner,table1,table2;$("#start-date,#end-date,#act-start,#act-end").datepicker({dateFormat:my_object.date_format}); 26 if($("#loading").length){target=document.getElementById("loading");spinner=new Spinner(opts).spin(target);}dialog=$("#dialog-form").dialog({autoOpen:false,height:400,width:350,modal:true,buttons:{"Add Leader":addLeader,Cancel:function(){dialog.dialog("close");}},close:function(){form[0].reset();}});form=dialog.find("form").on("submit",function(event){event.preventDefault();addLeader();});$("#add-leader").button().on("click",function(){dialog.dialog("open");});$(".tooltip-field").tooltip({show:{effect:"slideDown",delay:100},hide:{effect:"slideUp",delay:250}}); 27 }); 25 }function beforeAjaxSend(){$("#loading,#waiting").show();$("#waiting").animate({"opacity":"0.5"},300,"linear");}function ajaxComplete(){$("#loading,#waiting").hide();$("#waiting").animate({"opacity":"0"},300,"linear");}var opts={lines:25,length:25,width:5,radius:50,scale:1,corners:1,color:"#000",opacity:0.25,rotate:0,direction:1,speed:0.5,trail:60,fps:20,zIndex:2000000000,className:"spin-thingy",top:"50%",left:"50%",shadow:false,hwaccel:false,position:"absolute"};var target,spinner,table1,table2;$("#start-date").datepicker({dateFormat:my_object.date_format,onSelect:function(date){var dt2=$("#end-date"); 26 var minDate=$(this).datepicker("getDate");dt2.datepicker("option","minDate",minDate);}});$("#end-date").datepicker({dateFormat:my_object.date_format});if($("#loading").length){target=document.getElementById("loading");spinner=new Spinner(opts).spin(target);}$(".tooltip-field").tooltip({show:{effect:"slideDown",delay:100},hide:{effect:"slideUp",delay:250}});}); -
point-tracker/trunk/admin/partials/point-tracker-main-pg.php
r1929974 r1930304 60 60 </div> 61 61 <div> 62 <input type='text' id='end-date' placeholder='End Date...' 62 <input type='text' id='end-date' placeholder='End Date...' 63 63 class='tooltip-field' title='End date for the challenge' /> 64 64 </div> 65 <div >66 <input type='checkbox' id='approval' class='tooltip-field' 67 title='Do you want to approve requests to join the challenge (requires account)' />68 <label for='approval'>Approval Required?</label> 65 <div class='tooltip-field' 66 title='Do you want to approve requests to join the challenge (requires account)'> 67 <input type='checkbox' id='approval' /> 68 <label for='approval'>Approval Required?</label> 69 69 </div> 70 70 <div> -
point-tracker/trunk/includes/class-point-tracker.php
r1929974 r1930304 73 73 $this->version = PT_PLUGIN_NAME_VERSION; 74 74 } else { 75 $this->version = '1.3 ';75 $this->version = '1.3.1'; 76 76 } 77 77 $this->plugin_name = 'point-tracker'; … … 263 263 } 264 264 265 if(is_user_logged_in() ) {265 if(is_user_logged_in() && !$list) { 266 266 if (! Point_Tracker::is_user_in_challenge($chal->id, get_current_user_id()) && $chal->approval) { 267 267 header("Location: {$list_page->guid}?chal={$chal_link}"); -
point-tracker/trunk/point-tracker.php
r1929974 r1930304 17 17 * Plugin URI: https://github.com/godsgood33/point-tracker 18 18 * Description: Allow network marketing leaders to create challenges and let people track their points. 19 * Version: 1.3 19 * Version: 1.3.1 20 20 * Author: Ryan Prather 21 21 * Author URI: https://github.com/godsgood33 … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('PT_PLUGIN_NAME_VERSION', '1.3 ');38 define('PT_PLUGIN_NAME_VERSION', '1.3.1'); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.