News:

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

Main Menu

Activitybar

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

Previous topic - Next topic

agguvenligi

This is a great mod thanks !
Gerçeği aramak onu bulmaktan daha kıymetlidir...
____________________________________
Dodge Check Engine Light | Yeni Private Serverlar | Gsm Destek

Marcus Forsberg

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.

Marcus Forsberg

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. :)

limo2005

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?
I dunno!

Marcus Forsberg

limo2005, you could add it anywhere in style.css instead, it doesn't really matter.

limo2005

#165
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!
I dunno!

Marcus Forsberg

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. :)

limo2005

I dunno!

plusev


Marcus Forsberg

File looks fine to me. Could you attach Display.php as well please?

Psicopata

Where I discharge the images for the mod ??


Donde descargo las imagenes para el mod ??

plusev

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 />

Marcus Forsberg

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.

plusev

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

Marcus Forsberg

Go to the mod at the mod site. To the right, choose your SMF version and hit "Parse"

plusev

Made the edit to display.php and now have Activity 5% instead of Activity % so an improvement but no image yet.

Thx

Marcus Forsberg

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.

plusev

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

Marcus Forsberg

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.

LukersWeb

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>';

Advertisement: