Awesome, I got it working using the $post[points] variable.
I just had to hook the plugin to postbit_display_complete as it must have been executing before the uCash hook was (which is also in postbit_display_complete).
I hacked the uCash global file to not insert commas and now everything displays very nicely alongside my activity stats. COOL
I renamed the variables and added it as its own plugin. It looks like this (I take it that I can remove the // and anything that comes after it in each line?):
Code:
//Separate out cashcount
$icon_cashcount=$post[points];
if($icon_cashcount<1){
$icon_cashd=array(1=>'s',2=>'s',3=>'s',4=>'s',5=>'s',6=>'s',7=>'s',8=>'s',9=>'0');
}else{//($icon_cashcount<1)
for($i=9;$i>0;$i--){
$icon_cashdigit=$icon_cashcount%10;
$icon_cashcount=floor($icon_cashcount/10);
if(($icon_cashdigit==0)&&($icon_cashcount==0)){
$icon_cashd[$i]='s';
}else{//(($icon_cashdigit==0)&&($icon_cashcount==0))
$icon_cashd[$i]=$icon_cashdigit;
}//endif(($icon_cashdigit==0)&&($icon_cashcount==0))
}//endfor($i=9;$i>0;$i++)
}//endif($icon_cashcount<1)
Could I ask one last favor? If it doesn't require a heap of extra work, is it possible to insert a line or two of code so that a $ sign gif (given by element 'ds') can appear just before a non zero element (in place of the first 's' element) in the array (i.e. $icon_cashd[xxx]='ds')? My digits show perfectly, but it would be nice to have a preceding dollar sign too.
Thanks a lot, WetWired. You've been a great help.