Author |
Topic  |
leatherlips
Senior Member
   
USA
1838 Posts |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 30 July 2006 : 08:53:38
|
I have just found the problem area .. but dont know how to correct it  I think the problem is line 824 of post_info.
if I comment out the "end if" on 824 I get the error above. if I remove the comment I get an error, "expected statement line 824"
this is the txt file http://www.kazzys-cavies.co.uk/textfiles/post_info.txt
Dave
further to this I notice it happens everytime anything is posted, |
No good at coding, but I can plough a field !! |
Edited by - thermal_seeker on 30 July 2006 09:51:27 |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 30 July 2006 : 18:07:12
|
thermal_seeker, you are missing the following code from your post_info.asp file: if Err_Msg = "" then
'##Get Status of this Topic
strSql = "SELECT T_STATUS, T_UREPLIES"
strSql = Strsql & " FROM " & strTablePrefix & "TOPICS "
strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID
set rsTopicStatusCheck = my_Conn.Execute (strSql)
Topic_Status = rsTopicStatusCheck("T_STATUS")
Topic_UReplies = rsTopicStatusCheck("T_UREPLIES")
rsTopicStatusCheck.Close
set rsTopicStatusCheck = nothing
This code goes after line 496 in your file. You probably overwrote it when adding in the poll mod code. After you add that back in, make sure to uncomment the end if, that you commented out earlier. |
Support Snitz Forums
|
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 30 July 2006 : 18:26:51
|
Thanks Davio will try it next weekend, busy at work for the rest of the week  I will let you know how it went.
Thanks for your time and trouble
Dave |
No good at coding, but I can plough a field !! |
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 03 August 2006 : 08:55:50
|
oops !! I have another problem now.. I'm logged in as admin, I create a new forum, allow admin/moderators to create, and when finished "post new forum". I get an error message:
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/forum/post_info.asp, line 2504
Line 2504 is: '## Subscribe checkbox end ##
This line hasn't been changed ???
link to the latest file: http://www.kazzys-cavies.co.uk/textfiles/post_info.txt
Dave
|
No good at coding, but I can plough a field !! |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 03 August 2006 : 11:16:12
|
You added the split topic mod and overwrote some of the existing code. You need to be more careful when adding code to your files. You're missing the following code from your file, after line 1104: Go_Result err_Msg, 1
Response.End
end if
end if Here is the before and after code: if Moderation = "No" then
'## Subscribe checkbox ##
if request.form("TNotify") <> "" then
if request.form("TNotify") = "1" then
AddSubscription "TOPIC", rs("MEMBER_ID"), Cat_ID, Forum_ID, NewTopicID
elseif request.form("TNotify") = "0" then
DeleteSubscription "TOPIC", MemberID, Cat_ID, Forum_ID, NewTopicID
end if
end if
'## Subscribe checkbox end ##
end if
Go_Result err_Msg, 1
Response.End
end if
end if
'#################### Split Topic Mod ###################
if MethodType = "SplitTopic" then
lngMember = cLng(ChkUser(strDBNTUserName, strPassword,-1))
select case lngMember
case 0 '## Invalid Pword
Go_Result "Invalid Password or UserName", 0
Response.End
case 1 '## Author of Post
'## Do Nothing And please start a new topic if you have a problem. This has nothing to do with the poll mod. |
Support Snitz Forums
|
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 03 August 2006 : 13:33:49
|
Davio, please accept my apologies. as the poll mod was the last to go on I thought that was the problem, the events mod was working ok.
I have just added the piece of code in but I don't seem to have the "create poll icon". I have just checked through all of the code and can't for the life of me see a mistake.
Dave |
No good at coding, but I can plough a field !! |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 03 August 2006 : 14:58:33
|
Hi leatherlips yes to the icon, yes to the code, http://www.kazzys-cavies.co.uk/forum/
no to the red x
think I might have it sorted  will post later
Dave |
No good at coding, but I can plough a field !! |
Edited by - thermal_seeker on 03 August 2006 15:26:34 |
 |
|
Topic  |
|