Author |
Topic |
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 08 December 2006 : 14:27:31
|
well yeah but to me a double post is somthing that u do within the minute after a post, anything after that and it is more than likly a new reply/topic. if peopel are waiting until after that minute just to post a word or to add a sentence is just stupid. that is somthign i would expect from a silly 12 year old kid. and if thats the case then its down to moderation of the posts by the admins/mods< |
© 1999-2010 MaD2ko0l |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 08 December 2006 : 14:37:10
|
Nah, it's when people make a post. Have another idea and come back a few minutes later. This prevents that. Again, can someone write sample code for this?< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 08 December 2006 : 14:41:15
|
Call didn't HuwR already say he would but it would be a little later?< |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 08 December 2006 : 14:57:16
|
Yes, he did. But is there anything wrong with different versions of a mod?
After all, how many programmers does it take to screw in a light bulb?
Truth be told, no one knows. Here's my take on it. Five programmers. One to screw in the light bulb. One to make sure the coding on the bulb is correct. One to check the coding of the bulb. Another to make sure the bulb is properly screwed in. And a fifth to double check the other four. < |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 08 December 2006 : 18:38:17
|
Patience Is A Virtue< |
© 1999-2010 MaD2ko0l |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 09 December 2006 : 10:46:02
|
Sure is. Now we wait.< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 December 2006 : 08:53:27
|
Ok, I haven't test this at all, so make sure you take a backup of post_info.asp before proceeding. It is a fairly basic attempt and may not do exactly what you wanted, but it is only a start and was just a quick attempt. it ONLY UPDATES REPLIES, so if someone posts a reply immediately after posting a topic it will NOT merge them, that would basically require rewriting most of post_info.asp to accomplish.
Once you have backed up your post_info.asp, you need to look for the section that starts with
'## Forum_SQL strSql = "INSERT INTO " & strTablePrefix & "REPLY "
in a clean post_info.asp it will be around line 1005, you need to replace the whole section in between the '## Forum_SQL and the my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords line (about line 1050)
with the following code
a couple of lines after the my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords , replace
if Moderation = "No" then with if Moderation = "No" and boolDoPost then
Now scroll down a bit further till you find this code
'## Forum_SQL - Update Unmoderated post count
strSql = "UPDATE " & strActivePrefix & "TOPICS "
strSql = strSql & " SET T_UREPLIES = T_UREPLIES + 1 "
strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
and replace it with
'## Forum_SQL - Update Unmoderated post count
strSql = "UPDATE " & strActivePrefix & "TOPICS "
strSql = strSql & " SET T_UREPLIES = T_UREPLIES + 1 "
strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID
if boolDoPost then 'added for double post merge
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end if 'added for double post merge
I offer NO guarantees as to whether this will work or not as I do not have an asp forum running at the moment I can test it on
< |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 10 December 2006 : 10:12:55
|
Well, I added it and got this error when trying to post:
Microsoft VBScript runtime error '800a01a8'
Object required: 'rsTCheck'
/bbs/post_info.asp, line 1856
Here's a text file of the post_info.asp without this code:
http://www.schoolofduel.com/bbs/post_info.txt< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 December 2006 : 11:51:59
|
this line is wrong if rsDCheck.EOF or rsTCheck.BOF then 'didn't double post so let's carry on normally
should be if rsDCheck.EOF or rsDCheck.BOF then 'didn't double post so let's carry on normally< |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 10 December 2006 : 13:03:35
|
Hm. Now I'm getting this error whenever I try to post:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/bbs/topic.asp, line 463
< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 December 2006 : 13:11:34
|
quote: I offer NO guarantees as to whether this will work or not as I do not have an asp forum running at the moment I can test it on
< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 December 2006 : 13:17:55
|
just ran a quick test site up, and the code I posted works fine, so it is either something you have done wrong or something different in your post.asp, nothing I posted has anything to do with line 463 or any of the code near that line, so I would suggest you re-examine the code you changed.< |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 10 December 2006 : 13:43:02
|
Fixed an error I made. Now I get this:
Microsoft OLE DB Provider for SQL Server error '80040e14'
Invalid operator for data type. Operator equals add, type equals ntext.
/bbs/post_info.asp, line 1914
What does this mean?< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 December 2006 : 13:59:22
|
quote: What does this mean?
I have no idea.
As I said above, I have tested this code on a virgin standard Snitz install and everything works without error, if you are getting errors it is either because you have inserted the code incorrectly or something else in your post_info.asp that is not standard, either way I can't help.< |
|
|
CalloftheHauntedMaster
Junior Member
289 Posts |
Posted - 10 December 2006 : 14:44:15
|
Here is a text file of the post_info.asp as it looks like with your code (ignore the edited file name):
http://www.schoolofduel.com/bbs/post_info_edit.txt
Can you please check to make sure I didn't make a mistake in adding this code? I've looked over it twice and can't find anything wrong.
It is rather modded though.
Anyhow, your changes start at line 1851.< |
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums! |
|
|
Topic |
|