Welcome to WebmasterWorld Guest from 54.205.0.26

Forum Moderators: rogerd

Message Too Old, No Replies

Restricting avatar size

Offsite images in phpBB

     
6:07 am on Nov 13, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 19, 2004
posts:330
votes: 0


Is there a way in phpBB (or a mod) to restrict the size of linked avatars? We don't want to host them ourself but whenever I enable them people link to huge images that mess up the board.

I know you can do it in php.ini but we're on a shared host who wont let me near that.

6:28 am on Nov 14, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 19, 2004
posts:330
votes: 0


In answer to my own question if anyone else needs the same thing I found a mod on phpBB that uses javascript to resize remote avatars:

[phpbb.com...]

4:00 pm on Nov 16, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 8, 2003
posts: 1419
votes: 0


In admin panel you can specify the allowed dimensions. I have few suggestions here.

Do not allow external images only allow internal images.

1) Image space consumption is very cheap
----------------------------------------
Lets say you have 10000 members each with 100 kb avatar. So you have 1000,000 and thats make it just 1000 mb or 1 gb which is very cheap to get when you have a 10,000 members (even your adsense will be able to earn more than that).

2) Performace increase
----------------------
Internal images will enhance the forum performance and it is the most imp factor for forums.

The above two points tells me to have only avatar galley and internal image facility.

Thanks,
AjiNIMC

10:38 pm on Nov 16, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 26, 2005
posts:3041
votes: 0


Personally, I would restrict avatars, period.

With a noose, if necessary.

5:36 am on Nov 17, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 19, 2004
posts:330
votes: 0


I will only allow external images for the simple reason that it will not chew our bandwidth, disk space is not an issue, bandwidth is.

We are not running adsense on the forum as it performs very badly on forums.

I didn't want avatars period but the community insisted.

7:37 am on Nov 17, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 8, 2003
posts: 1419
votes: 0


I will only allow external images for the simple reason that it will not chew our bandwidth, disk space is not an issue, bandwidth is.

Performance Vs Bandwidth - Bandwidth is much cheaper than performance in my opinion.

I didn't want avatars period but the community insisted.

Do you mean disabling avatar for initial x post or x days? I have never tried it. How does this help?

Regards,
AjiNIMC

3:11 am on Nov 20, 2006 (gmt 0)

Administrator

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 2, 2000
posts:9687
votes: 0


It seems like allowing external images is kind of risky - someone could change an avatar to an adult image, spam ads, etc. at any time.

One thing that some sites do is stick image hosting on a second domain with its own bandwidth allocation. This keeps bandwidth down for the primary domain.

9:24 pm on Nov 21, 2006 (gmt 0)

Administrator

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 2, 2000
posts:9687
votes: 0


If necessary, you could also specify a single avatar size and hard-code those dimensions into the template. Anyone who linked to an avatar of another size would have it displayed at your dimensions. Certainly, setting a max value in the control panel would be more convenient and elegant.