Removing fixed dimensions for avatars

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/60302?pagenum=1
05 November 2025, 10:54

Topic


tdgjason
Removing fixed dimensions for avatars
29 November 2005, 12:15


I am using the Mod for avatars on my site, and I would simply like to remove the fixed dimensions for them in the Topic.asp, but I am not sure where to find it. Can anyone give me a clue?<

 

Replies ...


Zuel
29 November 2005, 13:28


It is really simple. Simply open up Topic.asp and do the following:

Look for this code around line 584:
Code:

if Reply_MemberAvatar <> "noavatar.gif" then
response.write" <img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """>"
end if

Make it look like:
Code:

if Reply_MemberAvatar <> "noavatar.gif" then
response.write" <img src=""" & Reply_MemberAvatar & """ border=""" & intAvatarBorder & """>"
end if

Look for the following on line 796:
Code:

if Member_Avatar <> "noavatar.gif" then
response.write" <img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />"
end if

Make it look like:
Code:

if Member_Avatar <> "noavatar.gif" then
response.write" <img src=""" & Member_Avatar & """ border=""" & intAvatarBorder & """><br /><br />"
end if

By doing this, you will need to make sure all avatar images are the specified width and height otherwise someone could use a 1000 by 1000 image and stretch your whole forum.<
© 2000-2021 Snitz™ Communications