Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: M-DVD on April 13, 2009, 05:28:13 AM

Title: Avatar Online/Offline
Post by: M-DVD on April 13, 2009, 05:28:13 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1764)




MOD Avatar Online/Offline v1.0
=====================






  • Autor:
M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
  • Version:
1.0
  • Release:
08th April 2009
  • Languages:
(https://www.simplemachines.org/site_images/lang/english.gif) (https://www.simplemachines.org/site_images/lang/english_british.gif) (https://www.simplemachines.org/site_images/lang/spanish.gif) (https://www.simplemachines.org/site_images/lang/spanish_latin.gif) (https://www.simplemachines.org/site_images/lang/arabic.gif) (https://www.simplemachines.org/site_images/lang/turkish.gif)
(https://www.simplemachines.org/site_images/lang/serbian_latin.gif) (https://www.simplemachines.org/site_images/lang/serbian_cyrillic.gif) (https://www.simplemachines.org/site_images/lang/ukrainian.gif) (https://www.simplemachines.org/site_images/lang/russian.gif)
  • Compatible With:
SMF 1.1.1 - 1.1.8
SMF 2 RC1




(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif) (http://www.simplemachines.org/community/index.php?action=post;topic=304517.0)
Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=304517.0)
(https://www.simplemachines.org/site_images/modtitlebar.png)(https://www.simplemachines.org/site_images/modtitlebar.png)(https://www.simplemachines.org/site_images/modtitlebar.png) (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
(https://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(https://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(https://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif) (http://custom.simplemachines.org/mods/index.php?mod=1764)
Images (http://custom.simplemachines.org/mods/index.php?mod=1764)
(https://www.paypal.com/en_GB/i/btn/btn_donate_SM.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)Help support my MODs (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)

Features:





==========================

Languages (normal & utf-8)


$txt['display_transparencyoffline'] = 'Set Transparency in Avatar Offline <i>(0 for disable, 100 max)</i>';

I welcome new translations here (http://www.simplemachines.org/community/index.php?action=post;topic=304517.0)

==========================

Características:





Fin.
Title: Re: Avatar Online/Offline
Post by: edi67 on April 13, 2009, 06:03:32 AM
nice
Title: Re: Avatar Online/Offline
Post by: Marcus Forsberg on April 13, 2009, 06:05:21 AM
Nice idea! Congrats!
Title: Re: Avatar Online/Offline
Post by: TheListener on April 13, 2009, 06:22:58 AM
Have had a look at this mod.

My question is are two avatars supposed to show on profiles at posts?
Title: Re: Avatar Online/Offline
Post by: Sudhakar Arjunan on April 13, 2009, 07:09:19 AM
Its really a good though author.

Hi TheListener,

Hope the uploaded image will be transparent while online and dull less display transparency when offline.
Title: Re: Avatar Online/Offline
Post by: islam2hamy on April 13, 2009, 02:08:24 PM
nice

Arabic-utf8 :


$txt['display_transparencyoffline'] = 'إجعل الصورة الشخصية الخاصة بالعضو شفافة عندما يكون غير متصل <i>(0 للتعطيل, 100 الحد الأقصى)</i>';


please before put the translation in the file be sure that the file encode is UTF-8
Title: Re: Avatar Online/Offline
Post by: Özgür on April 14, 2009, 03:09:26 PM
Really Nice M-DVD. Congrats.
Turkish Translation

$txt['display_transparencyoffline'] = 'Çevrimdışı olanların avatar sönüklüğünü ayarla <i>(0 kapatır maksimum 100 seçebilirsiniz)</i>';

Title: Re: Avatar Online/Offline
Post by: blanix on April 14, 2009, 05:28:16 PM
i have the options only in profile !?

smf 1.1.8
Title: Re: Avatar Online/Offline
Post by: EgAr on April 14, 2009, 09:35:38 PM
Exelente como siempre M-DVD
Title: Re: Avatar Online/Offline
Post by: Ravac on April 15, 2009, 03:34:16 PM
Serbian_latin translation

$txt['display_transparencyoffline'] = 'Postavite transparentnost (providnost) za odsutan Avatar <i>(0 da isključite, 100 maksimalno)</i>';

Serbian_cyrilic translation

$txt['display_transparencyoffline'] = 'Поставите транспарентност (провидност) за одсутан Аватар <i>(0 да искључите, 100 максимално)</i>';
Title: Re: Avatar Online/Offline
Post by: Alpay on April 18, 2009, 05:08:31 AM
Very Good mod.
Title: Re: Avatar Online/Offline
Post by: M-DVD on April 19, 2009, 10:27:32 PM
Sorry for not responding sooner.

Quote from: edi67 on April 13, 2009, 06:03:32 AM
nice

Quote from: Nas on April 13, 2009, 06:05:21 AM
Nice idea! Congrats!

Quote from: Alpay on April 18, 2009, 05:08:31 AM
Very Good mod.

Thanks for your coments :D

--

Quote from: EgAr on April 14, 2009, 09:35:38 PM
Exelente como siempre M-DVD

Gracias :D

--

Quote from: TheListener on April 13, 2009, 06:22:58 AM
Have had a look at this mod.

My question is are two avatars supposed to show on profiles at posts?

Quote from: A.SK on April 13, 2009, 07:09:19 AM
Its really a good though author.

Hi TheListener,

Hope the uploaded image will be transparent while online and dull less display transparency when offline.

Thanks :D, and yes.

Is the same avatar.

If the user is online, the avatar is displayed normal.
If the user is offline, the avartar is displayed transparent.

Important: You should enable the transparency, set the level transparency in the: Themes and Layout / Setting

--

Quote from: blanix on April 14, 2009, 05:28:16 PM
i have the options only in profile !?

smf 1.1.8

The administrator in:
SMF 1.1.X: Admin > Themes and Layout > Reset Options
SMF 2: Admin > Configuration > Themes and Layout > Member Options

Your users in:
Profile > Modify Profile > Look and Layout Preferences

You don't have the settings in Admin CP?

--

Quote from: islam2hamy on April 13, 2009, 02:08:24 PM
nice

Arabic-utf8 :


$txt['display_transparencyoffline'] = 'إجعل الصورة الشخصية الخاصة بالعضو شفافة عندما يكون غير متصل <i>(0 للتعطيل, 100 الحد الأقصى)</i>';


please before put the translation in the file be sure that the file encode is UTF-8
Quote from: Özgür´ on April 14, 2009, 03:09:26 PM
Really Nice M-DVD. Congrats.
Turkish Translation

$txt['display_transparencyoffline'] = 'Çevrimdışı olanların avatar sönüklüğünü ayarla <i>(0 kapatır maksimum 100 seçebilirsiniz)</i>';


Quote from: Ravac on April 15, 2009, 03:34:16 PM
Serbian_latin translation

$txt['display_transparencyoffline'] = 'Postavite transparentnost (providnost) za odsutan Avatar <i>(0 da isključite, 100 maksimalno)</i>';

Serbian_cyrilic translation

$txt['display_transparencyoffline'] = 'Поставите транспарентност (провидност) за одсутан Аватар <i>(0 да искључите, 100 максимално)</i>';

Thanks for translate :D
Title: Re: Avatar Online/Offline
Post by: Rehash D Internet on April 21, 2009, 03:41:52 AM
Hi,

I'm getting no options for this after installing it in Theme Settings>Reset Options.
Title: Re: Avatar Online/Offline
Post by: TheListener on April 21, 2009, 08:52:23 AM
How many avatars are supposed to show once the mod has been installed?

In a members post we see two avatars. Is this right?
Title: Re: Avatar Online/Offline
Post by: blanix on April 21, 2009, 03:54:28 PM
Quote from: blanix on April 14, 2009, 05:28:16 PM
i have the options only in profile !?

smf 1.1.8

Quote from: M-DVDThe administrator in:
SMF 1.1.X: Admin > Themes and Layout > Reset Options
SMF 2: Admin > Configuration > Themes and Layout > Member Options

Your users in:
Profile > Modify Profile > Look and Layout Preferences

You don't have the settings in Admin CP?

--

Yes, i have no settings in admin-cp on 1.1.8 ..


cya
Title: Re: Avatar Online/Offline
Post by: M-DVD on April 21, 2009, 10:33:10 PM
Ok, check if the changes have been made successfully in the file:

Themes/yourtheme(or default)/Settings.template.php

Or attach and I check.

Title: Re: Avatar Online/Offline
Post by: Rehash D Internet on April 22, 2009, 12:19:34 AM
There are no alterations in my settings.template. What changes need I make?
Title: Re: Avatar Online/Offline
Post by: tckbm on April 22, 2009, 10:23:01 AM
$txt['display_transparencyoffline'] = 'Set Transparency in Avatar Offline
<i>(0 for disable, 100 max)</i>';

In Portuguese-BR OR brazilian OR pt-br

$txt['display_transparencyoffline'] = 'Usar transparência em Avatar Offline <i>(0 para desativar, 100 máximo)</i>';


I can translate all of your mods, send me an MP if u want ...

Regards!
Title: Re: Avatar Online/Offline
Post by: blanix on April 22, 2009, 09:46:35 PM
i have the settingscode in settings.template:

array(
'id' => 'display_transparencyoffline',
'type' => 'integer',
'label' => $txt['display_transparencyoffline'],
'default' => true,
),


.. but no settings in admin-cp.
Title: Re: Avatar Online/Offline
Post by: M-DVD on April 25, 2009, 12:33:09 PM
Quote from: TheListener on April 21, 2009, 08:52:23 AM
How many avatars are supposed to show once the mod has been installed?

In a members post we see two avatars. Is this right?

errr, no. One avatar. The same avatar.

If you're offline, your avatar it will show up transparent.

You can check the Sample Images.

--

Quote from: tckbm on April 22, 2009, 10:23:01 AM
$txt['display_transparencyoffline'] = 'Set Transparency in Avatar Offline
<i>(0 for disable, 100 max)</i>';

In Portuguese-BR OR brazilian OR pt-br

$txt['display_transparencyoffline'] = 'Usar transparência em Avatar Offline <i>(0 para desativar, 100 máximo)</i>';


I can translate all of your mods, send me an MP if u want ...

Regards!

Thanks for translate :), today or tomorrow I will send the MP

Also, you can see the list of my MODs here (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)

--

Quote from: Rehash D Internet on April 22, 2009, 12:19:34 AM
There are no alterations in my settings.template. What changes need I make?

Quote from: blanix on April 22, 2009, 09:46:35 PM
i have the settingscode in settings.template:

array(
'id' => 'display_transparencyoffline',
'type' => 'integer',
'label' => $txt['display_transparencyoffline'],
'default' => true,
),


.. but no settings in admin-cp.

I have one dude.

Have you done click here?
Title: Re: Avatar Online/Offline
Post by: Rehash D Internet on April 28, 2009, 11:39:48 AM
In profile.php where do I edit? The parse says before '</table>' but there are countless.
Title: Re: Avatar Online/Offline
Post by: DaRKeN_58 on April 30, 2009, 07:59:07 PM
Que raro tios, a mi no me funciona y esta todo bien instalado y revisado pero los avatares siguen teniendo color.

:S:S:S
Title: Re: Avatar Online/Offline
Post by: M-DVD on May 02, 2009, 07:58:21 PM
Quote from: Rehash D Internet on April 28, 2009, 11:39:48 AM
In profile.php where do I edit? The parse says before '</table>' but there are countless.

:P  Really said: '
[tab][tab][tab][tab][tab][tab][tab][tab][tab]</table>'

You should search, something like this:

                                 </td>
                              </tr>
                              </table>
                        </td>
                     </tr>';

   // Show the standard "Save Settings" profile button.
   template_profile_save();


Quote from: DaRKeN_58 on April 30, 2009, 07:59:07 PM
Que raro tios, a mi no me funciona y esta todo bien instalado y revisado pero los avatares siguen teniendo color.

:S:S:S

¿Lo has activado? Debes fijar la transparencia, por defecto está en cero.
¿Donde activarlo?, revisa estas imágenes adjuntas.

http://www.simplemachines.org/community/index.php?topic=304517.msg2031124#msg2031124

Have you activated? You must set the transparency, by default is zero.
Where do I do it?, Check the attached images.

http://www.simplemachines.org/community/index.php?topic=304517.msg2031124#msg2031124


Title: Re: Avatar Online/Offline
Post by: DaRKeN_58 on May 02, 2009, 11:15:09 PM
Listo, ya esta. El problema era que tenía que añadirle manualmente texto a un archivo.

Gracias a todos.
Title: Re: Avatar Online/Offline
Post by: M-DVD on May 03, 2009, 07:11:13 PM
Your welcome. I am glad that it worked.

No hay de que, me alegra que haya funcionado :)
Title: Re: Avatar Online/Offline
Post by: ZeUsSaN on May 14, 2009, 10:46:18 PM
ukrainian:

$txt['display_transparencyoffline']= 'Встановлена Прозорість в Avatar Offline <i>(0 для відключення, 100 максимально)</i>';


russian:

$txt['display_transparencyoffline']= 'Установленная Прозрачность в Avatar Offline <i>(0 для отключения, 100 максимум)</i>';
Title: Re: Avatar Online/Offline
Post by: M-DVD on May 16, 2009, 08:50:14 PM
Quote from: ZeUsSaN on May 14, 2009, 10:46:18 PM
ukrainian:

$txt['display_transparencyoffline']= 'Встановлена Прозорість в Avatar Offline <i>(0 для відключення, 100 максимально)</i>';


russian:

$txt['display_transparencyoffline']= 'Установленная Прозрачность в Avatar Offline <i>(0 для отключения, 100 максимум)</i>';


Thanks for translate. Have been uploaded :D
Title: Re: Avatar Online/Offline
Post by: Tanshaydar on August 16, 2009, 08:20:14 PM
Does it work with 2.0 RC1.2 ?
I used to use with 1.1.10 and it was working like a charm. But now I upgraded to 2.0
Title: Re: Avatar Online/Offline
Post by: chrishicks on August 25, 2009, 08:51:23 PM
This works great unless the avatar is an animated gif. Is there a way to fix that or no?

I thought it was a Firefox problem until I logged out. Stupid oversight on my part.

EDIT:  It won't work in IE8 until I hit compatibility mode. Any idea how to fix this?
Title: Re: Avatar Online/Offline
Post by: jd3t2qh36r on October 20, 2009, 12:44:43 AM
I don't understand !!!!!!!!!!!!!!!!
Title: Re: Avatar Online/Offline
Post by: Apllicmz on November 01, 2009, 07:24:05 AM
Good Work
Dont forget Update Portuguese linguage


<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Avatar Online Offline trsnalate Candidosa2
$txt['display_transparencyoffline'] = 'Definir Transpar&ecirc;ncia no Avatar Off-line <i>(0 Para Desabilitar, 100 max)</i>';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Avatar Online Offline trsnalate Candidosa2
$txt['display_transparencyoffline'] = 'Definir Transpar&ecirc;ncia no Avatar Off-line <i>(0 Para Desabilitar, 100 max)</i>';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Avatar Online Offline trsnalate Candidosa2
$txt['display_transparencyoffline'] = 'Definir Transpar&ecirc;ncia no Avatar Off-line <i>(0 Para Desabilitar, 100 max)</i>';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Avatar Online Offline trsnalate Candidosa2
$txt['display_transparencyoffline'] = 'Definir Transpar&ecirc;ncia no Avatar Off-line <i>(0 Para Desabilitar, 100 max)</i>';]]></add>
        </operation>
    </file>
Title: Re: Avatar Online/Offline
Post by: brion on November 04, 2009, 03:52:44 PM
I am not able to get manual install directions for this. Does anyone have a copy of the 1.1.X version?
Title: Re: Avatar Online/Offline
Post by: smldmr on November 18, 2009, 11:11:28 AM
for RC2 you can modificate the code for Profile.template.php like this:

Find:
</ul>
<dl>


add before:


<li>
<input type="hidden" name="default_options[display_transparencyoffline]" value="0" />
<label for="display_transparencyoffline">', $txt['display_transparencyoffline'], ' <input type="text" name="default_options[display_transparencyoffline]" id="display_transparencyoffline" value="', !empty($context['member']['options']['display_transparencyoffline']) ? $context['member']['options']['display_transparencyoffline'] : '0', '" size="3" /></label>
</li>

Title: Re: Avatar Online/Offline
Post by: nuva on January 06, 2010, 09:04:59 AM
nice mod ;D

here is the dutch translation:
<file name="$languagedir/Modifications.dutch.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Avatar Online Offline trsnalate
$txt['display_transparencyoffline'] = 'Stel de transparantheid voor offline leden in: <i>(0 voor uitschakelen, 100 max)</i>';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.dutch-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//    MOD Avatar Online Offline trsnalate
$txt['display_transparencyoffline'] = 'Stel de transparantheid voor offline leden in: <i>(0 voor uitschakelen, 100 max)</i>';]]></add>
        </operation>
    </file>
Title: Re: Avatar Online/Offline
Post by: oOo--STAR--oOo on February 12, 2010, 09:10:54 PM
any support for 2.0RC2

used this mod on 1.1.10.. would love an 2.0RC2 version Thanks
Title: Re: Avatar Online/Offline
Post by: smldmr on February 16, 2010, 09:29:58 AM
Quote from: aljo1985 on February 12, 2010, 09:10:54 PM
any support for 2.0RC2

used this mod on 1.1.10.. would love an 2.0RC2 version Thanks

i'm using it on my RC2 forum. only the code for profile.template.php must be modified. Take a look at my last message:

http://www.simplemachines.org/community/index.php?topic=304517.msg2364047#msg2364047
Title: Re: Avatar Online/Offline
Post by: diegolyanky on February 26, 2010, 07:34:33 PM
Instalé el MOD ... Luego hice las modificaciones pertinentes para mi tema ( Helios Multi ) ...

Pero, no veo dónde configurar la transparencia.

Si voy a Administración > Temas y Diseño > Reinicializar Opciones no veo ninguna opción como para configurar eso. Solo veo algo así:

Helios_Multi
Reiniciar los valores por defecto (visitante) para este tema (0 opciones con valores personalizados.)
Reinicializar las opciones actuales de todos los usuarios para este tema
Eliminar todas las opciones de los usuarios y utilizar los valores por defecto (412 usuarios usando sus propias opciones actualmente.)


Dónde y qué precisamente debo presionar para activar / modificar el nivel de transparencia de Avatares ?

Saludos Cordiales !!
Title: Re: Avatar Online/Offline
Post by: Swer on April 05, 2010, 07:54:07 AM
update this mod for rc2 or rc3 please :)
Title: Re: Avatar Online/Offline
Post by: FireDitto on April 13, 2010, 06:09:35 AM
I would like to use this on RC3. It's nifty =D
Title: Re: Avatar Online/Offline
Post by: maf_avt on October 14, 2010, 02:43:04 AM
Any updates for 2.0 RC3?
Will be nice ))
Title: Re: Avatar Online/Offline
Post by: NHWD on April 02, 2011, 06:19:04 AM
Instead of the transparency effect.. Can I add an image that displays whether they're online or not?
Title: Re: Avatar Online/Offline
Post by: H3lioz on September 11, 2011, 05:20:11 AM
Works with 2.0? :(