Plugin Directory

Changeset 1930304


Ignore:
Timestamp:
08/25/2018 08:55:17 PM (8 years ago)
Author:
godsgood33
Message:

Minor bug fixes for v1.3.1

Location:
point-tracker
Files:
6 edited
21 copied

Legend:

Unmodified
Added
Removed
  • point-tracker/tags/1.3.1/README.txt

    r1929974 r1930304  
    66Requires PHP: 5.6
    77Tested up to: 4.9.8
    8 Stable tag: 1.3
     8Stable tag: 1.3.1
    99License: Apache-2.0
    1010License URI: https://www.apache.org/licenses/LICENSE-2.0
     
    22221. Extract the 'point-tracker.zip' file in the '/wp-content/plugins/' directory or install using the plugin installer in WP
    23232. 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.
     243. The Point Tracker admin menu is used to administer the challenges, its activities, and participants.
    25254. Navigate to the Point Tracker -> Point Tracker admin menu
    26265. Fill out the form and create a challenge (add a name, start and end dates, and a description) then click "Save"
     
    5252You 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
    5353
     54= How can I create a custom page =
     55
     56After 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
    5458= I'd like a leader board =
    5559
     
    7983* Fixed incompatibility with plugins that have a save_post hook
    8084
     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
    8194== Upgrade Notice ==
    8295
  • point-tracker/tags/1.3.1/admin/js/point-tracker-admin.min.js

    r1929974 r1930304  
    2323}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>");
    2424$("#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");
     26var 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  
    6060</div>
    6161<div>
    62     <input type='text' id='end-date' placeholder='End Date...' 
     62    <input type='text' id='end-date' placeholder='End Date...'
    6363        class='tooltip-field' title='End date for the challenge' />
    6464</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>
    6969</div>
    7070<div>
  • point-tracker/tags/1.3.1/includes/class-point-tracker.php

    r1929974 r1930304  
    7373            $this->version = PT_PLUGIN_NAME_VERSION;
    7474        } else {
    75             $this->version = '1.3';
     75            $this->version = '1.3.1';
    7676        }
    7777        $this->plugin_name = 'point-tracker';
     
    263263        }
    264264
    265         if(is_user_logged_in()) {
     265        if(is_user_logged_in() && !$list) {
    266266            if (! Point_Tracker::is_user_in_challenge($chal->id, get_current_user_id()) && $chal->approval) {
    267267                header("Location: {$list_page->guid}?chal={$chal_link}");
  • point-tracker/tags/1.3.1/point-tracker.php

    r1929974 r1930304  
    1717 * Plugin URI:        https://github.com/godsgood33/point-tracker
    1818 * Description:       Allow network marketing leaders to create challenges and let people track their points.
    19  * Version:           1.3
     19 * Version:           1.3.1
    2020 * Author:            Ryan Prather
    2121 * Author URI:        https://github.com/godsgood33
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('PT_PLUGIN_NAME_VERSION', '1.3');
     38define('PT_PLUGIN_NAME_VERSION', '1.3.1');
    3939
    4040/**
  • point-tracker/tags/1.3/README.txt

    r1929974 r1930304  
    7979* Fixed incompatibility with plugins that have a save_post hook
    8080
     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
    8186== Upgrade Notice ==
    8287
  • point-tracker/trunk/README.txt

    r1929974 r1930304  
    66Requires PHP: 5.6
    77Tested up to: 4.9.8
    8 Stable tag: 1.3
     8Stable tag: 1.3.1
    99License: Apache-2.0
    1010License URI: https://www.apache.org/licenses/LICENSE-2.0
     
    22221. Extract the 'point-tracker.zip' file in the '/wp-content/plugins/' directory or install using the plugin installer in WP
    23232. 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.
     243. The Point Tracker admin menu is used to administer the challenges, its activities, and participants.
    25254. Navigate to the Point Tracker -> Point Tracker admin menu
    26265. Fill out the form and create a challenge (add a name, start and end dates, and a description) then click "Save"
     
    5252You 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
    5353
     54= How can I create a custom page =
     55
     56After 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
    5458= I'd like a leader board =
    5559
     
    7983* Fixed incompatibility with plugins that have a save_post hook
    8084
     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
    8194== Upgrade Notice ==
    8295
  • point-tracker/trunk/admin/js/point-tracker-admin.min.js

    r1929974 r1930304  
    2323}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>");
    2424$("#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");
     26var 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  
    6060</div>
    6161<div>
    62     <input type='text' id='end-date' placeholder='End Date...' 
     62    <input type='text' id='end-date' placeholder='End Date...'
    6363        class='tooltip-field' title='End date for the challenge' />
    6464</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>
    6969</div>
    7070<div>
  • point-tracker/trunk/includes/class-point-tracker.php

    r1929974 r1930304  
    7373            $this->version = PT_PLUGIN_NAME_VERSION;
    7474        } else {
    75             $this->version = '1.3';
     75            $this->version = '1.3.1';
    7676        }
    7777        $this->plugin_name = 'point-tracker';
     
    263263        }
    264264
    265         if(is_user_logged_in()) {
     265        if(is_user_logged_in() && !$list) {
    266266            if (! Point_Tracker::is_user_in_challenge($chal->id, get_current_user_id()) && $chal->approval) {
    267267                header("Location: {$list_page->guid}?chal={$chal_link}");
  • point-tracker/trunk/point-tracker.php

    r1929974 r1930304  
    1717 * Plugin URI:        https://github.com/godsgood33/point-tracker
    1818 * Description:       Allow network marketing leaders to create challenges and let people track their points.
    19  * Version:           1.3
     19 * Version:           1.3.1
    2020 * Author:            Ryan Prather
    2121 * Author URI:        https://github.com/godsgood33
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('PT_PLUGIN_NAME_VERSION', '1.3');
     38define('PT_PLUGIN_NAME_VERSION', '1.3.1');
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.