Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Avatar mod .. Can it be modified
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gardi
New Member

65 Posts

Posted - 30 July 2004 :  00:45:11  Show Profile
Hi guyz
Im using avatar mod+my avatar add on..

Now everything seems perfect but there is a tiny problem .
How can i change avatar limits 64-64 to 200 - 200

which parts do i have to modify

thanx

Ranko
Junior Member

400 Posts

Posted - 30 July 2004 :  06:37:52  Show Profile
Open admin_avatar_setting.asp

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.

Edited by - Ranko on 30 July 2004 06:40:07
Go to Top of Page

gardi
New Member

65 Posts

Posted - 30 July 2004 :  23:43:57  Show Profile
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..
Go to Top of Page

gardi
New Member

65 Posts

Posted - 31 July 2004 :  00:01:04  Show Profile
ive tried but couldnt manage ranko.
Can you send me both files via email if you ve done it?
emresoyak@hotmail.com
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 31 July 2004 :  10:05:41  Show Profile
Yes to the first post. You can set the cell width; or make it as wide as you set your avatars.

And can you tell me which version of Snitz you are using? Speedball II or regular?
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 31 July 2004 :  10:16:37  Show Profile
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.
Go to Top of Page

gardi
New Member

65 Posts

Posted - 31 July 2004 :  19:45:59  Show Profile
im using snitz 3.4.4
ive downloaded forum here..
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 27 August 2004 :  04:31:55  Show Profile
Sorry, I was bussy as hell, and than got dragged of to a vacation. IS everything working for you? Need further help?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07