Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ^HeRaCLeS^ on October 15, 2011, 09:57:04 AM

Title: Avatar User State
Post by: ^HeRaCLeS^ on October 15, 2011, 09:57:04 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3184)

Avatar User State

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FAdkmods%2Flogo.png&hash=b7e60a41a3ada5e2ace731e912eef5f3dd40e770) (http://www.smfpersonal.net/)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fuser.png&hash=997d251819d42b9aa15fd08d1b64be6544cd071a) Autor/Author:
     ^HeRaCLeS^ (http://www.smfpersonal.net/profiles/heracles-u259.html)
    
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fpage_white_flash.png&hash=ed86fd5e13fc727a61ef6b0bdbb304d2f610017e) Características:
     Este mod nos pondra un marco en los avatares diferenciando su estado (Online/Offline)
     Opciones:
          Activar/Desactivar

     Las opciones de este mod se encuentran en: Centro de Administración » Modificaciones

     Copyright 2011 by SMF Personal @ visita www.smfpersonal.net (http://www.smfpersonal.net/) para soporte oficial.

     Si tu quieres ayudarnos, por favor visita nuestra seccion de contribuciones: Contribuir (http://www.smfpersonal.net/about.html;sa=contritube-spanish)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fpage_white_flash.png&hash=ed86fd5e13fc727a61ef6b0bdbb304d2f610017e) Features:
     This mod will put us a framework in the avatares for differentiating you status (Online/Offline)
     Options:
          Enable/Disable

     The options of this mod are in: Administration Center » Modification Settings

     Copyright 2011 by SMF Personal @ visit www.smfpersonal.net (http://www.smfpersonal.net/) for official support.

     If you want help, please visit our contributions section: Contribute (http://www.smfpersonal.net/about.html;sa=contribute)



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) Idiomas/Languages:
     o English
     o Spanish_es
     o Spanish_es-utf8
     o Spanish_latin
     o Spanish_latin-utf8

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) Compatibilidad/Compatibility:
     o SMF 2.0*

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) Desarrollador/Developer:
     Adk-Team (http://www.smfpersonal.net/)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) Notas/Notes:
     El mod utiliza css3, puede que no se vea correctamente en ie6, ie7, ie8.
     El mod usa un avatar default para los miembros que no tienen uno. Solo en el display.
     This mod using css3, It will not be compatible with ie6, ie7, ie8.
     The mod uses a default avatar for members without one. Only in Display
Title: Re: Adk Avatar User State
Post by: Manu.G on November 06, 2011, 11:52:11 AM
I installed your mod and it's really nice, but I getting tons of entries in the error log :(


Quote8: Undefined index: Off

And I think it has to do with this code:





if (!empty($modSettings['Adk_Aus'])) {
if (!empty($message['member']['online']['is_online'])) { $Estado = 'On'; }
elseif (empty($message['member']['online']['is_online'])) { $Estado = 'Off'; }
}
else {
$Estado = '';



What I can do to prevent entires in the error-log?
Title: Re: Adk Avatar User State
Post by: Adk-Team on November 06, 2011, 09:12:53 PM
Url?
Version smf?
Theme?

More details please ;)
Title: Re: Adk Avatar User State
Post by: Manu.G on November 07, 2011, 02:03:33 AM
Url: http://forum.arsenie.net (http://forum.arsenie.net)
SMF Version: 2.0.1
Theme: Based on the Core but modified by me

I think I've installed to much modifications, but we love them :D


As far as I can see, only guests causing this problem :-??
Title: Re: Adk Avatar User State
Post by: Adk-Team on November 07, 2011, 10:46:54 AM
I see the mod working good.

You can display a link where the error?
Attach files "display.template.php and load.php"
Title: Re: Adk Avatar User State
Post by: Manu.G on November 07, 2011, 01:31:00 PM
The error seems to be in the display.template.php on line 307 (error-log)
I attached my display.template.php and load.php


Yes, the mod is working good :D I love it :D
Title: Re: Adk Avatar User State
Post by: Manu.G on November 11, 2011, 04:22:24 PM
I won't bother, but have you found the error in my files?
Title: Re: Adk Avatar User State
Post by: Adk-Team on November 11, 2011, 07:03:40 PM
Your files are perfect and your site will look good.
I do not understand where the error.

Could leave a screenshot of the error log?

You have enabled the visitors to post messages?
Title: Re: Adk Avatar User State
Post by: Manu.G on November 11, 2011, 07:17:02 PM
No, visitors can't post messages

Here is a screenshot of my error-log
Title: Re: Adk Avatar User State
Post by: Adk-Team on November 11, 2011, 07:37:23 PM
Apparently the error comes from users deleted.

For example:
topic: http://forum.arsenie.net/index.php?topic=5140.0
user: Arsenie the 1

topic: http://forum.arsenie.net/index.php?topic=3564.0
user: emese

topic: http://forum.arsenie.net/index.php?topic=3447.0
user: Love-Arsy

etc...

It could erase those users or assign an avatar to avoid the error...
Title: Re: Adk Avatar User State
Post by: Manu.G on November 11, 2011, 07:52:58 PM
So I've to delete all those postings? How can I add an avatar for deleted members? :(
Title: Re: Adk Avatar User State
Post by: Suki on November 11, 2011, 07:58:58 PM
Quote from: Manu.G on November 11, 2011, 07:52:58 PM
So I've to delete all those postings? How can I add an avatar for deleted members? :(

You don't need to delete all those post.

The mod author must check if the user id its different from 0, being 0 the id of a guest in a guest post, in that case the "state" should be off or shouldn't happen at all.
Title: Re: Adk Avatar User State
Post by: Adk-Team on November 11, 2011, 07:59:19 PM
I'm out of time today, but tomorrow I tell you how.
Will not have to delete the messages.

Regards
Title: Re: Adk Avatar User State
Post by: Manu.G on November 11, 2011, 08:00:44 PM
That's ok :)
Thanks in advance for your help :D


The problem seems to be solved.
I installed another "Default Avatar" modification and all entries in the error-log seems to be history,
because there aren't any entries since hours.
It wasn't your modification, it was the default-avatar mod I had installed ;)
Title: Re: Adk Avatar User State
Post by: Adk-Team on November 21, 2011, 04:09:06 PM
It seemed to me, because for several days to test the mod again and again and never gave me the error.

Regards
Title: Re: Adk Avatar User State
Post by: Abhay Trivedi on December 06, 2011, 01:38:43 AM
dis mod is nt working for me!!
no errors..it stays as it waz bfore nd m getting da same online/offline green button near my posts...plz hlp me asap...
theme is twitter colour
smf v2.0.1
nd many mods..
Title: Re: Adk Avatar User State
Post by: Adk-Team on December 06, 2011, 04:25:45 AM
Url please
Title: Re: Adk Avatar User State
Post by: Adk-Team on January 20, 2012, 01:45:43 PM
Updated to 2.0.2
Title: Re: Adk Avatar User State
Post by: City Builder on January 22, 2012, 11:51:48 AM
Not working with our 2.0.2 installation using the Minecraft theme.  I chose the two check boxes for our minecraft them when installing but there is no highlight around the users avatars.  Could it be that it doesn't work in the Chrome browser?
Title: Re: Adk Avatar User State
Post by: Adk-Team on January 22, 2012, 12:03:15 PM
url please
Title: Re: Adk Avatar User State
Post by: City Builder on January 22, 2012, 01:02:02 PM
Sorry, when I didn't see any changes, I uninstalled the mod, so that I could finish installing other mods (since as far as I know with mods, If they are to be uninstalled automatically, newer installed mods must be removed first), but if I can get around to reinstalling it, and it still doesn't work when trying in I.E. browser, then I'll send you the URL.

Thanks
Title: Re: Adk Avatar User State
Post by: YogiDarling on February 06, 2012, 11:47:48 AM
Can somebody help me with this, please?


/ Adk Avatar User State $txt['Adk_Aus'] = 'Enable Adk Avatar User State'; $txt['TitleAdkTeam'] = base64_decode('TW9kcyBieSA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQvIj48c3BhbiBzdHlsZT0iY29sb3I6IzAwNjY2NiI+QWRrIFRlYW08L3NwYW4+PC9hPg=='); $txt['ADKauscode'] = base64_decode('Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7JiM4MjI2OyA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQvIj48Yj5BZGsgQXZhdGFyIFVzZXIgU3RhdGU8L2I+PC9hPg==');
Title: Re: Adk Avatar User State
Post by: Abhay Trivedi on March 25, 2012, 02:22:57 PM
not working on my forum :(
forum.scubix.com
Title: Re: Adk Avatar User State
Post by: Adk-Team on March 30, 2012, 08:22:38 AM
Quote from: mynameabhay on March 25, 2012, 02:22:57 PM
not working on my forum :(
forum.scubix.com

You need to make changes to your theme.

Quote from: YogiDarling on February 06, 2012, 11:47:48 AM
Can somebody help me with this, please?


/ Adk Avatar User State $txt['Adk_Aus'] = 'Enable Adk Avatar User State'; $txt['TitleAdkTeam'] = base64_decode('TW9kcyBieSA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQvIj48c3BhbiBzdHlsZT0iY29sb3I6IzAwNjY2NiI+QWRrIFRlYW08L3NwYW4+PC9hPg=='); $txt['ADKauscode'] = base64_decode('Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7JiM4MjI2OyA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQvIj48Yj5BZGsgQXZhdGFyIFVzZXIgU3RhdGU8L2I+PC9hPg==');


What would be the problem?
Title: Re: Adk Avatar User State
Post by: Apllicmz on October 15, 2012, 02:20:56 PM
Nice work
when Update add Pt file

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Adk Avatar User State
$txt['Adk_Aus'] = 'Activar Mod Adk  Avatar Estado do Utilizador';
$txt['TitleAdkTeam'] = base64_decode('TW9kcyBieSA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQvIj48c3BhbiBzdHlsZT0iY29sb3I6IzAwNjY2NiI+QWRrIFRlYW08L3NwYW4+PC9hPg==');
$txt['ADKauscode'] = base64_decode('Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7JiM4MjI2OyA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQvIj48Yj5BZGsgQXZhdGFyIFVzZXIgU3RhdGU8L2I+PC9hPg==');
]]></add>
        </operation>
    </file>


Title: Re: Adk Avatar User State
Post by: Adk-Team on February 18, 2013, 07:29:55 PM
SMF 2.0.4 updated  ;)

Regards enik...
Title: Re: Adk Avatar User State
Post by: User Deleted on September 09, 2013, 09:10:32 PM
Quote from: Adk-Team on March 30, 2012, 08:22:38 AM
You need to make changes to your theme.

Hi, Im using the MysticJade theme by DzinerStudio and it's not working for me, what changes must be made to my theme?
Thanks in advance
Title: Re: Adk Avatar User State
Post by: Adk-Team on September 14, 2013, 02:45:43 PM
You have to look at the parse of the mod.