Advertisement:

Author Topic: On / Off Avatar Frame  (Read 24507 times)

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
On / Off Avatar Frame
« on: January 07, 2009, 12:41:41 AM »
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
« Last Edit: January 04, 2012, 07:27:14 PM by Suki »
The devil will find work for idle hands to do.

Offline emilio05

  • Semi-Newbie
  • *
  • Posts: 75
Re: On / Off Avatar Frame
« Reply #1 on: January 07, 2009, 01:28:10 AM »
Nice

Thanks

Offline Sabre™

  • SMF Hero
  • ******
  • Posts: 2,519
  • Gender: Male
  • IF IT AINT BROKE, I CAN FIX IT TILL IT IS!!
Re: On / Off Avatar Frame
« Reply #2 on: January 07, 2009, 02:05:20 AM »
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 ;)


Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,353
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: On / Off Avatar Frame
« Reply #3 on: January 07, 2009, 05:14:47 AM »
Nice

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





Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,353
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: On / Off Avatar Frame
« Reply #4 on: January 07, 2009, 05:23:41 AM »
don't work good with Arabic language  :'(
Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Offline BOS4O

  • Jr. Member
  • **
  • Posts: 239
Re: On / Off Avatar Frame
« Reply #5 on: January 07, 2009, 11:24:54 AM »
don't work good with Arabic language  :'(

your language is crazy :D

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,353
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: On / Off Avatar Frame
« Reply #6 on: January 07, 2009, 12:00:04 PM »
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





Offline Özgür

  • SMF Hero
  • ******
  • Posts: 3,920
  • Gender: Male
  • Özgür | jQuery Lover
    • Mnyk
Re: On / Off Avatar Frame
« Reply #7 on: January 07, 2009, 03:09:06 PM »
Nice mod @grafitus congratulations.

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.
« Last Edit: January 07, 2009, 03:20:38 PM by Özgür | ЯocKayseri »
Yeni forum projem: Android Yardımlaşma & Çeviri (Üye kaydı açıldı) | Android & jQuery Lover | MiUI Türkçe Çeviri Projesi
Don't depend too much on anyone in this world. Because even your shadow leaves you when you're in darkness!
Twitter @ OzgurceFacebook @ Ozgurce
Özgür Yalçın | http://blog.mnyk.net/

Offline matasanos

  • Jr. Member
  • **
  • Posts: 267
    • Lords-Beer.net
Re: On / Off Avatar Frame
« Reply #8 on: January 07, 2009, 04:01:13 PM »
someone can help me??
i have the part that this mod modify like this:

Code: [Select]
// 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!

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: On / Off Avatar Frame
« Reply #9 on: January 08, 2009, 12:58:47 AM »
SO PRETTY
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

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,353
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: On / Off Avatar Frame
« Reply #10 on: January 08, 2009, 02:04:50 AM »
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





Offline Özgür

  • SMF Hero
  • ******
  • Posts: 3,920
  • Gender: Male
  • Özgür | jQuery Lover
    • Mnyk
Re: On / Off Avatar Frame
« Reply #11 on: January 08, 2009, 05:24:12 AM »
Try this. i'm not sure =)
Yeni forum projem: Android Yardımlaşma & Çeviri (Üye kaydı açıldı) | Android & jQuery Lover | MiUI Türkçe Çeviri Projesi
Don't depend too much on anyone in this world. Because even your shadow leaves you when you're in darkness!
Twitter @ OzgurceFacebook @ Ozgurce
Özgür Yalçın | http://blog.mnyk.net/

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,353
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: On / Off Avatar Frame
« Reply #12 on: January 08, 2009, 05:48:29 AM »
Try this. i'm not sure =)

 don't work good.

rtl2, was Better than it.
Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Offline Özgür

  • SMF Hero
  • ******
  • Posts: 3,920
  • Gender: Male
  • Özgür | jQuery Lover
    • Mnyk
Re: On / Off Avatar Frame
« Reply #13 on: January 08, 2009, 06:18:14 AM »
right & left fixing. but top & bottom i can't fix. im sorry :(
Yeni forum projem: Android Yardımlaşma & Çeviri (Üye kaydı açıldı) | Android & jQuery Lover | MiUI Türkçe Çeviri Projesi
Don't depend too much on anyone in this world. Because even your shadow leaves you when you're in darkness!
Twitter @ OzgurceFacebook @ Ozgurce
Özgür Yalçın | http://blog.mnyk.net/

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,353
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: On / Off Avatar Frame
« Reply #14 on: January 08, 2009, 06:47: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





Offline Jessikard

  • Jr. Member
  • **
  • Posts: 236
Re: On / Off Avatar Frame
« Reply #15 on: January 08, 2009, 07:39:59 AM »
works fine - thx

Offline SilverKnight

  • Jr. Member
  • **
  • Posts: 205
Re: On / Off Avatar Frame
« Reply #16 on: January 08, 2009, 12:08:18 PM »
Not bad, im guessing the weird middle image is if they don't have a custom avatar?

Offline stikkki

  • SMF Hero
  • ******
  • Posts: 2,537
  • im just the idiot the pc employs 2 click the mouse
    • eots dzine smf themes
Re: On / Off Avatar Frame
« Reply #17 on: January 08, 2009, 12:09:23 PM »
yeah if member dont have an avatar they get grey 1 for offline and green 1 for online

Offline Asshandler

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Stryker Island
Re: On / Off Avatar Frame
« Reply #18 on: January 08, 2009, 02:57:23 PM »
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.

Offline qubbah

  • Full Member
  • ***
  • Posts: 512
Re: On / Off Avatar Frame
« Reply #19 on: January 08, 2009, 03:00:57 PM »
for me is it too big avatar setting/frame.

Anybody can make it smaller?

Like 60/60
« Last Edit: January 08, 2009, 03:03:01 PM by qubbah »