News:

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

Main Menu

Transparent Offline Avatars - 1.1

Started by ascaland, May 08, 2011, 02:23:05 PM

Previous topic - Next topic

ascaland

Transparent Offline Avatars





Transparent Offline Avatars is a modification which uses Javascript to set a specified transparency level on member's avatars if they are offline. This doesnt affect any XHTML or CSS validation in any way.

Created by Anthony Calandra/Project Evolution - 2011.

akbora

It is good but similar mod exists already in smf's world.

Here it is: http://custom.simplemachines.org/mods/index.php?mod=1764

What is different?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

busterone

The one you referred to is outdated and is no longer supported by the mod author. M-DVD has not been active in the last 15 months.

ascaland

Also, my modification does not produce any validation errors or warnings. As for the other mod, im not sure.

Apllicmz

ok
nice mod
when Update

Dont forget portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
            $txt['enable_transparent_avatars'] = 'Activar  Avatares Offline transpar&ecirc;nte?';
            $txt['transparent_avatars_tab'] = 'Avatares Offline transparente';
            $txt['avatar_transparency_level'] = 'Definir em percentagem a transpar&ecirc;ncia<div class="smalltext">Por examplo: 20<br />O menor percentual - o menos vis&iacute;vel</div>';
]]></add>
        </operation>
    </file>
   
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
            $txt['enable_transparent_avatars'] = 'Activar  Avatares Offline transpar&ecirc;nte?';
            $txt['transparent_avatars_tab'] = 'Avatares Offline transparente';
            $txt['avatar_transparency_level'] = 'Definir em percentagem a transpar&ecirc;ncia<div class="smalltext">Por examplo: 20<br />O menor percentual - o menos vis&iacute;vel</div>';
]]></add>
        </operation>
    </file>




ascaland

Awesome, thanks for the translation. :)

Kurakama


yakyakyak

RC3 installs perfect, however it is not working with the Default Avatar Mod

The default avatar for members offline is unaffected


MiY4Gi

I tried installing this mod on 2.0 Gold, but my load.php file had 3 errors. I thought I could manually edit the code, but the code that needs to be edited isn't there.

For example,

I must find the code:


($profile['id_attach'] > 0 ? '<img class="avatar"


but the only code I could find containing "($profile['id_attach']" is


      array(
         'name' => $profile['avatar'],
         'image' => $profile['avatar'] == '' ? ($profile['id_attach'] > 0 ? '<img src="' . (empty($profile['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $profile['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $profile['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($profile['avatar'], 'http://') ? '<img src="' . $profile['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($profile['avatar']) . '" alt="" class="avatar" border="0" />'),
         'href' => $profile['avatar'] == '' ? ($profile['id_attach'] > 0 ? (empty($profile['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $profile['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $profile['filename']) : '') : (stristr($profile['avatar'], 'http://') ? $profile['avatar'] : $modSettings['avatar_url'] . '/' . $profile['avatar']),
         'url' => $profile['avatar'] == '' ? '' : (stristr($profile['avatar'], 'http://') ? $profile['avatar'] : $modSettings['avatar_url'] . '/' . $profile['avatar'])
      ),


Has anyone else experienced this?
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

ascaland

What modifications do you have installed?

MiY4Gi

Quote from: Project Evolution on August 12, 2011, 11:06:55 PM
What modifications do you have installed?

1.   Discourage IE6                                           2.1.1
2.   dQuoteSelection                                   2.4
3.   Double Post Stopper                           1.1
4.   Remember Position After Login/Logout      1.2   
5.   Anti-Spam Links                                   1.0.1
6.   Join date and Location in Posts           1.2   
7.   Menu without limit level                           1.0.4
8.   Highslide 4 SMF                                   0.7a    
9.   Aeva Media                                           1.4w   
10.   vBulletin Style Meta Tags                           1.1   
11.   Quote and code like vb4                           1.0
12.   Google +1                                           1.0   
13.   Previous and Next Topic Enhancement   1.0
14.   Member NotePad                                   2.0.2
15.   Drafts                                                   1.1.1
16.   Copyright & Footer Links                           3.2
17.   Topics Filter                                           3.2
18.   PortaMx 1.4                                           1.4
19.   Remove Message Icon                           1.1.1
20.   Add GooglePlus to Posts                           1.0
21.   Forum Firewall                                           1.1.3
22.   H1 Tags in link tree                               1.1
23.   Bad Behavior mod                                   1.5.3
24.   Add And Remove Buttons                           0.4
25.   Simple .htaccess Cache Mod                   2.6
26.   SMF Quiz                                                   1.0.8 beta4
27.   Started By Column                                   1.4
28.   Hide Signatures from Guests                   2.0
29.   Hide Avatars from Guests                   2.0
30.   Boilerplates for posts                           3.0
31.   Button 1 Menu Extender for 6 custom buttons mod           1.0
32.   Ad Managment                                    3.0.1
33.   Additional Home page Title | S-Ace        3.3
34.   Bookmarks                                           2.3
35.   SMF Trader System                                   1.6
36.   Hide User Names from Guests                   1.1
37.   6 Custom buttons / tabs with Sub Menus (4)                    0.5   
38.   Sitemap                                                   2.2.0
39.   Caps_Lock_Detection_on_Login           1.1.0.1
40.   Vote polls with points                           0.1.1
41.   SMF Topic Prefix Mod                           1.2.2
42.   Facebook_Like v.2.0                           2.0
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

ascaland

Definitely has to be this,
Quote29.   Hide Avatars from Guests                   2.0

But all your really doing is replacing the class attribute,
class="avatar"

To this,
' . (!$profile['is_online'] && !empty($modSettings['enable_transparent_avatars']) ? 'class="avatar avatarOffline"' : 'class="avatar"') . '

MiY4Gi

Mm, so is there any way for me to install this mod without uninstalling Hide Avatars from Guests?
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

ascaland

Not without manually editting. But like I said above, the only thing your doing with that code you posted is copy and paste.

MiY4Gi

No, I don't mind manual editing, but I don't know which code to paste where. Remember, I can't find the code that I need to replace, so you'll need to tell me which code to replace instead.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.


MiY4Gi

If it was just the task of searching for the correct code and replacing it, then I would be able to do it. The issue is that the code I need to replace is different now. It's got a whole truckload of code mashed in so that the code I need to find is broken up and scattered. They're all in the same array still, just at different parts of the array now.

Any suggestions?
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

ascaland

Post your Load.php.......................

MiY4Gi

#18
Here you go.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

ascaland


Advertisement: