News:

Wondering if this will always be free?  See why free is better.

Main Menu

Activitybar

Started by Suki, June 30, 2009, 11:40:36 AM

Previous topic - Next topic

Suki

Link to the mod

Activity Bar
Author: Suki


Original idea and original developer: Nas

Description

For SMF 2.1.x only

Activity Bar displays a bar in posts and/or profiles, showing how active the user is.
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.


Settings

- Admin > Configuration > Modification Settings > Miscellaneous


Languages

- English
- Spanish
- Russian


Changelog
2.0.1 April 2022
- Change logic when displaying the bar on profile pages

2.0 April 2022
- Use SMF's bar css style for bar colors
- Remove Ohara library
- Remove old dependencies
- PHP 7.4 or above support
- Remove utf-8 language files
- Clean up template functions

2.1 June 2015
- Changed license to MPL 2.0
- Uses Ohara helper library
- Removes hook specific files in favour of xml based tags

2.0 June 2014
- Compatibility with SMF 2.1 only.
- No more file edits.
- CSS3 CSS3 progress bars thanks to http://red-team-design.com/stylish-css3-progress-bars/
- All css moved to activity.css
- Select the position to show the bar on the Display page.
- Fixed some minor bugs.

1.2 October 2013
- Changed folder structure.
- Removed all template edits.
- Re-wrote all language strings.
- Increase readability for Spanish users.
- Added cache and the ability to clean it whenever a post count increases.
- Re-wrote all source code into a single class.
- Now has its own template file and both the display and the profile HTML are separated into their own functions.
- Uses the custom profile field system to avoid template edits.

1.1 January 2012
-Added compatibility for 2.0.x
-Removed compatibility for 1.1.x
-Reduce queries per page
-Use of hooks
-Less file edits

1.0.1.3 | 28 June 2011
*Now compatible with SMF 2.0

1.0.1.2 | 9 November 2009
* Now compatible with SMF 2.0 RC2 and Curve.
$ Older version of SMF 2.0 are no longer supported, nor is the old default theme Core (The 1.1.x version keeps its Core support, of course).
1.0.1.1 | 1 July 2009
* Small edit to make compatible with SMF 2.0 RC1.2.
> Added translations for Turkish, czech-utf8 and portuguese_pt.
1.0.1 | 1 July 2009
* Added support for SMF 1.1.x.
1.0 | 29 June 2009
$ Created and added to the mod site.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

MaXiForum.cz

Nice!
Screen, demo, 1.1.9 support? :P

Marcus Forsberg

The screenshots are being uploaded to the mod site as I type. No live demo yet.
I'll look at 1.1.9 support. ;)
And thanks. :)

MaXiForum.cz

Thanks for screenshots :-)
It is amazing!
I am look forward to version 1.1.9
I make czech translate ;)

akbora

Your mod is very good. I installed but it disappears in posts. In profil is OK.  I checked all setting.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Marcus Forsberg

Thanks, akbora.
Did you get any errors on installation?

akbora

No I installed without problem and pure...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Marcus Forsberg

Could you please attach Display.template.php here?

akbora

Thanks your interests... Here it is the file...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Marcus Forsberg

That's odd. All codes are there. Are you sure you enabled all settings?

akbora

Yes unfortunately,

All settings boxes are checked. I see it in profil...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Marcus Forsberg

Could you give me a link to your forum?

Mystery?

Hey I can't see the activity bar. I have enabled the mod settings for the bar in posts and profile.

Its on a custom theme, although when I install the mod it doesn't edit the display.template for that theme.
Join my NEW website that I just created and be a big part of it (July 30, 2010): http://www.gamerstatic.net

akbora

I've sent the link by PM
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Marcus Forsberg

Quote from: Mystery? on June 30, 2009, 02:25:25 PM
Hey I can't see the activity bar. I have enabled the mod settings for the bar in posts and profile.

Its on a custom theme, although when I install the mod it doesn't edit the display.template for that theme.

Please attach Display.template.php of the custom theme.

akbora

Activity bar how determines activity? post, online time or what?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

alex30

Awesome mod! Keep up!

1.1.9 is a must in this case.  ;D

Marcus Forsberg

Quote from: akbora on June 30, 2009, 02:36:36 PM
Activity bar how determines activity? post, online time or what?

Posts. You can change how many posts are needed and within how many days in the settings.
I am really stumped... All codes are fine and you said that settings are to. Could you try reinstalling it?

Quote from: alex30 on June 30, 2009, 02:41:41 PM
Awesome mod! Keep up!

1.1.9 is a must in this case.  ;D

Thanks. :)

akbora

Ok Nas I'll try it.

Otherwise, you can make top 10 activity bar according to week, month, year...Can't you?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Marcus Forsberg

Quote from: akbora on June 30, 2009, 02:50:21 PM
Ok Nas I'll try it.

Otherwise, you can make top 10 activity bar according to week, month, year...Can't you?

Sorry, what do you mean?

Advertisement: