Modification so permissions settings work in minutes, not hours. Roughly tested, it seems to work. I found a value that seemed to relate to the number of seconds per hour (3,600); I changed that, edited the permission to read "5" (as in minutes), and the test thread I made would put not merge posts after five minutes had elapsed.
@JoyFreak
Open src/addons/KL/AutoMergeDoublePost/MergeTime.php .
Find: return $minTime * 3600;
Replace with: return $minTime * 60;
Find: return $mergeTime * 3600;
Replace with: return $mergeTime * 60;
Save file.
In the admin control panel, go to Phrases. Find the phrase permission.forum_klAMDPMergeTime.
Phrase text: "Merge double posts within X hours"
Replace with: "Time limit to merge double posts (minutes)"
Save and exit.
Return to your permissions settings, and set it to the number of minutes you would like for your merged post time limit.
Done! Note that file health check might throw a warning for the edited file.
Here is one way to put space between the merged posts, until it is fixed by the developer.
@puterfixer @upnet
In the options for the add-on, leave "Include merge message" enabled. Do not disable it.*
Open the extra.less template. Add the following:
CSS:
.kl_amdp_merge_message {[/INDENT]
[INDENT] border: none;[/INDENT]
[INDENT] display: none;[/INDENT]
[INDENT] margin: 0;[/INDENT]
[INDENT] padding: 0;[/INDENT]
[INDENT]}
* It seems that when the merge message is enabled, it inserts a line break before the merged posts. You can also use visibility: hidden; in place of display: none: which will make it appear as though there are two lines between the merged posts. (One of those "lines" is the hidden merge message, the other is the line break.)
As always, use at your own risk, and this code is unsupported and without any guarantees for suitability or fitness to the application.