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/Code)
 Avatar add on (avatar log-out)
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

edbyrne
Starting Member

Ireland
34 Posts

Posted - 18 December 2003 :  20:55:31  Show Profile
Can you explain why an avatar is resized to 64 x 64 pixels when used in place of the logout button even though the image's actual dimensions are different (e.g. 64 x 48)? I can't seem to identify why it does that. Might you have a way of ensuring that the avatar is displayed in its exact dimensions (i.e 64 x 48 pixels avatar displayed at 64 x 48 pixels and not at 64 x 64 pixels).
I hope you can suggest a solution and thanks in advance,
Eddie

Eddie
http://www.cleft.ie
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 19 December 2003 :  06:48:52  Show Profile
edbyrne, in admin options >> avatar settings, there are 4 settings for height and 4 settings for width. 32 48 64 96
If all your avatars are the same size, you can set dim. there.
If your avatars are all different sizes, you can:
1. Resize them to make them all uniform (My choice )
2. Remove the height and width from the code (Remove the code in red below)

if strAuthType = "db" then 
			Response.Write	"<b>" & ChkString(strDBNTUserName, "display") & "</b></font></td>" & vbNewLine & _
					"                <td align=""center"">"
			'if strGfxButtons = "1" then
			'	Response.Write	"<input src=""" & strImageUrl & "button_logout.gif"" type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1"">"
			'else
			'	Response.Write	"<input type=""submit"" value=""Logout"" id=""submit1"" name=""submit1"" tabindex=""-1"">"
			'end if
                 strSqL = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strMemberTablePrefix & "MEMBERS.M_AVATAR_URL"
                strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
                strSql = strSql & " Where " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'" 
 
                set rs = my_Conn.Execute (strSql)
                        if strGfxButtons = "1" and chkString(rs("M_AVATAR_URL"),"sqlString") <> "noavatar.gif" then 
                           Response.Write  "<input src=""" & chkString(rs("M_AVATAR_URL"),"display") & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1""><br />" & vbNewLine & _
                                           "<font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strFooterFontSize & """>log-out</font><br />"
                        elseif strGfxButtons = "1" and chkString(rs("M_AVATAR_URL"),"sqlString") = "noavatar.gif" then
                           Response.Write	"<input src=""" & strImageUrl & "button_logout.gif"" type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1"">"
			else
				Response.Write	"<input type=""submit"" value=""Logout"" id=""submit1"" name=""submit1"" tabindex=""-1"">" 
                        end if
               rs.close
               set rs=nothing

		end if

Your avatar should be screwed-up in "topic.asp" too. You can remove the height and width code there to.

    _-/Cripto9t\-_
Go to Top of Page

edbyrne
Starting Member

Ireland
34 Posts

Posted - 19 December 2003 :  07:10:26  Show Profile
Sorry, I should have said - I had already removed the height and width from the original avatar mod following a previous query of mine on the subject - I did this because the avatars varied in size. This ensured that the avatars displayed as they should without distortion. And that is how it is in the topic postings under the topic author's name. But that is not the case when it is used in replacement of the logout button following this add-on. So though the code is as you suggest, it still insists on 64 x 64. What am I missing?

Eddie
http://www.cleft.ie
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 20 December 2003 :  07:04:40  Show Profile
If height and width have been removed, then I would try clearing the temporary internet files on your machine. That is all I can think of.

    _-/Cripto9t\-_
Go to Top of Page

edbyrne
Starting Member

Ireland
34 Posts

Posted - 20 December 2003 :  19:44:02  Show Profile
cripto9t, I owe you an apology - I thought I had removed the height and width attributes - I have now and all is well. Sorry about that.

Eddie
http://www.cleft.ie
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 21 December 2003 :  08:14:21  Show Profile
Cool, glad you got it going.

    _-/Cripto9t\-_
Go to Top of Page

hollowman
Starting Member

Denmark
38 Posts

Posted - 04 February 2004 :  04:24:41  Show Profile  Visit hollowman's Homepage
Hi
i have a danish forum
My "You are logged on as" or in danish "Du er logget på som" is gone after the install why??

this is my code before install:

if strAuthType = "db" then %>
<% =fLangN(strLangInc_Header00200, "<b>" & profileLink(ChkString(strDBNTUserName, "display"),MemberID) & "</b>") %>
<% Response.Write "</font></td>" & vbNewLine & _
" <td>  "
if strGfxButtons = "1" then
Response.Write "<input src=" & strImageUrl & "Lang" & strLangLCID & "button_logout.gif type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1"">"
else
Response.Write "<input class=bouton type=""submit"" value=""" & fLang(strLangInc_Header00210) & """ id=""submit1"" name=""submit1"" tabindex=""-1"">"
end if
end if

now how do i mix that whit this:

if strAuthType = "db" then
Response.Write "<b>" & ChkString(strDBNTUserName, "display") & "</b></font></td>" & vbNewLine & _
" <td align=""center"">"
strSqL = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID, " & strMemberTablePrefix & "MEMBERS.M_NAME, " & strMemberTablePrefix & "MEMBERS.M_AVATAR_URL"
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
strSql = strSql & " Where " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"

set rs = my_Conn.Execute (strSql)

if strGfxButtons = "1" and chkString(rs("M_AVATAR_URL"),"sqlString") <> "noavatar.gif" then
Response.Write "<input src=""" & chkString(rs("M_AVATAR_URL"),"display") & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1""><br />" & vbNewLine & _
"<font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strFooterFontSize & """>log-out</font><br />"
elseif strGfxButtons = "1" and chkString(rs("M_AVATAR_URL"),"sqlString") = "noavatar.gif" then
Response.Write "<input src=""" & strImageUrl & "button_logout.gif"" type=""image"" border=""0"" value=""Logout"" id=""submit1"" name=""Logout"" tabindex=""-1"">"
else
Response.Write "<input type=""submit"" value=""Logout"" id=""submit1"" name=""submit1"" tabindex=""-1"">"
end if
rs.close
set rs=nothing
end if

Hollowman.
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 06 February 2004 :  07:41:43  Show Profile
Hi Hollowman.
I'll have a look at this. Two questions, is your forum a version 3.4 and did the avatar show-up when the log-in name disappeared?

    _-/Cripto9t\-_
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 06 February 2004 :  08:19:49  Show Profile
Just found this in the mod help forum, let's stay there .
try this klick

    _-/Cripto9t\-_
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07