News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

On / Off Avatar Frame

Started by Suki, January 07, 2009, 12:41:41 AM

Previous topic - Next topic

Suki

Link to Mod

On / Off Avatar Frame
Author: Suki


Compatibility
-SMF 2.0.x only

Description
This mod will add a frame around you user's avatar, if the user is online the frame wil be green, if not, the frame is gray.


Features
-No language strings, works with every language
-No theme edits, works on every theme.
-Uses css3 properties, you can easily edit the frame look by editing the /Themes/your_theme/css/avatar_frame_mod.css file.


License
* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/


Settings
-No settings, just install and use.


Languages
-No language strings are needed.

Changelog
04/01/2012  version 2.0.2
-Compatibility for 2.0.x
-Minor bug fixes

30/08/2011  version 2.0.1
-Fixed a bug with uploaded avatars width.

08/08/2011  version 2.0
-Complete rewrite of the mod.
-No more template edits
-Cleaner code
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

emilio05


Sabre™

For those that arent entirely sure what this does:
See the green online and grey offline color to the left under your name?
Well instead of that, this mod places a green glow/border around your avatar when youre online, and a grey one when youre offline.

Pretty cool!

Thanks mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





islam2hamy

don't work good with Arabic language  :'(

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





BOS4O


islam2hamy

Quote from: BOS4O on January 07, 2009, 11:24:54 AM
Quote from: islam2hamy on January 07, 2009, 05:23:41 AM
don't work good with Arabic language  :'(

your language is crazy :D

are you kidding ??

Arabic is (right to left) language

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Özgür

#7
Nice mod @grafitus congratulations.

Quote from: islam2hamy on January 07, 2009, 12:00:04 PM
Quote from: BOS4O on January 07, 2009, 11:24:54 AM
Quote from: islam2hamy on January 07, 2009, 05:23:41 AM
don't work good with Arabic language  :'(

your language is crazy :D

are you kidding ??

Arabic is (right to left) language

you try for this images (rtl.zip)
if can't fix, try rtl2.zip.
So Long

matasanos

someone can help me??
i have the part that this mod modify like this:

// Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            {
            if ($context['user']['is_logged'])
               echo '<a href="'.$scripturl.'?action=profile;u='.$message['member']['id'].'">', $message['member']['avatar']['image'], '</a><br />';
            elseif ($context['user']['is_guest'])
               echo '<a href="'.$scripturl.'?action=register">', $message['member']['avatar']['image'], '</a><br />';
            }
    //No Avatar? Get the default Avatar! (Not that if it does not exist it will grow from some where :P)
   elseif( !empty( $modSettings['attachmentDefaultavatar'] ) )
      echo '<a href="'.$scripturl.'', $context['user']['is_logged'] ? '?action=profile;u='.$message['member']['id'].'' : 'action=register' ,'"><img src="', $modSettings['attachmentDefaultavatar'], '" /></a><br />';



how to add the mod there?


thanks!

Yigal

Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

islam2hamy

Quote from: Özgür | ЯocKayseri link=topic=284589.msg1869211#msg1869211
/quote]

you try for this images (rtl.zip)
if can't fix, try rtl2.zip.

thank you for help

rtl, don't work good.
rtl2, need some edit.

see the images attached

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Özgür

So Long

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Özgür

right & left fixing. but top & bottom i can't fix. im sorry :(
So Long

islam2hamy

Quote from: Özgür | ЯocKayseri on January 08, 2009, 06:18:14 AM
right & left fixing. but top & bottom i can't fix. im sorry :(

ok, no problem, thank you at all  :D

i will wait and see what (! !' grafitus) can do.

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Jessikard


SilverKnight

Not bad, im guessing the weird middle image is if they don't have a custom avatar?

bullbreedluverz

yeah if member dont have an avatar they get grey 1 for offline and green 1 for online

Asshandler

I installed this on my 1.1.7, and my avatars disappeared completely.  No errors, just no avatars. 

Here's my Display.template after the mod is installed.

What went wrong?

http://www.othersi.com
The only thing necessary for the triumph of evil is for good men to do nothing.

qubbah

#19
for me is it too big avatar setting/frame.

Anybody can make it smaller?

Like 60/60

Advertisement: