[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

Novagallia
Registered User
Posts: 28
Joined: Mon Dec 05, 2005 9:58 pm

Post by Novagallia »

Robobar wrote:
Blankety Blank Man wrote:Shouldn't using getimagesize allow the code to know whether to resize or not? And wouldn't getimagesize also allow for better scaling of images? something like this:

Code: Select all

$max_width = $board_config['avatar_max_width'];
list($width, $height, $type, $attr) = getimagesize($postrow[$i]['user_avatar']);
if($width < $max_width) {
   $max_width = $width;
}
$diff = $width / $max_width;
$max_height = $height / $diff;
I tried doing this on my board, but it came up with a permissions error, saying it couldn't access the images, or something like that... which I'm assuming is because of the firewalls I've got on the freehost I'm using... it prevented me from using the ezBoard=>phpBB converter and the SpellingCow Spell Checker as well, so i'm not surprised. I suggest someone else try it and see if they also get permission errors.
PHP getimagesize() documentation

Working fine for me :D


where do you put this code?

I love this mod but my user complain about their small avatars being stretched.

Novagallia
Registered User
Posts: 28
Joined: Mon Dec 05, 2005 9:58 pm

Post by Novagallia »

I managed to get it to work through trial and error but removed it since it slowed down my pages from loading a lot.

Users will have to cope with their small avatars being stretched because this mod is the best one i found to shrink big avatars so far.

User avatar
soulstice
Registered User
Posts: 28
Joined: Mon Nov 28, 2005 5:10 am

Post by soulstice »

i jus love it when things just...WORK. :D

thanks for this great mod!!! :)

wil1978
Registered User
Posts: 7
Joined: Tue Nov 23, 2004 5:46 pm

Post by wil1978 »

It works at 2.0.19? Not at mine... and I don't know if I'm doing something wrong... if anybody knows about a MOD (for the avatar resize) that works on 2.0.19... :roll:

Thanks!

net83it
Registered User
Posts: 500
Joined: Sun Jan 15, 2006 2:42 pm
Location: Sicily
Contact:

Post by net83it »

yes, it is working on my 2.0.19

djscene
Registered User
Posts: 8
Joined: Sat Feb 18, 2006 8:28 pm

Post by djscene »

please
is there anyway to get it to not allow pictures that have a bigger file size than you have set...
i know a few people have asked this but nobody has really directly replied
thanks in advance... :lol:

User avatar
$unny
Registered User
Posts: 60
Joined: Sun Jan 08, 2006 8:42 am

Post by $unny »

I used in 2.0.19

and its work very well


great mod :D

Shanana
Registered User
Posts: 368
Joined: Sat Aug 28, 2004 4:03 am
Location: USA [from London, England]

Post by Shanana »

It works flawlessly for me. Good job.

reggien
Registered User
Posts: 84
Joined: Sat Feb 12, 2005 5:59 am

Post by reggien »

Works fine for me with 2.0.19 too. :D

redchili
Registered User
Posts: 32
Joined: Fri Mar 11, 2005 10:51 pm

Post by redchili »

Won't work on my clean install of 2.0.19, and I've cleaned the SQL tables as well so that nothing is in the database tables from earlier versions of the board. Sigh. If I install it, once I get to thread level it throws up errors like this, but sometimes naming different files:
Parse error: syntax error, unexpected T_STRING in /cavaliertalk.com/phpBB2/viewtopic.php on line 506


I've tried installing it three times. :cry:

User avatar
Kiweed
Registered User
Posts: 29
Joined: Sun Jan 01, 2006 9:30 pm

Post by Kiweed »

sweet for me on 2.0.20 ... dosnt slow up a high traffic board like some ive tried

good call leaving height out .... I only wanted to do the width. thanks for the instructions on changing it if i need to

thanks for ya efforts dude

:)

crilman
Registered User
Posts: 1
Joined: Tue Jun 20, 2006 1:54 am

Post by crilman »

Simple and effective, exactly what i was looking for.

Installed without problem on 2.0.20 for me

lifehacker
Registered User
Posts: 67
Joined: Mon Mar 27, 2006 1:42 am

Post by lifehacker »

Great mod, thanks!

net83it
Registered User
Posts: 500
Joined: Sun Jan 15, 2006 2:42 pm
Location: Sicily
Contact:

Post by net83it »

wrong post.

User avatar
GurlzLubme
Registered User
Posts: 880
Joined: Wed Sep 01, 2004 11:21 am
Location: New York

Post by GurlzLubme »

etncrew wrote:
rknet wrote:With Firefox, my forum keeps scrolling past the point at which the forum ends.

8O I think you're right, I've seen this before on my own forum. It didn't occur to me that it might have to do with my mod, because I've got so many mods installed. I don't know how to solve this right now, but when I or someone else rewrites this mod the way discussed above, it might help.


Has it been "re-written" yet?
1,000,000 Thank Yous to everyone who's been helping me on phpbb.com!

Post Reply

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