PDA

View Full Version : Avatar size linked to Usergroup?


disfitness
02-05-2003, 11:58 PM
Hi, I've searched the forum and hacks DB, but so far I haven't found a hack that links the size of avatars to the usergroup. For example I want to have a "Special" usergroup, where avatars will be 65x65 instead of the standard 50x50.

Any ideas on how I can do this?

:)

Steve Machol
02-06-2003, 12:05 AM
FYI, vB 3.0 will have this feature.

disfitness
02-06-2003, 12:08 AM
Right thanks - any ideas in the meantime?

Steve Machol
02-06-2003, 12:26 AM
For that, you'll need to hope someone can write a hack for this. That ain't my forte.

disfitness
02-06-2003, 12:35 AM
I'll keep my fingers crossed that someone takes pity on me :p

Steve Machol
02-06-2003, 12:41 AM
Well I pity you. I just can't help you. :D

disfitness
02-06-2003, 01:01 AM
Lol, this thread is getting long without a hack in sight!

:cheeky:

disfitness
02-07-2003, 02:13 PM
If I offered to pay someone for this hack? Would that help?

:nervous:

disfitness
02-11-2003, 06:49 AM
Am I doing something wrong? I thought people would be able to help? :cry:

Steve Machol
02-11-2003, 03:51 PM
Probably no one wants to take the time to write up a custom hack since this is going to be in vB 3.0,

disfitness
02-11-2003, 08:50 PM
Lol @ Steve... you keep getting my hopes up and then I find out its you :p

I read yesterday that this wasn't going to be included in Version 3 - also I can't really wait until they finally release it... :( A date would be nice... rofl

Steve Machol
02-11-2003, 09:13 PM
Hmmm....

Steve Machol 'Destoyer of hope'

It has a nice ring to it! ;)

disfitness
02-16-2003, 03:22 PM
Damn, I bumped my head on the car door today...

Oh yeah, anyone want to make this mod for me? I have $$ :smoke:

disfitness
02-16-2003, 07:15 PM
I think that bump on my head helped, cos I "hacked" it myself

Open member.php and find...


if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$avatarmaxdimension or $imginfo[1]>$avatarmaxdimension) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_avatarbaddimensions")."\");");
}

add above it...


if ($bbuserinfo['usergroupid']==9)
{
$avatarmaxdimension = "65" ;
}


This would set anyone in usergroup 9 to be allowed avatars of 65x65 and everyone else would have the default specified in admin console. If you use this then PM me so I can feel proud ;)

:squareeyed:

ryancooper
04-25-2003, 01:47 AM
I am going to try this tomorrow. Hope it works!!