Removing fixed dimensions for avatars - نوشته شده در (424 Views)
Starting Member
tdgjason
مطلب: 2
2
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?<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Average Member
Zuel
مطلب: 540
540
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.<
My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]
Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.
MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
 
شما باید یک متن وارد کنید