Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Suki on June 30, 2009, 11:40:36 AM

Title: Activitybar
Post by: Suki on June 30, 2009, 11:40:36 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1929)

Activity Bar
Author: Suki (http://missallsunday.com)


Original idea and original developer: Nas (http://www.simplemachines.org/community/index.php?action=profile;u=143954)

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.
Title: Re: Activitybar
Post by: MaXiForum.cz on June 30, 2009, 11:58:59 AM
Nice!
Screen, demo, 1.1.9 support? :P
Title: Re: Activitybar
Post by: Marcus Forsberg 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. :)
Title: Re: Activitybar
Post by: MaXiForum.cz 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 ;)
Title: Re: Activitybar
Post by: akbora 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.
Title: Re: Activitybar
Post by: Marcus Forsberg on June 30, 2009, 02:05:43 PM
Thanks, akbora.
Did you get any errors on installation?
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 02:06:50 PM
No I installed without problem and pure...
Title: Re: Activitybar
Post by: Marcus Forsberg on June 30, 2009, 02:07:10 PM
Could you please attach Display.template.php here?
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 02:10:56 PM
Thanks your interests... Here it is the file...
Title: Re: Activitybar
Post by: Marcus Forsberg on June 30, 2009, 02:15:43 PM
That's odd. All codes are there. Are you sure you enabled all settings?
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 02:20:58 PM
Yes unfortunately,

All settings boxes are checked. I see it in profil...
Title: Re: Activitybar
Post by: Marcus Forsberg on June 30, 2009, 02:22:02 PM
Could you give me a link to your forum?
Title: Re: Activitybar
Post by: 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.
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 02:26:46 PM
I've sent the link by PM
Title: Re: Activitybar
Post by: Marcus Forsberg 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.
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 02:36:36 PM
Activity bar how determines activity? post, online time or what?
Title: Re: Activitybar
Post by: alex30 on June 30, 2009, 02:41:41 PM
Awesome mod! Keep up!

1.1.9 is a must in this case.  ;D
Title: Re: Activitybar
Post by: Marcus Forsberg 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. :)
Title: Re: Activitybar
Post by: 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?
Title: Re: Activitybar
Post by: Marcus Forsberg 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?
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 02:57:19 PM
Like top10 posters in aweek in a year...


I Reinstalled it changed nothing.

Problem is modification turkish? Do we need add any code in the file?

 
Title: Re: Activitybar
Post by: Marcus Forsberg on June 30, 2009, 02:58:58 PM
Yes, languagestrings. But that shouldn't affect the functionallity of the mod.
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 03:05:19 PM
Please what is the code let me add to turkish modification file?

There was a similar problem with casino mod. It recovered with this method.
Title: Re: Activitybar
Post by: Marcus Forsberg on June 30, 2009, 03:07:48 PM
Add this to the end off the file (Just before ?>)

Code: [Select]
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Activity';
$txt['activitybar_enable'] = 'Enable activity bar <div class="smalltext">Enable the activity bar, a bar that shows how active a user has been.</div>';
$txt['activitybar_label'] = 'Bar label <div class="smalltext">A label displayed along with the bar. Default is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Activity Timeframe <div class="smalltext">The modification will count all posts made during this timeframe. <br />In days. Default to 30.</div>';
$txt['activitybar_show_in_posts'] = 'Display the activity bar in posts';
$txt['activitybar_show_in_profile'] = 'Display the activity bar in profiles';
$txt['activitybar_max_posts'] = 'Max posts <div class="smalltext">Number of posts required in order to fill the bar. <br />Leave empty for defaults (500 posts).</div>';
$txt['activitybar_max_width'] = 'Max width  <div class="smalltext">The width of the bar. When the post limit set above is reached, the bar will have this width. <br />In pixels. Leave empty for defaults (139px).</div>';
Title: Re: Activitybar
Post by: akbora on June 30, 2009, 03:14:00 PM
No it isn't solved....
Title: Re: Activitybar
Post by: Antes on June 30, 2009, 04:28:44 PM
Awsome mod for all sites :) ...
Here is Turkish translate

Code: [Select]
// Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Aktiflik';
$txt['activitybar_enable'] = 'Aktiflik Çizgisini aktive et <div class="smalltext">Bu özellikle birlikte kullanıcının ne kadar aktif olduğunu görebilirsiniz.</div>';
$txt['activitybar_label'] = 'Çizgi Etiketi <div class="smalltext">Çizgi ile gösterilecek etiket. Standart "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Aktiflik Zamançerçevesi <div class="smalltext">Eklentinin göz önünde bulunduracağı zamançerçevesi. <br />Gün Sayısı. Standart 30.</div>';
$txt['activitybar_show_in_posts'] = 'Aktiflik çizgisini iletilerde göster';
$txt['activitybar_show_in_profile'] = 'Aktiflik çizgisini profillerde göster';
$txt['activitybar_max_posts'] = 'En Fazla İleti <div class="smalltext">Çizgiyi doldurucak en fazla ileti sayısı. <br />Boş bırakarak standart hale getirirsiniz (500 ileti).</div>';
$txt['activitybar_max_width'] = 'En fazla genişlik <div class="smalltext">Çizginin genişliği. Koyulan ileti limiti geçildiğinde çizgi bu genişliğe gelecektir. <br />Pixel olarak. Boş bırakarak standart hale getirirsiniz (139px).</div>'
Title: Re: Activitybar
Post by: TheListener on June 30, 2009, 05:08:40 PM
Good Mod

Installed ok on forum. All I see is: 4.8% no actual bar. Do I need to add sometyhing to the theme template?
Title: Re: Activitybar
Post by: Snowy on June 30, 2009, 09:31:42 PM
I like this one a lot, but it's too much work to manually install mods to each theme. I'd like to see this a core feature viewable in all themes. I'd love to use it, but just can't manually install to a half dozen themes.
Title: Re: Activitybar
Post by: TheListener on June 30, 2009, 09:35:36 PM
How many themes do you use on your forum?  :)
Title: Re: Activitybar
Post by: Snowy on June 30, 2009, 10:24:38 PM
How many themes do you use on your forum?  :)

I have the default, babylon, classic yabb, one dark, one silver, one brown, one archaeological style, brown, orange, and what I use as the default which is most fitting for my forum... the forest. So, 10. Might be too much, but it's a range for everyone...

Imagine what it was like for me when I used 1.1.8.... I don't want to go back to doing all those edits.
But there are some seriously beneficial mods kicking around here that I wish could be part of the core and simply show up in any theme. Like this one.... it offers a quick glance at how active your members are. If it were built into the core, it could have an option to turn it off or on, just like the kharma, etc......
Title: Re: Activitybar
Post by: TheListener on June 30, 2009, 10:29:09 PM
I prefer to go for the simple side of things. Keep everyone on the same theme to me means no rules such as no neon font ( if a white background).

Title: Re: Activitybar
Post by: Snowy on June 30, 2009, 10:47:36 PM
I prefer to go for the simple side of things. Keep everyone on the same theme to me means no rules such as no neon font ( if a white background).



That's probably the best way to go. My problem is, I don't want my forum to look the same as every other forum out there at its default stage. Hence, the bright forest theme as a default.... fits in nicely with Maine. Therefore, I understand some might not like it, so I offered some alternatives. I'm whittling them down, though. When a theme isn't being used by anyone for a few weeks, I take it out.

Regardless, I may reinstall this mod at some point, but I'll need the time first, the amount of time will depend on the amount of themes. I think this is a very worthy mod. I really like it. It gives everyone an idea right off the bat how active someone is on the forum. The only thing I don't like about it is the time limit..... I'd prefer to not have it guage activity over 30 days or whatever.... I'd rather have an indefinite guage. But to change it from 30 days, you have to have a number in there. I guess 36,500 would do it, huh? lol
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 05:24:26 AM
No it isn't solved....

I'll have too look into this.

Good Mod

Installed ok on forum. All I see is: 4.8% no actual bar. Do I need to add sometyhing to the theme template?

Clear your cache. Hit F5. :)

Awsome mod for all sites :) ...
Here is Turkish translate

Code: [Select]
// Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Aktiflik';
$txt['activitybar_enable'] = 'Aktiflik Çizgisini aktive et <div class="smalltext">Bu özellikle birlikte kullanıcının ne kadar aktif olduğunu görebilirsiniz.</div>';
$txt['activitybar_label'] = 'Çizgi Etiketi <div class="smalltext">Çizgi ile gösterilecek etiket. Standart "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Aktiflik Zamançerçevesi <div class="smalltext">Eklentinin göz önünde bulunduracağı zamançerçevesi. <br />Gün Sayısı. Standart 30.</div>';
$txt['activitybar_show_in_posts'] = 'Aktiflik çizgisini iletilerde göster';
$txt['activitybar_show_in_profile'] = 'Aktiflik çizgisini profillerde göster';
$txt['activitybar_max_posts'] = 'En Fazla İleti <div class="smalltext">Çizgiyi doldurucak en fazla ileti sayısı. <br />Boş bırakarak standart hale getirirsiniz (500 ileti).</div>';
$txt['activitybar_max_width'] = 'En fazla genişlik <div class="smalltext">Çizginin genişliği. Koyulan ileti limiti geçildiğinde çizgi bu genişliğe gelecektir. <br />Pixel olarak. Boş bırakarak standart hale getirirsiniz (139px).</div>'

I'll add it during the next update. Thanks.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 05:36:38 AM
The only thing I don't like about it is the time limit..... I'd prefer to not have it guage activity over 30 days or whatever.... I'd rather have an indefinite guage. But to change it from 30 days, you have to have a number in there. I guess 36,500 would do it, huh? lol

That gave me an idea.  Maybe I can add a feature to let you count all posts, skip the timeframe.
Title: Re: Activitybar
Post by: Snowy on July 01, 2009, 07:27:00 AM
The only thing I don't like about it is the time limit..... I'd prefer to not have it guage activity over 30 days or whatever.... I'd rather have an indefinite guage. But to change it from 30 days, you have to have a number in there. I guess 36,500 would do it, huh? lol

That gave me an idea.  Maybe I can add a feature to let you count all posts, skip the timeframe.

Thanks! That's what I would prefer. (-:
Perhaps there is a way to offer both as options so people could run it how they wanted?
Title: Re: Activitybar
Post by: chrisb on July 01, 2009, 07:51:31 AM
i would like to see it for 1.1.9 as well and please let us know when u have completed this project
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 08:22:44 AM
Perhaps there is a way to offer both as options so people could run it how they wanted?

Yes, that's what I was thinking. :)

i would like to see it for 1.1.9 as well and please let us know when u have completed this project

1.1. is coming today or tomorrow.
Title: Re: Activitybar
Post by: AST3R1X on July 01, 2009, 09:44:21 AM
Excellent mod Nas  ;) I just installed it on 3 sites with custom themes and no problems  :D
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 09:44:53 AM
Thanks AST3R1X. :)
Title: Re: Activitybar
Post by: MaXiForum.cz on July 01, 2009, 10:37:15 AM
1.1. is coming today or tomorrow.

I look forward to it as a small child  :P ;D
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:05:04 PM
Changelog
1 July 2009
o Added support for SMF 1.1.x.
Title: Re: Activitybar
Post by: Joe N on July 01, 2009, 12:05:34 PM
Cheers Nas!
Title: Re: Activitybar
Post by: alex30 on July 01, 2009, 12:09:03 PM
Great Nas, thanks.

Do you have any ideas about why can't I find "Modifications" under admin?
Title: Re: Activitybar
Post by: akbora on July 01, 2009, 12:09:50 PM
Display posts?
Title: Re: Activitybar
Post by: Joe N on July 01, 2009, 12:10:25 PM
Great Nas, thanks.

Do you have any ideas about why can't I find "Modifications" under admin?

maybe its your admin.php.  Its may be removed

Screenshot please
Title: Re: Activitybar
Post by: alex30 on July 01, 2009, 12:13:33 PM
It doesn't display in posts either.

Install was successful, no "Modifications" word under admin.

Does anyone else have the same problem?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:15:33 PM
Alex, Admin > Configuration > Modifications.

Are you on 1.1.x?
If so, Admin > Features & settings.
Title: Re: Activitybar
Post by: akbora on July 01, 2009, 12:18:04 PM
It doesn't display in posts either.

Install was successful, no "Modifications" word under admin.

Does anyone else have the same problem?
Yes I can't see in posts still. 1.1 installed
Title: Re: Activitybar
Post by: Joe N on July 01, 2009, 12:19:24 PM
Go to admin > features and options
Title: Re: Activitybar
Post by: alex30 on July 01, 2009, 12:20:53 PM
Nas, bar doesn't show up in posts, percentage does, but not bar. Take a look in first link of my sig.

Now it does, any ideas about how to put it under the avatars ?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:21:43 PM
Clear your cache, F5.
Title: Re: Activitybar
Post by: alex30 on July 01, 2009, 12:22:23 PM
Done, looks great!

Now it does, any ideas about how to put it under the avatars ?
Title: Re: Activitybar
Post by: Joe N on July 01, 2009, 12:22:38 PM
Because you have just installed it. Do some posts and the percentage will go up
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:31:35 PM
Done, looks great!

Now it does, any ideas about how to put it under the avatars ?

Look at Display.template.php, or attach that file here.
Title: Re: Activitybar
Post by: akbora on July 01, 2009, 12:31:49 PM
İnteresting thing about activity bar:

On User Information Above Posts position it is seen...
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:32:45 PM
İnteresting thing about activity bar:

On User Information Above Posts position it is seen...

Did you have "User Information Above Posts" installed before you installed the activitybar?
Title: Re: Activitybar
Post by: jossanaijr on July 01, 2009, 12:39:01 PM
Installed, 1.1.9 without any error message.
It is working without bar picture.
Any idea?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:39:35 PM
Clear you cache, F5.
Title: Re: Activitybar
Post by: alex30 on July 01, 2009, 12:47:25 PM
Something went wrong, now there are two avatars on post display.   ::)

File attached. Thanks Nas.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 12:51:23 PM
This should do it.
Title: Re: Activitybar
Post by: alex30 on July 01, 2009, 01:06:06 PM
Great , thanks Nas!

Awesome mod!
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 01:11:49 PM
You're welcome.
And thanks. :)
Title: Re: Activitybar
Post by: jossanaijr on July 01, 2009, 01:14:29 PM
Clear you cache, F5.
Yes, solved, thanks!
Title: Re: Activitybar
Post by: MaXiForum.cz on July 01, 2009, 01:36:10 PM
Very nice!
My forum is v 1.1.9
screen:

(http://www.maxipicture.cz/uploaded_files/39/1246469432-aktivita.jpg)

Czech translate (http://www.simplemachines.org/community/index.php?topic=301494.msg2138586#msg2138586) ;)

Thanks! :P
Title: Re: Activitybar
Post by: the_shadow on July 01, 2009, 02:56:29 PM
for diferent themes we had to add

Quote
      
.activity_holder
{
   height: 15px;
   border: 1px solid #9BAEBF;
}

.activity_bar
{
   height: 15px;
   background: #E9F0F6 url(images/titlebg.jpg) repeat-x;
}

.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}

on css off your theme
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 02:58:21 PM
Correct, the_shadow.

MaxiPes, thanks. I'll add that and the turkish translation by Antes in the next update. :)
Title: Re: Activitybar
Post by: TheListener on July 01, 2009, 04:40:24 PM

Good Mod

Installed ok on forum. All I see is: 4.8% no actual bar. Do I need to add sometyhing to the theme template?

Clear your cache. Hit F5. :)

You mean the forum maintenance: Empty the file cache ??
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 04:53:56 PM
NOpe. Your broswer cache, so that the css starts to work. Hit F5 at your keyboard.
Title: Re: Activitybar
Post by: TheListener on July 01, 2009, 04:58:36 PM
Still only Activity
11.4%

and no bar.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 04:58:57 PM
Link please?
Title: Re: Activitybar
Post by: TheListener on July 01, 2009, 05:00:37 PM
www.visionaryhosting.info

may not see it as topics are not viewable by guests.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 05:02:15 PM
Could you enable it for a few?
Title: Re: Activitybar
Post by: TheListener on July 01, 2009, 05:04:59 PM
Easier way may be to register so I can add you to a membergroup just for smf forum owners
Title: Re: Activitybar
Post by: Marcus Forsberg on July 01, 2009, 05:12:06 PM
Sorry. You need to add the new css to style.css of your custom theme.
Title: Re: Activitybar
Post by: Realinfo on July 01, 2009, 11:18:23 PM
I can't able to see it............


Settings are located in Admin > Configuration > Modifications

There is no option like modification in configuration in my Admin
Title: Re: Activitybar
Post by: candidosa2 on July 01, 2009, 11:41:52 PM
thank
nice mod
good work
100% work 1.1.9 2,rc1-1

when update dont forget Portuguese_pt and brazilian

Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[//Activitybar by Nas translate by candidosa2 Suporte smfpt.net
$txt['activitybar_standardlabel'] = 'Actividade';
$txt['activitybar_enable'] = 'Activar barra de actividade <div class="smalltext">Activar a bara de actividade,e uma bara, que mostra como um utilizador esta activo e foi.</div>';
$txt['activitybar_label'] = 'Bar label <div class="smalltext">A etiqueta exibido juntamente com a barra. Default is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Activity Timeframe <div class="smalltext">A modificação vai contar todas os postes feitas durante este timeframe. <br />Em dias. Default para 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar a barra de actividade em postes';
$txt['activitybar_show_in_profile'] = 'Mostrar a barra de actividade nos perfis';
$txt['activitybar_max_posts'] = 'Max postes <div class="smalltext">Número de postos e necessário a fim de preencher a barra. <br />Leave empty for defaults (500 posts).</div>';
$txt['activitybar_max_width'] = 'Max largura <div class="smalltext">A largura da barra. Quando o p&oacute;s-limite estabelecido acima, é atingido, o bar terá essa largura. <br />Em pixels. Deixe em branco para defaults (139px).</div>';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[//Activitybar by Nas translate by candidosa2 Suporte smfpt.net
$txt['activitybar_standardlabel'] = 'Actividade';
$txt['activitybar_enable'] = 'Activar barra de actividade <div class="smalltext">Activar a bara de actividade,e uma bara, que mostra como um utilizador esta activo e foi.</div>';
$txt['activitybar_label'] = 'Bar label <div class="smalltext">A etiqueta exibido juntamente com a barra. Default is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Activity Timeframe <div class="smalltext">A modificação vai contar todas os postes feitas durante este timeframe. <br />Em dias. Default para 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar a barra de actividade em postes';
$txt['activitybar_show_in_profile'] = 'Mostrar a barra de actividade nos perfis';
$txt['activitybar_max_posts'] = 'Max postes <div class="smalltext">Número de postos e necessário a fim de preencher a barra. <br />Leave empty for defaults (500 posts).</div>';
$txt['activitybar_max_width'] = 'Max largura <div class="smalltext">A largura da barra. Quando o p&oacute;s-limite estabelecido acima, é atingido, o bar terá essa largura. <br />Em pixels. Deixe em branco para defaults (139px).</div>';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[//Activitybar by Nas translate by candidosa2 Suporte smfpt.net
$txt['activitybar_standardlabel'] = 'Actividade';
$txt['activitybar_enable'] = 'Activar barra de actividade <div class="smalltext">Activar a bara de actividade,e uma bara, que mostra como um utilizador esta activo e foi.</div>';
$txt['activitybar_label'] = 'Bar label <div class="smalltext">A etiqueta exibido juntamente com a barra. Default is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Activity Timeframe <div class="smalltext">A modificação vai contar todas os postes feitas durante este timeframe. <br />Em dias. Default para 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar a barra de actividade em postes';
$txt['activitybar_show_in_profile'] = 'Mostrar a barra de actividade nos perfis';
$txt['activitybar_max_posts'] = 'Max postes <div class="smalltext">Número de postos e necessário a fim de preencher a barra. <br />Leave empty for defaults (500 posts).</div>';
$txt['activitybar_max_width'] = 'Max largura <div class="smalltext">A largura da barra. Quando o p&oacute;s-limite estabelecido acima, é atingido, o bar terá essa largura. <br />Em pixels. Deixe em branco para defaults (139px).</div>';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[//Activitybar by Nas translate by candidosa2 Suporte smfpt.net
$txt['activitybar_standardlabel'] = 'Actividade';
$txt['activitybar_enable'] = 'Activar barra de actividade <div class="smalltext">Activar a bara de actividade,e uma bara, que mostra como um utilizador esta activo e foi.</div>';
$txt['activitybar_label'] = 'Bar label <div class="smalltext">A etiqueta exibido juntamente com a barra. Default is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Activity Timeframe <div class="smalltext">A modificação vai contar todas os postes feitas durante este timeframe. <br />Em dias. Default para 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar a barra de actividade em postes';
$txt['activitybar_show_in_profile'] = 'Mostrar a barra de actividade nos perfis';
$txt['activitybar_max_posts'] = 'Max postes <div class="smalltext">Número de postos e necessário a fim de preencher a barra. <br />Leave empty for defaults (500 posts).</div>';
$txt['activitybar_max_width'] = 'Max largura <div class="smalltext">A largura da barra. Quando o p&oacute;s-limite estabelecido acima, é atingido, o bar terá essa largura. <br />Em pixels. Deixe em branco para defaults (139px).</div>';]]></add>
</operation>
</file>
Title: Re: Activitybar
Post by: Marcus Forsberg on July 02, 2009, 05:30:10 AM
I can't able to see it............


Settings are located in Admin > Configuration > Modifications

There is no option like modification in configuration in my Admin

On 1.1.x it's Admin > Features & settings

@candidosa2, thanks. I'll add it. :)
Title: Re: Activitybar
Post by: katb on July 02, 2009, 06:06:10 AM
Nice mod nas . I have installed this but if i enable activity on posts ..it will not display members avathars..i am using smf 1.19 and smf default theme
Title: Re: Activitybar
Post by: Marcus Forsberg on July 02, 2009, 06:07:48 AM
katb, that's odd. Could you attch ./Themes/default/Display.template.php?
Title: Re: Activitybar
Post by: villasg on July 02, 2009, 06:11:58 AM
Nice mod
Work Ok in my 1.1.9

Greek-utf8
Code: [Select]
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Activity';
$txt['activitybar_enable'] = 'Ενεργοποίηση της activity bar <div class="smalltext">Ενεργοποίηση της activity bar, μια μπαρα που θα δειχνει που δείχνει πόσο ενεργός ειναι ο χρήστης.</div>';
$txt['activitybar_label'] = 'Ετικέτα της μπαρας <div class="smalltext">Μια ετικέτα που θα εμφανίζεται μαζί με την μπαρα. Η προεπιλογή είναι "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Χρονικο διαστημα δραστηριοτητας <div class="smalltext">Το Mod θα μετράει ολα τα post που πραγματοποιούνται κατά τη διάρκεια αυτού του χρονικού διαστήματος. <br />Σε ημέρες. Η προεπιλογή είναι 30.</div>';
$txt['activitybar_show_in_posts'] = 'Εμφάνιση της μπάρας στα post';
$txt['activitybar_show_in_profile'] = 'Εμφάνιση της μπάρας στo profiles';
$txt['activitybar_max_posts'] = 'Μεγιστος αριθμος posts <div class="smalltext">Aριθμός των απαιτούμενων posts, προκειμένου να γεμίσει η μπαρα. <br />Άφησε το κενο για την προεπιλογή (500 posts).</div>';
$txt['activitybar_max_width'] = 'Μέγιστο πλάτος  <div class="smalltext">Μέγιστο πλάτος της μπαρας. οταν φτασει στο οριο των Posts  , τοτε η μπαρα θα εχει αυτο το πλατος . <br />In pixels. Leave empty for defaults (139px).</div>';]]></add>
</operation>
</file>
Title: Re: Activitybar
Post by: akbora on July 02, 2009, 06:12:40 AM
Can I attach too? Because I can not still see.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 02, 2009, 06:13:25 AM
Thansk, villasg, but not all strings are translated in there?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 02, 2009, 06:13:33 AM
Can I attach too? Because I can not still see.

Yes.
Title: Re: Activitybar
Post by: akbora on July 02, 2009, 06:22:10 AM
Thanks. I removed User Information Above Posts info mod. If you see  codes of this mod you can clean them. Thanks again.
Title: Re: Activitybar
Post by: villasg on July 02, 2009, 06:26:38 AM
Thansk, villasg, but not all strings are translated in there?

Yes is ok now ( in my install i use mixed Greek and English words )
Title: Re: Activitybar
Post by: Exterminator2006 on July 02, 2009, 02:28:05 PM
How mode bar ?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 02, 2009, 02:29:04 PM
Thanks. I removed User Information Above Posts info mod. If you see  codes of this mod you can clean them. Thanks again.

Actually, all I can see is codes from that mod.

Thansk, villasg, but not all strings are translated in there?

Yes is ok now ( in my install i use mixed Greek and English words )

Thanks

How mode bar ?

Sorry? Not sure I understood that.
Title: Re: Activitybar
Post by: akbora on July 02, 2009, 02:41:46 PM
Well thank you. I can not see it. Never mind. We can not use this mod for this reason. Thanks again.
Title: Re: Activitybar
Post by: Sudhakar Arjunan on July 02, 2009, 04:10:03 PM
Good Mod.

Am installing now.
Title: Re: Activitybar
Post by: biohazardjoker on July 02, 2009, 09:34:25 PM
Fatal error: Cannot redeclare activitybar() (previously declared in /home/ftanewer/public_html/Sources/Subs.php:4188) in /home/ftanewer/public_html/Sources/Subs.php on line 4269


please any help?? please and ty
Title: Re: Activitybar
Post by: [Core] on July 02, 2009, 09:37:33 PM
When did this error happen?
Title: Re: Activitybar
Post by: akbora on July 02, 2009, 09:40:48 PM
activity bar isn't seen post area, but profil area yes
Title: Re: Activitybar
Post by: Marcus Forsberg on July 03, 2009, 04:25:21 AM
Fatal error: Cannot redeclare activitybar() (previously declared in /home/ftanewer/public_html/Sources/Subs.php:4188) in /home/ftanewer/public_html/Sources/Subs.php on line 4269


please any help?? please and ty

You seem to have installed it twice. Use the attached file.

Good Mod.

Am installing now.

Thanks. :)

activity bar isn't seen post area, but profil area yes

Please read this:
Thanks. I removed User Information Above Posts info mod. If you see  codes of this mod you can clean them. Thanks again.

Actually, all I can see is codes from that mod.
Title: Re: Activitybar
Post by: JBlaze on July 03, 2009, 04:44:27 AM
Damn Nas, 5 pages of replies in 3 days?

Popular guy :P
Title: Re: Activitybar
Post by: Marcus Forsberg on July 03, 2009, 04:46:30 AM
Damn Nas, 5 pages of replies in 3 days?

Popular guy :P

A bit jealous are we? :D
Title: Re: Activitybar
Post by: Exterminator2006 on July 03, 2009, 04:51:34 AM
What is the problem?

(http://i44.tinypic.com/25ugw2c.jpg)

Thanks
Title: Re: Activitybar
Post by: Marcus Forsberg on July 03, 2009, 04:52:00 AM
Please read the FAQ in the first post of this topic.
Title: Re: Activitybar
Post by: Exterminator2006 on July 03, 2009, 05:07:10 AM
Thanks you

Solution

/Themes/youtheme/style.css

Find:

Code: [Select]
/* The AJAX notifier */
Add After:

         
Code: [Select]
.activity_holder
{
height: 15px;
border: 1px solid #9BAEBF;
}

.activity_bar
{
height: 15px;
background: #E9F0F6 url(images/titlebg.jpg) repeat-x;
}

.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;
}

Title: Re: Activitybar
Post by: asifnur on July 03, 2009, 03:08:05 PM
i installed but i only ssee like
 Activity
14.62%

no pics
Title: Re: Activitybar
Post by: Marcus Forsberg on July 03, 2009, 03:08:51 PM
asifnur, please read the FAQ in the first post, or the post above yours.
Title: Re: Activitybar
Post by: asifnur on July 03, 2009, 03:20:05 PM
o there we go thanks
Title: Re: Activitybar
Post by: Marcus Forsberg on July 03, 2009, 03:20:42 PM
You're welcome. :)
Title: Re: Activitybar
Post by: katb on July 04, 2009, 08:32:26 AM
katb, that's odd. Could you attch ./Themes/default/Display.template.php?

Nas iam attaching the requested file here...


Title: Re: Activitybar
Post by: Costa on July 04, 2009, 03:50:48 PM
Congrats for the mod Nas  ;) it's a "Dude" mod
Has always, here is the translation for portuguese

Modification.portuguese_pt.php
Code: [Select]
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Actividade';
$txt['activitybar_enable'] = 'Ligar a barra de actividade <div class="smalltext">A barra que mostra quão activo é um usuário.</div>';
$txt['activitybar_label'] = 'Etiqueta da barra <div class="smalltext">A etiqueta mostrada ao longo da barra. O padrão é "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Linha temporal de actividade<div class="smalltext">A modificação irá contar todos as mensagens dentro desta linha temporal. <br />Em dias, o padrão é 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar a barra de actividade nas mensagens do fórum';
$txt['activitybar_show_in_profile'] = 'Mostrar a barra de actividade no perfil';
$txt['activitybar_max_posts'] = 'Máximo de mensagens <div class="smalltext">Número de mensagens que é preciso para encher a barra.<br />Deixe em branco para o padrão (500 mensagens).</div>';
$txt['activitybar_max_width'] = 'Largura máxima  <div class="smalltext">A largura máxima da barra. Quando é chegado o limite de mensagens, a barra terá este limite de comprimento.<br />Em pixels. Deixe em branco para o padrão (139px).</div>';

Farewell!!
Title: Re: Activitybar
Post by: MaXiForum.cz on July 04, 2009, 04:01:05 PM
katb your Display.template.php is OK.
Do you use default theme? ;)
Title: Re: Activitybar
Post by: katb on July 05, 2009, 04:35:06 AM
katb your Display.template.php is OK.
Do you use default theme? ;)

yes i am using SMF default theme only ..Activity bar mod is working on user profiles but not working on posts, it will show the progress bar on posts , but same time it is not showing user avatars...
Title: Re: Activitybar
Post by: babjusi on July 05, 2009, 03:17:48 PM
Nice mod. Good work Nas.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 05, 2009, 03:23:45 PM
katb your Display.template.php is OK.
Do you use default theme? ;)

yes i am using SMF default theme only ..Activity bar mod is working on user profiles but not working on posts, it will show the progress bar on posts , but same time it is not showing user avatars...

Seems to have been conflicting with another mod, banned members avatar. Try the attached file.

Nice mod. Good work Nas.

Thanks. :)
Title: Re: Activitybar
Post by: MATTEK on July 05, 2009, 03:53:29 PM
When I installed this mode it took over everything in the Mod configuration panel. I had to reinstall everything else. Just thought I'd let you know. Nice mod tho.  8)
Title: Re: Activitybar
Post by: Marcus Forsberg on July 05, 2009, 03:54:29 PM
That's odd, MATTEK. Shouldn't happen. Thanks for the comment though. :)
Title: Re: Activitybar
Post by: Joe N on July 06, 2009, 01:36:15 PM
How has this mod already gone 2nd in the most popular!  :)
Title: Re: Activitybar
Post by: Mai Pen Rai on July 06, 2009, 08:42:13 PM
Very nice mod, one of the nicest I have and I have now 50 of them :)

To make this mod even better would be to implement functions for the members once they reach a certain level of activity.
For example be able to have links in their signatures, see a certain subforum and so on.

Could this be done?
Title: Re: Activitybar
Post by: LHW on July 06, 2009, 09:01:42 PM
Nice Mod!  Changing the look via the CSS was a snap (instead of the titlebg.jpg we decided to use the bar.gif)!  Good job!
Title: Re: Activitybar
Post by: Marcus Forsberg on July 07, 2009, 12:02:15 AM
Joe N, I have no idea. So simple but yet so useful, I guess. :)

Mai Pen Rai, it could. I might look into that.

Thanks, Lord High Warlock. :)
Title: Re: Activitybar
Post by: InsaneMustang on July 08, 2009, 01:08:40 PM
NAS, I just wanted to thank you for this mod.  Everything is working great, as advertised.  I would like to request a small change and that's that you change your code (for the mod, or just for me lol) to include a graphic option for the background of the activity bar. 

I know it uses one of the default bg's but my bg color are so light that it's blending in too well and there doesn't appear to be a graphic bar at all.

If you know of a way I can fix this without having to alter my bg image (because I can't do that) please let me know.

Thanks
Title: Re: Activitybar
Post by: Marcus Forsberg on July 08, 2009, 01:21:05 PM
InsaneMustang, thanks.

And you cna change the bar image via css, in style.css of your current theme.
Title: Re: Activitybar
Post by: InsaneMustang on July 08, 2009, 01:23:18 PM
You know what I just realized?  The bar isn't working at all on mine.  The # and the % sign show, but there's no bar, and no border for the bar...
Title: Re: Activitybar
Post by: Marcus Forsberg on July 08, 2009, 01:43:52 PM
Please read the FAQ in the first post of this topic. :)
Title: Re: Activitybar
Post by: LHW on July 08, 2009, 02:49:29 PM
Nas: Per the requests of a few people at our place, I removed the two <br />s at the beginning of the Mini Profile, and added one at the end to space it out between the avatar.  They feel it's more centered this way.  Just thought I'd pass it along.  :)
Title: Re: Activitybar
Post by: InsaneMustang on July 08, 2009, 03:51:19 PM
Please read the FAQ in the first post of this topic. :)

My apologies.  I typically read all of the info in the first post.  Thanks again, Rockin mod.
Title: Re: Activitybar
Post by: katb on July 12, 2009, 12:36:32 AM

Seems to have been conflicting with another mod, banned members avatar. Try the attached file.


Nas i tried attached file but not working , even i try to uninstall banned members avathar mod also but after no luck..
Title: Re: Activitybar
Post by: emilio05 on July 13, 2009, 05:07:04 PM
Hi, I installed your mod but I do not see the image
That can not be, need help please.
Here are my display.template.php

greetings!
Title: Re: Activitybar
Post by: Marcus Forsberg on July 15, 2009, 03:28:07 PM

Seems to have been conflicting with another mod, banned members avatar. Try the attached file.


Nas i tried attached file but not working , even i try to uninstall banned members avathar mod also but after no luck..

Hmm.. I'll look at it when I've got home form my vacation.

Hi, I installed your mod but I do not see the image
That can not be, need help please.
Here are my display.template.php

greetings!

Please read the FAQ in the first post of this topic, or in the readme.txt file in the package.
Title: Re: Activitybar
Post by: JeremyB. on July 15, 2009, 05:01:27 PM
Nice Mod Nas.

Title: Re: Activitybar
Post by: jdvarner on July 15, 2009, 10:24:03 PM
nice. would be cool to expand. make it count tme online, loggin in, playing in arcade and so on. i know thats huge. just saying... future project idea. really neat mod.

also, maybe perhaps option to change activity bar color within the admin panel itself.
Title: Re: Activitybar
Post by: chrishicks on July 16, 2009, 12:45:02 AM
Would it be possible to move the bar to the very bottom of the user info area below the online/offline/PM shortcuts? I'm messing around with this on my test forum and it places a large gap between my name and avatar (I also have the Avatar Under Membergroups Rank mod) as you can see in this pic:

(http://img20.imageshack.us/img20/1638/896360ab175b097b649e033.th.jpg) (http://img20.imageshack.us/i/896360ab175b097b649e033.jpg/)  -- click to enlarge

Is this possible?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 04:42:30 AM
Thanks Jeremey and jdvarner. I migt just look into those ideas, jdvarner.

chrishicks: Yes, it is possible. Have a look at Didsplay.template.php, or attach that file here.
Title: Re: Activitybar
Post by: zanyuki on July 16, 2009, 10:25:28 AM
Hi nas,

A really really great mod! Kudos to you!

Also, can we expect an update for RC1.2? When I upgraded it didn't display the value correctly, only a filled bar with % on it.

Keep up the good work, man!
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 11:36:58 AM
Thanks.
Yes, a update for RC1.2 will be here after my vacation. :)
Title: Re: Activitybar
Post by: SLiM_BoY on July 16, 2009, 12:35:18 PM
Nice mod, thanks.

I've a question :

I want to set "Max posts" value equal to my forum's total posts. How can I do that ?

Quote
In ./Sources/Subs.php

// Make sure everything is set. If something is missing, use a default value.
   $max_width = !empty($modSettings['activitybar_max_width']) ? $modSettings['activitybar_max_width'] : 139;
   $max_posts = !empty($modSettings['activitybar_max_posts']) ? $modSettings['activitybar_max_posts'] : 500;
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 12:51:52 PM
That's a nice idea, SLiM_BoY. :)
Try this:'

Code: [Select]
$max_posts = $context['common_stats']['total_posts'];
Title: Re: Activitybar
Post by: SLiM_BoY on July 16, 2009, 12:55:06 PM
That's a nice idea, SLiM_BoY. :)
Try this:'

Code: [Select]
$max_posts = $context['common_stats']['total_posts'];

I tried that before. But bar shows 0%.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 12:56:30 PM
My bad, I should have known:

Code: [Select]
$max_posts = $modSettings['totalTopics'];
Title: Re: Activitybar
Post by: SLiM_BoY on July 16, 2009, 01:03:04 PM
My bad, I should have known:

Code: [Select]
$max_posts = $modSettings['totalTopics'];

Now, bar shows 100%. : )
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 01:06:18 PM
Are you sure you haven't wrote all of the posts on your forum, then? ;)
Title: Re: Activitybar
Post by: SLiM_BoY on July 16, 2009, 01:07:07 PM
Are you sure you haven't wrote all of the posts on your forum, then? ;)

Yes, I'm sure. :)
Title: Re: Activitybar
Post by: SLiM_BoY on July 16, 2009, 01:12:36 PM
I think I found it :

Code: [Select]
$max_posts = $modSettings['totalMessages'];
Am I right ?
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 02:30:04 PM
Oh, that's right. My bad again. Maybe I should get sone sleep before doing more of this. :P
Title: Re: Activitybar
Post by: chrishicks on July 16, 2009, 04:09:53 PM
Would it be possible to move the bar to the very bottom of the user info area below the online/offline/PM shortcuts? I'm messing around with this on my test forum and it places a large gap between my name and avatar (I also have the Avatar Under Membergroups Rank mod) as you can see in this pic:

(http://img20.imageshack.us/img20/1638/896360ab175b097b649e033.th.jpg) (http://img20.imageshack.us/i/896360ab175b097b649e033.jpg/)  -- click to enlarge

Is this possible?

Here is my display.template.php file if someone can help me put this under the info mentioned above. Thanks in advance.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 16, 2009, 04:14:49 PM
This file should do it. :)
Title: Re: Activitybar
Post by: chrishicks on July 16, 2009, 07:25:37 PM
That did it. Thank you.
Title: Re: Activitybar
Post by: jdvarner on July 16, 2009, 09:16:06 PM
Thanks Jeremey and jdvarner. I migt just look into those ideas, jdvarner.

chrishicks: Yes, it is possible. Have a look at Didsplay.template.php, or attach that file here.

Cool Nas. Sounds good. Also another thing is the admin account, activity shows as 100% no matter what, right? maybe bust out the admin as well and make it show his/her activity accurately as well. :)
Title: Re: Activitybar
Post by: Marcus Forsberg on July 17, 2009, 04:43:38 AM
Thanks Jeremey and jdvarner. I migt just look into those ideas, jdvarner.

chrishicks: Yes, it is possible. Have a look at Didsplay.template.php, or attach that file here.

Cool Nas. Sounds good. Also another thing is the admin account, activity shows as 100% no matter what, right? maybe bust out the admin as well and make it show his/her activity accurately as well. :)

Actually no, it does not change for admins. Admins bars acts just like all other users bars.
Title: Re: Activitybar
Post by: Marcus Forsberg on July 17, 2009, 03:51:18 PM
Changelog
version 1.0.1.1 | 1 July 2009
o Small edit to make compatible with SMF 2.0 RC1.2.
o Added translations for turkish, czech-utf8 and portuguese_pt.
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on July 17, 2009, 11:44:15 PM
Thanks Jeremey and jdvarner. I migt just look into those ideas, jdvarner.

chrishicks: Yes, it is possible. Have a look at Didsplay.template.php, or attach that file here.

Cool Nas. Sounds good. Also another thing is the admin account, activity shows as 100% no matter what, right? maybe bust out the admin as well and make it show his/her activity accurately as well. :)

Actually no, it does not change for admins. Admins bars acts just like all other users bars.

well thats weird. im the admin, and posting very little and it says 100%
Title: Re: Activitybar 1.0.1.1
Post by: Sharp.Shot on July 17, 2009, 11:49:23 PM
What version of SMF are you using this mod on? If your using a 1.1.x version please attach the file: install 1.1.x if your using 2.0x please attach: install 2.0.
Title: Re: Activitybar 1.0.1.1
Post by: chrishicks on July 18, 2009, 01:42:58 AM
Thanks Jeremey and jdvarner. I migt just look into those ideas, jdvarner.

chrishicks: Yes, it is possible. Have a look at Didsplay.template.php, or attach that file here.

Cool Nas. Sounds good. Also another thing is the admin account, activity shows as 100% no matter what, right? maybe bust out the admin as well and make it show his/her activity accurately as well. :)

Actually no, it does not change for admins. Admins bars acts just like all other users bars.

well thats weird. im the admin, and posting very little and it says 100%

Did you edit the numbers for posts/days by chance? When I first installed it I was messing around with that and the numbers I kept entering put me at 100% until I went back to the default settings. I post quite a bit on my forum because if I don't post my members won't reply(they fear starting topics for some reason) so I almost have to go higher than the default as I am at 74% full after installing the mod already.
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on July 18, 2009, 10:36:48 AM
just curious... has anyone tried to pull out the info and make a bloc to show top 5 or 10 active folks on their site? if so, could you share the code.

nas, i figured it out... i guess when i redid some of the stats and redid the arcade topics that made me the "admin" look like i made thousands of posts. so i bumped the required # to like 5000 and then yeah it showed me at like 20%. so i bet it will work itself out and will make the #'s right for the admin.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 18, 2009, 12:31:23 PM
Glad you worked it out. :)

I will probably add a block to the statistics page along with the other new features I am planning for the next version. I can include the code for a portal block aswell.
Title: Re: Activitybar 1.0.1.1
Post by: zanyuki on July 20, 2009, 01:26:40 AM
Hey Nas,

Good work as always with the RC1.2 support.

I have a question, though. When I try to uninstall the old one (for RC1-1) it says "unable to find package file". How do I manually remove the Activity_Bar from the Installed Packages list? It seems to conflict with the existing package there that I can't uninstall when I try to install this mod for RC1.2.

Thanks in advance! Hope to have the new version soon. :)
Title: Re: Activitybar 1.0.1.1
Post by: Mai Pen Rai on July 20, 2009, 03:51:23 AM
What code could be used on SMF 2.0 RC1.2 to show the top 10 active members?
Title: Re: Activitybar 1.0.1.1
Post by: chrishicks on July 20, 2009, 04:58:07 AM
Has anyone added this to the Ultimate Profile mod? I've been trying to get it added but I can't find the exact spot to add the code. I thought I had it placed right below the "last active" spot but I ended up creating a middle column where the activity bar popped up next to last active instead of below. Would someone give me a hand with inserting the code in the proper spot?
Title: Re: Activitybar 1.0.1.1
Post by: ultide on July 21, 2009, 04:26:40 PM
i am using smf 1.1.9 and as_theme.
my activity bar shows number like 28% but no bar.
cleared cache by f5 but still same.
it installed without any error...
help me...
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on July 22, 2009, 08:42:49 PM
i am using smf 1.1.9 and as_theme.
my activity bar shows number like 28% but no bar.
cleared cache by f5 but still same.
it installed without any error...
help me...


same for me. but i think this does this because of using not the default theme. im using a modified theme "which i bet is the same color as the activity bar".

how about you? using a theme other then default? try going to default and see if you see it? when i do that i see it. nas, can we change the color in the code somewhere?
Title: Re: Activitybar 1.0.1.1
Post by: ksawery on July 23, 2009, 06:16:45 AM
Inside the install1.1.x.xml, the portuguese language are twice, but once is czech.
Title: Re: Activitybar 1.0.1.1
Post by: ksawery on July 23, 2009, 06:42:52 AM
I've added the spanish & spanish_es languages.
Title: Re: Activitybar 1.0.1.1
Post by: chrishicks on July 24, 2009, 02:24:05 PM
You know, this mod is great. The only downside is that it shows just how bad all the post slackers are on my boards. :D
Title: Re: Activitybar 1.0.1.1
Post by: CesarManara on July 25, 2009, 01:53:08 AM
Language portuguese_brazilian on SMF 2.0 RC1.2.

Modifications.portuguese_brazilian.php
Code: [Select]
$txt['activitybar_standardlabel'] = 'Atividade';
$txt['activitybar_enable'] = 'Ligar a barra de atividade <div class="smalltext">A barra mostra quão ativo é um usuário.</div>';
$txt['activitybar_label'] = 'Etiqueta da barra <div class="smalltext">A etiqueta mostrada ao longo da barra. O padrão é "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Linha temporal de atividade<div class="smalltext">A modificação irá contar todos as mensagens dentro desta linha temporal. <br />Em dias, o padrão é 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar a barra de atividade nas mensagens do fórum';
$txt['activitybar_show_in_profile'] = 'Mostrar a barra de atividade no perfil';
$txt['activitybar_max_posts'] = 'Máximo de mensagens <div class="smalltext">Número de mensagens que é preciso para encher a barra.<br />Deixe em branco para o padrão (500 mensagens).</div>';
$txt['activitybar_max_width'] = 'Largura máxima  <div class="smalltext">A largura máxima da barra. Quando é chegado o limite de mensagens, a barra terá este limite de comprimento.<br />Em pixels. Deixe em branco para o padrão (139px).</div>';
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on July 25, 2009, 11:34:02 AM
anyone know where i can change the color of the bar. right now it doesn't display as its the same color as the background of the site. just want to change it so i can see the bar as well.
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 26, 2009, 02:52:18 AM
I'm getting the following errors:

8: Undefined index: activitybar
File: /home/vg001web01/54/40/2004054/web/Themes/default/Display.template.php
Line: 310 
   
==>310:   
<div class="activity_holder" style="width: ', !empty($modSettings['activitybar_max_width']) ? $modSettings['activitybar_max_width'] : 139, 'px;"><div class="activity_bar" style="width: ', $message['activitybar']['width'], 'px;"><div class="activity_percentage smalltext">', $message['activitybar']['percentage'], '%</div></div></div></li>';

Also, All that shows is "Activity %"

Cleared cache.

Please advise. Thx
Title: Re: Activitybar 1.0.1.1
Post by: agguvenligi on July 27, 2009, 01:09:45 AM
This is a great mod thanks !
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 28, 2009, 02:49:23 PM
What code could be used on SMF 2.0 RC1.2 to show the top 10 active members?

This code is being added to the next version of this mod.

i am using smf 1.1.9 and as_theme.
my activity bar shows number like 28% but no bar.
cleared cache by f5 but still same.
it installed without any error...
help me...

Please read the FAQ in the first post - You need to add the css to your custom theme.

I've added the spanish & spanish_es languages.

Thanks, I'll include them in the next update.

I'm getting the following errors:

8: Undefined index: activitybar
File: /home/vg001web01/54/40/2004054/web/Themes/default/Display.template.php
Line: 310 
   
==>310:   
<div class="activity_holder" style="width: ', !empty($modSettings['activitybar_max_width']) ? $modSettings['activitybar_max_width'] : 139, 'px;"><div class="activity_bar" style="width: ', $message['activitybar']['width'], 'px;"><div class="activity_percentage smalltext">', $message['activitybar']['percentage'], '%</div></div></div></li>';

Also, All that shows is "Activity %"

Cleared cache.

Please advise. Thx

Odd. Please attach ./Sources/Subs.php.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 28, 2009, 02:50:47 PM
Also, if you have any feature request, feel free to sign up and file a request at this site:
http://www.forentadatorerna.se/

I would appreciate if you could do this for previously requested features as well. :)
Title: Re: Activitybar 1.0.1.1
Post by: limo2005 on July 28, 2009, 03:45:46 PM
Works great on all themes for me  ;D except the one that I use as my default.  :( which is Anecdota.

Im using 2.0 RC1 x.  and all i see is the text (Activity) and the % amount.

I did get an error with the style.css file (attached).

Code: [Select]
FIND /* hovered auto suggest item */           
Code: [Select]
ADD .activity_holder
{
    height: 15px;
    border: 1px solid #9BAEBF;
}

.activity_bar
{
    height: 15px;
    background: #E9F0F6 url(images/titlebg.jpg) repeat-x;
}

.activity_percentage
{
    height: 15px;
    color: #333333;
    text-align: center;
}

Any suggestions where I can add the code to enable the bar to display?
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 28, 2009, 03:47:26 PM
limo2005, you could add it anywhere in style.css instead, it doesn't really matter.
Title: Re: Activitybar 1.0.1.1
Post by: limo2005 on July 28, 2009, 03:48:45 PM
limo2005, you could add it anywhere in style.css instead, it doesn't really matter.

Thanks!  :)  I never knew that!

