Did you know that you may be allowed to hide miniBB credits
and remove miniBB's copyright notice? Click here to read more.
Copyright Removal allowance for miniBB
miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications /
Short link for this topic:

Changing amount of User Activities "bars" under Profile

 
Author Vodicka
Forums Member
#1 | Posted: 2 Feb 2009 08:58 | Edited by: Vodicka
I would like to know how to limit number of bars in user activity "chart" (in user profile). For my users top 10 would be just enough.

I already succeeded in limiting number of shown latest topics and posts by adding the following line into bb_plugins.php:

if($action=='userinfo') $viewmaxtopic=10;


Would something similar be possible for the chart too?

P.S.

Please correct the title. (Simply...) Shame on me!
Author Paul
CEO
#2 | Posted: 2 Feb 2009 10:10
Bars just show all forums user has been participated in. If the amount seems to be big, it means you have a lot of forums, and basically, if you limit that chart, it won't be useful and objective anymore. So I suppose for you it would be better to remove it at all, put

define('NOT_SHOW_LATEST_REPLIES');

under bb_plugins.php or setup_options.php.

To limit the amount of bars, you need to modify bb_func_usernfo.php file, introducing new limiting variable in /* Activities */ block. For example you introduce:

$limitBars=5;
$currentLimit=0;

Then in the cycle which begins as

foreach($forums as $k=>$val){

...
...

$currentLimit++;
if($currentLimit>$limitBars) break;

}

you need to refer to that war. Example is shown above.
Author Vodicka
Forums Member
#3 | Posted: 2 Feb 2009 16:39
You are right and in future I may opt for dismissing the chart completely. For now I have limited the number of bars to ten and it works just fine. Thank you!
 
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications / Changing amount of User Activities "bars" under Profile Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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 Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts