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
 Poll mod issues
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 19 August 2005 :  12:01:44  Show Profile  Visit eviljoker7075's Homepage
Hello, I have recently tried to install the POLL mod, but when I add the files my forum home page gives the following error message:






Microsoft VBScript compilation error '800a03ea'

Syntax error

/inc_poll.asp, line 2

if (strFeaturedPoll = "1") then
^





what can I do?

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 19 August 2005 :  13:28:15  Show Profile
Post a link to a txt version of your default.asp file.

Support Snitz Forums
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 20 August 2005 :  07:05:13  Show Profile  Visit eviljoker7075's Homepage
Sure, no probs, here it is:

http://www.westburytown.co.uk/default-asp.txt
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 20 August 2005 :  19:41:04  Show Profile
Remove the code in red from line 300.
		"            <table border=""0"" width=""100%"" cellspacing=""1"" cellpadding=""4"">" & vbNewline & _

Support Snitz Forums
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 21 August 2005 :  06:30:24  Show Profile  Visit eviljoker7075's Homepage
Thank you, that sorted that issue, but a few more have arisen. It seems that when I load topic.asp and try to view an actual topic or poll I get the following error message:



ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/topic.asp, line 132


Here is a copy of my topic.asp file: http://www.westburytown.co.uk/topic-asp.txt


Also the table on post.asp doesn't seem to be layed out properly, have I inserted the code in the wrong place? Here is a screenhsot of what I get: http://www.westburytown.co.uk/images/postpollproblem.GIF I have included a txt file copy of my post.asp file, in case you need that too: http://www.westburytown.co.uk/post-asp.txt

Thank you.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 August 2005 :  17:37:39  Show Profile
For your topic.asp file, you seen to have copied the SQL query from the topic.asp file that came with the poll mod to your file. Your file already had the PM mod installed. So you overwrote the PM mod code when you copied the poll mod code over.

M_PMRECEIVE and M_AVATAR_URL should be in the sql query that starts at line 103.
strSql = "SELECT M.M_NAME, M.M_RECEIVE_EMAIL, M.M_AIM, M.M_ICQ, M.M_MSN, M.M_YAHOO" & _
	", M_PMRECEIVE, M.M_TITLE, M.M_HOMEPAGE, M.MEMBER_ID, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY" & _
	", M_AVATAR_URL, T.T_DATE, T.T_SUBJECT, T.T_AUTHOR, T.TOPIC_ID, T.T_STATUS, T.T_ISPOLL, T.T_POLLSTATUS, T.T_LAST_EDIT" & _
	", T.T_LAST_EDITBY, T.T_LAST_POST, T.T_SIG, T.T_REPLIES" & _
	", C.CAT_STATUS, C.CAT_ID, C.CAT_NAME, C.CAT_SUBSCRIPTION, C.CAT_MODERATION" & _
	", F.F_STATUS, F.F_POLLS, F.FORUM_ID, F.F_SUBSCRIPTION, F.F_SUBJECT, F.F_MODERATION, T.T_MESSAGE"


Lines 940 and 941 in your post.asp file looks like this:

Response.Write " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Message:</b><br />" & vbNewLine & _
" <br />" & vbNewLine & _


Change it to this:
Response.Write "                <br />" & vbNewLine & _


Support Snitz Forums

Edited by - Davio on 21 August 2005 17:38:33
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 August 2005 :  17:42:51  Show Profile
Also, in the post.asp file, remove the Poll Mod code starting at line 1304 and put it after line 1324. End result would look like this:
			if blnTStatus = 1 then
				if strRqMethod <> "EditTopic" then
					Response.Write	"                <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""lock"" id=""lock"" type=""checkbox"" value=""1""><label for=""lock"">Check here to lock the topic after this post.</label><br /></font>" & vbNewLine
				end if
			end if
		end if ' <--- line 1304
		'############################### Poll Mod #####################################
		if Request.QueryString("poll") = "1" then
			if (AdminAllowed = "1" or mLev = "2") and (FPolls <> "0") then
				Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
		  				"<input name=""lockpoll"" type=""checkbox"" value=""1"""
				if blnPSTatus = "0" then Response.Write(" checked")
				Response.Write ">Check here to lock/unlock the poll after this post.<br /></font>" & vbNewLine 
			end if

			if strRqMethod <> "Topic" and (AdminAllowed = "1" or mLev = "2") then
				Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
        				"<input name=""resetpoll"" type=""checkbox"" value=""1"">Check here to reset the poll votes.</font>" & vbNewLine 
			end if
		end if
		'##############################################################################
		if (strDBNTUserName = "" and strSignatures <> "1") or (strRqMethod = "EditTopic" and strDSignatures <> "1") then
			Response.Write	"                 " & vbNewLine
		end if

Support Snitz Forums

Edited by - Davio on 21 August 2005 17:43:19
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 22 August 2005 :  13:49:01  Show Profile  Visit eviljoker7075's Homepage
Well it all works, but there is just a small issue with the calendar mod. At the top of every post appears the small calendar image. I have included a copy of topic.asp again, please help, just this one thing left, lol.

http://www.westburytown.co.uk/topic2-asp.txt
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 August 2005 :  20:36:07  Show Profile
I'm not familiar with the calendar mod code. So I'm not sure what changes would be needed.
But I'll look over the code and see if I spot anything out of the ordinary.

Can you post a link to your forum so I can see the problem you're describing first hand?

Support Snitz Forums
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 23 August 2005 :  05:01:25  Show Profile  Visit eviljoker7075's Homepage
Sure thing. http://www.westburytownforum.com. As I said it appears at the top of each topic in the first post. Thanks.
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 24 August 2005 :  15:14:15  Show Profile  Visit eviljoker7075's Homepage
Please help I am getting desperate. I have now found out that I cannot post events as it only displays the topic to post normal threads... have i deleted some code I shouldn't? (the only category where events are allowed is the "what's On" thread
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 August 2005 :  05:19:42  Show Profile
Double check the calendar mod readme against the changes you've made, looks to me like you've ommited an if statement somewhere. Also check your calendar configuration to ensure you've got it all setup correctly.


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