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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 need help with avatar mod in 3.3
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jburris
Starting Member

40 Posts

Posted - 30 July 2001 :  13:36:39  Show Profile  Visit jburris's Homepage  Send jburris an ICQ Message  Send jburris a Yahoo! Message
I'm getting this error msg in topic.asp

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'rs'

/forum_3_3/topic.asp, line 540


in relation to this section of code that I added

<br><% if Trim(rs("M_AVATAR_URL")) <> "" and lcase(rs("M_AVATAR_URL")) <> "noavatar.gif" and (IsNull(rs("M_AVATAR_URL")) = false) then %>
<% '## Forum_SQL - Get Avatar Settings from DB
strSql = "SELECT " & strTablePrefix & "AVATAR2.A_WSIZE"
strSql = strSql & ", " & strTablePrefix & "AVATAR2.A_HSIZE"
strSql = strSql & ", " & strTablePrefix & "AVATAR2.A_BORDER"
strSql = strSql & " FROM " & strTablePrefix & "AVATAR2"

set rsav = my_Conn.Execute (strSql) %>
<img src="<% =rs("M_AVATAR_URL") %>" align="absmiddle" width=<% =rsav("A_WSIZE") %> height=<% =rsav("A_HSIZE") %> border=<% =rsav("A_BORDER") %> hspace="0" ><% set rsav = nothing %><% end if %>


thanks in advance for any help yall can offer with this problem.




RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 July 2001 :  13:48:58  Show Profile
you'll need to change all rs to either rsTopic or rsReplies depending on the section you are working with.

The code that is in the sub GetFirst() will be rsTopic and the other will be rsReplies
Go to Top of Page

Markp
New Member

54 Posts

Posted - 30 July 2001 :  14:09:31  Show Profile
Richard

I have downloaded this It appears to be working correctly, but I would like it to look for the images in the folder images. It is curently looking in my forum folder. Can you tell me how to change the path. Thanks (I got the forum code from eastpasco, thanks eastpasco)

Appreciate ya.


Go to Top of Page

jburris
Starting Member

40 Posts

Posted - 30 July 2001 :  14:41:44  Show Profile  Visit jburris's Homepage  Send jburris an ICQ Message  Send jburris a Yahoo! Message
thx rich that fixed it

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 July 2001 :  17:26:23  Show Profile
Markp,

The version that I did doesn't look for the images anywhere. The Admin has to manually enter the path to the Avatars.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 July 2001 :  17:27:05  Show Profile
jburris, You're welcome
Go to Top of Page

Markp
New Member

54 Posts

Posted - 30 July 2001 :  20:18:10  Show Profile
Duh, sometimes I complicate matters, thanks for getting me back on track.


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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07