Find: "<option value=""96""" if intAvatarHeight = "96" then response.write " selected=""selected""" response.write ">96</option></select></td>" & _ Right Below insert: "<option value=""200""" if intAvatarHeight = "200" then response.write " selected=""selected""" response.write ">200</option></select></td>" & _
Then Find: "<option value=""96""" if intAvatarWidth = "96" then response.write " selected=""selected""" response.write ">96</option></select></td></tr>" & _ Delete </tr> from the last line, and insert "<option value=""200""" if intAvatarWidth = "200" then response.write " selected=""selected""" response.write ">200</option></select></td></tr>" & _
That should do it. Or; if you want more flexibility you can go to topic.asp and find the place where avatar is called, and delete intAvatarHeight and intAvatarWidth parts of the code. That way the board will not force size on the avatars, and you can have various avatar size images; but be carefull if users can upload them, as not to upload huge images.
thnx alot ranko ;D Since we are talking about topic.asp
Can we fix the avatar table to a certain size. for exeample
if it happens and the one opens the topic has a avatar of 200 to 200. bt the rest is using 65 to 65 then as far as i see the avatar table gets smaller.
Can we fix the avatar table to a certain size so an avatar sized whether 65 whether 200 will not change the avatar table. So we will have a more clean looking forum..
Hi, I just took a look at the original code I posted, and it is a bit wrong as it closes the option and table cell twice. Below is the sub in question, just be careful as it is from Snitz Speedball so it has classes where you will most probably need string values and such:
Sub DoLittleDropDownThings() response.write "<table class=""putc"" border=""0"" cellspacing=""1"" cellpadding=""1"">" & _ "<tr>" & _ "<td class=""r""><b> Height </b></td>" & _ "<td class=""r""><b> Width </b></td>" & _ "</tr>" & _ "<tr><td class=""c"" valign=""middle"">" response.write "<select name=""intAvatarHeight"" size=""1"">" & _ "<option value=""32""" if intAvatarHeight = "32" then response.write " selected=""selected""" response.write ">32</option>" & _ "<option value=""48""" if intAvatarHeight = "48" then response.write " selected=""selected""" response.write ">48</option>" & _ "<option value=""64""" if intAvatarHeight = "64" then response.write " selected=""selected""" response.write ">64</option>" & _ "<option value=""96""" if intAvatarHeight = "96" then response.write " selected=""selected""" response.write ">96</option>" & _ "<option value=""200""" if intAvatarHeight = "200" then response.write " selected=""selected""" response.write ">200</option></select></td>" & _ "<td class=""c"" valign=""middle"">" & _ "<select name=""intAvatarWidth"" size=""1"">" & _ "<option value=""32""" if intAvatarWidth = "32" then response.write " selected=""selected""" response.write ">32</option>" & _ "<option value=""48""" if intAvatarWidth = "48" then response.write " selected=""selected""" response.write ">32</option>" & _ "<option value=""64""" if intAvatarWidth = "64" then response.write " selected=""selected""" response.write ">64</option>" & _ "<option value=""96""" if intAvatarWidth = "96" then response.write " selected=""selected""" response.write ">96</option>" & _ "<option value=""200""" if intAvatarWidth = "200" then response.write " selected=""selected""" response.write ">200</option></select></td></tr>" & _ "</table>" End Sub
(highlihted are the parts you are actually interested in.