Author |
Topic |
|
GLICA
Starting Member
USA
7 Posts |
Posted - 13 September 2005 : 10:12:40
|
Added the avatar MOD to my forum, seems to be working okay. But now post replies aren't showing up! Instead, I get this error message above the original post:
Microsoft VBScript runtime error '800a0009' Subscript out of range: 'rM_SIG'
/forums/topic.asp, line 564
My topic.asp looks like this (line 564 in BOLD):
-----------
rM_NAME = 0 rM_RECEIVE_EMAIL = 1 rM_AIM = 2 rM_ICQ = 3 rM_MSN = 4 rM_YAHOO = 5 rM_PMRECEIVE = 6 rM_TITLE = 7 rMEMBER_ID = 8 rM_HOMEPAGE = 9 rM_LEVEL = 10 rM_POSTS = 11 rM_COUNTRY = 12 rM_AVATAR = 13 rREPLY_ID = 14 rFORUM_ID = 15 rR_AUTHOR = 16 rTOPIC_ID = 17 rR_MESSAGE = 18 rR_LAST_EDIT = 19 rR_LAST_EDITBY = 20 rR_SIG = 21 rR_STATUS = 22 rR_DATE = 23 if CanShowSignature = 1 then rM_SIG = 24 end if for iForum = 0 to iReplyCount
Reply_MemberName = arrReplyData(rM_NAME, iForum) Reply_MemberReceiveEmail = arrReplyData(rM_RECEIVE_EMAIL, iForum) Reply_MemberAIM = arrReplyData(rM_AIM, iForum) Reply_MemberICQ = arrReplyData(rM_ICQ, iForum) Reply_MemberMSN = arrReplyData(rM_MSN, iForum) Reply_MemberYAHOO = arrReplyData(rM_YAHOO, iForum) Reply_MemberTitle = arrReplyData(rM_TITLE, iForum) Reply_MemberID = arrReplyData(rMEMBER_ID, iForum) Reply_MemberHomepage = arrReplyData(rM_HOMEPAGE, iForum) Reply_MemberLevel = arrReplyData(rM_LEVEL, iForum) Reply_MemberPosts = arrReplyData(rM_POSTS, iForum) Reply_MemberCountry = arrReplyData(rM_COUNTRY, iForum) Reply_MemberAvatar = arrReplyData(rM_Avatar, iForum) Reply_ReplyID = arrReplyData(rREPLY_ID, iForum) Reply_ForumID = arrReplyData(rFORUM_ID, iForum) Reply_Author = arrReplyData(rR_AUTHOR, iForum) Reply_TopicID = arrReplyData(rTOPIC_ID, iForum) Reply_Content = arrReplyData(rR_MESSAGE, iForum) Reply_LastEdit = arrReplyData(rR_LAST_EDIT, iForum) Reply_LastEditBy = arrReplyData(rR_LAST_EDITBY, iForum) Reply_Sig = arrReplyData(rR_SIG, iForum) Reply_Status = arrReplyData(rR_STATUS, iForum) Reply_Date = arrReplyData(rR_DATE, iForum) if CanShowSignature = 1 then Reply_MemberSig = trim(arrReplyData(rM_SIG, iForum)) end if
if intI = 0 then CColor = strAltForumCellColor else CColor = strForumCellColor end if
------------- Any ideas?
Edit: Removed all but relevant code in topic.asp |
Edited by - GLICA on 16 September 2005 09:36:09 |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 13 September 2005 : 10:31:48
|
First off, please refrain from posting entire files here, if you must post them, please provide a link to a *.txt copy of them.
To your problem, your code is looking for the PM_RECEIVE field in your array of replies but that field is not being pulled from the database. Double check the changes you made against the readme ensuring that you do not overwrite any changes you may have made when applying the PM Mod.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
GLICA
Starting Member
USA
7 Posts |
Posted - 16 September 2005 : 09:40:56
|
quote: Originally posted by Shaggy
First off, please refrain from posting entire files here, if you must post them, please provide a link to a *.txt copy of them.
To your problem, your code is looking for the PM_RECEIVE field in your array of replies but that field is not being pulled from the database. Double check the changes you made against the readme ensuring that you do not overwrite any changes you may have made when applying the PM Mod.
Thanks Shaggy!
You were correct - I removed the rM_PMRECEIVE = 6 in the first section, then renumbered the remaining fields in order and it worked!
My working code looks like this:
rM_NAME = 0 rM_RECEIVE_EMAIL = 1 rM_AIM = 2 rM_ICQ = 3 rM_MSN = 4 rM_YAHOO = 5 rM_TITLE = 6 rMEMBER_ID = 7 rM_HOMEPAGE = 8 rM_LEVEL = 9 rM_POSTS = 10 rM_COUNTRY = 11 rM_AVATAR = 12 rREPLY_ID = 13 rFORUM_ID = 14 rR_AUTHOR = 15 rTOPIC_ID = 16 rR_MESSAGE = 17 rR_LAST_EDIT = 18 rR_LAST_EDITBY = 19 rR_SIG = 20 rR_STATUS = 21 rR_DATE = 22 if CanShowSignature = 1 then rM_SIG = 23 end if for iForum = 0 to iReplyCount
Reply_MemberName = arrReplyData(rM_NAME, iForum) Reply_MemberReceiveEmail = arrReplyData(rM_RECEIVE_EMAIL, iForum) Reply_MemberAIM = arrReplyData(rM_AIM, iForum) Reply_MemberICQ = arrReplyData(rM_ICQ, iForum) Reply_MemberMSN = arrReplyData(rM_MSN, iForum) Reply_MemberYAHOO = arrReplyData(rM_YAHOO, iForum) Reply_MemberTitle = arrReplyData(rM_TITLE, iForum) Reply_MemberID = arrReplyData(rMEMBER_ID, iForum) Reply_MemberHomepage = arrReplyData(rM_HOMEPAGE, iForum) Reply_MemberLevel = arrReplyData(rM_LEVEL, iForum) Reply_MemberPosts = arrReplyData(rM_POSTS, iForum) Reply_MemberCountry = arrReplyData(rM_COUNTRY, iForum) Reply_MemberAvatar = arrReplyData(rM_Avatar, iForum) Reply_ReplyID = arrReplyData(rREPLY_ID, iForum) Reply_ForumID = arrReplyData(rFORUM_ID, iForum) Reply_Author = arrReplyData(rR_AUTHOR, iForum) Reply_TopicID = arrReplyData(rTOPIC_ID, iForum) Reply_Content = arrReplyData(rR_MESSAGE, iForum) Reply_LastEdit = arrReplyData(rR_LAST_EDIT, iForum) Reply_LastEditBy = arrReplyData(rR_LAST_EDITBY, iForum) Reply_Sig = arrReplyData(rR_SIG, iForum) Reply_Status = arrReplyData(rR_STATUS, iForum) Reply_Date = arrReplyData(rR_DATE, iForum) if CanShowSignature = 1 then Reply_MemberSig = trim(arrReplyData(rM_SIG, iForum)) end if
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 16 September 2005 : 09:46:38
|
You're welcome
Are you using the PM Mod?
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
|
Topic |
|
|
|