Link to the mod (https://custom.simplemachines.org/index.php?mod=1929)
Activity Bar
Author: Suki (https://missallsunday.com)
Original idea and original developer: Nas (https://www.simplemachines.org/community/index.php?action=profile;u=143954)
DescriptionFor SMF 2.1.x onlyActivity Bar displays a bar in posts and/or profiles, showing how active the user is.
The admin can choose where to display it (Posts, Profile or both), max width, how many posts that are required for a full bar, and the timeframe in which posts are counted.
Can be fully customized via CSS.
Uses the settings set by the administrator to calculate the activity.
It starts off by getting all messages posted within the set timeframe, and counts them.
Calculating starts off by dividing the number of posts by the max number of posts possible (Also a setting), and then multiplies that with 100. What it gets is the percentage displayed inside the bar.
It then figures out how much of the bar should be filled, by multiplying the result from the earlier division, width the max possible with the bar can have (Again, set by administrators).
This information is then used to create the bar.
Settings- Admin > Configuration > Modification Settings > Miscellaneous
Languages- English
- Spanish
- Russian
Changelog2.0.1 April 2022
- Change logic when displaying the bar on profile pages
2.0 April 2022
- Use SMF's bar css style for bar colors
- Remove Ohara library
- Remove old dependencies
- PHP 7.4 or above support
- Remove utf-8 language files
- Clean up template functions
2.1 June 2015
- Changed license to MPL 2.0
- Uses Ohara helper library
- Removes hook specific files in favour of xml based tags
2.0 June 2014
- Compatibility with SMF 2.1 only.
- No more file edits.
- CSS3 CSS3 progress bars thanks to http://red-team-design.com/stylish-css3-progress-bars/
- All css moved to activity.css
- Select the position to show the bar on the Display page.
- Fixed some minor bugs.
1.2 October 2013
- Changed folder structure.
- Removed all template edits.
- Re-wrote all language strings.
- Increase readability for Spanish users.
- Added cache and the ability to clean it whenever a post count increases.
- Re-wrote all source code into a single class.
- Now has its own template file and both the display and the profile HTML are separated into their own functions.
- Uses the custom profile field system to avoid template edits.
1.1 January 2012
-Added compatibility for 2.0.x
-Removed compatibility for 1.1.x
-Reduce queries per page
-Use of hooks
-Less file edits
1.0.1.3 | 28 June 2011
*Now compatible with SMF 2.0
1.0.1.2 | 9 November 2009
* Now compatible with SMF 2.0 RC2 and Curve.
$ Older version of SMF 2.0 are no longer supported, nor is the old default theme Core (The 1.1.x version keeps its Core support, of course).
1.0.1.1 | 1 July 2009
* Small edit to make compatible with SMF 2.0 RC1.2.
> Added translations for Turkish, czech-utf8 and portuguese_pt.
1.0.1 | 1 July 2009
* Added support for SMF 1.1.x.
1.0 | 29 June 2009
$ Created and added to the mod site.
Nice!
Screen, demo, 1.1.9 support? :P
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. :)
Thanks for screenshots :-)
It is amazing!
I am look forward to version 1.1.9
I make czech translate ;)
Your mod is very good. I installed but it disappears in posts. In profil is OK. I checked all setting.
Thanks, akbora.
Did you get any errors on installation?
No I installed without problem and pure...
Could you please attach Display.template.php here?
Thanks your interests... Here it is the file...
That's odd. All codes are there. Are you sure you enabled all settings?
Yes unfortunately,
All settings boxes are checked. I see it in profil...
Could you give me a link to your forum?
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.
I've sent the link by PM
Quote from: Mystery? on June 30, 2009, 02:25:25 PM
Hey I can't see the activity bar. I have enabled the mod settings for the bar in posts and profile.
Its on a custom theme, although when I install the mod it doesn't edit the display.template for that theme.
Please attach Display.template.php of the custom theme.
Activity bar how determines activity? post, online time or what?
Awesome mod! Keep up!
1.1.9 is a must in this case. ;D
Quote from: akbora on June 30, 2009, 02:36:36 PM
Activity bar how determines activity? post, online time or what?
Posts. You can change how many posts are needed and within how many days in the settings.
I am really stumped... All codes are fine and you said that settings are to. Could you try reinstalling it?
Quote from: alex30 on June 30, 2009, 02:41:41 PM
Awesome mod! Keep up!
1.1.9 is a must in this case. ;D
Thanks. :)
Ok Nas I'll try it.
Otherwise, you can make top 10 activity bar according to week, month, year...Can't you?
Quote from: akbora on June 30, 2009, 02:50:21 PM
Ok Nas I'll try it.
Otherwise, you can make top 10 activity bar according to week, month, year...Can't you?
Sorry, what do you mean?
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?
Yes, languagestrings. But that shouldn't affect the functionallity of the mod.
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.
Add this to the end off the file (Just before ?>)
//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>';
No it isn't solved....
Awsome mod for all sites :) ...
Here is Turkish translate
// 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>'
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?
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.
How many themes do you use on your forum? :)
Quote from: TheListener on June 30, 2009, 09:35:36 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......
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).
Quote from: 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).
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
Quote from: akbora on June 30, 2009, 03:14:00 PM
No it isn't solved....
I'll have too look into this.
Quote from: 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?
Clear your cache. Hit F5. :)
Quote from: Antes on June 30, 2009, 04:28:44 PM
Awsome mod for all sites :) ...
Here is Turkish translate
// 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.
Quote from: Snowy on June 30, 2009, 10:47:36 PM
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.
Quote from: Nas on July 01, 2009, 05:36:38 AM
Quote from: Snowy on June 30, 2009, 10:47:36 PM
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?
i would like to see it for 1.1.9 as well and please let us know when u have completed this project
Quote from: Snowy on July 01, 2009, 07:27:00 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. :)
Quote from: 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
1.1. is coming today or tomorrow.
Excellent mod Nas ;) I just installed it on 3 sites with custom themes and no problems :D
Thanks AST3R1X. :)
Quote from: Nas on July 01, 2009, 08:22:44 AM
1.1. is coming today or tomorrow.
I look forward to it as a small child :P ;D
Changelog
1 July 2009
o Added support for SMF 1.1.x.
Cheers Nas!
Great Nas, thanks.
Do you have any ideas about why can't I find "Modifications" under admin?
Display posts?
Quote from: 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?
maybe its your admin.php. Its may be removed
Screenshot please
It doesn't display in posts either.
Install was successful, no "Modifications" word under admin.
Does anyone else have the same problem?
Alex, Admin > Configuration > Modifications.
Are you on 1.1.x?
If so, Admin > Features & settings.
Quote from: 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?
Yes I can't see in posts still. 1.1 installed
Go to admin > features and options
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 ?
Clear your cache, F5.
Done, looks great!
Now it does, any ideas about how to put it under the avatars ?
Because you have just installed it. Do some posts and the percentage will go up
Quote from: 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 ?
Look at Display.template.php, or attach that file here.
İnteresting thing about activity bar:
On User Information Above Posts position it is seen...
Quote from: akbora on July 01, 2009, 12:31:49 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?
Installed, 1.1.9 without any error message.
It is working without bar picture.
Any idea?
Clear you cache, F5.
Something went wrong, now there are two avatars on post display. ::)
File attached. Thanks Nas.
This should do it.
Great , thanks Nas!
Awesome mod!
You're welcome.
And thanks. :)
Very nice!
My forum is v 1.1.9
screen:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.maxipicture.cz%2Fuploaded_files%2F39%2F1246469432-aktivita.jpg&hash=7733f127b296fbb45238395a6566e50d7e935a04)
Czech translate (http://www.simplemachines.org/community/index.php?topic=301494.msg2138586#msg2138586) ;)
Thanks! :P
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
Correct, the_shadow.
MaxiPes, thanks. I'll add that and the turkish translation by Antes in the next update. :)
Quote from: 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?
Clear your cache. Hit F5. :)
You mean the forum maintenance: Empty the file cache ??
NOpe. Your broswer cache, so that the css starts to work. Hit F5 at your keyboard.
Still only Activity
11.4%
and no bar.
Link please?
www.visionaryhosting.info
may not see it as topics are not viewable by guests.
Could you enable it for a few?
Easier way may be to register so I can add you to a membergroup just for smf forum owners
Sorry. You need to add the new css to style.css of your custom theme.
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
thank
nice mod
good work
100% work 1.1.9 2,rc1-1
when update dont forget Portuguese_pt and brazilian
<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ó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ó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ó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ós-limite estabelecido acima, é atingido, o bar terá essa largura. <br />Em pixels. Deixe em branco para defaults (139px).</div>';]]></add>
</operation>
</file>
Quote from: 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
On 1.1.x it's Admin > Features & settings
@candidosa2, thanks. I'll add it. :)
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
katb, that's odd. Could you attch ./Themes/default/Display.template.php?
Nice mod
Work Ok in my 1.1.9
Greek-utf8
<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>
Can I attach too? Because I can not still see.
Thansk, villasg, but not all strings are translated in there?
Quote from: akbora on July 02, 2009, 06:12:40 AM
Can I attach too? Because I can not still see.
Yes.
Thanks. I removed User Information Above Posts info mod. If you see codes of this mod you can clean them. Thanks again.
Quote from: Nas on July 02, 2009, 06:13:25 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 )
How mode bar ?
Quote from: 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.
Actually, all I can see is codes from that mod.
Quote from: villasg on July 02, 2009, 06:26:38 AM
Quote from: Nas on July 02, 2009, 06:13:25 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 )
Thanks
Quote from: Exterminator2006 on July 02, 2009, 02:28:05 PM
How mode bar ?
Sorry? Not sure I understood that.
Well thank you. I can not see it. Never mind. We can not use this mod for this reason. Thanks again.
Good Mod.
Am installing now.
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
When did this error happen?
activity bar isn't seen post area, but profil area yes
Quote from: 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
You seem to have installed it twice. Use the attached file.
Quote from: A.SK on July 02, 2009, 04:10:03 PM
Good Mod.
Am installing now.
Thanks. :)
Quote from: akbora on July 02, 2009, 09:40:48 PM
activity bar isn't seen post area, but profil area yes
Please read this:
Quote from: Nas on July 02, 2009, 02:29:04 PM
Quote from: 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.
Actually, all I can see is codes from that mod.
Damn Nas, 5 pages of replies in 3 days?
Popular guy :P
Quote from: JBlaze on July 03, 2009, 04:44:27 AM
Damn Nas, 5 pages of replies in 3 days?
Popular guy :P
A bit jealous are we? :D
What is the problem?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F25ugw2c.jpg&hash=421a7aa1d4da49f925a7f347bd3b3698b97371ee)
Thanks
Please read the FAQ in the first post of this topic.
Thanks you
Solution
/Themes/youtheme/style.css
Find:
/* The AJAX notifier */
Add After:
.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;
}
i installed but i only ssee like
Activity
14.62%
no pics
asifnur, please read the FAQ in the first post, or the post above yours.
o there we go thanks
You're welcome. :)
Quote from: Nas on July 02, 2009, 06:07:48 AM
katb, that's odd. Could you attch ./Themes/default/Display.template.php?
Nas iam attaching the requested file here...
Congrats for the mod Nas ;) it's a "Dude" mod
Has always, here is the translation for portuguese
Modification.portuguese_pt.php
//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!!
katb your Display.template.php is OK.
Do you use default theme? ;)
Quote from: MaxiPes on July 04, 2009, 04:01:05 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...
Nice mod. Good work Nas.
Quote from: katb on July 05, 2009, 04:35:06 AM
Quote from: MaxiPes on July 04, 2009, 04:01:05 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.
Quote from: babjusi on July 05, 2009, 03:17:48 PM
Nice mod. Good work Nas.
Thanks. :)
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)
That's odd, MATTEK. Shouldn't happen. Thanks for the comment though. :)
How has this mod already gone 2nd in the most popular! :)
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?
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!
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. :)
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
InsaneMustang, thanks.
And you cna change the bar image via css, in style.css of your current theme.
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...
Please read the FAQ in the first post of this topic. :)
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. :)
Quote from: Nas on July 08, 2009, 01:43:52 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.
Quote from: Nas on July 05, 2009, 03:23:45 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..
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!
Quote from: katb on July 12, 2009, 12:36:32 AM
Quote from: Nas on July 05, 2009, 03:23:45 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.
Quote from: 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!
Please read the FAQ in the first post of this topic, or in the readme.txt file in the package.
Nice Mod Nas.
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.
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg20.imageshack.us%2Fimg20%2F1638%2F896360ab175b097b649e033.th.jpg&hash=d286f724fcb3e62d17e470eba8aca5398be70d8d) (http://img20.imageshack.us/i/896360ab175b097b649e033.jpg/) -- click to enlarge
Is this possible?
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.
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!
Thanks.
Yes, a update for RC1.2 will be here after my vacation. :)
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 ?
QuoteIn ./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;
That's a nice idea, SLiM_BoY. :)
Try this:'
$max_posts = $context['common_stats']['total_posts'];
Quote from: Nas on July 16, 2009, 12:51:52 PM
That's a nice idea, SLiM_BoY. :)
Try this:'
$max_posts = $context['common_stats']['total_posts'];
I tried that before. But bar shows 0%.
My bad, I should have known:
$max_posts = $modSettings['totalTopics'];
Quote from: Nas on July 16, 2009, 12:56:30 PM
My bad, I should have known:
$max_posts = $modSettings['totalTopics'];
Now, bar shows 100%. : )
Are you sure you haven't wrote all of the posts on your forum, then? ;)
Quote from: Nas on July 16, 2009, 01:06:18 PM
Are you sure you haven't wrote all of the posts on your forum, then? ;)
Yes, I'm sure. :)
I think I found it :
$max_posts = $modSettings['totalMessages'];
Am I right ?
Oh, that's right. My bad again. Maybe I should get sone sleep before doing more of this. :P
Quote from: 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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg20.imageshack.us%2Fimg20%2F1638%2F896360ab175b097b649e033.th.jpg&hash=d286f724fcb3e62d17e470eba8aca5398be70d8d) (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.
This file should do it. :)
That did it. Thank you.
Quote from: Nas 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.
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. :)
Quote from: jdvarner on July 16, 2009, 09:16:06 PM
Quote from: Nas 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.
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.
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.
Quote from: Nas on July 17, 2009, 04:43:38 AM
Quote from: jdvarner on July 16, 2009, 09:16:06 PM
Quote from: Nas 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.
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%
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.
Quote from: jdvarner on July 17, 2009, 11:44:15 PM
Quote from: Nas on July 17, 2009, 04:43:38 AM
Quote from: jdvarner on July 16, 2009, 09:16:06 PM
Quote from: Nas 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.
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.
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.
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.
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. :)
What code could be used on SMF 2.0 RC1.2 to show the top 10 active members?
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?
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...
Quote from: 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...
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?
Inside the install1.1.x.xml, the portuguese language are twice, but once is czech.
I've added the spanish & spanish_es languages.
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
Language portuguese_brazilian on SMF 2.0 RC1.2.
Modifications.portuguese_brazilian.php
$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>';
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.
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
This is a great mod thanks !
Quote from: 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?
This code is being added to the next version of this mod.
Quote from: 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...
Please read the FAQ in the first post - You need to add the css to your custom theme.
Quote from: ksawery on July 23, 2009, 06:42:52 AM
I've added the spanish & spanish_es languages.
Thanks, I'll include them in the next update.
Quote from: 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
Odd. Please attach ./Sources/Subs.php.
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. :)
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).
FIND /* hovered auto suggest item */
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?
limo2005, you could add it anywhere in style.css instead, it doesn't really matter.
Quote from: Nas on July 28, 2009, 03:47:26 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!
Quote from: limo2005 on July 28, 2009, 03:48:45 PM
Quote from: Nas on July 28, 2009, 03:47:26 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. :)
Thanks!
Thx.
File looks fine to me. Could you attach Display.php as well please?
Where I discharge the images for the mod ??
Donde descargo las imagenes para el mod ??
Quote from: Nas on July 29, 2009, 04:14:40 AM
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 />
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.
Quote from: Nas 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.
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
Go to the mod at the mod site. To the right, choose your SMF version and hit "Parse"
Made the edit to display.php and now have Activity 5% instead of Activity % so an improvement but no image yet.
Thx
Quote from: 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
Please read the faq in the first post of this topic. You have to edit style.css of your custom theme.
Quote from: Nas on July 30, 2009, 03:58:38 PM
Quote from: 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
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
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.
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>';
Quote from: Nas 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.
Sadly I have no clue how to accomplish that. ???
What is the name of the theme you are using at your site?
Quote from: Nas on July 31, 2009, 04:53:18 AM
What is the name of the theme you are using at your site?
http://custom.simplemachines.org/themes/index.php?lemma=1722
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
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>';
The bug in the bar display is due to your theme centering the posts.
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?
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!
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?
You will need to post more, and the bar will get bigger. :)
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.
./Themes/{your_theme}/style.css :)
Quote from: Nas on July 31, 2009, 04:14:44 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
All poster info is centered in your theme.
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;
}
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.
Quote from: 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;
}
what did you actually change? that looks like the default code.
When upgrading the mod is the previous version ok to delete?
It just says list files and delete in the packages folder.
Quote from: jdvarner on August 10, 2009, 08:36:46 PM
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.
ah, thanks Skargon. Appreciate it.
Quote from: 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.
Yes, delete it.
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.
I downloaded it but now can't find on the Admin panel
Quote from: sreisenb001 on August 15, 2009, 08:50:53 AM
I downloaded it but now can't find on the Admin panel
Dud you install it without errors?
Quote from: 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.
Can you see the activity percentage in the profile?
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
Quote from: Nas on August 15, 2009, 08:52:38 AM
Quote from: sreisenb001 on August 15, 2009, 08:50:53 AM
I downloaded it but now can't find on the Admin panel
Dud you install it without errors?
Quote from: 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.
Can you see the activity percentage in the profile?
No, its not showing anywhere, not in profile or under avatars in posts...
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.
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
Quote from: 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
No, this mod should not cause any error like that. Could you please attach Profile.php, Profile.template.php and Display.template.php?
Quote from: 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
I'm sorry for the long delay. Try the attached file. It should make the bar show up in posts.
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.
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?
nah, its working on this end. 30 day set.
Quote from: Nas on August 17, 2009, 09:58:29 AM
Quote from: 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
No, this mod should not cause any error like that. Could you please attach Profile.php, Profile.template.php and Display.template.php?
Quote from: 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
I'm sorry for the long delay. Try the attached file. It should make the bar show up in posts.
cheers!
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...
<?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>';
?>
Manuel anlatımda küçük bir hata var
http://custom.simplemachines.org/mods/index.php?mod=1929
./Themes/default/languages/Modifications.turkish.php
// 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.
you cant see the bar on my background when says .5 how do make it so can see it and diff color
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. :)
I might have a look at that, Innocenzia. It's a good idea.
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
Did you update your custom themes style.css?
Nice Mod
Here my German translation:
$txt['activitybar_standardlabel'] = 'Aktivität';
$txt['activitybar_enable'] = 'Aktivitäts Anzeige aktivieren <div class="smalltext">Aktiviert die Aktivitäts Anzeige im Forum. Eine Anzeige die die Aktivität der User anzeigt.</div>';
$txt['activitybar_label'] = 'Aktivitäts Anzeige Überschrift <div class="smalltext">Überschrift die angezeigt werden soll. Normalwert ist "'.$txt['activitybar_standardlabel'].'".</div>';
$txt['activitybar_timeframe'] = 'Aktivitäts Zeitraum <div class="smalltext">Alle in diesem Zeitraum geschriebenen Beiträge werden gezählt. <br />Angabe in Tagen. Leer lassen für den Normalwert (30 Tage).</div>';
$txt['activitybar_show_in_posts'] = 'Aktivitäts Anzeige in Beiträgen';
$txt['activitybar_show_in_profile'] = 'Aktivitäts Anzeige im Profil';
$txt['activitybar_max_posts'] = 'Max. Beiträge <div class="smalltext">Anzahl der Beiträge die 100% entsprechen.<br />Leer lassen für den Normalwert (500 Beiträge).</div>';
$txt['activitybar_max_width'] = 'Max. Breite <div class="smalltext">Breite der Anzeige. Wenn die Beiträge oben erreicht wurden, hat die Anzeige diese Breite.<br />Angabe in Pixel. Leer lassen für den Normalwert (139px).</div>';
Edit: seems to be working now. Thanks.
Dutch translation (i've added credits (in dutch) on the second line ;D)
//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>';
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.
Quote from: 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.
It would be a good idea for you to update your forum to 1.1.10
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?
Powered by SMF 1.1.8 is what it says at the bottom.
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!
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
To both of you:
Please read the FAQ in the first post. You have to edit your custom theme css.
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.
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).
Bar based on best poster ?
Quote from: Antes on November 09, 2009, 07:04:28 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..
Quote from: Nas on November 09, 2009, 07:23:13 AM
Quote from: Antes on November 09, 2009, 07:04:28 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 :/
Ah, I see.
No, this feature isn't added in this update, but I will look at it for the next version. :)
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
Does your theme have its own Display.template.php?
yes it has
what should I edit there?
also I like the following idea.
which file should I edit?
Quote from: SLiM_BoY on July 16, 2009, 01:12:36 PM
I think I found it :
$max_posts = $modSettings['totalMessages'];
Am I right ?
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'];
Quote from: nnick on November 13, 2009, 06:38:37 AM
OK compared with default's and found what it was missing. Now everything works fine :)
Great! ;D
Quote from: nnick on November 13, 2009, 06:38:37 AM
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.
DONE :)
thank you :)
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!!!!!!!!
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?
great mod, if you accept translations, heres spanish es/latin:
normal:
//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>';
utf8:
//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!
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
Any update for SMF 1.1.11 in the future planned?
Sakurachan , this mod works fine in SMF 1.1.11 :)
Russian translation:
//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>';
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
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.
Quote from: 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
Probably could, by editing the function that calculates the percentage. I do not intend to do so soon, however.
Quote from: 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.
Using a custom theme? If so, you need to add the new CSS to your custom index.css file.
Quote from: 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
Yes. I want to ask the same thing. Is it possible to reset the count? Thanks.
rc3 update?
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
Have you tried emulating RC2 in your package manager? It may work that simply on RC3.
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 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?
Quote from: 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.
I'd also like to request this if at all possible.
Quote from: waruna on February 28, 2010, 11:52:52 AM
Quote from: 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
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?
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%
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.
Manual install on SMF 2.0 RC3:
1) Open install2.0.xml in package
2) Find block:
<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:
<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)
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?
Quote from: David Starr on April 17, 2010, 08:14:53 AM
Quote from: waruna on February 28, 2010, 11:52:52 AM
Quote from: 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
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?
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.
Nice mod, Nas.
Quote from: 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.
You would have to look for the file which adds this to the profile then do a manual edit to delete the offending wording.
Any idea which file that is?
Quote from: UKShark on July 27, 2010, 02:53:22 PM
Any idea which file that is?
Not without looking through the mods parser.
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?
That question has been asked at least 30 times in this thread... just look!
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
Quote from: chrishicks on April 17, 2010, 02:50:50 AM
Quote from: 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.
I'd also like to request this if at all possible.
(could you consider it for 2.0, nas?)
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 ?
Any plans to update this mod to RC4?
Quote from: Veritas01 on November 30, 2010, 10:40:54 AM
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.
Quote from: Brack1 on December 04, 2010, 05:29:24 PM
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:
Quote from: cσσкιє мσηѕтєя 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.
This mod WILL work on RC4.
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.
Quote from: cσσкιє мσηѕтєя on April 24, 2010, 01:33:09 PM
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.
That's really great to hear cookie monster, as this is a fabulous mod!
To change the color of the activity bar
find /Themes/Your theme/css/index.css
.activity_percentage
{
height: 15px;
color: #333333;
text-align: center;
edit color: #333333; with you choice of hex color
Would anyone know how to convert the karma numbers into a bar like this?
Activitybar_1.0.1.3 Has been released, it has support for SMF 2.0.
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?
Let me check, what SMF version are you using?
Quote from: Miss All Sunday on June 28, 2011, 04:23:49 PM
Let me check, what SMF version are you using?
I'm using 2.0.
And thanks in advance for the help :)
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.
Quote from: Miss All Sunday 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.
Ah, brilliant, thanks! And yeah, I make myself remember that everytime I install a mod. lol
Thanks for your help
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dodaj.rs%2Ff%2FL%2FaX%2F3aWTkpP8%2Funtitled.png&hash=3a3cfbf6859e7129efec613a4e5b342ebb2f7ab9)
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;
Thanks for updating! Works well for me.
Quote from: Miss All Sunday 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;
thank you, and you can change the gray bar within activity?
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?
2.0
Thanks ;)
for 2.0 look in your theme's css/index.css file:
.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.
MAS
The mod installed perfect.
Which piece of code would I need to use so the mod shows on a persons ultimate profile?
It depends on where exactly do you want to show the bar.
do you want to show it on its own block?
I was thinking where the username, postcount and position are located.
( I intend to have Topics there also)
Let me install that mod on local as I don't know it well.
Is this for SMF 2.0 ?
nice mod,
i instaled it in my forum but did some changes like adding an image to the percent and centered the number.
Quote from: ElPlayer 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.
Can ya show a screenshot so others can see what it looks like?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg694.imageshack.us%2Fimg694%2F8347%2Fdibujolju.png&hash=d836e2a24d4d0ebd23da02d4e649c41cb92a4518)
Looks good.
What is the hex code for that colour green.
My previous post will explain the reason for the question.
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
Darn ya cheated lol.
I tried everything, but we could not understand how to make something like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg694.imageshack.us%2Fimg694%2F8347%2Fdibujolju.png&hash=d836e2a24d4d0ebd23da02d4e649c41cb92a4518)
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.
here is the image im using:
Quote from: ElPlayer on June 28, 2011, 10:25:48 PM
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 ???
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
Nice work Miss, what kind of changes has the new version ?
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.
Thank you ;)
Thanks ElPlayer and Miss all sunday :D
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dodaj.rs%2Ff%2F1C%2F3A%2Fu9zN5Xm%2Funtitled.png&hash=ed188985eed9f7821ed6db27ea242be17cca4c91)
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.
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.
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 :
<search position="end" />
Replace :
<search position="replace"><![CDATA[?>]]></search>
Find :
// There you go. Anything else?
return $context['bar'];
}]]></add>
Replace :
// There you go. Anything else?
return $context['bar'];
}
?>]]></add>
@Miss All Sunday: Thanks that solved it. :)
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.
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F2wh3uvm.jpg&hash=bf238df942a03b83ffe1c1ce40fed6d2e8b4b4f5)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi55.tinypic.com%2Fw0tiz6.jpg&hash=9a05887dd3b8351052fcd2a904f65460fe2a63c0)
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:
.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;
}
Quote from: Miss All Sunday 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 ?
Oops I forgot about this.
MAS this is for 2.0
I am also still wondering how to change the colour to green.
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
Oops.
Was thinking near the number of topics and posts or below the messaging icons such as msn etc.
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%
Your theme Display.template:
', $message['activitybar']['percentage'], '%</div>
Quote from: 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.
Still no reply on this matter
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.
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?
it is by default.
url to your forum?
do you use a custom theme?
Nope, it's not working for me.
Yes , I use a custom theme.
I sent a PM to you with my URL
Attach your theme's css/Index.css file
Okay.
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.
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.botdeployment.net%2FThemes%2FBot_Deploy%2Fimages%2Ftheme%2Fmain_block.png&hash=fd6cdb95a2c47f0fe91ba55a637e281b42ae3017)
Thanks
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.
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 so much, all problems solved.
will you get it to work with the swedish language as well?
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 ?>
//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>';
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 :(
Sry it work only had to reload it a couple of times. My foult!
And great work by the way! :)
Quote from: 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! :)
Thank you sharks, you have no idea how much this made my day :D
Quote from: Miss All Sunday on August 04, 2011, 09:37:35 AM
Quote from: 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! :)
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!
How can I change n% to white color? Currently it's black. Thanks
Look at your theme's css/index.css file, there you will find the activity bar css, there you can change the text color.
Also is it possible to bold it?
Adding <b.> (without dot) and </b.> (without dot) around the color code in css doesn't help.
that can also be done in css, take a look at any css tut around the net
Quote from: Miss All Sunday 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
Ofcourse I was supposed to add "font-weight: bold;"
I guess I just don't wana try something my self.
Thank you. ;)
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.
Check your theme's css/index.css file for this:
.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;
}
Quote from: Miss All Sunday on September 15, 2011, 11:24:47 AM
Check your theme's css/index.css file for this:
.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 ?
what exactly are you trying to change ? url to your forum?
Quote from: Miss All Sunday on September 15, 2011, 02:33:52 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
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
Quote from: Miss All Sunday 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
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 ?
I told ou to remove the background-image in your .activity_bar class in your css, NOT the entire image....
Quote from: Miss All Sunday 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....
Ooops, sorry I got it wrong.
I will try it now and report it soon...
Thanks for all your help
Thanks a lot buddy...it did work fine... :)
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
background: url(../images/theme/main_block.png) 90% -200px;
do i change it to
background: url(../Themes/BlackRainV2_20g/images/main_block.png) 90% -200px;
or
background: url(..www.mysite.com/Themes/BlackRainV2_20g/images/main_block.png)
90% -200px;
or
background: url(../BlackRainV2_20g/images/main_block.png) 90% -200px;
background: url(http://www.mysite.com/Themes/BlackRainV2_20g/images/main_block.png) 90% -200px;)
and what size is the image "high" "width"
Quote from: techno489 on September 18, 2011, 05:10:52 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?
Add
margin:auto;
to the .activity_holder class in your .css file
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
.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
// 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
working very nice in 2.0.1 whit custom template ;D
many thanks for this mod master :)
No work in V2.0.1 u_u
No compatible
Works fine on my 2.0.2
Quote from: RacingETR on December 27, 2011, 12:41:15 AM
No work in V2.0.1 u_u
No compatible
The mod emulation link in my signature will help.
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()
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.
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.
Quote from: 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.
Thanks, I'll dig through it.
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
Quote from: megawhite 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
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.
While installing, SMF does give you the chose to install the mod in different themes, it is highly recommended that you use that.
Quote from: sharks on January 14, 2012, 03:52:57 AM
Quote from: megawhite 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
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 ?
any erros on install?
link to your forum?
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
The installation did not show error in just installed correctly
url to your site?
Do you use a custom theme? does this custom theme have it's own display.template.php?
Quote from: 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?
www.gurusbase.com
I used the custom themes but it did not work , yes it has display.template.php
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.
I was thinking about cpu usage... this mod will increase it too much? it calcs numbers everytime everywhere?
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.
Quote from: 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.
Amazing...
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
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.
Quote from: 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.
But I have since the limit in 1000 posts and I make 20% ...
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.
How to change color of activity bar?
line and background color...
Sources/ActivityBar.php
function Activity_Bar_css()
there's the ccs for the bar.
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
If you want to change the place then you must edit your theme's Display.template.php, that's where the bar is displayed.
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.
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
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).
I need to see an image or something, I don't know what "Last Active Link" is or where is located.
Here ya go.
Use this one
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)
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.
Quote from: 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.
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? :)
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.
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%" ...
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.
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.
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.
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.
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
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.
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.
when will this version of the plugin for version 2.1 of smf be released or improved?
3 years ago. (https://github.com/MissAllSunday/ActivityBar)
I want to change activity bar filling color. How to do?
Quote from: sirfpsycho on September 22, 2019, 10:45:57 PM
I want to change activity bar filling color. How to do?
in sources > ActivityBar.php
find
<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>
Hello,
Any chance to have this mod for 2.1RC2 version?
Quote from: pocttopus on May 29, 2020, 03:28:41 AM
Hello,
Any chance to have this mod for 2.1RC2 version?
https://github.com/MissAllSunday/ActivityBar
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
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.
Hello
@Suki ...
This old 2.0 mod made it very easy to see just how active each member who was posting is...
Is there any way you could take a look at it and update it for 2.1.1? It appears to fail on DISPLAY and PROFILE templates... perhaps only where to "display" the bar?
I am hoping you'd consider taking a look.
Thank you.
New version 2.0 only compatible with SMF 2.1.x.
2.0 April 2022
- Use SMF's bar css style for bar colors
- Remove Ohara library
- Remove old dependencies
- PHP 7.4 or above support
- Remove utf-8 language files
- Clean up template functions
Old versions are still avaliable at github: https://github.com/MissAllSunday/ActivityBar/releases
Awesome! Upgraded as well (at least from the last version we were using).
Thank you Suki...
Hello Suki...
Looks FANTASTIC in PC wide screen mode...
...however if you make the screen thin enough to go in to mobile mode... activity bar is nowhere to be seen...
ScreenHunter 375.jpg
EDIT: Standard location BTW.
It appears this is the case for all locations that are in the field to the left. The two options to show the bar above/below the signature shows a bar in both PC and Mobile modes... but aren't nearly as visually appealing as the options to the left.
Also, I am seeing the Activity bar LABEL in the Profile (down bottom) ... but not the actual bar (again, standard bar)... not in any view mode. I cane provide a screenshot if necessary.
Curve2 theme BTW
Some custom fields positions are hidden on mobile, you can bring them back editing the responsive.css file.
The idea is to not have clutter when people are just quickly browsing/reading from a phone.
Thanks... I'll take a look at the responsive.css file and see how things appear in mobile if I am able to enable. Thanks for the heads up.
Quote from: FrizzleFried on April 07, 2022, 06:54:21 PMAlso, I am seeing the Activity bar LABEL in the Profile (down bottom) ... but not the actual bar (again, standard bar)... not in any view mode. I cane provide a screenshot if necessary.
Curve2 theme BTW
Here is a screenshot of that page. While the mod shows fine in the SUMMARY section as it is supposed to... I am not sure what is supposed to show here... (please forgive, the label we use for the mod is a little ... shall we say ... ahem ... uncouth... our PRIVATE SITE is pretty much a "water-cooler" type of place with a bunch of guys... )
#1 - LOOK & LAYOUT PAGE
ScreenHunter 376.jpg
#2 - ACCOUNT SETTINGS PAGE
(I tried to upload another photo... I got this error)
QuoteScreenHunter 377.jpg There was a problem during the uploading of ScreenHunter 377.jpg.
The upload directory is full. Please contact an administrator about this problem. 22.8 KB
In any case... it shows the same tag on the ACCOUNTS SETTINGS PAGE.
# - PROFILE DETAILS PAGE
Same thing. Same text appears at the bottom.
It's not a huge deal by any stretch, but should be cleaned up.
I'm gunna see what I can do about getting the nice color bars up in to the top field of the mobile view.
yeah there was a flaw in the code's logic, the bar should not be displayed on any profile settings edit page.
I made a new version to fix that: https://github.com/MissAllSunday/ActivityBar/releases/tag/Version_2.0.1
Please can you add a check to addProfile that $area is not 'register'? It's loading during the registration page and causing errors because the output to $context['custom_fields'] is missing items such as desc.
It's doing that now no?, it had a typo before
I'm only going off FrizzleFried's error log from earlier on about errors during registration owing to missing items in the custom fields arrays.
I have not tried the new version offered earlier today. I will as soon as possible.
I'm not 100% sure if it won't show up in the registration area anyway, if it's turned on, as the return only happens if "area is not summary" and "set to show in profile".
Seems to me it could show up in registration even if show in profile is off, no?
New version is installed. Only time will tell at this point...
:)
I will report back.
I can report that the stray text string throughout the profile pages is gone ... and I've not had a single error reported since installation.
Thank you Suki!
14+ hours later and not a single error. Based on prior behavior I am 100% certain the new version rectified the issues I was having. Again... thank you! :D
Hi all! I searched through the 22 pages of the comments, but couldn't find my answer, maybe I missed it. Anyway, I wanted to reverse the colors, so that a higher percentage of posting give a green bar instead of a red bar, which seems to be more intuitive than the default version. I also made four conditions, Green, Yellow, Orange, and Red.
/Sources/ActivityBar.php (Starting at line 196)
public function setColor(float $percentage): string
{
$color = self::DEFAULT_COLOR;
// Which color should we use?
if ($this->setting('colors'))
{
if ($percentage <= 24)
$color = 'red';
elseif ($percentage >= 25 && $percentage <= 49)
$color = 'orange';
elseif ($percentage >= 50 && $percentage <= 74)
$color = 'yellow';
else
$color = 'green';
}
return $color;
}
Although, I wonder if a bar could be added to the Memberlist? Thanks for the Mod!
I just noticed that if you set Placement to "With Icons" it doesn't take into account the size set to Max width
Quote from: Ricsca on April 23, 2023, 06:56:50 AMI just noticed that if you set Placement to "With Icons" it doesn't take into account the size set to Max width
And after a year, I will take a look on this, thank you for the report.
Quote from: Senkusha on February 01, 2023, 10:04:39 AM/Sources/ActivityBar.php (Starting at line 196)
Thanks, will see about adding an option to switch colors or even implement custom ones.