Changeset 2446304
- Timestamp:
- 12/26/2020 11:33:01 PM (5 years ago)
- Location:
- rimplenet/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (3 diffs)
-
public/class-rimplenet-mlm-matrix-public.php (modified) (5 diffs)
-
public/css/rimplenet-mlm-public.css (modified) (1 diff)
-
public/layouts/design-mlm-tree.php (modified) (2 diffs)
-
rimplenet.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rimplenet/trunk/README.txt
r2442018 r2446304 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.6 7 Stable tag: 1. 0.57 Stable tag: 1.1.0 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 78 78 79 79 == Changelog == 80 = 1.1.0 = 81 * Rimplenet Matrix can safely show trees for referral users on pages 80 82 = 1.0.7 = 81 83 * BETA SUPPORT for Creation of Investment Pages, FULL SUPPORT will be available Version 1.2.0 … … 96 98 97 99 == Upgrade Notice == 100 = 1.1.0 = 101 * Rimplenet Matrix can safely show trees for referral users on pages 98 102 = 1.0.7 = 99 103 * BETA SUPPORT for Creation of Investment Pages, FULL SUPPORT will be available Version 1.2.0 -
rimplenet/trunk/public/class-rimplenet-mlm-matrix-public.php
r2442018 r2446304 201 201 return $generatedArrDL; 202 202 } 203 204 205 $cur_user_id = key($generatedArrDL);//Get first array value which is parent user id 203 206 foreach($AllParentArrValues as $parent_id){ 204 207 205 $parent_occurence = $count_parent_arr[$parent_id]; //check how many children has this parent 208 $child_user_id = $parent_id; //in this case $child_user_id is ating $parent_id 209 $depth_limit = $this->getDepthPositionToParentinMatrix($child_user_id,$cur_user_id,$matrix_id, $generatedArrDL); 210 211 if($depth_limit<$depth){ // if this parent depth position to matrix start user is less than matrix depth, look for its children 212 $parent_occurence = $count_parent_arr[$parent_id]; //check & count how many children has this parent 206 213 if(empty($parent_occurence) ){ 207 214 $parent_occurence = 0; … … 219 226 220 227 } 228 } 221 229 222 230 if(count($generatedArrDL)>=$max_capacity){ … … 231 239 232 240 233 function getDepthtoParentinMatrix($matrix_id, $child_user_id, $ArrDL ){ 241 function getDepthPositionToParentinMatrix($child_user_id,$parent_user_id,$matrix_id, $ArrDL, $depth_up=0 ){ 242 243 244 //var_dump($ArrDL); 234 245 $mlm_matrix_post = get_post($matrix_id); 235 246 … … 237 248 $depth = $mlm_matrix_post->depth; 238 249 239 $DL_user_parsed = $this->parseMatrixTree($ArrDL)[0]; 240 return $DL_user_parsed; 250 251 if (array_key_exists($child_user_id,$ArrDL)){ 252 $depth_up++; 253 $child_user_id = $ArrDL[$child_user_id]; 254 return $this->getDepthPositionToParentinMatrix($child_user_id,$parent_user_id,$matrix_id, $ArrDL, $depth_up); 255 } 256 257 else{ 258 return $depth_up-1; 259 } 260 241 261 } 242 262 … … 278 298 279 299 $max_capacity = $this->getMatrixCapacity($matrix_id); 280 281 $limit = ($max_capacity-1)/$width; 282 if(count($selectedArr)>=$max_capacity or $pointer>=$depth+$limit){ 300 $node_limit = ($max_capacity-1)/$width; 301 302 //$child_user_id = key(array_slice($selectedArr, -1, 1, true));//Get last array key 303 $cur_user_id = key($selectedArr);//Get first array value which is current user id 304 $checkArrDL = $selectedArr; 305 foreach($checkArrDL as $child_user_id=>$value){ 306 $depth_limit = $this->getDepthPositionToParentinMatrix($child_user_id,$cur_user_id,$matrix_id, $selectedArr); 307 if($depth_limit>$depth){ 308 unset($selectedArr[$child_user_id]); 309 $max_depth_reached = "yes"; 310 } 311 } 312 // echo $child_user_id." - ".$parent_user_id."<br>"; 313 $depth_limit = $this->getDepthPositionToParentinMatrix($child_user_id,$parent_user_id,$matrix_id, $selectedArr); 314 //echo $depth_limit."<br>"; 315 if(count($selectedArr)>=$max_capacity or $pointer>=$depth+$node_limit or $max_depth_reached=="yes"){ 316 283 317 return $selectedArr; 284 318 } -
rimplenet/trunk/public/css/rimplenet-mlm-public.css
r2429761 r2446304 17 17 } 18 18 19 .rimplenet-not-matrix-member{ 20 text-align: center; 21 color: #d93c3c; 22 font-weight: 500; 23 font-size: 1.1rem; 24 border: 1px solid; 25 border-radius: 5px; 26 } 19 27 20 28 .rimplenet-select{ -
rimplenet/trunk/public/layouts/design-mlm-tree.php
r2440841 r2446304 42 42 if(!in_array( $user_id,$all_matx_subs_arr )){ 43 43 44 echo __('<p class=" not_matrix_member">You are not a member of this matrix yet</p>');44 echo __('<p class="rimplenet-not-matrix-member">You are not a member of this matrix yet</p>'); 45 45 //$array_user_DL = $this->getFullDummySubsArr($matrix_id); 46 46 … … 67 67 //echo var_dump($this->getMatrixCapacity($matrix_id)); 68 68 //echo var_dump($array_user_DL); 69 //echo var_dump($this->getDepth toParentinMatrix($matrix_id, 7,$array_user_DL ));69 //echo var_dump($this->getDepthPositionToParentinMatrix(25,1,$matrix_id,$array_user_DL )); 70 70 //echo var_dump($this->getFullDummyandFullRealSubsArr($matrix_id, $user_id)); 71 71 //echo var_dump($this->getSubscribersDownlineArr($matrix_id, $user_id)); -
rimplenet/trunk/rimplenet.php
r2442018 r2446304 16 16 * Plugin Name: Rimplenet 17 17 * Plugin URI: https://rimplenet.com 18 * Description: RimpleNet E-Wallets | Investments Plugin | MLM | Matrix | Referral Manager | FinTech19 * Version: 1. 0.718 * Description: RimpleNet E-Wallets | Investments Plugin | MLM | Matrix Tree | Referral Manager | FinTech 19 * Version: 1.1.0 20 20 * Author: Nellalink 21 21 * Author URI: https://rimplenet.com
Note: See TracChangeset
for help on using the changeset viewer.