Print Page | Close Window

Remove Avatar Size Restriction

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7563
Printed Date: 06 April 2026 at 11:57am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Remove Avatar Size Restriction
Posted By: r00tA
Subject: Remove Avatar Size Restriction
Date Posted: 24 November 2003 at 12:14pm

Does someone know what file and what piece of code I have to modify to remove the avatar size restriction?  Or could someone direct me to the thread that discussed how to remove the size restriction for the avatars?  Because different members have different sized avatars so I want them to be able to use the size they want.  They know it can't be larger then a certain size.

Thank you.




Replies:
Posted By: r00tA
Date Posted: 24 November 2003 at 5:15pm

Update: I am assuming the change I would have to make would be in forum_posts.asp.  If that's true, then which line of code?  This one?:

'If the user has an avatar then display it
If blnAvatar = True AND strAuthorAvatar <> "" Then Response.Write("<img src=""" & strAuthorAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ alt=""" & strTxtAvatar & """ vspace=""5"" OnError=""this.src='" & strImagePath & "blank.gif', height='0';"">")

And what do I modify or delete?

I appreciate the assistance.



Posted By: wistex
Date Posted: 24 November 2003 at 5:53pm
There was a mod that did that, I beleive.  Do a search for mods.

-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: ljamal
Date Posted: 24 November 2003 at 6:15pm
Change
If blnAvatar = True AND strAuthorAvatar <> "" Then Response.Write("<img src=""" & strAuthorAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ alt=""" & strTxtAvatar & """ vspace=""5"" OnError=""this.src='" & strImagePath & "blank.gif', height='0';"">")
to
If blnAvatar = True AND strAuthorAvatar <> "" Then Response.Write("<img src=""" & strAuthorAvatar & """ alt=""" & strTxtAvatar & """ vspace=""5"" OnError=""this.src='" & strImagePath & "blank.gif', height='0';"">")

to remove the Avatar restrictions completely

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: r00tA
Date Posted: 24 November 2003 at 6:46pm

ljamal - When I remove the first If statement and put the new one you have pasted here I get the following error when I look at a post.

Microsoft VBScript compilation error '800a03ea'

Syntax error

/rlforum/forum_posts.asp, line 716

If blnAvatar = True AND strAuthorAvatar <> "" Then Response.Write("<img src=""" & strAuthorAvatar & """ alt=""" & strTxtAvatar  &
----------------------------------------------------- ------------------------------------------------------------ ---------------^
-James


Posted By: thekiwi
Date Posted: 24 November 2003 at 6:48pm
Originally posted by r00tA r00tA wrote:

ljamal - When I remove the first If statement and put the new one you have pasted here I get the following error when I look at a post.

Microsoft VBScript compilation error '800a03ea'

Syntax error

/rlforum/forum_posts.asp, line 716

If blnAvatar = True AND strAuthorAvatar <> "" Then Response.Write("<img src=""" & strAuthorAvatar & """ alt=""" & strTxtAvatar  &
----------------------------------------------------- ------------------------------------------------------------ ---------------^
-James

Watch your carraige returns ... it all has to be one one line:

If blnAvatar = True AND strAuthorAvatar <> "" Then Response.Write("<img src=""" & strAuthorAvatar & """ alt=""" & strTxtAvatar & """ vspace=""5"" OnError=""this.src='" & strImagePath & "blank.gif', height='0';"">")



Posted By: r00tA
Date Posted: 24 November 2003 at 6:49pm
w00t!  Took awhile of modifying but I got it.  Thank you ljamal and thekiwi. :)  And thank you too wistex.


Posted By: Scotty32
Date Posted: 25 November 2003 at 8:24am
wasnt there a simple mod in the Mod Section ?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net