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
 Archive problem on a heavily modified forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 September 2002 :  03:15:56  Show Profile  Visit Etymon's Homepage
I did a search here at the forums for an archiving problem that I am having, and the closest solution I have found is listed at the topic below:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=29232&SearchTerms=Syntax,error,in,INSERT,INTO,statement.

However, the author of the topic, HarshReality, doesn't go into detail about how he actually fixed the problem other than mentioning that it had something to do with a few of the MODs he had installed such as the Topic Ranking, Post Count, Topic and Review Vouyer, and Forum Post # MODs.

Has anyone had any problems archiving a heavily modified forum? Should the MODs I have installed on topic.asp be modified to include archiving features? I'll play with the code too and see where I end up.

I have a 3.3.05 forum. I know there was a problem while archiving in version 3.4, and the fix for that is listed below:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33201 (Fix)

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33194&SearchTerms=Syntax,error,in,INSERT,INTO,statement. (BUG Reported)

The error I am getting is:

<p>Microsoft JET Database Engine</font> <font face="Arial" size=2>error '80040e14'</font>
<p>
<font face="Arial" size=2>Syntax error in INSERT INTO statement.</font>
<p>
<font face="Arial" size=2>/carolinaequinetest/admin_forums.asp</font><font face="Arial" size=2>, line 518</font>

I am using Access 2000 and PWS.


Etymon

Edited by - Etymon on 15 September 2002 04:17:34

richfed
Average Member

United States
999 Posts

Posted - 15 September 2002 :  07:51:14  Show Profile  Visit richfed's Homepage
Though I don't have any of those mods you mention installed, I have installed many mods to my forum. It was with great trepidation that I did my first archive, but, it worked ... much to my surprise & relief!!!

So, they can coexist - heavy modding & archiving. I know this doesn't help you at the moment, but hopefully there'll be someone who can solve your problem.

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 September 2002 :  13:09:35  Show Profile  Visit HuwR's Homepage
Etymon, you need to check wether the fields in your normal tables are the same as those in your archive tables, for both topics and replies
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 September 2002 :  16:32:09  Show Profile  Visit Etymon's Homepage

Thanks for the reply Huwr!

Are you saying that the field names and field properties in FORUM_A_TOPICS and FORUM_TOPICS have to be identical? Same going for FORUM_A_REPLY and FORUM_REPLY?

This is the area of code the error above is referencing:


	drs.Open strsql, my_conn, 3, 3
		'set drs = my_conn.execute(strsql)
	'#### Archive the Replies
	if drs.eof then
    		response.write("<br><center><font face=" & strDefaultFontFace & " size=" & strFooterFontSize & ">No replies were archived, none found</center><br>")
	else
        	i = 0
		do until drs.eof
        strsqlvalues = "" & drs("CAT_ID") & ", " & drs("FORUM_ID") & ", " & drs("TOPIC_ID") & ", " & drs("REPLY_ID")
	strsqlvalues = strsqlvalues & ", " & drs("R_AUTHOR") & ", '" & chkstring(drs("R_MESSAGE"),"archive")
	strsqlvalues = strsqlvalues & "', '" & drs("R_DATE") & "', '" & 	drs("R_IP") & "'"  & ", " & drs("R_SIG") & ", " & drs("R_STATUS") & "" 
            
	                strsql = "INSERT INTO " & strArchiveTablePrefix & "REPLY (CAT_ID, FORUM_ID, TOPIC_ID, REPLY_ID, R_AUTHOR, R_MESSAGE, R_DATE, R_IP, R_SIG, R_STATUS)"
		        strsql = strsql & " VALUES (" & strsqlvalues & ")"
	
			response.write "<font face=" & strDefaultFontFace & " size=" & strFooterFontSize & ">.</font>"
518			my_conn.execute(strsql)



I have two Signature MODs installed. One is the Preview Signatures MOD, and the other is the Dynamic Signatures MOD. Does this effect the R_SIG field adversely?

The code below lists 10 fields, yet I have 12 fields in my FORUM_A_REPLY table and 13 fields in my FORUM_REPLY table.


514 strsql = "INSERT INTO " & strArchiveTablePrefix & "REPLY (CAT_ID, FORUM_ID, TOPIC_ID, REPLY_ID, R_AUTHOR, R_MESSAGE, R_DATE, R_IP, R_SIG, R_STATUS)"


Thanks for the vote of confidence, richfed!


Cheers,

Etymon

Edited by - Etymon on 15 September 2002 17:25:45
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07