[2.0.10] Fast Avatar Resize Mod

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
18
69%
Very Good
1
4%
Good
6
23%
Fair
1
4%
Poor
0
No votes
 
Total votes: 26

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28357
Joined: Sat Aug 16, 2003 7:36 am

[2.0.10] Fast Avatar Resize Mod

Post by Extensions Robot »

MOD Name: Fast Avatar Resize Mod
Author: etncrew
MOD Description:
  • Changes the width of all remotely linked avatars to the max width set in de ACP. So big avatars will be smaller (and small avatars will be bigger).
  • The height of the avatars increases (or decreases) with the same percentage as the width, to remain the aspect ratio. This causes no problem for square or wide avatars, but avatars which are more then two time higher then their width might stretch your board vertically.
  • The reason I didn't simply use JavaScript to check the images widths and heights, is that JavaScript slows down your board dramaticly. This mod doesn't slow down your board at all.
  • Demo at etncrew.com/forum:

    Username: guest
    Password: guest
MOD Version: 1.0.1 (Updated 11/18/04)



Download File: Fast Resize Remote Avatar Mod 1_0_1.mod
mods overview page: View
File Size: 7962 Bytes

Security Score:
Last edited by Extensions Robot on Mon Apr 30, 2007 12:30 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

MOD Validated/Released

Notes:
This MOD resizes avatars or your board. The description pretty much tells everything there is to know about this MOD.
ElbertF
Registered User
Posts: 527
Joined: Thu Mar 11, 2004 9:41 pm
Location: Australia
Contact:

Post by ElbertF »

This mod fixes the width of all remote avatars. If you also want the height to be fixed (this will cause deformed images in some cases), you can apply these changes to the mod:


Find (at several places):
  • $max_width = $board_config['avatar_max_width'];
After, add:
  • $max_height = $board_config['avatar_max_height'];
Find (at several places):
  • width="' . $max_width . '"
Replace with:
  • width="' . $max_width . '" height="' . $max_height . '"
User avatar
jh0nny
Registered User
Posts: 123
Joined: Thu Apr 01, 2004 1:53 am

Post by jh0nny »

Very nice mod, have installed it on my forum and no problems at all.
Great job! 8)
:: Sex is just like software, it's better when it's free ::
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

MOD Updated to version 1.0.1
See first post for Download Link
mcdondon
Registered User
Posts: 20
Joined: Thu Nov 18, 2004 10:22 am

Post by mcdondon »

can anyone tell me how to disable to enlarge small avatars?
ElbertF
Registered User
Posts: 527
Joined: Thu Mar 11, 2004 9:41 pm
Location: Australia
Contact:

Post by ElbertF »

mcdondon wrote: can anyone tell me how to disable to enlarge small avatars?

This isn't possible without JavaScript, which will slow down your board dramaticly. If you want to try it anyway, try Tomleven's mod:

http://www.phpbb.com/phpBB/viewtopic.php?t=224287
mcdondon
Registered User
Posts: 20
Joined: Thu Nov 18, 2004 10:22 am

Post by mcdondon »

thanks etncrew :D
dragon39
Registered User
Posts: 44
Joined: Thu Oct 28, 2004 4:50 pm

width okay. height noT!

Post by dragon39 »

check out my page over at
http://www.financemanila.net/forum/

the fast avatar resize works well.
but it does not limit the height. only the width.

ive set mine to 60x60

but only width is limited to 60 with this mod. the height goes even to higher than 60
ElbertF
Registered User
Posts: 527
Joined: Thu Mar 11, 2004 9:41 pm
Location: Australia
Contact:

Post by ElbertF »

That's right, and the reason is explained in the first post. If you want to limit the height too, use the code in the third post! :)
Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

Ah, seemed like this would be perfect for me because the other one slowed my board down dramatically, but I don't want the smaller avatars to be enlarged, just the other way around.

Am anxiously awaiting a MOD to do this
Thanks though. :D
...
User avatar
~*Samantha*~
Registered User
Posts: 3
Joined: Mon Nov 10, 2003 10:33 pm

Post by ~*Samantha*~ »

I applied this and now none of my remote avatars are showing up.
User avatar
AlkalineMidnight
Registered User
Posts: 4
Joined: Tue Jan 11, 2005 8:45 am
Contact:

Post by AlkalineMidnight »

Awesome Mod! One of the few that went smooth with out a problem. Does its job well. Thank You for the awesome mod!
OPTAdmin
Registered User
Posts: 49
Joined: Fri Mar 05, 2004 10:40 pm
Location: Dover, OH
Contact:

Post by OPTAdmin »

Ugh. Any compatibility with Profile CP? The first line of the MOD...

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#

         case USER_AVATAR_REMOTE:
            $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
... doesn't exist due to Profile CP taking it out.

Any help there?
EastOhioSports.com
ElbertF
Registered User
Posts: 527
Joined: Thu Mar 11, 2004 9:41 pm
Location: Australia
Contact:

Post by ElbertF »

It's probably taken out and moved somewhere else. Try to find out where that line went or ask in the PCP support thread. If you found it and still can't figure it out, I'll try to help you.
Post Reply

Return to “[2.0.x] MOD Database Cleanup”