I wouldn't assume those are the two reasons why someone would want to use this add-on. I'm not trying to prevent users from bumping threads, as I have zero problems on my forum with this. I also don't see how this add-on educates anyone about editing if it just automerges it for them. If anything, that encourages them not to edit their post, knowing it's going to get merged for them. If you wanted to really solve those two problems with an add-on, you should just have an add-on that when you post in reply to your own post simply throws up a message saying "You are replying to your own post. Please edit your previous post instead." This would have all that stated objectives including educating the user (they aren't able to post, so figure this out real quick), and would prevent bumping. My purpose for using this add-on would be neither of those objectives. It's simply to tidy up the thread unobtrusively, which means 1) not modifying the content by inserting a bbcode which a users who goes back and edits their post will have no idea how it got there or what it's purpose is, and 2) not swallowing alerts since the the user was just blissfully unaware of the fact they posted two posts and shouldn't be punished by not having others see the alert to their post. I would suggest simply having an option of "allow alerts on post" and implement this by inverting the merge target (merge older post with newer).The point of this add-on is to educate users to use the edit functionality rather than posting every new addition as a new post. It also is there to prevent users from pushing threads to the top of the list by adding new posts. By merging the new post into the old one, we achieve exactly this wanted behavior. We merge, because we do not want new notifications. After all, we do not want them, when a user edits his post, either. I've build in a notification for the user that his message was merged into his old one for the next version, but that's as much notifications as there will be.
I understand you can hide it, but I don't want to modify the content, so if a user edits their post they won't be confused about where this bbcode came from and what it does. I also wouldn't want it there in case I uninstall the add-on. A good add-on should be able to be uninstalled and not leave anything behind that needs cleaned up. I appreciate all the benefit of having the bbcode, so I would simply suggest an option to disable inserting it altogether. It would be a simple checkbox option and a simple if statement in your code.Style Properties -> [KL] Auto Merge Double Post -> Extra -> Insert:
Then the merge message will be gone. There's also a ton of handy styling properties in place.CSS:display: none;
The content of the message can be edited in phrases. The name of the phrase iskl_amdp_merge_message
.