Plugin Directory

Changeset 2442018


Ignore:
Timestamp:
12/18/2020 06:03:41 AM (5 years ago)
Author:
nellalink
Message:

Fixed MLM Tree not being arranged

Location:
rimplenet/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rimplenet/trunk/README.txt

    r2440947 r2442018  
    7878
    7979== Changelog ==
    80 = 1.0.5 =
     80= 1.0.7 =
    8181* BETA SUPPORT for Creation of Investment Pages, FULL SUPPORT will be available Version 1.2.0
    8282* Fixed Matrix Tree not Showing for last depth of downline
     
    9696
    9797== Upgrade Notice ==
    98 = 1.0.5 =
     98= 1.0.7 =
    9999* BETA SUPPORT for Creation of Investment Pages, FULL SUPPORT will be available Version 1.2.0
    100100* Fixed Matrix Tree not Showing for last depth of downline
  • rimplenet/trunk/public/class-rimplenet-mlm-matrix-public.php

    r2440951 r2442018  
    66class RimplenetMlmMatrix
    77{
    8    
    9     function __construct()
    10     {
    11        
     8 
     9  function __construct()
     10  {
     11   
    1212    add_shortcode('rimplenet-draw-mlm-tree', array($this, 'DrawMlmTree'));
    1313    add_action('init', array($this,'update_user_matrix_completion_bonus'), 25, 0 );
    1414
    1515
    16     }
     16  }
    1717
    1818   public function update_user_matrix_completion_bonus()
     
    3636
    3737   public function DrawMlmTree($atts) {
    38            
    39 
    40         ob_start();
    41 
    42         include plugin_dir_path( __FILE__ ) . 'layouts/design-mlm-tree.php';
    43          
    44         $output = ob_get_clean();
    45 
    46         return $output;
    47      
     38         
     39
     40      ob_start();
     41
     42      include plugin_dir_path( __FILE__ ) . 'layouts/design-mlm-tree.php';
     43       
     44      $output = ob_get_clean();
     45
     46      return $output;
     47   
    4848  }
    4949
     
    6666
    6767    return $totalusers;
    68    
     68   
    6969  }
    7070
     
    7575
    7676    return $subscribers_count;
    77    
     77   
    7878  }
    7979
     
    8181  {
    8282
    83     if ($this->getMatrixCapacityUsed($matrix_id, $user_id)>=$this->getMatrixCapacity($matrix_id)) {
    84         return true;
    85     }
    86     else{
    87         return false;
    88 
    89     }
    90    
     83    if ($this->getMatrixCapacityUsed($matrix_id, $user_id)>=$this->getMatrixCapacity($matrix_id)) {
     84      return true;
     85    }
     86    else{
     87      return false;
     88
     89    }
     90   
    9191  }
    9292
     
    262262    $Allarr = $arr_subscribers_child_parent;
    263263    $selectedArr = array("$user_id"=>NULL);
     264   
    264265    $ret_Arr = $this->RECselectDownlineArr($matrix_id, $Allarr, $selectedArr);
    265 
    266     if(empty($Allarr)){
    267       $DLarr = $ret_Arr;
    268     }
    269     else{
    270       $DLarr = $Allarr;
    271     }
    272    
    273     return $DLarr;
     266   
     267    return $ret_Arr;
    274268   
    275269   
     
    286280     
    287281      $limit = ($max_capacity-1)/$width;
    288      if(count($selectedArr)>=$max_capacity or $pointer>=$depth){
     282     if(count($selectedArr)>=$max_capacity or $pointer>=$depth+$limit){
    289283        return $selectedArr;
    290284     }
  • rimplenet/trunk/rimplenet.php

    r2440947 r2442018  
    1717 * Plugin URI:        https://rimplenet.com
    1818 * Description:       RimpleNet E-Wallets | Investments Plugin | MLM | Matrix | Referral Manager | FinTech
    19  * Version:           1.0.5
     19 * Version:           1.0.7
    2020 * Author:            Nellalink
    2121 * Author URI:        https://rimplenet.com
Note: See TracChangeset for help on using the changeset viewer.