An auto-post merge mod for double posts??? - Posted (4722 Views)
Junior Member
CalloftheHauntedMaster
Posts: 289
289
This is not for split topics or for merging different threads together.
This is to auto-merge a double/triple post...
For example, I'm the last poster in a thread. I post again and now I have two posts in a row (double posts). Instead of that, this mod would immediately edit my first post and add the content of my second post to it, thereby preventing a double post.
It seems pretty easy to make since the only thing necessary is a check to see if you're the last poster in the thread. If so, your posts are merged together. If not, the post proceeds as normal.
Obviously, your post count would not increase as a result of these auto-merged posts.

Anyhow, a search for this type of feature came out dry, and my knowledge of coding is just as dry. Does anyone have a mod they've designed for this or can someone design it?
Again, it seems simple provided you're familiar with snitz...<
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!
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
New Member
kyodai
Posts: 74
74
SOrry to reply to such an old thread but this is the only one related to what i wanted to do. I like the idea of merging double posts, as it became quite common on my forums, on one site by spammers who just wanted to up their post count, then by newbies who simply didnt care to read rules or think about the edit button and then by people who want to "bump" their post up to top of the list.

Well to make it short - the posted solution here simply didnt work for me. No idea, but it's probably because i already got so many mods installed??? I really dont know much about asp so i tried to uderstand what the error was, but simply didnt get it. I fixed some mods that didn't work out-of-the-box yet, but here i really didnt get what was wrong.

So i made my own version from scratch, as good as i understand asp and after some trial and error it finally worked! No more double posts in my forums...

My Table is called FORUM_TOPICS, if you have another prefix you might want to change it. This is a very basic mod, but i think beside the table name it is very compatible with all other mods and addons.

All it does is checking whether the last post in the topic was by the current user and if yes and he tries to reply he will get an error message to rather use the edit button. I hope this helps some people.

Code:

Kyodai Anti Double Post Mod 1.0
Last Updated 05/29/2009

Description:
This mod simply disallows double posting, which means a member can't reply twice to a thread. If a member posts a

reply and then tries to post a second reply an error message appears that says "Sorry, double posting is not

allowed. Please use the edit button if you want to add information to your previous post."

Features: Disallows double posting
Disables members to reply to their own topic if noone else has posted yet
Obviously also disables the typical "bumps" members do to get their Topic on top


Possible Features for future releases: Maybe change this so instead of displaying the message it automatically merges the reply with the previous one.
Installation difficulty: 2 (1=Easy - 10=Hard)


###############
## INSTALLATION ###############
There are no files supplied with this mod as it is intended to edit your current file
Be sure to backup your file first!

####################################################################
## Post_info.asp ####################################################################
around line 1000 - find this:
if MethodType = "Reply" or MethodType = "ReplyQuote" or MethodType = "TopicQuote" then

'## Forum_SQL


below this add:



' Kyodai anti-double post

strSQL = "SELECT T_LAST_POST_AUTHOR FROM FORUM_TOPICS WHERE TOPIC_ID = " & Topic_ID
set rs = my_Conn.Execute (strSql)
if rs.BOF or rs.EOF then '## no result
rs.close
set rs = nothing
' "No Result"
else
myPostAuthor = rs("T_LAST_POST_AUTHOR")
rs.close
set rs = nothing
' Saved last Post Author name
end if

' end Kyodai Anti-double post




A few lines below that - find this:

err_Msg = "Invalid Password or User Name"
Go_Result(err_Msg), 0
Response.End
else


add this directly below:

'kyodai anti double post

MyMemberName = rs("MEMBER_ID")

'end kyodai anti-double post


Another few lines below find this:
if txtMessage = " " then
Go_Result "You must post a message!", 0
Response.End
end if
add this directly below:
'kyodai anti double post

if myPostAuthor = myMemberName then
rs.close
set rs = nothing
err_Msg = "Sorry, double posting is not allowed. Please use the edit button if you want to add

information to your previous post."
Go_Result(err_Msg), 0
Response.End
end if

'end kyodai anti-double post

Posted
New Member
kyodai
Posts: 74
74
On a side note: Afterwards i added an "if mLev < 3 then" to allow staff members to double post, because for staff sometimes it does make sense. AT least my staff complained about it, i added it and now users may not double post but staff does. Awwww I'm just the man for solutions... ^__^
You Must enter a message