miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

the number of messages displayed

Author floraforum
Registered
#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
Registered
#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
Registered
#4 | Posted: 2 Jun 2012 04:16 | Edited by: kuopassa 
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
Registered
#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
Registered
#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 Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB