miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

the number of messages displayed

 
Author floraforum
Partaker
#1 | Posted: 1 Jun 2012 19:53 
On html-site.nl/forum/ I saw that the number of messages was displayed.
I would also like that on my site, The minibb addon (custum rankings) can only indicate senior or beginner.
Can anyone tell me how they have done?

Author Paul
Lead Developer 
#2 | Posted: 1 Jun 2012 20:38 
Custum rankings add-on is based on the amount of posts. What you may try, is to modify this add-on to display the amount of posts directly with no title given.

Author floraforum
Partaker
#3 | Posted: 1 Jun 2012 21:32 
any idea what I should change?

function parseUserInfo_num_posts($val){
if($GLOBALS['action']=='userinfo') return $val-$GLOBALS['row'][10];
elseif($GLOBALS['cols'][0]!=1 and !isset($GLOBALS['userRanks'][$GLOBALS['cols'][0]])){
if($val>=1 and $val<=300) $rank='Nieuw';
elseif($val>300 and $val<=600) $rank='Juniors';
elseif($val>600 and $val<=1000) $rank='Senior';
elseif($val>1000 and $val<=1500) $rank='Writing for Living';
elseif($val>1500) $rank='Writer Forever';
else $rank='';
return ' '.$rank;
}

Author kuopassa
Partaker
#4 | Posted: 2 Jun 2012 04:16 
Try to put just before

return ' '.$rank;

this code:

$rank = $val;

and see what happens... Might work, might not. It's 50-50. ;-)

Author floraforum
Partaker
#5 | Posted: 2 Jun 2012 18:16 
It works!!

Thanks a lot

Author Paul
Lead Developer 
#6 | Posted: 4 Jun 2012 18:02 
function parseUserInfo_num_posts($val){
if($GLOBALS['action']=='userinfo') return $val-$GLOBALS['row'][10];
else return $val;
}
that would be all about such function I suppose ;)

Author floraforum
Partaker
#7 | Posted: 4 Jun 2012 18:20 
Paul,
That was indeed all that was needed to make it work .
Thanks

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 the number of messages displayed
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