Update: Woarks a treat on ALL my themes! Cheers Nas!
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 28, 2009, 03:50:21 PM
limo2005, you could add it anywhere in style.css instead, it doesn't really matter.

Thanks!  :)  I never knew that!

You're welcome. Keep in mind though, that this only applies to CSS files.
I used /* hovered auto suggest item */ as the reference as SMF's "Add to end of file" doesn't work on css files afaik. :)
Title: Re: Activitybar 1.0.1.1
Post by: limo2005 on July 28, 2009, 03:57:01 PM
Thanks! 
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 28, 2009, 05:38:51 PM
Thx.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 29, 2009, 04:14:40 AM
File looks fine to me. Could you attach Display.php as well please?
Title: Re: Activitybar 1.0.1.1
Post by: Psicopata on July 29, 2009, 05:29:06 PM
Where I discharge the images for the mod ??


Donde descargo las imagenes para el mod ??
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 29, 2009, 05:38:11 PM
File looks fine to me. Could you attach Display.php as well please?

I also did the edit in the "tips" you posted. Not sure what that is supposed to look like (see attached image). Also, getting huge amounts of error on every page view.

8: Undefined index: activitybar
File: /Themes/default/Display.template.php
Line: 309 

==>309:    <div class="activity_holder" style="width: ', !empty($modSettings['activitybar_max_width']) ? $modSettings['activitybar_max_width'] : 139, 'px;"><div class="activity_bar" style="width: ', $message['activitybar']['width'], 'px;"><div class="activity_percentage smalltext">', $message['activitybar']['percentage'], '%</div></div></div></li>';


8: Undefined offset: 26
File: /Themes/default/Display.template.php
Line: 321 

==>321:    <img src="'.$settings['images_url'].'/poll_left.gif"><img src="'.$settings['images_url'].'/poll_middle.gif" height="12px" width="', ($message['member']['posts'] < 100) ? $message['member']['posts'] : 100, '" title="', $txt[26], ': ', $message['member']['posts'], '"><img src="'.$settings['images_url'].'/poll_right.gif"><br />
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 30, 2009, 05:02:47 AM
You should not do both edits. Remove the edits from tips and tricks.

You haven't done the edits to Display.php - Therefor you can't see the mod.
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 30, 2009, 12:23:07 PM
You should not do both edits. Remove the edits from tips and tricks.

You haven't done the edits to Display.php - Therefor you can't see the mod.

I removed the Tips edits. I did those after I was already having the issue with the mod - I though I was missing something. Where can I find the display.php edits? Thx
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 30, 2009, 12:28:25 PM
Go to the mod at the mod site. To the right, choose your SMF version and hit "Parse"
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 30, 2009, 01:52:30 PM
Made the edit to display.php and now have Activity 5% instead of Activity % so an improvement but no image yet.

Thx
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 30, 2009, 03:58:38 PM
Made the edit to display.php and now have Activity 5% instead of Activity % so an improvement but no image yet.

Thx

Please read the faq in the first post of this topic. You have to edit style.css of your custom theme.
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 30, 2009, 04:15:12 PM
Made the edit to display.php and now have Activity 5% instead of Activity % so an improvement but no image yet.

Thx

Please read the faq in the first post of this topic. You have to edit style.css of your custom theme.

Sorry but I could not find the Faqs you are refering to or anything relating to installing on custom themes. Please advise. Thx
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 30, 2009, 04:45:45 PM
Hmm. seems I removed that when I updated the readme :o
Anyway, you have to do the edits to style.css (find the same way as the edits to display.php) on your custom theme.
Title: Re: Activitybar 1.0.1.1 in Spanish
Post by: LukersWeb on July 31, 2009, 04:19:25 AM
Thanks por this MOD, it's so good, really thanks...
This is the translate:

Quote
//Activitybar by Nas translated by LukersWeb
$txt['activitybar_standardlabel'] = 'Actividad';
$txt['activitybar_enable'] = 'Activar barra de actividad <div class="smalltext">Activar la barra de actividad, una barra que muestra cuanto activo es el usuario.</div>';
$txt['activitybar_label'] = 'Etiqueta de barra <div class="smalltext">Una etiqueta se muestra junto con la barra. Por defecto es "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Calendario de actividad <div class="smalltext">La modificacion va a contar todos los post desde este tiempo. <br />In days. Por defecto es 30.</div>';
$txt['activitybar_show_in_posts'] = 'Mostrar la barra de actividad en posts';
$txt['activitybar_show_in_profile'] = 'Mostras la barra de actividad en perfiles';
$txt['activitybar_max_posts'] = 'Posts maximos <div class="smalltext">Numero de posts que se necesitan para llenar la barra <br />Dejar en blanco para defecto (500 posts).</div>';
$txt['activitybar_max_width'] = 'Ancho maximo  <div class="smalltext">El ancho de la barra. Cuando el limite de posts es alcanzado, la barra consigue este ancho <br />En pixeles. Dejar en blanco para defecto (139px).</div>';
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 31, 2009, 04:24:37 AM
Hmm. seems I removed that when I updated the readme :o
Anyway, you have to do the edits to style.css (find the same way as the edits to display.php) on your custom theme.

Sadly I have no clue how to accomplish that. ???
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 31, 2009, 04:53:18 AM
What is the name of the theme you are using at your site?
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 31, 2009, 01:52:46 PM
What is the name of the theme you are using at your site?

http://custom.simplemachines.org/themes/index.php?lemma=1722
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 31, 2009, 02:00:13 PM
1. Go to this mod at the mod site, choose your version and hit "Parse".
2. Find the edit to style.css
3. Make that edit in ./Themes/playground/style.css
Title: Re: Activitybar 1.0.1.1
Post by: plusev on July 31, 2009, 03:35:34 PM
Is the the way it is supposed to look? Thx

Also, the bar seems very large and long - on certain screen res it even overlaps into the post area.

Also this error in log

 
File: /web/Themes/default/Display.template.php
Line: 310 

==>310:<div class="activity_holder" style="width: ', !empty($modSettings['activitybar_max_width']) ? $modSettings['activitybar_max_width'] : 139, 'px;"><div class="activity_bar" style="width: ', $message['activitybar']['width'], 'px;"><div class="activity_percentage smalltext">', $message['activitybar']['percentage'], '%</div></div></div></li>';

and

8: Undefined offset: 26
File: /web/Themes/default/Display.template.php
Line: 322 



==>322:    <li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on July 31, 2009, 04:14:44 PM
The bug in the bar display is due to your theme centering the posts.
Title: Re: Activitybar 1.0.1.1
Post by: sHaXFu on August 01, 2009, 02:42:38 AM
Installed all fine, but when I goto modifications it says:

There are no modifications installed that have added any settings to this area yet.

Any ideas please?
Title: Re: Activitybar 1.0.1.1
Post by: ArkServer on August 02, 2009, 07:17:33 AM
Hi i installed the awesome mod but i can only see the activity % and not the bar itself as demonstrated here: http://www.engineeringserver.com/forum/java_development/reg_jsp_precompilation-t5746.0.html

does anyone know how to add it? thanks!
Title: Re: Activitybar 1.0.1.1
Post by: paster_cobra on August 06, 2009, 09:13:54 PM
ok i have gone through each file to make sure that the code is there. the theme im using is fade2black-2.0 RC1.2. the attached image is how my bar looks, what am i doing wrong or didn't do?
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on August 07, 2009, 02:57:40 AM
You will need to post more, and the bar will get bigger. :)
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on August 07, 2009, 11:55:36 PM
Nas, i got the latest version loaded. How do i change the color of the bar so it appers on my theme? Im using the mystic theme.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on August 08, 2009, 04:30:39 AM
./Themes/{your_theme}/style.css :)
Title: Re: Activitybar 1.0.1.1
Post by: plusev on August 08, 2009, 10:59:47 PM
The bug in the bar display is due to your theme centering the posts.

By the theme centering the posts do you mean the actual posts or the post count above the activity bar?

Thx
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on August 09, 2009, 05:20:13 AM
All poster info is centered in your theme.
Title: Re: Activitybar 1.0.1.1
Post by: Skargon on August 10, 2009, 06:11:53 PM
Excellent Mod.   Installed with no problems.

I'm using a custom theme, so I couldn't see the "Bar", but I edited the style.css file in my themes with the following, and it worked without issue:

Quote
.activity_holder
{
   height: 15px;
   border: 1px solid #9BAEBF;
}

.activity_bar
{
   height: 15px;
   background: #E9F0F6 url(images/titlebg.jpg) repeat-x;
}

.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on August 10, 2009, 08:34:29 PM
something is odd. im in the themes folder/theme im running/style.css and none of that code is there. however if i go to the default theme all works fine.
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on August 10, 2009, 08:36:46 PM
Excellent Mod.   Installed with no problems.

I'm using a custom theme, so I couldn't see the "Bar", but I edited the style.css file in my themes with the following, and it worked without issue:

Quote
.activity_holder
{
   height: 15px;
   border: 1px solid #9BAEBF;
}

.activity_bar
{
   height: 15px;
   background: #E9F0F6 url(images/titlebg.jpg) repeat-x;
}

.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}

what did you actually change? that looks like the default code.
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on August 10, 2009, 08:49:56 PM
When upgrading the mod is the previous version ok to delete?

It just says list files and delete in the packages folder.
Title: Re: Activitybar 1.0.1.1
Post by: Skargon on August 11, 2009, 09:56:19 AM

what did you actually change? that looks like the default code.

I didn't change anything.  I added that to my style.css in the custom theme, since it wasn't there, and *Poof*, my bar appeared.

I have about four custom themes, and I had to manually add that code to the style.css on all of them to have the status bar appear.

Until I added that code, all I had was a percent number, no bar.
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on August 12, 2009, 07:21:58 AM
ah, thanks Skargon. Appreciate it.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on August 12, 2009, 09:10:52 AM
When upgrading the mod is the previous version ok to delete?

It just says list files and delete in the packages folder.

Yes, delete it.
Title: Re: Activitybar 1.0.1.1
Post by: Frelo21 on August 15, 2009, 01:01:05 AM
I installed it fine, but I can't see the activity bar both in profile or under avatar in posts,

im using musonica theme, board: 1.1.9

attached is my theme Display Template.

Title: Re: Activitybar 1.0.1.1
Post by: sreisenb001 on August 15, 2009, 08:50:53 AM
I downloaded it but now can't find on the Admin panel
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on August 15, 2009, 08:52:38 AM
I downloaded it but now can't find on the Admin panel

Dud you install it without errors?

I installed it fine, but I can't see the activity bar both in profile or under avatar in posts,

im using musonica theme, board: 1.1.9

attached is my theme Display Template.



Can you see the activity percentage in the profile?
Title: Re: Activitybar 1.0.1.1
Post by: sreisenb001 on August 15, 2009, 05:43:10 PM
loaded clean and not showing up in profile stats.. i did see this error though.. is this from the MOD

Fatal error: Call to undefined function: profile_stats() in /hsphere/local/home/sreisenb001/mnsportscentral.com/community/Sources/Load.php(1743) : eval()'d code on line 1274
Title: Re: Activitybar 1.0.1.1
Post by: Frelo21 on August 15, 2009, 08:18:40 PM
I downloaded it but now can't find on the Admin panel

Dud you install it without errors?

I installed it fine, but I can't see the activity bar both in profile or under avatar in posts,

im using musonica theme, board: 1.1.9

attached is my theme Display Template.



Can you see the activity percentage in the profile?

No, its not showing anywhere, not in profile or under avatars in posts...
Title: Re: Activitybar 1.0.1.1
Post by: Frelo21 on August 16, 2009, 08:55:27 PM
sorry to bump, but was just wondering if someone could take a look at the display template I uploaded a few posts ago, to see what i'm doing wrong.
Title: Re: Activitybar 1.0.1.1
Post by: Frelo21 on August 17, 2009, 09:50:12 AM
Edit* I can see the activity bar in some peoples profiles, but its not viewable under their avatars in the threads (which is where I wanted this mod the most)

can someone out there in cyberspace help me?  :P
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on August 17, 2009, 09:58:29 AM
loaded clean and not showing up in profile stats.. i did see this error though.. is this from the MOD

Fatal error: Call to undefined function: profile_stats() in /hsphere/local/home/sreisenb001/mnsportscentral.com/community/Sources/Load.php(1743) : eval()'d code on line 1274

No, this mod should not cause any error like that. Could you please attach Profile.php, Profile.template.php and Display.template.php?

Edit* I can see the activity bar in some peoples profiles, but its not viewable under their avatars in the threads (which is where I wanted this mod the most)

can someone out there in cyberspace help me?  :P

I'm sorry for the long delay. Try the attached file. It should make the bar show up in posts.
Title: Re: Activitybar 1.0.1.1
Post by: chrishicks on August 17, 2009, 01:38:06 PM
Was wondering if I can get this mod to recognize calendar days and not go by install date(if that's what it even does)? I'd like to switch it to a weekly setting so I changed it to a 7 day setting today. I have the post count set at 200 and even though I haven't made that many posts I'm at 100%. I did however make that many in the last 4 days or so.
Title: Re: Activitybar 1.0.1.1
Post by: chrishicks on August 20, 2009, 08:15:43 PM
Wondering if anyone else is experiencing the bar not resetting after a set time? I have to keep increasing the post count in order to keep it from hitting 100% for everyone. I was originally running it at 30 days with 500 posts(default) and a few of us maxed it out so I switched it to a 7 day setting. I'm still at 100% even though I bumped the weekly up to 500 posts and another member is catching up with it also. It's like the reset is broken or something. Or am I just getting ahead of the time and somehow adding days in my head?
Title: Re: Activitybar 1.0.1.1
Post by: jdvarner on August 21, 2009, 07:53:42 PM
nah, its working on this end. 30 day set.
Title: Re: Activitybar 1.0.1.1
Post by: Frelo21 on August 22, 2009, 08:13:54 AM
loaded clean and not showing up in profile stats.. i did see this error though.. is this from the MOD

Fatal error: Call to undefined function: profile_stats() in /hsphere/local/home/sreisenb001/mnsportscentral.com/community/Sources/Load.php(1743) : eval()'d code on line 1274

No, this mod should not cause any error like that. Could you please attach Profile.php, Profile.template.php and Display.template.php?

Edit* I can see the activity bar in some peoples profiles, but its not viewable under their avatars in the threads (which is where I wanted this mod the most)

can someone out there in cyberspace help me?  :P

I'm sorry for the long delay. Try the attached file. It should make the bar show up in posts.

cheers!
Title: Re: Activitybar 1.0.1.1
Post by: patdj on August 29, 2009, 05:38:11 AM
Nice tool. Here is my translation for German. I'm not that sure with non UTF8 and UTF8 but the "ä" and "ü" should be the only problem concerning this...

Code: [Select]
<?php
// Version: 1.1; Modifications
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Aktivität';
$txt['activitybar_enable'] = 'Aktivitätsbalken einschalten <div class="smalltext">Aktiviert einen Balken der die Aktivität eines Users wiedergibt.</div>';
$txt['activitybar_label'] = 'Balken-Bezeichnung <div class="smalltext">Die Bezeichnung, die mit dem Balken angezeigt wird. Standard ist "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Aktivitätszeitrahmen <div class="smalltext">Die Modifikation zählt alle Beiträge, die in diesem Zeitraum erstellt wurden. <br />In Tagen. Standard ist 30.</div>';
$txt['activitybar_show_in_posts'] = 'Aktivitätsbalken in Beiträgen anzeigen';
$txt['activitybar_show_in_profile'] = 'Aktivitätsbalken in Profilen anzeigen';
$txt['activitybar_max_posts'] = 'Maximale Beitragszahl <div class="smalltext">Anzahl der Beiträge die zum vollständigen Füllen des Balkens benötigt werden. <br />Freilassen für Standard (500 Beiträge).</div>';
$txt['activitybar_max_width'] = 'Maximale Breite  <div class="smalltext">Die Breite des Balkens. Wenn das oben festgesetzte Beitragslimit erreicht ist, wird der Balken diese Breite haben. <br />In Pixeln. Freilassen für Standard (139 Pixel).</div>';
?>
Title: Re: Activitybar 1.0.1.1
Post by: bolubeyi61 on September 07, 2009, 09:53:04 AM
Manuel anlatımda küçük bir hata var
http://custom.simplemachines.org/mods/index.php?mod=1929
./Themes/default/languages/Modifications.turkish.php
Code: [Select]
// Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Aktiflik';
$txt['activitybar_enable'] = 'Aktiflik Çizgisini aktive et <div class="smalltext">Bu özellikle birlikte kullanicinin ne kadar aktif oldugunu görebilirsiniz.</div>';
$txt['activitybar_label'] = 'Çizgi Etiketi <div class="smalltext">Çizgi ile gösterilecek etiket. Standart "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Aktiflik Zamançerçevesi <div class="smalltext">Eklentinin göz önünde bulunduracagi zamançerçevesi. <br />Gün Sayisi. Standart 30.</div>';
$txt['activitybar_show_in_posts'] = 'Aktiflik çizgisini iletilerde göster';
$txt['activitybar_show_in_profile'] = 'Aktiflik çizgisini profillerde göster';
$txt['activitybar_max_posts'] = 'En Fazla Ileti <div class="smalltext">Çizgiyi doldurucak en fazla ileti sayisi. <br />Bos birakarak standart hale getirirsiniz (500 ileti).</div>';
$txt['activitybar_max_width'] = 'En fazla genislik <div class="smalltext">Çizginin genisligi. Koyulan ileti limiti geçildiginde çizgi bu genislige gelecektir. <br />Pixel olarak. Bos birakarak standart hale getirirsiniz (139px).</div>';

Yukarıdaki kod doğrusu. En sona ; konulmamış. Bu şekilde yapıldığı taktirde bundan sonraki modlar hata verir.
Title: Re: Activitybar 1.0.1.1
Post by: evolution25 on September 08, 2009, 06:58:07 PM
you cant see the bar on my background when says .5 how do  make it so can see it and diff color
Title: Re: Activitybar 1.0.1.1
Post by: Ncen on September 14, 2009, 04:45:20 PM
Regarding Max-posts; is it possible (for You i mean) to add an option for the max-posts to be the same amount of posts that was posted in the limited time period? So that if in the last 30 days 120 posts is made, then max-posts are 120 and then, if there was 500 made another period, then that would be the max-post? :)

