PDA

View Full Version : Can you change the avatar size on only memberlist?


MagicThemeParks
05-02-2011, 10:46 PM
So, I have large avatars (200x200), but I want to reduce the size on the memberlist.php page. Any suggestions on how I can do this?

bela-meaad
05-11-2011, 06:28 AM
what is you vB version?

MagicThemeParks
05-11-2011, 09:10 AM
3.8.7 is the version that I'm running on the site that I want to adjust.

Lynne
05-11-2011, 03:16 PM
You may be able to write some CSS to do it. Have you tried that? Something like .alt1 img {width: 200px;} (change depending on if it is alt1 or alt2)

MagicThemeParks
05-12-2011, 12:29 PM
Thanks Lynne, I'm not a CSS expert by any stretch. But, I'll research it and try that a little later today.

That wouldn't conflict with any other images on the site, right? (Album pictures, img tags, etc)

Lynne
05-12-2011, 09:48 PM
It might. So you may need to be more specific in your CSS definition, or only add the CSS to that page.

bela-meaad
05-15-2011, 04:39 AM
in memberlist_resultsbit template find:


<img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" />


Replace with:


<img src="$avatarurl" border="0" width="50" height="50" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" />


change 50 to what fits your forum ^_^

Regards

MagicThemeParks
05-15-2011, 11:49 PM
Thank you bela-meaad! :up:

Worked perfectly :)