dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on August 23, 2016, 01:14:53 AM

Title: Activitybar
Post by: Chip on August 23, 2016, 01:14:53 AM

Activity Bar displays a bar in posts and/or profiles, showing how active the user is.
http://custom.simplemachines.org/mods/index.php?mod=1929

The admin can choose where to display it (Posts, Profile or both), max width, how many posts that are required for a full bar, and the timeframe in which posts are counted.
Can be fully customized via CSS.

Uses the settings set by the administrator to calculate the activity.
It starts off by getting all messages posted within the set timeframe, and counts them.
Calculating starts off by dividing the number of posts by the max number of posts possible (Also a setting), and then multiplies that with 100. What it gets is the percentage displayed inside the bar.
It then figures out how much of the bar should be filled, by multiplying the result from the earlier division, width the max possible with the bar can have (Again, set by administrators).
This information is then used to create the bar.

Installed
SimplePortal 2.3.6 © 2008-2014, SimplePortal