Advertisement:

Author Topic: Activitybar  (Read 104706 times)

Offline Suki

  • Kaizoku Jotei
  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 15,325
  • I don't really come from outer space
    • MissAllSunday on GitHub
    • SMF mods
Activitybar
« on: June 30, 2009, 11:40:36 AM »
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.
« Last Edit: January 04, 2012, 04:56:46 PM by Suki »
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Activitybar
« Reply #1 on: June 30, 2009, 11:58:59 AM »
Nice!
Screen, demo, 1.1.9 support? :P

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #2 on: June 30, 2009, 12:00:10 PM »
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. :)

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Activitybar
« Reply #3 on: June 30, 2009, 12:03:48 PM »
Thanks for screenshots :-)
It is amazing!
I am look forward to version 1.1.9
I make czech translate ;)

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #4 on: June 30, 2009, 02:04:48 PM »
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
---------------

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #5 on: June 30, 2009, 02:05:43 PM »
Thanks, akbora.
Did you get any errors on installation?

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #6 on: June 30, 2009, 02:06:50 PM »
No I installed without problem and pure...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #7 on: June 30, 2009, 02:07:10 PM »
Could you please attach Display.template.php here?

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #8 on: June 30, 2009, 02:10:56 PM »
Thanks your interests... Here it is the file...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #9 on: June 30, 2009, 02:15:43 PM »
That's odd. All codes are there. Are you sure you enabled all settings?

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #10 on: June 30, 2009, 02:20:58 PM »
Yes unfortunately,

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

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #11 on: June 30, 2009, 02:22:02 PM »
Could you give me a link to your forum?

Offline Mystery?

  • Jr. Member
  • **
  • Posts: 240
    • GamerStatic
Re: Activitybar
« Reply #12 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.
Join my NEW website that I just created and be a big part of it (July 30, 2010): http://www.GamerStatic.net

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #13 on: June 30, 2009, 02:26:46 PM »
I've sent the link by PM
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #14 on: June 30, 2009, 02:29:02 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.

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #15 on: June 30, 2009, 02:36:36 PM »
Activity bar how determines activity? post, online time or what?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline alex30

  • Full Member
  • ***
  • Posts: 605
  • Gender: Male
Re: Activitybar
« Reply #16 on: June 30, 2009, 02:41:41 PM »
Awesome mod! Keep up!

1.1.9 is a must in this case.  ;D

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #17 on: June 30, 2009, 02:46:44 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?

Awesome mod! Keep up!

1.1.9 is a must in this case.  ;D

Thanks. :)

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Activitybar
« Reply #18 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?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Activitybar
« Reply #19 on: June 30, 2009, 02:51:40 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?