[REQUEST] fading images

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[REQUEST] fading images

Post by neuropass »

Me again lol

I was wondering what you use to have the images, avatars etc to fade in upon visiting a topic etc...


Thanks

Re: [REQUEST] fading images

Post by Stoker »

Its a jquery effect. So you need to have jquery.
If you allready have jquery, you must NOT add it again.

Open styles/prosilver/template/overall_header.html
Find:

Code: Select all

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
Add after:

Code: Select all

<script src="{ROOT_PATH}script/jquery-1.4.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
    $(".imgfade").fadeIn(2000);
});
// ]]>
</script>
Open includes/functions_display.php
Find:

Code: Select all

return '<img src="' . (str_replace(' ', '%20', $avatar_img)) . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
Replace with:

Code: Select all

return '<img src="' . (str_replace(' ', '%20', $avatar_img)) . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" class="imgfade" style="display:none;" />';
script.zip
You do not have the required permissions to view the files attached to this post.

[REQUEST] fading images

Post by Terr0r »

thanks stoker I have find it

but I have do this and now I see no avatars more on my forum how is that possible ? take a look add my site what I mean

[REQUEST] fading images

Post by Stoker »

Thats what happens when you do something wrong Terr0r.
I have taken a look at your site and find no problems.

[REQUEST] fading images

Post by martin123456 »

Edited now works on 309
Last edited by martin123456 on 25 Sep 2011, 12:33, edited 1 time in total.

[REQUEST] fading images

Post by Terr0r »

Yes I have has this code styles/prosilver/template/overall_header.html

Code: Select all

    <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
and also in styles/prosilver_se/template/overall_header.html

what must I do to get the fade effect

[REQUEST] fading images

Post by Blackwolf »

I have the

Code: Select all

T_SUPER_TEMPLATE_PATH
also. Be nice to know how to apply it too ;)

Wonderful treasure chest of mods in here....think I added about 5 to my forum today :lol:

[REQUEST] fading images

Post by martin123456 »

Thanx stoker for the update :D

edited my posts to keep the topic clean looking
Last edited by martin123456 on 25 Sep 2011, 12:35, edited 2 times in total.

[REQUEST] fading images

Post by Stoker »

Blackwolf wrote:I have the

Code: Select all

T_SUPER_TEMPLATE_PATH
also. Be nice to know how to apply it too ;)

Wonderful treasure chest of mods in here....think I added about 5 to my forum today :lol:
That was changed in 3.0.9 and my post was before, but I have changed it so it works on 3.0.9

[REQUEST] fading images

Post by Blackwolf »

Thanks very much....looks very elegant.Just need to decide whether I have this effect....or Shadow Avatars :D

or......can a combination of both........ :|