Just an idea. :)
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on September 15, 2009, 02:07:34 AM
I might have a look at that, Innocenzia. It's a good idea.
Title: Re: Activitybar 1.0.1.1
Post by: n3ith on September 28, 2009, 03:27:18 PM
Mine works, but no bar is present. I will continue looking here to see if someone else had the same issue. I am sure someone had the same thing happen. I havent found the answer yet though.

http://www.noxxious.com
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on September 29, 2009, 12:47:52 AM
Did you update your custom themes style.css?
Title: Re: Activitybar 1.0.1.1
Post by: Eclipse16V on September 30, 2009, 05:34:40 AM
Nice Mod

Here my German translation:

Code: [Select]
$txt['activitybar_standardlabel'] = 'Aktivit&auml;t';
$txt['activitybar_enable'] = 'Aktivit&auml;ts Anzeige aktivieren <div class="smalltext">Aktiviert die Aktivit&auml;ts Anzeige im Forum. Eine Anzeige die die Aktivit&auml;t der User anzeigt.</div>';
$txt['activitybar_label'] = 'Aktivit&auml;ts Anzeige &Uuml;berschrift <div class="smalltext">&Uuml;berschrift die angezeigt werden soll. Normalwert ist "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Aktivit&auml;ts Zeitraum <div class="smalltext">Alle in diesem Zeitraum geschriebenen Beitr&auml;ge werden gez&auml;hlt. <br />Angabe in Tagen. Leer lassen f&uuml;r den Normalwert (30 Tage).</div>';
$txt['activitybar_show_in_posts'] = 'Aktivit&auml;ts Anzeige in Beitr&auml;gen';
$txt['activitybar_show_in_profile'] = 'Aktivit&auml;ts Anzeige im Profil';
$txt['activitybar_max_posts'] = 'Max. Beitr&auml;ge <div class="smalltext">Anzahl der Beitr&auml;ge die 100% entsprechen.<br />Leer lassen f&uuml;r den Normalwert (500 Beitr&auml;ge).</div>';
$txt['activitybar_max_width'] = 'Max. Breite  <div class="smalltext">Breite der Anzeige. Wenn die Beitr&auml;ge oben erreicht wurden, hat die Anzeige diese Breite.<br />Angabe in Pixel. Leer lassen f&uuml;r den Normalwert (139px).</div>';
Title: Re: Activitybar 1.0.1.1
Post by: Richardgm on September 30, 2009, 07:42:09 PM
Edit: seems to be working now. Thanks.
Title: Re: Activitybar 1.0.1.1
Post by: Laloeka on October 07, 2009, 02:15:20 PM
Dutch translation (i've added credits (in dutch) on the second line ;D)
Code: [Select]
//Activitybar by Nas
//Vertaling door Jochem Kuijpers
$txt['activitybar_standardlabel'] = 'Activiteit';
$txt['activitybar_enable'] = 'Schakel activiteitsbalk in <div class="smalltext">Schakel de activiteitsbalk, een balk die laat zien hoe actief gebruikers zijn geweest, in.</div>';
$txt['activitybar_label'] = 'Balk titel<div class="smalltext">Een titel die weergegeven wordt boven de balk. Standaard is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Avtiviteits periode <div class="smalltext">De modificatie houdt het aantal berichten bij tijdens deze periode. <br />In dagen. Standaard is 30 dagen.</div>';
$txt['activitybar_show_in_posts'] = 'Geef de activiteitsbalk weer in berichten';
$txt['activitybar_show_in_profile'] = 'Geef de activiteitsbalk weer in profielpagina's';
$txt['activitybar_max_posts'] = 'Maximaal aantal berichten <div class="smalltext">Het aantal berichten die nodig zijn om de balk helemaal te vullen. <br />Laat leeg voor het standaard aantal (500 berichten).</div>';
$txt['activitybar_max_width'] = 'Maximale breedte<div class="smalltext">De breedte van de activiteitsbalk. Als het maximaal aantal berichten (hierboven in te stellen) is bereikt heeft de balk deze breedte. <br />In pixels. Laat leeg voor de standaard breedte (139px).</div>';
Title: Re: Activitybar 1.0.1.1
Post by: Omniverse on October 11, 2009, 01:11:30 AM
I noticed someone else request something I would like considered for this mod.
 
So far I love it... but we have several people, who although may not post much, they spend a lot of time reading and checking the forums.
 
It would be great if it took time spent on the forums into consideration for its calculation of activity.
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on October 11, 2009, 01:24:13 AM
I noticed someone else request something I would like considered for this mod.
 
So far I love it... but we have several people, who although may not post much, they spend a lot of time reading and checking the forums.
 
It would be great if it took time spent on the forums into consideration for its calculation of activity.

It would be a good idea for you to update your forum to 1.1.10
Title: Re: Activitybar 1.0.1.1
Post by: Omniverse on October 11, 2009, 01:38:21 AM
Why do you think it isn't? It is up to date with 1.1.10

I don't use the perryiowa one if that's what your referring to. I own the domain just so I can have a myname@mytown email...

Otherwise it's a little if ever used site.

The author prolly won't appreciate his thread being derailed about what version who is using... can we keep the thread on topic please? If you want to tell someone to update, send a PM, don't derail the thread..... and like I said, the site isn't really used, so what does it matter?
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on October 11, 2009, 01:41:16 AM
Powered by SMF 1.1.8 is what it says at the bottom.
Title: Re: Activitybar 1.0.1.1
Post by: thee mc on October 21, 2009, 01:44:41 PM
Hi, awesome mod. I'm having a slight problem though.

I can see the text indicating the name of the bar and the percentage number, but there is no actual bar. I tried emptying the cache and checked it on another computer, but still no bar. Any ideas?

Thanks!
Title: Re: Activitybar 1.0.1.1
Post by: adriandiamond on October 27, 2009, 11:08:50 AM
Hi there, just installed the mod but can't see it in the posts. I am up to date running 1.1.10.
It is in the features and options section and I have checked the box that asks if I want to activate it.

Any ideas as to what if anything I'm doing wrong or haven't done??

Adrian
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on October 27, 2009, 11:14:08 AM
To both of you:

Please read the FAQ in the first post. You have to edit your custom theme css.
Title: Re: Activitybar 1.0.1.1
Post by: rfi1984 on October 31, 2009, 03:52:14 AM
hello every body,

I need a little help please. I have installed this mod to my forum. but only title activity and the percentage of activity can viewed. I am using modified theme. Kindly guide me what should I do??

Waiting to see from soon buddy.


style.css file attached.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on November 09, 2009, 07:00:43 AM
Changelog
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).
Title: Re: Activitybar 1.0.1.1
Post by: Antes on November 09, 2009, 07:04:28 AM
Bar based on best poster ?
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on November 09, 2009, 07:23:13 AM
Bar based on best poster ?

Sorry, what do you mean?
There are no new features in this update, it's only edited to work with SMF 2.0 RC2.
The new features will be available soon enough..
Title: Re: Activitybar 1.0.1.1
Post by: Antes on November 09, 2009, 07:28:44 AM
Bar based on best poster ?

Sorry, what do you mean?
There are no new features in this update, it's only edited to work with SMF 2.0 RC2.
The new features will be available soon enough..

i mean , normally we put a number and it be base ... if there is another option which allows to make base post is the highest post

i have 3000 post & it'll be base when another person get 3001 base change to 3001 ( automaticly )

sorry for some mistakes i'm ill :/
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on November 09, 2009, 07:47:06 AM
Ah, I see.
No, this feature isn't added in this update, but I will look at it for the next version. :)
Title: Re: Activitybar 1.0.1.1
Post by: nnick on November 13, 2009, 06:03:09 AM
Hello,

very good mod

but I have trouble viewing bar on a custom theme. On default theme everything works fine.
1.1.10 is forums version
I have edited style.css of custom forum but still nothing appears. Should I edit something else?

Thank you
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on November 13, 2009, 06:05:14 AM
Does your theme have its own Display.template.php?
Title: Re: Activitybar 1.0.1.1
Post by: nnick on November 13, 2009, 06:31:02 AM
yes it has

what should I edit there?

also I like the following idea.

which file should I edit?

I think I found it :

Code: [Select]
$max_posts = $modSettings['totalMessages'];
Am I right ?
Title: Re: Activitybar 1.0.1.1
Post by: nnick on November 13, 2009, 06:38:37 AM
OK compared with default's and found what it was missing. Now everything works fine :)

So now only thing missing is where to make the change to the following $max_posts = $modSettings['totalMessages'];
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on November 13, 2009, 06:44:41 AM
OK compared with default's and found what it was missing. Now everything works fine :)

Great! ;D

So now only thing missing is where to find the 
$max_posts = $modSettings['totalMessages'];

Subs.php, should be very close to the bottom of the file.
Title: Re: Activitybar 1.0.1.1
Post by: nnick on November 13, 2009, 06:54:27 AM
DONE :)


thank you :)
Title: Re: Activitybar 1.0.1.1
Post by: dkharp on December 09, 2009, 08:40:01 AM
The bar and % shows in IE but only % in Firefox.  Is there a way to get it to show in Firefox too?

By the way a great mod!!!!!!!!
Title: Re: Activitybar 1.0.1.1
Post by: BlockFodder on December 15, 2009, 09:51:20 PM
Could it not be possible to make the percentage a percentage of the total posts for the time period rather than for a set variable?
Title: Re: Activitybar 1.0.1.1
Post by: mirahalo on December 20, 2009, 04:36:39 PM
great mod,  if you accept translations, heres  spanish es/latin:


normal:

Code: [Select]
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Actividad';
$txt['activitybar_enable'] = 'Activar la barra de actividad <div class="smalltext">Activa una barra que muestra que t&aacute;n activo a estado el usuario.</div>';
$txt['activitybar_label'] = 'Etiqueta de la barra <div class="smalltext">una etiqueta que se mostrar&aacute; dentro de la barra, por default aparece: "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Tiempo de actividad <div class="smalltext">Esta opcion contar&aacute; los post hechos por el usuario en ese lapso de tiempo. <br />se especifica en dias. el default es 30.</div>';
$txt['activitybar_show_in_posts'] = 'Muestrar la barra de activiad en los mensajes';
$txt['activitybar_show_in_profile'] = 'Mostra la barra de actividad en el perfil';
$txt['activitybar_max_posts'] = 'M&aacute;ximo n&uacute;mero de mensajes <div class="smalltext">N&uacute;mero de mensajes requeridos para llenar la barra. <br />dejalo vacio para mostrar el default (500 mensajes).</div>';
$txt['activitybar_max_width'] = 'Ancho m&aacute;ximo  <div class="smalltext">El ancho de la barra. cuando se aproxima a la cantidad especificada en la opcion anterior, la barra tendr&aacute; este ancho. <br />En pixeles. D&eacute;jalo vacio para tomar el valor por defecto (139px).</div>';

utf8:

Code: [Select]
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Actividad';
$txt['activitybar_enable'] = 'Activar la barra de actividad <div class="smalltext">Activa una barra que muestra que tán activo a estado el usuario.</div>';
$txt['activitybar_label'] = 'Etiqueta de la barra <div class="smalltext">una etiqueta que se mostrará dentro de la barra, por default aparece: "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Tiempo de actividad <div class="smalltext">Esta opcion contará los post hechos por el usuario en ese lapso de tiempo. <br />se especifica en dias. el default es 30.</div>';
$txt['activitybar_show_in_posts'] = 'Muestrar la barra de activiad en los mensajes';
$txt['activitybar_show_in_profile'] = 'Mostra la barra de actividad en el perfil';
$txt['activitybar_max_posts'] = 'Máximo número de mensajes <div class="smalltext">Número de mensajes requeridos para llenar la barra. <br />dejalo vacio para mostrar el default (500 mensajes).</div>';
$txt['activitybar_max_width'] = 'Ancho máximo  <div class="smalltext">El ancho de la barra. cuando se aproxima a la cantidad especificada en la opcion anterior, la barra tendrá este ancho. <br />En pixeles. Déjalo vacio para tomar el valor por defecto (139px).</div>';

greetings!
Title: Re: Activitybar 1.0.1.1
Post by: sattninja on December 26, 2009, 06:09:18 PM
is there a way to reset the count i want to start this goal at the 1st of every month so if it is 30 days i need to reset it on the 1st how can you do that

thanks
Title: Re: Activitybar 1.0.1.1
Post by: Sakurachan on December 26, 2009, 06:53:43 PM
Any update for SMF 1.1.11 in the future planned?
Title: Re: Activitybar 1.0.1.1
Post by: voy-tech on January 02, 2010, 09:52:10 AM
Sakurachan , this mod works fine in SMF 1.1.11  :)
Title: Re: Activitybar 1.0.1.1
Post by: Bugo on January 13, 2010, 10:45:47 PM
Russian translation:

Code: [Select]
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Активность';
$txt['activitybar_enable'] = 'Включить индикатор активности <div class="smalltext">Небольшая полоска, показывающая активность пользователя (в %).</div>';
$txt['activitybar_label'] = 'Метка индикатора <div class="smalltext">Метка отображается рядом с индикатором. По умолчанию равна "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Включить период времени <div class="smalltext">Подсчёт всех сообщений, оставленных в заданный промежуток времени. <br />В днях. По умолчанию 30.</div>';
$txt['activitybar_show_in_posts'] = 'Показывать индикатор активности в сообщениях';
$txt['activitybar_show_in_profile'] = 'Показывать индикатор активности в профилях';
$txt['activitybar_max_posts'] = 'Максимум сообщений <div class="smalltext">Кол-во сообщений, требующихся для заполнения индикатора. <br />Оставьте поле пустым для использования значения по умолчанию (500 сообщений).</div>';
$txt['activitybar_max_width'] = 'Максимальная ширина  <div class="smalltext">Ширина индикатора. Когда установлен лимит сообщений, индикатор будет иметь эту ширину. <br />В пикселях. Оставьте поле пустым для использования значения по умолчанию (139px).</div>';
Title: Re: Activitybar 1.0.1.1
Post by: Jesna on February 12, 2010, 01:26:37 PM
Hi NAS

Great mod  :)

Could you made the bar based on time instead of posts. Still so you could put the time rate to 30 days or 1 week or whatever, but instead of post it was counting the time online ??

Regards Jakob
Title: Re: Activitybar 1.0.1.1
Post by: maven on February 16, 2010, 04:26:57 AM
Hello Nas,

Great mod, and great to see instant activity from regular members/moderators.

One thing: the % shows but not the progress bar.
both iE8 & latest updated firefox.

Best regards.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on February 16, 2010, 06:26:06 AM
Hi NAS

Great mod  :)

Could you made the bar based on time instead of posts. Still so you could put the time rate to 30 days or 1 week or whatever, but instead of post it was counting the time online ??

Regards Jakob

Probably could, by editing the function that calculates the percentage. I do not intend to do so soon, however.

Hello Nas,

Great mod, and great to see instant activity from regular members/moderators.

One thing: the % shows but not the progress bar.
both iE8 & latest updated firefox.

Best regards.

Using a custom theme? If so, you need to add the new CSS to your custom index.css file.
Title: Re: Activitybar 1.0.1.1
Post by: waruna on February 28, 2010, 11:52:52 AM
is there a way to reset the count i want to start this goal at the 1st of every month so if it is 30 days i need to reset it on the 1st how can you do that

thanks

Yes. I want to ask the same thing. Is it possible to reset the count? Thanks.
Title: Re: Activitybar 1.0.1.1
Post by: steve51184 on March 09, 2010, 07:35:36 PM
rc3 update?
Title: Re: Activitybar 1.0.1.1
Post by: Eclipse16V on March 15, 2010, 01:46:09 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on March 15, 2010, 02:06:29 AM
Have you tried emulating RC2 in your package manager? It may work that simply on RC3.
Title: Re: Activitybar 1.0.1.1
Post by: goombapatrol on April 08, 2010, 12:32:57 AM
would there be any way to add a feature to allow any user to hide the bars in posts? (in their settings)
i've noticed that the members are split between wanting it visible.
Title: Re: Activitybar 1.0.1.1
Post by: cacc on April 15, 2010, 05:32:02 PM
I love this mod!
I have been trying but failing on trying to adapt it a little. It am running it on 2.0 RC3 and want to make it so that people are in a group based on their activity %. Along the same lines as people being part of a certain group based on number of posts, this would put them in a group based on their activity. Can you think of how to do this or is this something you are working on?
Title: Re: Activitybar 1.0.1.1
Post by: chrishicks on April 17, 2010, 02:50:50 AM
would there be any way to add a feature to allow any user to hide the bars in posts? (in their settings)
i've noticed that the members are split between wanting it visible.
I'd also like to request this if at all possible.
Title: Re: Activitybar 1.0.1.1
Post by: David Starr on April 17, 2010, 08:14:53 AM
is there a way to reset the count i want to start this goal at the 1st of every month so if it is 30 days i need to reset it on the 1st how can you do that

thanks

Yes. I want to ask the same thing. Is it possible to reset the count? Thanks.

Has anyone gotten an answer to this question yet? I too would very much like the ability to reset the counter. Disabling the activity bar and restarting it doesn't work. Does anyone know if this counter can be reset?

Title: Re: Activitybar 1.0.1.1
Post by: adcantu on April 20, 2010, 08:24:15 AM
great mod. is there a way to have it display the max size based on percentage instead of by pixel size? My profile data on the posts is in a table with width of 16%
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on April 24, 2010, 01:33:09 PM
Sorry for all the delaying, I've been busy.

Since I no longer have the time or interest to keep updating my mods regularly, this and my other creations will have to wait for 2.0 Final before I update them or add any new features. Sorry.
Title: Re: Activitybar 1.0.1.1
Post by: Bugo on June 07, 2010, 07:05:15 AM
Manual install on SMF 2.0 RC3:

1) Open install2.0.xml in package
2) Find block:
Code: [Select]
<operation>
<search position="before"><![CDATA[$context['can_view_warning'] = (allowedTo('issue_warning') && !$context['user']['is_owner']) || (!empty($modSettings['warning_show']) && ($modSettings['warning_show'] > 1 || $context['user']['is_owner']));]]></search>
<add><![CDATA[$context['activitybar'] = activitybar($memID);]]></add>
</operation>
3) Replace it with:
Code: [Select]
<operation>
<search position="after"><![CDATA[
// Set a canonical URL for this page.]]></search>
<add><![CDATA[ $context['activitybar'] = activitybar($memID);
]]></add>
</operation>
4) Install mod :)

In attachments => russian translation (ANSI & UTF-8 charsets, in separate files)
Title: Re: Activitybar 1.0.1.1
Post by: David Starr on June 17, 2010, 10:22:08 PM

Since the author has apparently abandoned this mod, has anyone else found a way to reset the counter? We want to be able to have it reset 1st of every month, or every quarter, but have not found a way to do so. Anyone have any suggestions?



is there a way to reset the count i want to start this goal at the 1st of every month so if it is 30 days i need to reset it on the 1st how can you do that

thanks

Yes. I want to ask the same thing. Is it possible to reset the count? Thanks.

Has anyone gotten an answer to this question yet? I too would very much like the ability to reset the counter. Disabling the activity bar and restarting it doesn't work. Does anyone know if this counter can be reset?
Title: Re: Activitybar 1.0.1.1
Post by: UKShark on July 27, 2010, 11:32:23 AM
I've just uninstalled this but I am left with the following text where the Activity Bar used to be in the in post profiles...

Activity
%

Any ideas how to get rid of this?

I am using the default theme and have tried installing the plugin again but it leaves me with two activity bars.
Title: Re: Activitybar 1.0.1.1
Post by: Masterd on July 27, 2010, 02:12:43 PM
Nice mod, Nas.
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on July 27, 2010, 02:18:44 PM
I've just uninstalled this but I am left with the following text where the Activity Bar used to be in the in post profiles...

Activity
%

Any ideas how to get rid of this?

I am using the default theme and have tried installing the plugin again but it leaves me with two activity bars.

You would have to look for the file which adds this to the profile then do a manual edit to delete the offending wording.
Title: Re: Activitybar 1.0.1.1
Post by: UKShark on July 27, 2010, 02:53:22 PM
Any idea which file that is?
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on July 27, 2010, 03:12:17 PM
Any idea which file that is?

Not without looking through the mods parser.

Title: Re: Activitybar 1.0.1.1
Post by: PlasticMan on August 02, 2010, 02:31:43 PM
I'm working on SMF 1.1.11 and I have a custom theme I've installed it and adjusted the style.css now the activitybar shows in the members profiles but not in their forum posts.

Anybody know why?
Title: Re: Activitybar 1.0.1.1
Post by: JeneeB53 on August 27, 2010, 10:05:13 PM
That question has been asked at least 30 times in this thread... just look!
Title: Re: Activitybar 1.0.1.1
Post by: simmi2121 on September 03, 2010, 06:33:21 AM
i installed activity bar but bro i appears in my profile but it looks very bad looks like scrubbed with anything... how to make it alrite bro :( plz help m using custom theme
Title: Re: Activitybar 1.0.1.1
Post by: goombapatrol on September 26, 2010, 07:18:43 PM
would there be any way to add a feature to allow any user to hide the bars in posts? (in their settings)
i've noticed that the members are split between wanting it visible.
I'd also like to request this if at all possible.

(could you consider it for 2.0, nas?)
Title: Re: Activitybar 1.0.1.1
Post by: Draffi on November 21, 2010, 08:28:41 PM
Nice mod, indeed !

But i dont understand the measurment:

The "Max Post" (Number of posts required in order to fill the bar.
Leave empty for defaults (500 posts).

Belongs to the field before ?
Activity Timeframe ?

Or is the "max Post" the complete number of postings ?

Sorry for the dumb question, but i need to configure this mod...

When i put "30" in the "Activity Timeframe" meaning, this mod count all postings during the last 30 days.

When i put "30" again in the "Mac Post" Field, meaning the member completed the requirments for the whole 30 days (1 post por a day ?)

When i put 60 there, this meaning 30 posting in 60 days for to complete the Bar ?
Title: Re: Activitybar 1.0.1.1
Post by: Veritas01 on November 30, 2010, 10:40:54 AM
Any plans to update this mod to RC4?
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on December 04, 2010, 05:29:24 PM
Any plans to update this mod to RC4?

As this mod hasn't been updated since RC2 it looks very unlikely.

Shame really as this mod has the chance to beone of the top 5.
Title: Re: Activitybar 1.0.1.1
Post by: Masterd on December 06, 2010, 08:16:57 AM
As this mod hasn't been updated since RC2 it looks very unlikely.

Shame really as this mod has the chance to beone of the top 5.


Here's the answer:

Sorry for all the delaying, I've been busy.

Since I no longer have the time or interest to keep updating my mods regularly, this and my other creations will have to wait for 2.0 Final before I update them or add any new features. Sorry.
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on December 06, 2010, 09:01:08 AM
This mod WILL work on RC4.
Title: Re: Activitybar 1.0.1.1
Post by: steve51184 on December 11, 2010, 08:29:31 PM
This mod WILL work on RC4.
how?
Title: Re: Activitybar 1.0.1.1
Post by: TheListener on December 11, 2010, 08:46:25 PM
Below the mod list click on advance which takes you to an emulate section.

Instead of RC4 you want to emulate an older version.

Also check the edits using the parser.
Title: Re: Activitybar 1.0.1.1
Post by: Marcus Forsberg on December 23, 2010, 09:53:56 AM
Since I no longer have the time or interest to keep updating my mods regularly, this and my other creations will have to wait for 2.0 Final before I update them or add any new features. Sorry.

This statement still stands.
Title: Re: Activitybar 1.0.1.1
Post by: JeneeB53 on January 17, 2011, 03:08:21 PM
That's really great to hear cookie monster, as this is a fabulous mod!
Title: Re: Activitybar 1.0.1.1
Post by: zebono2 on February 05, 2011, 08:15:39 PM
To change the color of the activity bar

find /Themes/Your theme/css/index.css
Code: [Select]
.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;

edit color: #333333; with you choice of hex color
Title: Re: Activitybar 1.0.1.1
Post by: Biology Forums on March 07, 2011, 09:43:02 PM
Would anyone know how to convert the karma numbers into a bar like this?
Title: Re: Activitybar 1.0.1.1
Post by: Suki on June 28, 2011, 03:20:11 PM
Activitybar_1.0.1.3  Has been released, it has support for SMF 2.0.
Title: Re: Activitybar 1.0.1.3
Post by: Sci-Fi_Fan on June 28, 2011, 04:16:07 PM
Great mod! I just have one question.

The bar is working fine in principle (showing the user's activity percentage), but I'm having trouble getting the actual bar to show up no matter what color I change it to. Also, it doesn't show at all in the user profile view. Do you know what could cause this? Is it just an issue with my theme?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 04:23:49 PM
Let me check, what SMF version are you using?
Title: Re: Activitybar 1.0.1.3
Post by: Sci-Fi_Fan on June 28, 2011, 04:26:24 PM
Let me check, what SMF version are you using?

I'm using 2.0.

And thanks in advance for the help :)
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 04:33:06 PM
Ok, it was a typo in the package, my bad,   I have updated the mod on the mod site, uninstall it and install the new one


on install don't foget to click the option to install in other themes.
Title: Re: Activitybar 1.0.1.3
Post by: Sci-Fi_Fan on June 28, 2011, 04:35:31 PM
Ok, it was a typo in the package, my bad,   I have updated the mod on the mod site, uninstall it and install the new one


on install don't foget to click the option to install in other themes.

Ah, brilliant, thanks! And yeah, I make myself remember that everytime I install a mod. lol

Thanks for your help
Title: Re: Activitybar 1.0.1.3
Post by: Zuća on June 28, 2011, 04:50:39 PM
My theme is black and not see a good activity bar, how can I change the color to be green instead of gray within activity bar?
(http://www.dodaj.rs/f/L/aX/3aWTkpP8/untitled.png)
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 04:56:52 PM
look in your Themes's  /css/index.css  for 2.0    or   your theme's/styly.css


for:


.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}



change the  color: #333333;  with a brighter color, perhaps  #fff;
Title: Re: Activitybar 1.0.1.3
Post by: Richardgm on June 28, 2011, 04:59:54 PM
Thanks for updating! Works well for me.
Title: Re: Activitybar 1.0.1.3
Post by: Zuća on June 28, 2011, 05:03:12 PM
look in your Themes's  /css/index.css  for 2.0    or   your theme's/styly.css


for:


.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}



change the  color: #333333;  with a brighter color, perhaps  #fff;

thank you, and you can change the gray bar within activity?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 05:17:38 PM
Present.  its all on your  css  file  from there you can change the style for your bar


the bar's border is controlled with this:

.activity_holder
{
   height: 15px;
   border: 1px solid #9BAEBF;
}


What's your SMF version?
Title: Re: Activitybar 1.0.1.3
Post by: Zuća on June 28, 2011, 05:24:52 PM
2.0

Thanks ;)
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 05:28:39 PM
for 2.0  look in your  theme's  css/index.css  file:

Code: (css) [Select]
.activity_holder
{
height: 15px;
border: 1px solid #9BAEBF;
}

.activity_bar
{
height: 15px;
background: url(../images/theme/main_block.png) 90% -200px;
}

.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;
}


this css controls everything about the look for your bar.
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on June 28, 2011, 07:48:27 PM
MAS

The mod installed perfect.

Which piece of code would I need to use so the mod shows on a persons ultimate profile?

Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 08:33:53 PM
It depends on where exactly do you want to show the bar.

do you want to show it on its own block?
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on June 28, 2011, 08:42:03 PM
I was thinking where the username, postcount and position are located.

( I intend to have Topics there also)
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 08:49:55 PM
Let me install that mod on local as I don't know it well.

 Is this for SMF 2.0 ?
Title: Re: Activitybar 1.0.1.3
Post by: ZerK on June 28, 2011, 08:54:15 PM
nice mod,
 i instaled it in my forum but did some changes like adding an image to the percent and centered the number.
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on June 28, 2011, 08:55:45 PM
nice mod,
 i instaled it in my forum but did some changes like adding an image to the percent and centered the number.

Can ya show a screenshot so others can see what it looks like?
Title: Re: Activitybar 1.0.1.3
Post by: ZerK on June 28, 2011, 08:59:56 PM
(http://img694.imageshack.us/img694/8347/dibujolju.png)
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on June 28, 2011, 09:02:52 PM
Looks good.

What is the hex code for that colour green.

My previous post will explain the reason for the question.
Title: Re: Activitybar 1.0.1.3
Post by: ZerK on June 28, 2011, 09:06:24 PM
its an image and i cant check now because my other pc  (the one with photoshop) is having temp issues.

but i could do it with a background color and inner shadow (box-shadow), i didnt do it that way because it wont be compatible with all browsers
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on June 28, 2011, 09:10:34 PM
Darn ya cheated lol.
Title: Re: Activitybar 1.0.1.3
Post by: Zuća on June 28, 2011, 10:10:27 PM
I tried everything, but we could not understand how to make something like this

(http://img694.imageshack.us/img694/8347/dibujolju.png)
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 28, 2011, 10:15:12 PM
its pure css,  you only need to edit the css for this mod:

for 2.0 is this:  /Thmes/your theme/css/index.css

.activity_holder
{
   height: 15px;
   border: 1px solid #9BAEBF;
}

.activity_bar
{
   height: 15px;
   background: url(../images/theme/main_block.png) 90% -200px;
}

.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}


on this

.activity_bar
{
   height: 15px;
   background: url(../images/theme/main_block.png) 90% -200px;
}


you can set your own image url  as well as putting a text-align:center;  to center the text inside the bar.
 
Title: Re: Activitybar 1.0.1.3
Post by: ZerK on June 28, 2011, 10:25:48 PM
here is the image im using:

Title: Re: Activitybar 1.0.1.3
Post by: Zuća on June 29, 2011, 08:55:49 AM
here is the image im using:

THANK YOU...but to me it is not clear where to put this ... well in activitybar.png themes/default/images/activitybar.png ???
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 29, 2011, 09:18:44 AM
you will put it in the images/theme folder of the theme you are currently using

then in

.activity_bar
{
   height: 15px;
   background: url(../images/theme/main_block.png) 90% -200px;
}

change the main_block.png  for the name of your image
Title: Re: Activitybar 1.0.1.3
Post by: Diego Andrés on June 29, 2011, 11:33:32 AM
Nice work Miss, what kind of changes has the new version ?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 29, 2011, 11:38:09 AM
None,  I just updated it to work with 2.0 and added Spanish language support.

   I just recently take over this mod and haven't heard or read about features yet.
Title: Re: Activitybar 1.0.1.3
Post by: Diego Andrés on June 29, 2011, 11:40:00 AM
Thank you  ;)
Title: Re: Activitybar 1.0.1.3
Post by: Zuća on June 29, 2011, 11:42:11 AM
Thanks ElPlayer and Miss all sunday :D

(http://www.dodaj.rs/f/1C/3A/u9zN5Xm/untitled.png)
Title: Re: Activitybar 1.0.1.3
Post by: Kajol on June 30, 2011, 06:24:03 AM
I have users with 12 comments and I have user with 3000 comments. How come that users with less comments have a higher percentage than users with more comments?
My settings you can see in the attached image.
Title: Re: Activitybar 1.0.1.3
Post by: Suki on June 30, 2011, 10:40:59 AM
that is because of the time frame you just added,  you add a time frame of just 1 day,  that is that the bar will count only the post made during that time frame,  the user with 12 comments  probably made 8 or 9 on the same day  while the user with 3000  didn't make any post during the same day.


to avoid that just  set a larger time frame, for example 30 days.
Title: Re: Activitybar 1.0.1.3
Post by: Xenmorph on June 30, 2011, 08:49:44 PM
Love the Mod, Only had 1 issue.

The install file was adding the modifications made in subs.php after the ?> instead of before.

I have modified the the install2.0.xml file and all installs and works great now on SMF 2.0


These are the Changes I made to the install2.0.xml file :

Find :
Code: [Select]
<search position="end" />
Replace :
Code: [Select]
<search position="replace"><![CDATA[?>]]></search>

Find :
Code: [Select]
// There you go. Anything else?
return $context['bar'];

}]]></add>

Replace :
Code: [Select]
// There you go. Anything else?
return $context['bar'];

}
?>]]></add>
Title: Re: Activitybar 1.0.1.3
Post by: Kajol on July 11, 2011, 08:42:57 AM
@Miss All Sunday: Thanks that solved it. :)
Title: Re: Activitybar 1.0.1.3
Post by: azhriel on July 11, 2011, 10:24:17 PM
How about, instead of fixed number of days as a time frame, how can i make this mode set a specific date as starting point to count the post. It's because I want to use this as a month activity meter...

Let's say I will put July 1st as the starting point then as the days goes by the meter will increase as the poster make post. Then on the next month i'll change that to August 1st.
Title: Re: Activitybar 1.0.1.3
Post by: Rexmax on July 16, 2011, 04:32:24 AM
Hello Guys, I'm having a big problem. I'm using the MysticJade theme from dziner studios. The activity bar displays like this, and the bar doesn't go up. Please tell me how to solve this. And please tell me how to change the color of the activity percent/numbers because it's a dark theme and they are black also. I checked this mod on the Curve theme and it works fine, but it doesn't work fine with this theme.

(http://i56.tinypic.com/2wh3uvm.jpg)

(http://i55.tinypic.com/w0tiz6.jpg)


Title: Re: Activitybar 1.0.1.3
Post by: Robert. on July 16, 2011, 06:29:14 AM
Hello and welcome to SMF :)
I guess the problem is that you didn't installed the mod in MysticJade, but that's easy to fix:
Add this at the end of index.css in your theme folder:
Code: [Select]

.activity_holder
{
height: 15px;
border: 1px solid #9BAEBF;
}

.activity_bar
{
height: 15px;
background: url(../images/theme/main_block.png) 90% -200px;
}

.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;
}
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on July 22, 2011, 11:31:55 AM
Let me install that mod on local as I don't know it well.

 Is this for SMF 2.0 ?

Oops I forgot about this.

MAS this is for 2.0

I am also still wondering how to change the colour to green.
Title: Re: Activitybar 1.0.1.3
Post by: Suki on July 22, 2011, 11:37:34 AM
yeah, but you haven't answered my question, where exactly do you want to show the activity bar?

ultimate profile adds a custom block where you can put your stuff.


to change the colour look at the post just above yours, that is the css that controls the bar

Title: Re: Activitybar 1.0.1.3
Post by: TheListener on July 22, 2011, 11:54:08 AM
Oops.

Was thinking near the number of topics and posts or below the messaging icons such as msn etc.
Title: Re: Activitybar 1.0.1.3
Post by: desibees on July 31, 2011, 03:38:09 PM
Hi,
You know where it says : 1% or what ever %.
Could you tell me how I can edit that so i can add something after the n%
Title: Re: Activitybar 1.0.1.3
Post by: Suki on July 31, 2011, 08:59:22 PM
Your theme Display.template:


', $message['activitybar']['percentage'], '%</div>
Title: Re: Activitybar 1.0.1.3
Post by: azhriel on July 31, 2011, 09:42:24 PM
How about, instead of fixed number of days as a time frame, how can i make this mode set a specific date as starting point to count the post. It's because I want to use this as a month activity meter...

Let's say I will put July 1st as the starting point then as the days goes by the meter will increase as the poster make post. Then on the next month i'll change that to August 1st.

Still no reply on this matter
Title: Re: Activitybar 1.0.1.3
Post by: Suki on July 31, 2011, 09:49:08 PM
just uninstall the mod, install it on the first day of month and day set the mod to 30 days.


theres no easy way to do what you want, since you will need to reset the start day every month, other wise this will act just like the regular post count, only counting post since the very first start day.
Title: Re: Activitybar 1.0.1.3
Post by: desibees on July 31, 2011, 11:58:01 PM
Hi, I need help.
Instead of just having percentage (the number), is it possible to add like a green bar in the box. so if 10% is it, then 10% of the bar will be colored. I think this was already in the mod, but it's not showing on mine.
Help please?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 01, 2011, 08:12:49 AM
it is by default.

url to your forum?

do you use a custom theme?
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 01, 2011, 04:11:13 PM
Nope, it's not working for me.
Yes , I use a custom theme.
I sent a PM to you with my URL
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 01, 2011, 04:54:56 PM
Attach your theme's css/Index.css  file
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 01, 2011, 05:02:20 PM
Okay.
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 01, 2011, 05:07:05 PM
its there, but you don't have that image in your themes /theme/image folder:

.activity_bar
{
   height: 15px;
   background: url(../images/theme/main_block.png) 90% -200px;
}

you can change this:

background: url(../images/theme/main_block.png) 90% -200px;


with this:

background: #000;

where #000 is some color you want to use.
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 02, 2011, 02:54:44 AM
2 things.

1. The background: color (what you said ^^) didn't work.
2. I do have that image but it has nothing to do with activity bar image.. It's my theme image

(http://www.botdeployment.net/Themes/Bot_Deploy/images/theme/main_block.png)

Thanks
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 02, 2011, 08:01:33 AM
attach your edited file here.

the image is indeed from your theme, this mod just reuses it, thats why those images exist, to be used not only by your theme but by anything and anyone who wants to use it.



Edit, BTW, I just saw your site and the code I posted did work as I can see your activity bar with a black #000 background  color.

if you want to change that with other color just change this:

background: #000;

to whatever color you want.

Title: Re: Activitybar 1.0.1.3
Post by: sharks on August 02, 2011, 08:22:57 AM
Just wanted to drop by and say this... Miss All Sunday is one of my all time favourite modification developers and an excellent support specialist. Thumbs up for all your hard work! :)
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 02, 2011, 12:57:41 PM
thank you so much, all problems solved.
Title: Re: Activitybar 1.0.1.3
Post by: Night_Shadows on August 03, 2011, 06:52:32 PM
will you get it to work with the swedish language as well?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 03, 2011, 07:02:39 PM
This mod does not have a Swedish language, you need to copy/paste this strings in your /Themes/default/languages/Modifications.swedish.php  file at the end before the ?>

Code: [Select]
//Activitybar by Nas
$txt['activitybar_standardlabel'] = 'Activity';
$txt['activitybar_enable'] = 'Enable activity bar <div class="smalltext">Enable the activity bar, a bar that shows how active a user has been.</div>';
$txt['activitybar_label'] = 'Bar label <div class="smalltext">A label displayed along with the bar. Default is "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Activity Timeframe <div class="smalltext">The modification will count all posts made during this timeframe. <br />In days. Default to 30.</div>';
$txt['activitybar_show_in_posts'] = 'Display the activity bar in posts';
$txt['activitybar_show_in_profile'] = 'Display the activity bar in profiles';
$txt['activitybar_max_posts'] = 'Max posts <div class="smalltext">Number of posts required in order to fill the bar. <br />Leave empty for defaults (500 posts).</div>';
$txt['activitybar_max_width'] = 'Max width  <div class="smalltext">The width of the bar. When the post limit set above is reached, the bar will have this width. <br />In pixels. Leave empty for defaults (139px).</div>';
Title: Re: Activitybar 1.0.1.3
Post by: Night_Shadows on August 04, 2011, 09:21:29 AM
Ive installed the mod, added what you told me to add in the  /Themes/default/languages/Modifications.swedish-utf8.php  enabled it on the forum but it doesnt show up in the profile :(
Title: Re: Activitybar 1.0.1.3
Post by: Night_Shadows on August 04, 2011, 09:25:08 AM
Sry it work only had to reload it a couple of times. My foult!

And great work by the way! :)
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 04, 2011, 09:37:35 AM
Just wanted to drop by and say this... Miss All Sunday is one of my all time favourite modification developers and an excellent support specialist. Thumbs up for all your hard work! :)


Thank you sharks, you have no idea how much this made my day :D
Title: Re: Activitybar 1.0.1.3
Post by: sharks on August 05, 2011, 05:00:09 PM
Just wanted to drop by and say this... Miss All Sunday is one of my all time favourite modification developers and an excellent support specialist. Thumbs up for all your hard work! :)


Thank you sharks, you have no idea how much this made my day :D

You really deserve all the kudos and i honestly don't know why i waited so long to post the praise. :)
I have bookmarked several of the help topics that you helped me solve before; mods, manual edits, advice, etc.
Recently, i upgraded my SMF installation to the latest version and i had to re-install all my modifications, so i referred back to all those help topics. This refreshed my memory on the importance of your work around here. My forum is now back to being fully functional, with all the tips and tricks that you had kindly provided in the past.

Cheers!
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 07, 2011, 07:08:58 PM
How can I change n% to white color? Currently it's black. Thanks
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 07, 2011, 07:32:27 PM
Look at your theme's css/index.css file, there you will find the activity bar css, there you can change the text color.
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 07, 2011, 10:22:32 PM
Also is it possible to bold it?
Adding <b.> (without dot) and </b.> (without dot) around the color code in css doesn't help.
Title: Re: Activitybar 1.0.1.3
Post by: Suki on August 07, 2011, 10:26:01 PM
that can also be done in css, take a look at any css tut around the net
Title: Re: Activitybar 1.0.1.3
Post by: desibees on August 07, 2011, 10:35:34 PM
that can also be done in css, take a look at any css tut around the net

Ofcourse I was supposed to add "font-weight: bold;"
I guess I just don't wana try something my self.

Thank you.   ;)
Title: Re: Activitybar 1.0.1.3
Post by: Nitesh Kunnath on September 15, 2011, 08:09:34 AM
How to change the activity bar color ?
There is no option in the settings panel of activity bar to change the color.
IF there is any way to change it from css or php file, please let me know what to edit and what should be the code for the same.
I need something like grey color so that it could match with the forum layout and would be more visible to read.

I have provided the screenshot of the current activity bar.
Title: Re: Activitybar 1.0.1.3
Post by: Suki on September 15, 2011, 11:24:47 AM
Check your theme's  css/index.css file  for this:

Code: [Select]


.activity_holder
{
height: 15px;
border: 1px solid #9BAEBF;
}

.activity_bar
{
height: 15px;
background: url(../images/theme/main_block.png) 90% -200px;
}

.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;
}
 
Title: Re: Activitybar 1.0.1.3
Post by: Nitesh Kunnath on September 15, 2011, 01:42:53 PM
Check your theme's  css/index.css file  for this:

Code: [Select]


.activity_holder
{
height: 15px;
border: 1px solid #9BAEBF;
}

.activity_bar
{
height: 15px;
background: url(../images/theme/main_block.png) 90% -200px;
}

.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;
}
 

Which entry to change in it ?
I did changed this set of code:

.activity_percentage
{
   height: 15px;
   color: #333333;
   text-align: center;
}


