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
 Message Icon Mod [for 3.3.05] Posting Problem
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

richfed
Average Member

United States
999 Posts

Posted - 15 September 2002 :  11:16:23  Show Profile  Visit richfed's Homepage
Attempted to implement the Message Icon Mod last evening ... I encountered no installation errors, that I was aware of, which surprised me, because I couldn't simply cut & paste the code, because it was "entangled" with previously installed Poll & Sticky Topic mods ... so, I had to try and do some editing on my own ... always a dangerous proposition ...

Anyway, all appeared to be well ... as I say, no error messages, the icons appeared nicely, etc. The only weird thing was that on forum.asp the links to topics appeared, as normal, however, just next to that would be a plain text repetition of the topic name ... ???? ... So, I reverted to my old forum.asp, figuring to look that over again this AM [still can't find my error, by the way]. Meanwhile, the rest of the mod appeared to be ok. Folks posted [all replies, it turned out] without any problem.

This AM, I attempted to post a new topic ... received this error:

quote:
Microsoft JET Database error '80040e14'
Number of query values and destination fields are not the same.
/messageboard/post_info.asp, line 793


So, obviously, my editing left a lot to be desired ... Can anyone assist me on this? I've since reverted all the MI-modded files back to their previous state, and all is working fine ... just, of course, no message icons!

MOHICAN BOARD

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

Messick
Starting Member

USA
25 Posts

Posted - 15 September 2002 :  16:52:42  Show Profile  Visit Messick's Homepage
I had the same problem...

I also had the same mods you discribed.

I worked with it for a few hours, but didn't get any were... I gave up. Maybe thoughs mods are not compatible with it?

Sorry I know thats not any help.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 15 September 2002 :  19:11:54  Show Profile  Visit masterao's Homepage
Richfed,

Put a response.write strSql on line 792, so that the sql-query is printed. Copy and paste it here and I'll help you sort it through.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 16 September 2002 :  06:14:26  Show Profile  Visit richfed's Homepage
Hi masterao ...

I'm not sure what you mean, but, in any event, I had removed the Message Icon modded files and replaced them.

Here are the text links to the two modded files:

Forum.asp
Post_Info.asp

Hope that can suffice. Thanks for attempting this! Maybe Messick can get his going, as well!

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

masterao
Senior Member

Sweden
1678 Posts

Posted - 16 September 2002 :  06:38:05  Show Profile  Visit masterao's Homepage
I'll look into this when I get home from work (I don't have enough "free" time to do it now).


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 16 September 2002 :  14:04:35  Show Profile  Visit masterao's Homepage
richfed, move the code marked red to the location where it is green in the example below:

if strIPLogging <> "0" then
strSql = strSql & ", '" & Request.ServerVariables("REMOTE_ADDR") & "'"
end if
strSql = strSql & ", 1 "
strSql = strSql & ", " & Request.Form("strMessageIcon")
'################ Sticky Topic MOD ######################
if Request.Form("sticky") = 1 then
strSql = strSql & ", 1 "
strSql = strSql & ", 0 "
elseif Request.Form("sticky") = 2 then
strSql = strSql & ", 1 "
strSql = strSql & ", 999999 "
else
strSql = strSql & ", 0 "
strSql = strSql & ", 0 "
end if
'########################################################
strSql = strSql & ", " & Request.Form("strMessageIcon")

That will hopefully be the fix.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod

Edited by - masterao on 16 September 2002 14:05:16
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 16 September 2002 :  18:44:37  Show Profile  Visit richfed's Homepage
No, Jan, same result:

quote:
Microsoft JET Database Engine error '80040e14'

Number of query values and destination fields are not the same.

/messageboard/post_info.asp, line 793




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

masterao
Senior Member

Sweden
1678 Posts

Posted - 16 September 2002 :  20:04:51  Show Profile  Visit masterao's Homepage
Rich, could you provide a text-version of the post_info.asp which doesn't have the message icon mod code?


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 17 September 2002 :  06:20:52  Show Profile  Visit richfed's Homepage
Sure ...

Post_Info2.asp

This is the version currently functioning on my forum. Appreciate your assistance!

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

masterao
Senior Member

Sweden
1678 Posts

Posted - 17 September 2002 :  06:30:56  Show Profile  Visit masterao's Homepage
I think I found the problem now. Some of the values where messed up.

Replace lines 694-793 in your modded post_info.asp with the following:


		'## Forum_SQL - Add new post to Topics Table
		strSql = "INSERT INTO " & strTablePrefix & "TOPICS (FORUM_ID"
		strSql = strSql & ", CAT_ID"
		strSql = strSql & ", T_SUBJECT"
		strSql = strSql & ", T_MESSAGE"
	        ' ############# Poll Mod #############
	strSql = strSql & ", answer1"
	strSql = strSql & ", count1"
	strSql = strSql & ", answer2"
	strSql = strSql & ", count2"
	strSql = strSql & ", answer3"
	strSql = strSql & ", count3"
	strSql = strSql & ", answer4"
	strSql = strSql & ", count4"
	strSql = strSql & ", answer5"
	strSql = strSql & ", count5"
	strSql = strSql & ", answer6"
	strSql = strSql & ", count6"
	strSql = strSql & ", answer7"
	strSql = strSql & ", count7"
	strSql = strSql & ", answer8"
	strSql = strSql & ", count8"
	strSql = strSql & ", T_ISPOLL"
	        ' ###################################
  strSql = strSql & ", T_AUTHOR"
		strSql = strSql & ", T_LAST_VOTE"
		strSql = strSql & ", T_LAST_POST"
		strSql = strSql & ", T_LAST_POST_AUTHOR"
		strSql = strSql & ", T_DATE"
		strSql = strSql & ", T_STATUS"
		if strIPLogging <> "0" then
			strSql = strSql & ", T_IP"
		end if
		strSql = strSql & ", T_ARCHIVE_FLAG"
		strSql = strSql & ", T_MSGICON"
                 '################ Sticky Topic MOD ######################
		strSql = strSql & ", T_STICKY"
		strSql = strSql & ", T_TOPSTICKY"
                 '########################################################
                strSql = strSql & ") VALUES ("
		strSql = strSql & Forum_ID
		strSql = strSql & ", " & Cat_ID
		strSql = strSql & ", '" & txtSubject & "'"
		strSql = strSql & ", '" & txtMessage & "'"
                 ' ################ Poll Mod ###############	
			strSql = strSql & ", '" & txtSub1 & "'"
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub2 & "'"
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub3 & "'"	
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub4 & "'"	
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub5 & "'"	
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub6 & "'"	
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub7 & "'"	
			strSql = strSql & ", " & 0	
			strSql = strSql & ", '" & txtSub8 & "'"	
			strSql = strSql & ", " & 0	
			if Request.Form("poll") = "1" then		
			        strSql = strSql & ", " & 1	
			else		
			        strSql = strSql & ", " & 0	
		        end if
                 '##########################################
                strSql = strSql & ", " & rs("MEMBER_ID")
		strSql = strSql & ", '" & DateToStr(strForumTimeAdjust) & "'"
		strSql = strSql & ", '" & DateToStr(strForumTimeAdjust) & "'"
		strSql = strSql & ", " & rs("MEMBER_ID")
		strSql = strSql & ", '" & DateToStr(strForumTimeAdjust) & "'"
		if Request.Form("lock") = 1 then
				strSql = strSql & ", 0 "
		else
			if Moderation = "Yes" then
				strSql = strSql & ", 2 "
			else
				strSql = strSql & ", 1 "
			end if
		end if
		if strIPLogging <> "0" then
			strSql = strSql & ", '" & Request.ServerVariables("REMOTE_ADDR") & "'"
		end if
		strSql = strSql & ", 1 "
  strSql = strSql & ", " & Request.Form("strMessageIcon")
	         '################ Sticky Topic MOD ######################
		if Request.Form("sticky") = 1 then
			strSql = strSql & ", 1 "
			strSql = strSql & ", 0 "
		elseif Request.Form("sticky") = 2 then
			strSql = strSql & ", 1 "
			strSql = strSql & ", 999999 "
		else
			strSql = strSql & ", 0 "
			strSql = strSql & ", 0 "
		end if
                 '########################################################
        	strSql = strSql & ")"
                
                my_Conn.Execute (strSql)


I hope that this will work.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 17 September 2002 :  13:10:26  Show Profile  Visit richfed's Homepage
YES!

That worked wonderfully. Now I'm down to the double text on forum.asp. Actually, a topic text link [as should be there] plus a repitition of just the text [shouldn't be there!]. Any ideas on that one???

At any rate, thank you very much for the help you have provided!!!!

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

masterao
Senior Member

Sweden
1678 Posts

Posted - 17 September 2002 :  13:37:46  Show Profile  Visit masterao's Homepage
Im glad you got it working, Rich.

This double text you are getting, do you have an example of it? I visited your forum, but I couldn't see any link that also appeared as plain text on forum.asp.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 17 September 2002 :  13:51:17  Show Profile  Visit richfed's Homepage
quote:
Originally posted by masterao

Im glad you got it working, Rich.



No, NO!!!! YOU got it working, and it is appreciated!

quote:
This double text you are getting, do you have an example of it? I visited your forum, but I couldn't see any link that also appeared as plain text on forum.asp.



That's because I reverted back on that file .... no message icon modification. The text link above, though, IS the MI modded file. I'll look it over tonight ... again ... and see if I can see what it is I did wrong.

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

masterao
Senior Member

Sweden
1678 Posts

Posted - 17 September 2002 :  15:13:39  Show Profile  Visit masterao's Homepage
quote:
Originally posted by richfed

quote:
Originally posted by masterao

Im glad you got it working, Rich.



No, NO!!!! YOU got it working, and it is appreciated!




Thanks.

quote:

That's because I reverted back on that file .... no message icon modification. The text link above, though, IS the MI modded file. I'll look it over tonight ... again ... and see if I can see what it is I did wrong.



Exactly where does this repeting text appear in forum.asp? It would make it easier to locate, if I had something to go after.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 17 September 2002 :  18:30:43  Show Profile  Visit richfed's Homepage
OK ...

On forum.asp, the first column is for the folder icon, the second column - in the case of a Message Icon-modded file - is for the message icon, the third column is for the topic. Within the cells of that third column is the link to the topic. Well, in my MI-modded forum.asp, that link appears, as is normal. BUT, immediately following, and within the same cell, is a plain text repetition of the topic link [only it's not a link]. It duplicates itself: once as a link - as it should - second as plain text - which it shouldn't.

Not sure I'm being clear ...

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

masterao
Senior Member

Sweden
1678 Posts

Posted - 17 September 2002 :  19:05:15  Show Profile  Visit masterao's Homepage
Find this on approx line 436-448 in forum.asp:


        <td bgcolor="<% =strForumCellColor %>" valign="center" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?<%= ArchiveLink %>TOPIC_ID=<% =Topic_ID %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font>
<%
		'############### Sticky Topic Mod ###################
			if Topic_Stick = 1 then %>
				<img src="icon_sticky.gif" height=15 width=15 border=0 hspace=0 alt="Sticky Topic"> 
		<%  end if
		'################ Sticky Topic Mod ##############
%>
<% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font>
<%
			if strShowPaging = "1" then 
				TopicPaging() 
			end if


Replace that with this:


        <td bgcolor="<% =strForumCellColor %>" valign="center" align="left">
<%
		'############### Sticky Topic Mod ###################
			if Topic_Stick = 1 then %>
				<img src="icon_sticky.gif" height=15 width=15 border=0 hspace=0 alt="Sticky Topic"> 
		<%  end if
		'################ Sticky Topic Mod ##############
%>

<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?<%= ArchiveLink %>TOPIC_ID=<% =Topic_ID %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font>

<%
			if strShowPaging = "1" then 
				TopicPaging() 
			end if


Then you will not have the topic subject appearing twice.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07