• Welcome to Simple Machines Community Forum. Please login or sign up.
September 17, 2021, 06:43:05 PM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Activitybar

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

Previous topic - Next topic

Suki

June 30, 2009, 11:40:36 AM Last Edit: January 04, 2012, 04:56:46 PM by Suki
Link to Mod

Activity Bar
Author: Suki


Original idea and original developer: Nas

Description

For SMF 2.0.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.


License

* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/


Settings

-Admin > Configuration > Modifications


Languages

-English/utf8
-Spanish/utf8


Changelog

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.

Making tough decisions, so you don't have to.

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: