[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 martin123456 »

Stoker the fading image script works well for user's that have uploaded an avatar :D

But it don't seem to work on user's that get given an avatar by the random avatar mod is there any work around so it also works on the random avatar mod ?

not to fussed about it really just thought i'l point it out.

[REQUEST] fading images

Post by Stoker »

You need to add the code to the random avatar code.
Open includes/functions_display.php
Find:

Code: Select all

return '<img src="' . $random_avatar . '" width="' . $avatar_width . '" height="' . $avatar_height . '" title="' . ((!empty($user->lang['RANDOM_AVATAR'])) ? $user->lang['RANDOM_AVATAR'] : 'RANDOM_AVATAR') . '" alt="' . ((!empty($user->lang['RANDOM_AVATAR'])) ? $user->lang['RANDOM_AVATAR'] : 'RANDOM_AVATAR') . '"/>';
Replace with:

Code: Select all

return '<img src="' . $random_avatar . '" width="' . $avatar_width . '" height="' . $avatar_height . '" title="' . ((!empty($user->lang['RANDOM_AVATAR'])) ? $user->lang['RANDOM_AVATAR'] : 'RANDOM_AVATAR') . '" alt="' . ((!empty($user->lang['RANDOM_AVATAR'])) ? $user->lang['RANDOM_AVATAR'] : 'RANDOM_AVATAR') . '" class="imgfade" style="display:none;" />';

[REQUEST] fading images

Post by martin123456 »

Cheers stoker

i thought i had already done that lol

[REQUEST] fading images

Post by Gamers Talk »

How do I remove the img avatar fading from mchat?

[REQUEST] fading images

Post by Stoker »

above script works for all avatars so you have to remove it