Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Remove Avatar Size Restriction
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Remove Avatar Size Restriction

 Post Reply Post Reply
Author
r00tA View Drop Down
Newbie
Newbie
Avatar

Joined: 24 November 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote r00tA Quote  Post ReplyReply Direct Link To This Post Topic: Remove Avatar Size Restriction
    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.

Back to Top
r00tA View Drop Down
Newbie
Newbie
Avatar

Joined: 24 November 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote r00tA Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2003 at 5:53pm
There was a mod that did that, I beleive.  Do a search for mods.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
r00tA View Drop Down
Newbie
Newbie
Avatar

Joined: 24 November 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote r00tA Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post 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';"">")

Back to Top
r00tA View Drop Down
Newbie
Newbie
Avatar

Joined: 24 November 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote r00tA Quote  Post ReplyReply Direct Link To This Post 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.

Edited by r00tA
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2003 at 8:24am
wasnt there a simple mod in the Mod Section ?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.