This is the code that the plugin uses to separate the post count into digits:
Code:
//Separate out postcount
$WWU002postcount=$WWU002user['posts'];
if($WWU002postcount<1){
$WWU002_postsd=array(1=>'s',2=>'s',3=>'s',4=>'s',5=>'s',6=>'s',7=>'s',8=>'s',9=>'0');
}else{//($WWU002postcount<1)
for($i=9;$i>0;$i--){
$WWU002digit=$WWU002postcount%10;
$WWU002postcount=floor($WWU002postcount/10);
if(($WWU002digit==0)&&($WWU002postcount==0)){
$WWU002_postsd[$i]='s';
}else{//(($WWU002digit==0)&&($WWU002postcount==0))
$WWU002_postsd[$i]=$WWU002digit;
}//endif(($WWU002digit==0)&&($WWU002postcount==0))
}//endfor($i=9;$i>0;$i++)
}//endif($WWU002postcount<1)
First, it stores the value to process in a working variable so the original value is not corrupted, then it has a special case to display 0 for any value under 1 (because postcount shouldn't go negative, and the code doesn't have provisions for displaying negative numbers). After that, it works from least significant digit to most significant, by dividing the value by 10 and using the remainder as the digit for that place. If we've passed all the siginificant digits (because our working value is zero), then zero digits are converted to space padding.
You should be able to use the same code to separate out the digits for any value, just change the second line to assign $WWU002postcount to the new value to break down, and replace occurrances of $WWU002_postsd with a different variable to hold the digits.
From the opening post:
Visiting each day and posting the configured amount of times per day for the configured number of weeks will yeild 100% activity. Posts are checked individually for each day, so days cannot be skipped then spammed up afterwards. The weight of visiting for the day relative to posting is configurable. Weeks are weighted so the most recent has a bigger impact on the activity percent than the most distant.
For an in-depth explaination (this file is included with the mod):
https://vborg.vbsupport.ru/attachmen...chmentid=33478