In color field, I changed to different color code...but still its the same :(
Am I doing anything wrong ?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on September 15, 2011, 02:33:52 PM
what exactly are you trying to change ?   url to your forum?
Title: Re: Activitybar 1.0.1.3
Post by: Nitesh Kunnath on September 15, 2011, 03:37:38 PM
what exactly are you trying to change ?   url to your forum?

The color scheme used to fill the activity bar....its dark red in color currently and I wish to change this to some other light color scheme.

url: http://forum.gizmolord.com
Title: Re: Activitybar 1.0.1.3
Post by: Suki on September 15, 2011, 03:55:34 PM
thats actually an image:

.activity_bar

http://forum.gizmolord.com/Themes/inferno_20/images/theme/main_block.png

you can either change the image or remove the background-image  and set a different color in the background-color  currently at transparent
Title: Re: Activitybar 1.0.1.3
Post by: Nitesh Kunnath on September 15, 2011, 04:06:37 PM
thats actually an image:

.activity_bar

http://forum.gizmolord.com/Themes/inferno_20/images/theme/main_block.png

you can either change the image or remove the background-image  and set a different color in the background-color  currently at transparent

Is there no other option ?
I removed that file
See the forum now :(
Without that file it really looks odd...with white background..
Cant we change the activity bar background itself without affecting the forum layout ?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on September 15, 2011, 04:20:39 PM
I told ou to remove the  background-image  in your .activity_bar   class in your css, NOT the entire image....
Title: Re: Activitybar 1.0.1.3
Post by: Nitesh Kunnath on September 15, 2011, 04:38:19 PM
I told ou to remove the  background-image  in your .activity_bar   class in your css, NOT the entire image....

Ooops, sorry I got it wrong.
I will try it now and report it soon...
Thanks for all your help
Title: Re: Activitybar 1.0.1.3
Post by: Nitesh Kunnath on September 15, 2011, 04:50:49 PM
Thanks a lot buddy...it did work fine... :)
Title: Re: Activitybar 1.0.1.3
Post by: T3CHN0 on September 18, 2011, 05:10:52 AM
hi along the same topic as above

I just installed this mod but no backgrowned image shows up
i tried to change it but not real sure on how I should address my url
index.css :: something like this

this is what it is on install
Code: [Select]
background: url(../images/theme/main_block.png) 90% -200px;
do i change it to
Code: [Select]
background: url(../Themes/BlackRainV2_20g/images/main_block.png) 90% -200px;or
Code: [Select]
background: url(..www.mysite.com/Themes/BlackRainV2_20g/images/main_block.png)
90% -200px;
or
Code: [Select]
background: url(../BlackRainV2_20g/images/main_block.png) 90% -200px;
Code: [Select]
background: url(http://www.mysite.com/Themes/BlackRainV2_20g/images/main_block.png) 90% -200px;)

and what size is the image "high" "width"
Title: Re: Activitybar 1.0.1.3
Post by: T3CHN0 on September 18, 2011, 10:15:03 AM
hi along the same topic as above
never mind, I worked it out
I need to use full url (http://www.mysite.com/theme/custometheme/images/main_block.png (http://www.mysite.com/theme/custometheme/images/main_block.png)) 90% -200px;
and the image I made my self width "190" hight "20" colour blue and it works as well.
now the biggy
have a look at my pic. how do I make it center like the rest of the fields?
Title: Re: Activitybar 1.0.1.3
Post by: Suki on September 18, 2011, 07:55:08 PM
Add   

margin:auto;

 to the .activity_holder class in your .css file
Title: Re: Activitybar 1.0.1.3
Post by: T3CHN0 on September 19, 2011, 07:10:07 AM
thanks for that, after allot of trying lol the one thing i didn't try was margin:auto;

my settings in my index.css are now
Code: [Select]
.activity_holder
{
   height: 15px;
   border: 1px solid #9BAEBF;
   margin:auto;
}
.activity_bar
{
   height: 15px;
   background: url(http://www.mysite.com/smf/Themes/BlackRainV2_20g/images/main_block.png) 90% -200px;
}
.activity_percentage
{
   height: 15px;
   color: #00FF00;
   text-align: center;
}
and it's all looking good now.
this is a great idea for a mod and I will find it very useful


On another note however I kept getting an error in my logs
Profile.template.php on line 150

I change the code to

Code: [Select]
     // Display the member's current activity
   if (isset($context['member']['action']) && allowedTo('who_view'))
    {
      echo '
      <dt></dt>
      <dd>', $context['member']['action'], '</dd>';

and now no more errors and everything looks to still work
and now with your edit margin:auto; everything looks great as well

thanks
Title: Re: Activitybar 1.0.1.3
Post by: mextremex on September 22, 2011, 03:23:46 AM
working very nice  in 2.0.1 whit custom template  ;D
many thanks for this mod master :)
Title: Re: Activitybar 1.0.1.3
Post by: RacingETR on December 27, 2011, 12:41:15 AM
No work in V2.0.1 u_u

No compatible
Title: Re: Activitybar 1.0.1.3
Post by: Eclipse16V on December 27, 2011, 04:55:24 AM
Works fine on my 2.0.2
Title: Re: Activitybar 1.0.1.3
Post by: TheListener on December 28, 2011, 08:03:36 PM
No work in V2.0.1 u_u

No compatible

The mod emulation link in my signature will help.
Title: Re: Activitybar 1.0.1.3
Post by: Suki on January 04, 2012, 04:54:38 PM
New version, added support for 2.0.x:

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

To upgrade uninstall the old one and install the new version.

If you want to customize the css you can do so in the Sources/ActivityBar.php file function Activity_Bar_css()
Title: Re: Activitybar 1.1
Post by: chinaren on January 09, 2012, 08:45:21 PM
Just loaded this one on my board, but although it says it all worked fine, and I've activated it, I can't see any bar in their profiles. 


I do have Ultimate Profile mod installed though.  Would that affect it?


V2.0.1 btw.
Title: Re: Activitybar 1.1
Post by: Suki on January 09, 2012, 08:47:36 PM
Probably because the ultimate profile mod replaces the code for profile page with it's own, I recall helping another user with that on the ultimate profile support topic, take a look there.
Title: Re: Activitybar 1.1
Post by: chinaren on January 09, 2012, 08:51:04 PM
Probably because the ultimate profile mod replaces the code for profile page with it's own, I recall helping another user with that on the ultimate profile support topic, take a look there.


Thanks, I'll dig through it.
Title: Re: Activitybar 1.1
Post by: Cario Blingz on January 14, 2012, 02:58:06 AM
Please i installed it but I can't able to see it............


Settings are located in Admin > Configuration > Modifications

There is no option like modification in configuration in my Admin

Am using SMF 2.0.2
Title: Re: Activitybar 1.1
Post by: sharks on January 14, 2012, 03:52:57 AM
Please i installed it but I can't able to see it............


Settings are located in Admin > Configuration > Modifications

There is no option like modification in configuration in my Admin

Am using SMF 2.0.2
Are you using the default theme? If not, you will not see it. Change to the default theme and while viewing a topic, you will see the activity bar right under your members' avatar area.
Title: Re: Activitybar 1.1
Post by: Suki on January 14, 2012, 09:54:09 AM
While installing, SMF does give you the chose to install the mod in different themes, it is highly recommended that you use that.
Title: Re: Activitybar 1.1
Post by: Cario Blingz on January 15, 2012, 05:30:32 AM
Please i installed it but I can't able to see it............


Settings are located in Admin > Configuration > Modifications

There is no option like modification in configuration in my Admin

Am using SMF 2.0.2
Are you using the default theme? If not, you will not see it. Change to the default theme and while viewing a topic, you will see the activity bar right under your members' avatar area.

it's not showing anywhere including on my default themes. please how to i go about it ?
Title: Re: Activitybar 1.1
Post by: Suki on January 15, 2012, 08:18:14 AM
any erros on install?
link to your forum?
Title: Re: Activitybar 1.1
Post by: T3CHN0 on January 15, 2012, 12:35:08 PM
sounds like either mod had errors ignored on install by the user or forum file permissions are incorrect
something like that.

This is a simple mod to install, try going over the install with the package parser
Title: Re: Activitybar 1.1
Post by: Cario Blingz on January 16, 2012, 01:11:14 AM
The installation did not show error in just installed correctly
Title: Re: Activitybar 1.1
Post by: Suki on January 16, 2012, 09:02:08 AM
url to your site?

Do you use a custom theme?  does this custom theme have it's own display.template.php?
Title: Re: Activitybar 1.1
Post by: Cario Blingz on January 17, 2012, 01:04:36 PM
url to your site?

Do you use a custom theme?  does this custom theme have it's own display.template.php?

www.gurusbase.com

I used the custom themes but it did not work , yes it has display.template.php
Title: Re: Activitybar 1.1
Post by: Suki on January 17, 2012, 04:35:33 PM
You need to apply the changes to your custom theme's files as well:


http://custom.simplemachines.org/mods/index.php?action=parse;mod=1929;attach=193939;smf_version=2.0.2

The part that modifies the Display.template.php file needs to be applied to your theme's Display.template.php file.
Title: Re: Activitybar 1.1
Post by: luuuciano on January 26, 2012, 06:04:09 PM
I was thinking about cpu usage... this mod will increase it too much? it calcs numbers everytime everywhere?
Title: Re: Activitybar 1.1
Post by: Suki on January 26, 2012, 08:04:06 PM
No, with the latest version I stored the activity bar in a context value and will only perform the function once per user. If you have 30 messages made by the same user, the function will only be called 1 time.
Title: Re: Activitybar 1.1
Post by: luuuciano on January 26, 2012, 08:34:17 PM
No, with the latest version I stored the activity bar in a context value and will only perform the function once per user. If you have 30 messages made by the same user, the function will only be called 1 time.

Amazing...
Title: Re: Activitybar 1.1
Post by: dj_king on January 27, 2012, 04:42:55 AM
Hello! I have a problem with the number of messages in the bar. I have set as maximum number of posts 1000. But I for example I have 3000 and I get to 100%. How I can solve it? Apologies for the language ... Not speak English. thanks
Title: Re: Activitybar 1.1
Post by: Suki on January 27, 2012, 09:32:24 AM
It's the expected behavior,  in your case 1000 messages is the mark for getting 100% in activity, if you have more than that then it will stay at 100% since that is the highest percentage.  There is no error there.

If you don't want to reach 100% that easily then set the max on a higher number.
Title: Re: Activitybar 1.1
Post by: dj_king on January 27, 2012, 05:28:27 PM
It's the expected behavior,  in your case 1000 messages is the mark for getting 100% in activity, if you have more than that then it will stay at 100% since that is the highest percentage.  There is no error there.

If you don't want to reach 100% that easily then set the max on a higher number.

But I have since the limit in 1000 posts and I make 20% ...
Title: Re: Activitybar 1.1
Post by: Suki on January 28, 2012, 09:47:42 AM
What is your timeframe?

if you did all the 3000 messages within your timeframe then the bar should be in 100%, if you only made 100 of the 3000 in the timeframe then those 100 messages are the only ones who will count towards your bar.
Title: Re: Activitybar 1.1
Post by: pixeleyes on February 19, 2012, 11:18:15 AM
How to change color of activity bar?

line and background color...
Title: Re: Activitybar 1.1
Post by: Suki on February 19, 2012, 11:40:56 AM
Sources/ActivityBar.php

function Activity_Bar_css()

there's the ccs for the bar.
Title: Re: Activitybar 1.1
Post by: pixeleyes on February 19, 2012, 01:08:58 PM
Thanks, that is done with your help.

Need help in customization in Activity bar.

I would like to change the place of PERCENTAGE.

such as:
Activity: 1.2%
here only color bar

Title: Re: Activitybar 1.1
Post by: Suki on February 20, 2012, 09:36:15 AM
If you want to change the place then you must edit your theme's Display.template.php, that's where the bar is displayed.
Title: Re: Activitybar 1.1
Post by: TheListener on March 28, 2012, 05:08:41 PM
Been trying and failing to add the activitybar and Next Post level to the ultimate profile mod.

Tried what we sorted out once before but had no luck.
Title: Re: Activitybar 1.1
Post by: Suki on March 28, 2012, 05:33:31 PM
Where exactly do you want to add the activity bar?

Attach Both the Source file and the template file for the Ultimate profile mod here
Title: Re: Activitybar 1.1
Post by: TheListener on March 28, 2012, 05:52:39 PM
Here is the ultimate profile file.

Preferably below the Last Active Link please.

(Dunno why but Location isn't in bold. I had a look but failed).

Title: Re: Activitybar 1.1
Post by: Suki on March 28, 2012, 05:57:50 PM
I need to see an image or something, I don't know what "Last Active Link" is or where is located.
Title: Re: Activitybar 1.1
Post by: TheListener on March 28, 2012, 06:26:01 PM
Here ya go.
Title: Re: Activitybar 1.1
Post by: Suki on March 30, 2012, 05:31:47 PM
Use this one
Title: Re: Activitybar 1.1
Post by: kerrang! on June 16, 2012, 10:37:28 AM
I've skimmed through and might of missed this, so please forgive me.

The inspiration behind this mod, the orginal one created by Nas had either an edited version or alternative which have four levels. I know one was for how often the user had been logged in/active, one for posting frequency but I forget the other two. Is it possible with this mod? It was awesome and made my old community stand out. (Rather unique feature)
Title: Re: Activitybar 1.1
Post by: Suki on June 16, 2012, 10:41:51 AM
I didn't change any of the inner structure since I took this mod, I only applied a few changes, mostly hooks and storing the bar in a context value so it doesn't have to be called for every message.

I don't know if the features you mentioned were removed before I took over the mod.

I do recall a tip with 3 or 4 bars with an annoying gif, perhaps that is what you are looking for.
Title: Re: Activitybar 1.1
Post by: kerrang! on June 16, 2012, 10:50:20 AM
I didn't change any of the inner structure since I took this mod, I only applied a few changes, mostly hooks and storing the bar in a context value so it doesn't have to be called for every message.

I don't know if the features you mentioned were removed before I took over the mod.

I do recall a tip with 3 or 4 bars with an annoying gif, perhaps that is what you are looking for.
I think you're correct, I don't recall the annoying gif though.

Any chances of being able to achieve the four bar version with your mod? :)
Title: Re: Activitybar 1.1
Post by: Suki on June 16, 2012, 11:19:27 AM
Well this mod only calculates the activity, doesn't really perform any other calculations.  Don't really know what are the other 3 bars for.

Take a look at the tips board, perhaps you will find the 4 bar tip over there.
Title: Re: Activitybar 1.1
Post by: N i g h t m a r e on September 19, 2012, 02:48:43 PM
is it possible to connect this mod to the
Aeva Media (http://www.simplemachines.org/community/index.php?topic=200401.0) mod?

so when i upload videos to the media gallery it counts as activity? and gives me more %?
so say i have
"Activity: 0%"
and upload a video to the gallery it gives me about "4" more percent and now it says
"Activity: 4%" ...
Title: Re: Activitybar 1.1
Post by: Suki on September 19, 2012, 05:22:25 PM
The mod is tightly  related to the post count and the activity isn't stored anywhere, it is calculated on-the-fly, therefore, it would be really impractical to add a db entry just for that.
Title: Re: Activitybar 1.1
Post by: YoMismo on January 28, 2013, 07:06:43 AM
Hello, first of all apologize for my bad English.

I'd like to ask if it would be possible to modify this MOD reached a low activity level configurable, suppose 10% could send a private message / email to warn the user of low participation in the forum. And if it continues to drop, say 5% then managed to alert the delete your account, or you delete it directly if desired. Actually the main intention would be able to reset the message counter to user level and lower it to the forum, so that if your status remains active but if you stop participating for a long lost that status, but like this and if it's too complicated.

The idea is to use the MOD to try to improve the level of participation in the forum and second "punish" inactive users putting their counter to zero or removing that forum.

Unfortunately I have no knowledge to modify the MOD, and not if I ask is too complicated and something that could be done gently.

A greeting.

*********************************

Me gustaría preguntar si sería posible modificar este MOD para que llegado a un nivel bajo de actividad configurable, supongamos un 10% pudiese enviar un mensaje privado/email al usuario para advertirle de su baja participación en el foro. Y si sigue bajando, supongamos al 5% pues avisar al administrado para poder eliminar su cuenta, o que la elimine directamente si así se desea. En realidad la intención principal sería poder poner a cero el contador de mensajes de los usuarios para así bajarlo de nivel en el foro, de tal modo que si participa activamente mantiene su status pero si deja de participar durante un largo periodo pierde dicho status, pero igual ya esto si que ya es muy complicado.

La idea es usar el MOD para intentar mejorar el nivel de participación en el foro y segundo "castigar" a los usuarios inactivos poniendo su contador a cero o eliminándolos del foro.

Desgraciadamente yo no tengo conocimientos para modificar el MOD, y no se si lo que pido es muy complicado o es algo que amablemente se podría hacer.

Un saludo.

Title: Re: Activitybar 1.1
Post by: Suki on January 29, 2013, 09:18:09 AM
No es posible sin agregar un impacto en el rendimiento del servidor, se necesitaría almacenar la actividad en una tabla y consultarla con una tarea programada y para cuando se ejecute esa tarea programada, puede que el usuario ya no esté dentro del rango de baja actividad.

La otra opción sería obtener todos los posibles candidatos en la misma tarea programada, de igual forma sería costoso.
Title: Re: Activitybar 1.1
Post by: YoMismo on January 29, 2013, 03:12:38 PM
Muchas gracias Suki, si no es fácil miraré a ver si encuentro algún MOD que me avise cuando los usuarios lleven un determinado tiempo sin actividad para borrarlos manualmente.

Una última cuestión, sería posible añadir una columna con la actividad en Administración-Usuarios-Todos los usuarios, por defecto salen estan columnas:
ID    Usuario    Nombre a mostrar    Dirección Email    Dirección IP    última vez en línea    Mensajes    

¿Sería muy complicado añadir una columna con la actividad?

Un saludo.
Title: Re: Activitybar 1.1
Post by: Suki on January 29, 2013, 04:11:50 PM
No, it shouldn't be difficult to add the activity, all you need to do is call the Activity_Bar() function which accepts a unique parameter, the User ID  and it will return an array of data, this array contains the width for the bar as well as the percentage, the function also creates a $context var which you can also use in this form:

$context[$user]['activity_bar']

where $user is the user ID
Title: Re: Activitybar 1.1
Post by: MoreBloodWine on January 29, 2013, 07:30:34 PM
Cool mod but a few things...

http://www.eojmarket.com/Dust514/index.php?topic=26.msg60#msg60

Would it be posible to add someone from the options menu that lets a user define the color of the bar and it's text ?

Post that links to shows why I ask.

As for the attachment... I dont know what edit makes this but it seems the divider line is out of place... tested this accross a few sites with the same results.
Title: Re: Activitybar 1.1
Post by: Suki on January 30, 2013, 08:25:39 AM
You can easily change the colors in your Sources/ActivityBar.php file:

function Activity_Bar_css()


The reason why I don't offer an option is because a lot of people doesn't know how to add css  or hexadecimal numbers or even the name of the color.

As for the bar, it is not a bug, it is there to separate this mod settings from other mods, lost of mods adds settings to that same page and mod authors can add a line separator, if you don't want it, o to Sources/ActivityBar.php and find:

$config_vars[] = '';

and delete it.
Title: Re: Activitybar
Post by: ramooo19 on March 10, 2018, 07:17:12 AM
when will this version of the plugin for version 2.1 of smf be released or improved?
Title: Re: Activitybar
Post by: Suki on March 11, 2018, 12:35:59 PM
3 years ago. (https://github.com/MissAllSunday/ActivityBar)
Title: Re: Activitybar
Post by: sirfpsycho on September 22, 2019, 10:45:57 PM
I want to change activity bar filling color. How to do?
Title: Re: Activitybar
Post by: shadav on September 22, 2019, 11:41:23 PM
I want to change activity bar filling color. How to do?
in sources > ActivityBar.php
find
Code: [Select]
<style type="text/css">
.activity_holder
{
height: 15px;
border: 1px solid #fff;
}

.activity_bar
{
height: 15px;
background: url('. $settings['default_theme_url'] .'/images/theme/main_block.png) 90% -200px;
}

.activity_percentage
{
height: 15px;
color: #fff;
text-align: center;
}
</style>
Title: Re: Activitybar
Post by: pocttopus on May 29, 2020, 03:28:41 AM
Hello,

Any chance to have this mod for 2.1RC2 version?
Title: Re: Activitybar
Post by: digger on May 29, 2020, 06:51:17 AM
Hello,

Any chance to have this mod for 2.1RC2 version?

https://github.com/MissAllSunday/ActivityBar
Title: Re: Activitybar
Post by: pocttopus on May 29, 2020, 08:49:09 AM
Thank you... should I continue with installation because some files are missing?  ???


1.    Execute Code    configInstall.php    
2.    Add Hook    Adapting hook integrate_load_theme    Test successful
3.    Add Credits    Credits: Activity bar mod    
4.    Extract Tree    ./Sources/ohara    File not found
5.    Extract File    ./Sources/ActivityBar.php    The file that handles everything
6.    Extract Tree    ./vendor    File not found
7.    Extract Tree    ./Themes    Theme files
Title: Re: Activitybar
Post by: Suki on May 29, 2020, 11:30:52 AM
The code on github isn't ready to install as a couple more steps are needed.

You can try the 2.0 version, it will install with emulation, however, since 2.1 has had some heavy changes I think both ActivityBar versions (for 2.0 and for 2.1) will no longer work properly on github's SMF 2.1 code.