Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: M-DVD on December 03, 2008, 10:18:25 AM

Title: Auto Merge Double Post
Post by: M-DVD on December 03, 2008, 10:18:25 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1523)

MOD Auto Merge Double Post v1.3
=======================






  • Author:
M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
  • Version:
1.3
  • Release:
21th November 2008
  • Languages:
(https://www.simplemachines.org/site_images/lang/english.gif) (https://www.simplemachines.org/site_images/lang/english_british.gif) (https://www.simplemachines.org/site_images/lang/spanish.gif) (https://www.simplemachines.org/site_images/lang/spanish_latin.gif) (https://www.simplemachines.org/site_images/lang/greek.gif) (https://www.simplemachines.org/site_images/lang/croatian.gif)
(https://www.simplemachines.org/site_images/lang/russian.gif) (https://www.simplemachines.org/site_images/lang/turkish.gif) (https://www.simplemachines.org/site_images/lang/polish.gif) (https://www.simplemachines.org/site_images/lang/portuguese_brazilian.gif) (https://www.simplemachines.org/site_images/lang/romanian.gif) (https://www.simplemachines.org/site_images/lang/portuguese_pt.gif)
(https://www.simplemachines.org/site_images/lang/french.gif) (https://www.simplemachines.org/site_images/lang/ukrainian.gif) (https://www.simplemachines.org/site_images/lang/serbian_latin.gif) (https://www.simplemachines.org/site_images/lang/serbian_cyrillic.gif) (https://www.simplemachines.org/site_images/lang/german.gif) (https://www.simplemachines.org/site_images/lang/dutch.gif)
(https://www.simplemachines.org/site_images/lang/finnish.gif)
  • Compatible With:
SMF 1.1.1 - 1.1.X
SMF 2 RC1-X




(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif)(https://www.simplemachines.org/community/Themes/smsite/images/star.gif) (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=1523)
Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=278227.0)
(https://www.simplemachines.org/site_images/modtitlebar.png)(https://www.simplemachines.org/site_images/modtitlebar.png)(https://www.simplemachines.org/site_images/modtitlebar.png) (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
(https://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(https://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(https://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif) (http://custom.simplemachines.org/mods/index.php?mod=1523)
Images (http://custom.simplemachines.org/mods/index.php?mod=1523)
(https://www.paypal.com/en_GB/i/btn/btn_donate_SM.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)Help support my MODs (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)


  • ChangeLog (#post_changelog)
(https://www.simplemachines.org/community/Themes/smsite/images/buttons/reply.gif) (#post_changelog)

Features:














==========================





QuoteLanguages (normal & utf-8)

  • English by Nao 尚 (http://www.simplemachines.org/community/index.php?action=profile;u=13794), ccraciun (http://www.simplemachines.org/community/index.php?action=profile;u=178483), mark7144 (http://www.simplemachines.org/community/index.php?action=profile;u=34087)
  • English_British by Nao 尚 (http://www.simplemachines.org/community/index.php?action=profile;u=13794), ccraciun (http://www.simplemachines.org/community/index.php?action=profile;u=178483), mark7144 (http://www.simplemachines.org/community/index.php?action=profile;u=34087)
  • Spanish_Es
  • Spanish_Latin

  • Russian by netoya (http://www.simplemachines.org/community/index.php?action=profile;u=176631)
  • Greek by villasg (http://www.simplemachines.org/community/index.php?action=profile;u=157642)

  • Croatian by Aspera (http://www.simplemachines.org/community/index.php?action=profile;u=184926)
  • Turkish by Alpay (http://www.simplemachines.org/community/index.php?action=profile;u=39002)
  • Polish by saneone (http://www.simplemachines.org/community/index.php?action=profile;u=157465)
  • Portuguese_Brazilian by theo2f (http://www.simplemachines.org/community/index.php?action=profile;u=68495)
  • Romanian by Relyana (http://www.simplemachines.org/community/index.php?action=profile;u=114887)
  • Portuguese_Portugal by AlaStar (http://www.simplemachines.org/community/index.php?action=profile;u=173793)
  • French by Nao 尚 (http://www.simplemachines.org/community/index.php?action=profile;u=13794)
  • Ukrainian by ZeUsSaN (http://www.simplemachines.org/community/index.php?action=profile;u=135774)
  • Serbian_cyrillic by LOVELORD (http://www.simplemachines.org/community/index.php?action=profile;u=156806)
  • Serbian_latin by LOVELORD (http://www.simplemachines.org/community/index.php?action=profile;u=156806)
  • German by CvH (http://www.simplemachines.org/community/index.php?action=profile;u=144735)
  • Dutch by autogespot.com (http://www.simplemachines.org/community/index.php?action=profile;u=17428)
  • Finnish by Owdy (http://www.simplemachines.org/community/index.php?action=profile;u=272)
   
QuoteLeyend
  • Included in MOD package
  • Included in language_full.zip
  • Translation incomplete

Quote
$txt['permissionname_doublePost'] = 'Allow Double Posts';
$txt['permissionhelp_doublePost'] = 'By Enabling this will allow them to double post.';
$txt['AutoMergePost_div'] = 'Add text when merging posts
<div class="smalltext">You can use BBCode and the $date variable</div>';
$txt['AutoMergePost_time'] = 'Time to allow the Double Post and Bump the Topic
<div class="smalltext">Set time in days. Set 9999 days for never allow</div>';
$txt['AutoMergePost_4all'] = 'Ignore Double Post Permission
<div class="smalltext">Always Merge Double Posts, even for administrators</div>';

$txt['merge_button'] = 'Merge Posts';
$txt['AutoMergePost_auto'] = 'Enable Auto Merge Doble Posts';
$txt['AutoMergePost_manual'] = 'Enable Manual Merge Doble Posts';
$txt['AutoMergePost_nomax'] = 'Ignore maximum post size';
$txt['AutoMergePost_reason'] = 'Merged DoublePost';

$txt['permissionname_doublePostmerge'] = 'Allow manual merge double posts';
$txt['permissionhelp_doublePostmerge'] = 'This permission allows users to merge double posts.';
$txt['permissionname_doublePostmerge_own'] = 'Own double posts';
$txt['permissionname_doublePostmerge_any'] = 'Any double posts';
$txt['cannot_merged_replies'] = 'You are not, allowed to merge this posts.';
$txt['modlog_ac_merged'] = 'Merged &quot;{message}&quot; by &quot;{member}&quot;';

$txt['manageposts_automerge_settings'] = 'Merge Double Posts';
$txt['manageposts_automerge_settings_description'] = 'Here you can set all settings involving auto &
manual merge doubles posts.';

I welcome new translations here (http://www.simplemachines.org/community/index.php?action=post;topic=278227.0)

==========================

Características:














Fin.

==========================

ChangeLog:




QuoteVersion 1.0 (http://www.simplemachines.org/community/index.php?topic=278227.msg1825294#msg1825294) - 21th November 2008
   o Initial release
   o Automatically Merge the Double Post and avoid SPAM FLOOD
   o Available permission for allow the Double Post by groups
   o You can set a text of division (allowed $date var)
   o You can set the time to allow the Double Post again
   o The attachments are also merge
   o Compatible with SMF 1.1.X & SMF 2b-RC
Version 1.1 (http://www.simplemachines.org/community/index.php?topic=278227.msg1834171#msg1834171) - 09th Diciembre 2008
   !  Fixed bug with Subject without slashes and errors in Log
   !  Fixed bug when the Post Merge exceced limit characters
   ?  Unistall & Update. Isn't neccesary reedit templates files
Version 1.2 (http://www.simplemachines.org/community/index.php?topic=278227.msg1845115#msg1845115) - 19th Diciembre 2008
   * Settings Moved to: Admin > Posts and Topics > Post Settings
   * Now the Date in Text Merge is according to your local time
   + You can enable 'Ignore' the Double Post Permissions
   !  Fixed bug with Icon "New" in Merge Post
   ?  Unistall & Update. Isn't neccesary reedit templates files
Version 1.3 (http://www.simplemachines.org/community/index.php?topic=278227.msg2279579#msg2279579) - 22th September 2009
   + Now is available the Manual Merge
   + You can enable/disable the auto merge or manual merge
   + You can set permissions for merge double posts own or any
   + You can enable ignore the max lenght in post when try merge
   + The manual merge is logged in the Moderation Action Log
   + Extra: Compatible with Ajax Quick Reply (http://custom.simplemachines.org/mods/index.php?mod=1214)
   + Extra: Compatible with Reason For Editing Mod (http://custom.simplemachines.org/mods/index.php?mod=349)
   * Settings Moved to: Admin > Posts and Topics > Merge Double Posts
   !  Itwork still if the member not have edit's posts permission
   !  Is ignored the 'Maximum time after posting to allow edit'
   !  Extra: fixed bug in Time BBCode
   * Many changes in languages's files.
   ?  Unistall & Update. You should edit the Display.template.php

QuoteLeyend

oFeature
*Change
+Added
-Eliminated
!Bug Fixed
?How to Update
Title: Re: Auto Merge Double Post
Post by: villasg on December 03, 2008, 10:40:00 AM
Thanks work very good
greek-utf8

$txt['permissionname_doublePost'] = 'Επιτρέπετε το ΔιπλοΠοστάρισμα';
$txt['permissionhelp_doublePost'] = 'Με αυτή την επιλογή επιτρέπετε σε αυτο το group το ΔιπλοΠοστάρισμα.';
$txt['AutoMergePost_div'] = 'Πρόσθεσε ένα κείμενο όταν ενώνονται τα ποστ';
$txt['AutoMergePost_div_sub'] = 'Μπορείς να χρησιμοποιήσεις BBC  κώδικα και $date variable';
$txt['AutoMergePost_time'] = 'Χρονος που μετα την παρέλευση του θα επιτρέπετε το ΔιπλοΠοστάρισμα στο the topic';
$txt['AutoMergePost_time_sub'] = 'Με  0 απενεργοποιειται το MOD και με 9999 δεν επιτρεπει ποτε το to ΔιπλοΠοστάρισμα';

Title: Re: Auto Merge Double Post
Post by: villasg on December 03, 2008, 11:09:18 AM
Have errors
Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxxx/xxx/xxxx/Sources/Load.php(1749) : eval()'d code on line 32

1749 = $file_found = file_exists($filename) && eval('?' . '>' . rtrim(file_get_contents($filename))) !== false;
Title: Re: Auto Merge Double Post
Post by: jossanaijr on December 03, 2008, 11:25:46 AM
Great!

But 3 questions / ideas:

#1 It seems to me that it does not work for admin, right?  I tested logged as admin and it did not work.  So I tested with another login and it worked.

#2 It would be great if it has the option to ignore/delete the second, third ... posts besides only merge (or it could be another mod);

#3 Also it would be great if it could merge post based in title & author.   So if one post with title "Hi, how are you?" posted twice or more by author "A" the option to merge and/or delete the duplicities!

Title: Re: Auto Merge Double Post
Post by: 4Kstore on December 03, 2008, 01:17:34 PM
Nice mod, its perfect for me...!!!

Thanks ..
Title: Re: Auto Merge Double Post
Post by: matasanos on December 03, 2008, 02:55:38 PM
really cool

but this mod cmbinated with ajax reply ..dont work well
unless you refresh the page..you see another post with both merged..but not in the same...in a new one reply
Title: Re: Auto Merge Double Post
Post by: jossanaijr on December 03, 2008, 02:57:15 PM
Quote from: matasanos on December 03, 2008, 02:55:38 PM
really cool

but this mod cmbinated with ajax reply ..dont work well
unless you refresh the page..you see another post with both merged..but not in the same...in a new one reply
Yes, it happened to me too but when reload the page it is fixed.
Title: Re: Auto Merge Double Post
Post by: RIGILKENTARUS on December 03, 2008, 05:55:32 PM
INSERT IGNORE INTO
{$db_prefix}settings
(variable, value)
VALUES ('AutoMergePost_div','[hr][size=1][color=red][b]Post Merge: \$date[/b][/color][/size][hr]'),
('AutoMergePost_time


At the end of this SQL query is no quotation marks (sorry but i dont know if that word is right :D im chilean)
('AutoMergePost_time????

Do you get it? I use 1.1.7
Title: Re: Auto Merge Double Post
Post by: pinoypetfinder on December 04, 2008, 12:10:33 AM
FANTASTIC! will download and install it! thank you! :)
Title: Re: Auto Merge Double Post
Post by: Sakae on December 04, 2008, 12:32:05 AM
Awesome. Installed, but haven't tested yet.
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 04, 2008, 02:54:41 PM
Is there any chance to make when two posts are being merged to show on new posts list?

I hope you understand what I want.

Title: Re: Auto Merge Double Post
Post by: M-DVD on December 04, 2008, 08:29:38 PM
Quote from: villasg on December 03, 2008, 10:40:00 AM
Thanks work very good
greek-utf8

Thank  you. Soon upload the language.

--

Quote from: villasg on December 03, 2008, 11:09:18 AM
Have errors
Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxxx/xxx/xxxx/Sources/Load.php(1749) : eval()'d code on line 32

1749 = $file_found = file_exists($filename) && eval('?' . '>' . rtrim(file_get_contents($filename))) !== false;

Are you sure that these errors are due to the MOD?

1.- I have used in SMF 1.1.4, 1.1.7 and SMF 2.0 b4 and I get no error.

2.- I see no relationship between the MOD code and it log errors.

If you want, you can attach the file Load.php.

--

Quote from: jossanaijr on December 03, 2008, 11:25:46 AM
Great!

But 3 questions / ideas:

#1 It seems to me that it does not work for admin, right?  I tested logged as admin and it did not work.  So I tested with another login and it worked.

#2 It would be great if it has the option to ignore/delete the second, third ... posts besides only merge (or it could be another mod);

#3 Also it would be great if it could merge post based in title & author.   So if one post with title "Hi, how are you?" posted twice or more by author "A" the option to merge and/or delete the duplicities!

1.- Correctly. You assign permissions to Membergroup that can do Double Post.

The administrator can, per definition, do anything and see any board. There are no permission settings for the administrator.

If you like Merge for all Membergroup, then:

Search:
if (allowedTo('doublePost') || isset($_REQUEST['msg']))

Replace:
if (isset($_REQUEST['msg']))

2.- Sorry, but not understand. Could you put a image that shows what you want?

3.- Great, complex and would be another MOD XD.

If they are "Post duplicities" in several topics, then it isn't Double Post.

Auto Merge Doble Post

If they are "Post duplicities" in different topics, then... do the merge? ... i think not
Auto Merge Doble Post

Conclusion: is other mod.

Thank you for ideas.

--

Quote from: 4kstore on December 03, 2008, 01:17:34 PM
Nice mod, its perfect for me...!!!

Thanks ..

Thank for your comments.

--

Quote from: matasanos on December 03, 2008, 02:55:38 PM
really cool

but this mod cmbinated with ajax reply ..dont work well
unless you refresh the page..you see another post with both merged..but not in the same...in a new one reply

Correct answer:

Quote from: jossanaijr on December 03, 2008, 02:57:15 PM
Yes, it happened to me too but when reload the page it is fixed.

And If you like correct this, then you should edit Ajax Quick Reply.

--

Quote from: RIGILKENTARUS on December 03, 2008, 05:55:32 PM
INSERT IGNORE INTO
{$db_prefix}settings
(variable, value)
VALUES ('AutoMergePost_div','[hr][size=1][color=red][b]Post Merge: \$date[/b][/color][/size][hr]'),
('AutoMergePost_time


At the end of this SQL query is no quotation marks (sorry but i dont know if that word is right :D im chilean)
('AutoMergePost_time????

Do you get it? I use 1.1.7

You should download and install the package.

The package parse doesn't show entire php files.

--

Quote from: pinoypetfinder on December 04, 2008, 12:10:33 AM
FANTASTIC! will download and install it! thank you! :)

Quote from: softcore on December 04, 2008, 12:32:05 AM
Awesome. Installed, but haven't tested yet.

Thanks for use this MOD.

--

Quote from: AlenNS on December 04, 2008, 02:54:41 PM
Is there any chance to make when two posts are being merged to show on new posts list?

I hope you understand what I want.

Merge Post are a new topics?  :-\
Title: Re: Auto Merge Double Post
Post by: Aspera on December 04, 2008, 09:16:34 PM
croatian:

$txt['permissionname_doublePost'] = 'Dozvoliti dupli post';
$txt['permissionhelp_doublePost'] = 'Uključujući ovo dozvoljavate dupli post.';
$txt['AutoMergePost_div'] = 'Dodati tekst prilikom spajanja postova';
$txt['AutoMergePost_div_sub'] = 'Možete koristiti BBC i $date variable';
$txt['AutoMergePost_time'] = 'Vrijeme nakon kojeg se postovi neće automatski spajati';
$txt['AutoMergePost_time_sub'] = '0 za isključivanje MOD-a i 9999 za spajanje postova u svakom vremenskom razdoblju';


thanks!!
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 04, 2008, 09:45:08 PM
QuoteMerge Post are a new topics?
When your mod merge two posts there is no new post link anywhere and when some member write something after himslef there is no sign of new post, no link, no picture, nothing.

I hope that you understand what I want to say.

I had to uninstall your mod untill there is better solution for that. :-[
Title: Re: Auto Merge Double Post
Post by: villasg on December 05, 2008, 07:21:42 AM
Quote from: M-DVD on December 04, 2008, 08:29:38 PM
Are you sure that these errors are due to the MOD?

1.- I have used in SMF 1.1.4, 1.1.7 and SMF 2.0 b4 and I get no error.

2.- I see no relationship between the MOD code and it log errors.

If you want, you can attach the file Load.php.

--


Hi this is the error that i have after mod install.
The Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxxx/xxx/xxxx/Sources/Load.php(1749) : eval()'d code on line 32

shows in the first line of my site
After of this line start my site correctly
have this error after mod install .
I upload the file the sunday because i am aout of my base now
Title: Re: Auto Merge Double Post
Post by: netoya on December 05, 2008, 10:33:06 AM
realy greate mod, but I can't run the update script, maualy added settings in datebase
Here is russian:
$txt['permissionname_doublePost'] = 'Разрешить отправлять двойные посты';
$txt['permissionhelp_doublePost'] = 'Включая, Вы разрешаете отправку двойных постов.';
$txt['AutoMergePost_div'] = 'Добавлять текст при слиянии сообщений';
$txt['AutoMergePost_div_sub'] = 'Вы можете использовать BB код и переменную $date';
$txt['AutoMergePost_time'] = 'Время, после которого сообщения не будут склеиваться';
$txt['AutoMergePost_time_sub'] = 'Время до которого происходит слияние сообщений. Установите 0, чтобы выключить мод, 9999 чтобы склеивалось всегда, не поднимая тему';
Title: Re: Auto Merge Double Post
Post by: Alpay on December 05, 2008, 03:12:15 PM
Very good mod. Thanks M-DVD .
Title: Re: Auto Merge Double Post
Post by: EgAr on December 05, 2008, 09:24:05 PM
Exelente  ;)
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 05, 2008, 10:18:30 PM
Quote from: AlenNS on December 04, 2008, 09:45:08 PM
QuoteMerge Post are a new topics?
When your mod merge two posts there is no new post link anywhere and when some member write something after himslef there is no sign of new post, no link, no picture, nothing.

I hope that you understand what I want to say.

I had to uninstall your mod untill there is better solution for that. :-[
Title: Re: Auto Merge Double Post
Post by: netoya on December 06, 2008, 03:16:00 AM
Is it a bug?
My time zone is +3
And user has -3
So, if his post is merged: i see the correct post date, but the added text time is -3.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 06, 2008, 09:51:42 AM
Quote from: Aspera on December 04, 2008, 09:16:34 PM
croatian:

$txt['permissionname_doublePost'] = 'Dozvoliti dupli post';
$txt['permissionhelp_doublePost'] = 'Uključujući ovo dozvoljavate dupli post.';
$txt['AutoMergePost_div'] = 'Dodati tekst prilikom spajanja postova';
$txt['AutoMergePost_div_sub'] = 'Možete koristiti BBC i $date variable';
$txt['AutoMergePost_time'] = 'Vrijeme nakon kojeg se postovi neće automatski spajati';
$txt['AutoMergePost_time_sub'] = '0 za isključivanje MOD-a i 9999 za spajanje postova u svakom vremenskom razdoblju';


thanks!!

Quote from: netoya on December 05, 2008, 10:33:06 AM
realy greate mod, but I can't run the update script, maualy added settings in datebase
Here is russian:
$txt['permissionname_doublePost'] = 'Разрешить отправлять двойные посты';
$txt['permissionhelp_doublePost'] = 'Включая, Вы разрешаете отправку двойных постов.';
$txt['AutoMergePost_div'] = 'Добавлять текст при слиянии сообщений';
$txt['AutoMergePost_div_sub'] = 'Вы можете использовать BB код и переменную $date';
$txt['AutoMergePost_time'] = 'Время, после которого сообщения не будут склеиваться';
$txt['AutoMergePost_time_sub'] = 'Время до которого происходит слияние сообщений. Установите 0, чтобы выключить мод, 9999 чтобы склеивалось всегда, не поднимая тему';


Oh, Thanks you, Soon update (tomorrow).  :D

Quote from: AlenNS on December 04, 2008, 09:45:08 PM
QuoteMerge Post are a new topics?
When your mod merge two posts there is no new post link anywhere and when some member write something after himslef there is no sign of new post, no link, no picture, nothing.

I hope that you understand what I want to say.

I had to uninstall your mod untill there is better solution for that. :-[

Ok, now i understand.

Yes, you're right. (And Good Idea)

I thought, it would be good (that the Forum) when be changed the last message of the topics, place a 'notice' to all members who have already seen the topic.

It's good, whether it is used or not used this MOD.

I can do.

--

The Rule Forum: "No double post, edit your messages"

This MOD "not merge post", "not create new post and delete last post", etc, etc.

This MOD Edit Last Post. It is simple and effective.

When the flooder, post a new reply, the MOD change the Request and now the Flooder Modify his Post XD LOL

If no sign of new post, no link, no picture, nothing, it's because when editing the last post, there are no signs of any kind, regardless of the situation as it is, with MOD or without MOD.

It would be a good feature in the Forum.

Quote from: villasg on December 05, 2008, 07:21:42 AM
Hi this is the error that i have after mod install.
The Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxxx/xxx/xxxx/Sources/Load.php(1749) : eval()'d code on line 32

shows in the first line of my site
After of this line start my site correctly
have this error after mod install .
I upload the file the sunday because i am aout of my base now


Ok, i wait.

But i have used in SMF 1.1.4, 1.1.7 and SMF 2.0 b4 and I get no error.

And Also I see no relationship between the MOD code and it new log errors.

Perhaps the cause of this new error, is the same as the previous ones.

Quote from: netoya on December 06, 2008, 03:16:00 AM
Is it a bug?
My time zone is +3
And user has -3
So, if his post is merged: i see the correct post date, but the added text time is -3.

bug?  :-\  you can call it that.

I would say. "Bug" -> Yes, Problem -> Not.

The date in "Merge Text", isn't timestamp, is Text. This text is create (with the timestamp) when the user Doble Post with his time zone.

Quote from: Alpay on December 05, 2008, 03:12:15 PM
Very good mod. Thanks M-DVD .

Quote from: EgAr on December 05, 2008, 09:24:05 PM
Exelente  ;)

Thanks for yours comments.  :D
Title: Re: Auto Merge Double Post
Post by: villasg on December 06, 2008, 09:54:13 AM
Install again and work perfect ....
Thanks
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 06, 2008, 09:59:06 AM
Quote from: villasg on December 06, 2008, 09:54:13 AM
Install again and work perfect ....
Thanks

Oh, Perfect Thanks :D
Title: Re: Auto Merge Double Post
Post by: Alpay on December 07, 2008, 05:26:10 AM
Translate =) Turkish..

Modifications.turkish.php
Quote
//   MOD Auto Merge Double Post
$txt['permissionname_doublePost'] = 'Flood Mesajı Aktif Et';
$txt['permissionhelp_doublePost'] = 'Flood Mesajları engellemek icin izin butonu.';
$txt['AutoMergePost_div'] = 'Flood mesajları ne kadar sürede birleştirilsin?';
$txt['AutoMergePost_div_sub'] = 'Mesaj da başlık ve $date görünümü ayarlama';
$txt['AutoMergePost_time'] = 'Flood mesajın birleştirilme süresi';
$txt['AutoMergePost_time_sub'] = 'Eğer 0 yaparsanız zamanı hiç bir zaman birleştirilmez ancak 9999 yaparsanız her zaman birleştirilir.';
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 07, 2008, 06:46:32 AM
M-DVD Thanks for the attention. I'm glad that you like my idea. I'll wait for this change because this mod is great.

:)
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 07, 2008, 02:30:20 PM
villasg (http://www.simplemachines.org/community/index.php?action=profile;u=157642), Aspera (http://www.simplemachines.org/community/index.php?action=profile;u=184926), netoya (http://www.simplemachines.org/community/index.php?action=profile;u=176631), Alpay (http://www.simplemachines.org/community/index.php?action=profile;u=39002) Thanks for yours Translations.

I question if I've done good conversion, because in my text editor I had two problems.

1.- When I save texts with my editor, the characters are transformed to  ----> ???????

I applied a script and made a conversion, but is correct? I can not tell if it is good, because I get (see) characters senseless. Example: Î?ιÏ?λο. (In Greek and Russian languages).

2 .- I made the conversion to UTF-8 and also wanted to know whether it was correct.

Could you review both?

When they are revised, put it in the Custom Zone Download.
Title: Re: Auto Merge Double Post
Post by: villasg on December 07, 2008, 02:54:58 PM
I make the update
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 07, 2008, 03:07:29 PM
Quote from: villasg on December 07, 2008, 02:54:58 PM
I make the update


Thanks.

I have problems with the text editor.

If I copy.

$txt['permissionname_doublePost'] = 'Επιτρέπετε το ΔιπλοΠοστάρισμα';

Paste.  >:(

$txt['permissionname_doublePost'] = '?p?t??pete t? ??p????st???sµa';

Then I made a conversion with a script, very wrong :P
Title: Re: Auto Merge Double Post
Post by: villasg on December 07, 2008, 03:10:18 PM
I dont know
I use notepad ++
Title: Re: Auto Merge Double Post
Post by: netoya on December 08, 2008, 05:28:00 AM
I have errors in forum log, it is a global moderator using Opera browser, others dont have such a problem.
Quote
Hacking attempt...

UPDATE smf_messages
SET posterName = 'Uschka', posterEmail = '[email protected]', icon = 'xx', subject = 'Re: АвтоСкандинавия'2008 - Клубные поездки в ФИНЛЯНДИЮ.', body = 'А вот мои планы насчет коттеджа с Корса-клубом похоже меняются. Не удается уговорить +1 на поездку  :-\ А одна я не поеду...  :'(
В общем, скорее всего получится, что без меня...  :'(
Добавлено: 07 декабря 2008, 20:16:18
Quote from: Maximus on December 07, 2008, 10:31:06 AM
В Дьютиках - просто давка!!!! Никогда такого не видел!! В магазин очередь на улице!! Пускают человек по 20-25 и закрывают на 15 минут, пока все не пройдут через кассы, затем новых людей запускают! Жесть  :D
Это еще что!.. В январе в дютиках нас ждут пустые полки...  :\'( Причем опустошение просиходит каждый год и почему сразу не сделать стратегический запас, который мы не сможем растащить - мне лично не понятно  :-\\... ', modifiedTime = 1228670178, modifiedName = 'Uschka', ID_MSG_MODIFIED = 280740, smileysEnabled = 1
WHERE ID_MSG = 280717
LIMIT 1
Файл: /html/forum/Sources/Subs-Post.php
Строка: 1898

and other regular user, but in same file
QuoteОшибка базы данных: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2008 - Клубные поездки в ФИНЛЯНДИЮ.', body = 'Maximus, КорсаСоня в суббот' at line 2
Файл: /html/forum/Sources/Subs-Post.php
Строка: 1898

Subs-Post.php
1893 // Change the post.
1894 db_query("
1895 UPDATE {$db_prefix}messages
1896 SET " . implode(', ', $messages_columns) . "
1897 WHERE ID_MSG = $msgOptions[id]
1898 LIMIT 1", __FILE__, __LINE__);

// Lock and or sticky the post.
Title: Re: Auto Merge Double Post
Post by: saneone on December 08, 2008, 05:30:53 AM
Polish translation:

//Double post merger
$txt['permissionname_doublePost'] = 'Pozwól na podwójny post';
$txt['permissionhelp_doublePost'] = 'Przez włączenie tego, pozwolisz na podwójne posty';
$txt['AutoMergePost_div'] = 'Dodaj tekst po połączeniu postów';
$txt['AutoMergePost_div_sub'] = 'Możesz używać tagów BBC i zmiennej $date';
$txt['AutoMergePost_time'] = 'Czas, po którym pozwoli userom na podbicie wątku';
$txt['AutoMergePost_time_sub'] = 'Ustaw 0, by modyfikacja była nieaktywna i 9999 by nigdy nie pozwolić na podbijanie wątków';
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 08, 2008, 11:23:49 AM
Quote from: villasg on December 07, 2008, 03:10:18 PM
I dont know
I use notepad ++

Yes, me too  :'(.  (is good text editor :D)

Quote from: netoya on December 08, 2008, 05:28:00 AM
I have errors in forum log, it is a global moderator using Opera browser, others dont have such a problem.

Error 1: Found, thank for report.
Error 2: Found. thank for report.
Error 2: Not found. You have asked your users they were doing at that time?

Sorry, bugs fix, soon update :)

--

Thanks to these tests, I found a small bug (other :P), which will soon corrected in v1.1. Wait for it to resolve this mystery it out (Error 2)  :-\

Quote from: saneone on December 08, 2008, 05:30:53 AM
Polish translation:

//Double post merger
$txt['permissionname_doublePost'] = 'Pozwól na podwójny post';
$txt['permissionhelp_doublePost'] = 'Przez włączenie tego, pozwolisz na podwójne posty';
$txt['AutoMergePost_div'] = 'Dodaj tekst po połączeniu postów';
$txt['AutoMergePost_div_sub'] = 'Możesz używać tagów BBC i zmiennej $date';
$txt['AutoMergePost_time'] = 'Czas, po którym pozwoli userom na podbicie wątku';
$txt['AutoMergePost_time_sub'] = 'Ustaw 0, by modyfikacja była nieaktywna i 9999 by nigdy nie pozwolić na podbijanie wątków';

Thank for Translate  :D
Title: Re: Auto Merge Double Post
Post by: netoya on December 08, 2008, 11:36:16 AM
QuoteError 2: Not found. You have asked your users they were doing at that time?
No, I was just viewing the errors log. I hope too that fix will solve both problems.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 09, 2008, 08:57:57 PM
Update Auto Merge Double Post v1.1:
=========================


New features:

How do I upgrade?

=======================================

Características Nuevas:

¿Como actualizar?
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 09, 2008, 09:19:51 PM
No update for New post notification?
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 10, 2008, 09:05:45 AM
No, not yet. The bug above, should be resolved urgently.

For the report and notification, I should investigate more, besides, I think it should be an independent feature, whether it is used or not used this MOD.
Title: Re: Auto Merge Double Post
Post by: villasg on December 10, 2008, 09:18:44 AM
I am up to date ......
Thanks
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 10, 2008, 09:50:43 AM
Quote from: M-DVD on December 10, 2008, 09:05:45 AM
No, not yet. The bug above, should be resolved urgently.

For the report and notification, I should investigate more, besides, I think it should be an independent feature, whether it is used or not used this MOD.
To bad. :(
Great mod but I can't use it like this. My members complained for this bug.
Title: Re: Auto Merge Double Post
Post by: taha116 on December 10, 2008, 07:42:53 PM
Really great Mod bu has alot of bugs, please PM me when the general BUGs are  solved i really want it (I am using a the last version and dont want to keep updating)
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 10, 2008, 08:12:08 PM
Quote from: AlenNS on December 10, 2008, 09:50:43 AM
To bad. :(
Great mod but I can't use it like this. My members complained for this bug.

Hi.

That "bug" is not "bug". And if it were, then it would not be of this MOD.

Imagine:
1 .- You do not have installed this MOD.
2 .- A member changes the latest message in a topic, and add any text. (which is how it should happen, and not Flood).
3 .-  Will continue topic mark as topic read. Not display sign of new post or icon, nothing (whether it is used or not used this MOD).

So always happens in SMF. Then, no is bug of this MOD. Nor would it be a feature of this MOD; modify the last post, is something that always happens.

--

I made a code that fixes this, but I'm testing.

Quote from: taha116 on December 10, 2008, 07:42:53 PM
Really great Mod bu has alot of bugs, please PM me when the general BUGs are  solved i really want it (I am using a the last version and dont want to keep updating)

Thank.

has alot of bugs? general BUGs?

The two bugs already have been fixed in v1.1. (http://www.simplemachines.org/community/index.php?topic=278227.msg1834171#msg1834171)

You can download, install and use without bugs.
Title: Re: Auto Merge Double Post
Post by: taha116 on December 10, 2008, 08:32:50 PM
Oh ok, how do i upgrade? Uninstall old version and install newer one? Or is there another way i should do it?
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 10, 2008, 08:44:22 PM
Yes

Quick and Easy.

:)
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 11, 2008, 11:08:56 AM
Quote from: M-DVD on December 10, 2008, 08:12:08 PM
Quote from: AlenNS on December 10, 2008, 09:50:43 AM
To bad. :(
Great mod but I can't use it like this. My members complained for this bug.

Hi.

That "bug" is not "bug". And if it were, then it would not be of this MOD.

Imagine:
1 .- You do not have installed this MOD.
2 .- A member changes the latest message in a topic, and add any text. (which is how it should happen, and not Flood).
3 .-  Will continue topic mark as topic read. Not display sign of new post or icon, nothing (whether it is used or not used this MOD).

So always happens in SMF. Then, no is bug of this MOD. Nor would it be a feature of this MOD; modify the last post, is something that always happens.

--

I made a code that fixes this, but I'm testing.
But, without mod, when someone edit their own message "new" button shows like there is a new message, in message index.
If you could make a code that would be great! :)
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 14, 2008, 04:00:46 AM
M-DVD,

This is the last PM I sent you on November 29. It went unanswered, and I didn't think of looking for news about your mod.
I don't know why you weren't interested in merging both our mods, which seems only logical, considering the point of the mods themselves.
Therefore -- I'm asking again, and re-sending the PM below.

Quote from: M-DVD on November 29, 2008, 01:05:33 PM
Oh, you're winning.
It's not a game ;)
And it's not my mod. Although Din1031 seems to think it is.

QuoteI admit that he had not noticed that "Double Post Merge" also Merge automatically, only manually with buttom.
It's a cool button. Ah, no--it's not a cool button. My custom cool button is cool. Cool. I took the Split button and I inverted the arrows and colored it to yellow ;) That's cool. No, it's not that cool.

QuoteTaking into account the above:

1.- My MOD, Merge DoublePost automatically; and the other MOD, Merge DoublePost with a button in the Display.template. And the user chose what would most like.

2.- Moreover (and very important), that MOD was apparently "Not Avaible any more / not active development". And my MOD (a MOD with 'different function' and method) was going to take development.
Yes. I was thinking, if Din is still not willing to take over, since he pretty much "gave me" the MDP mod, maybe we could work on it together? (Not RIGHT NOW, though... I'm busy working on Aevac!! ;))

QuoteAfter your clarification:

1.- I can only say that my MOD is much lighter, and much more compatible with the code already has the Forum.

(does not seem sufficient)  :-[
Which is why I PMed you :) I figured it would be too bad to waste your time on a mod, and we should team up on improving it or something!
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 14, 2008, 12:14:53 PM
Quote from: AlenNS on December 11, 2008, 11:08:56 AM
But, without mod, when someone edit their own message "new" button shows like there is a new message, in message index.
If you could make a code that would be great! :)

PM Sent.

Quote from: Nao 尚 on December 14, 2008, 04:00:46 AM
M-DVD,

This is the last PM I sent you on November 29. It went unanswered, and I didn't think of looking for news about your mod.
I don't know why you weren't interested in merging both our mods, which seems only logical, considering the point of the mods themselves.
Therefore -- I'm asking again, and re-sending the PM below.

Forgive me for not responding. I now "I'm away" for personal reasons, and even I got over 200 notifications of this Forum.

I have only filtered those related to the support of the mods.

Sorry for not responding.


Quote from: Nao 尚 on December 14, 2008, 04:00:46 AM
...
Yes. I was thinking, if Din is still not willing to take over, since he pretty much "gave me" the MDP mod, maybe we could work on it together? (Not RIGHT NOW, though... I'm busy working on Aevac!! ;))
...
Which is why I PMed you :) I figured it would be too bad to waste your time on a mod, and we should team up on improving it or something!

Oh, good idea, but, the MOD was already done, and "it was too not late to waste time on a mod."  :P

Moreover, the work was to be the same.

--

Why not work on improving the other?

Maybe this is an answer.

At that time there were no MOD to make this work.

Yes, this MOD (http://custom.simplemachines.org/mods/index.php?mod=149), but,  who has it in charge?.

Din1031 said

Quote from: ディン1031 on June 11, 2005, 04:54:02 PM
Not Avaible any more, it's free for everyone else to create a mod like this.

If I understood well, anyone can take it. Even so nobody takes it.

Me neither. I would not without their "Direct Permission".

Fortunately, I had a way of "doing the same job," a different, more efficient, more friendly to the Forum and also, own.

Therefore, I felt that I had no brakes for not doing my own work. I did not have to wait for a permission from someone else; or continue in the current state, in which no one took the MOD, the work of someone else.

That is why I did and I sent mine, instead of continuing tethered to the previous one.

:)

--

Congratulations, the Aevac MOD is very good. Good work.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 15, 2008, 10:31:41 AM
Quote from: M-DVD on December 14, 2008, 12:14:53 PM
Sorry for not responding.
No problem.

QuoteOh, good idea, but, the MOD was already done, and "it was too not late to waste time on a mod."  :P
Yeah, well, I have no problem with you using code from MDP to improve your own mod, rather than the other way around.
I don't want an extra mod to maintain. I already have enough work with two big ones :)
I just thought it would be too bad not to see this good code (both from Din and I) put to use.

QuoteYes, this MOD (http://custom.simplemachines.org/mods/index.php?mod=149), but,  who has it in charge?.
As I already said on the MDP topic:

- Din released the Merge Double-Posts mod, years ago
- I quickly became an addict
- I made a few more changes, month after month,
- One day I decided to "give back", and posted my SMF 2.0 version of MDP to a Charter Member topic, and also shared all of my code changes (translatable merge date, improved styling, debugging, etc.)
- Din apparently took this as a statement about how bad MDP was (while I was definitely a big fan), so he gave up on the mod, closed the mod page, and said I was the new owner.
- At that time (over a year ago), I was clearly not ready to work on a mod, and I didn't accept it. (I don't think I would have accepted either if I'd been able to take over, because I still think he should have asked me, instead of forcing me to take over.)
- So I gave up, and he gave up.
- A year later, I find out about your mod, and PM you about sharing my extra code.

So now it's up to you :)

QuoteCongratulations, the Aevac MOD is very good. Good work.
Thanks!
Oh, and it's Aeva, now ;)
Title: Re: Auto Merge Double Post
Post by: KameL on December 16, 2008, 03:26:39 AM
English text:
Mods, please don't delete this post, it's a bug report! I wrote it on spanish because my english is not good. The Mod owner speaks spanish, so, he can understand me. Thanks.




Spanish text:
Hola M-DVD! Excelente mod!

Te comento que encontré un error en los archivos de traducción, para ser mas específicos en los siguientes archivos:
-Modifications.spanish-utf8.php
-Modifications.spanish_es-utf8.php
-Modifications.spanish_latin-utf8.php

El error en cuestión es que en los archivos nombrados, figuran las siguientes variables: $txt['AutoMergePost_txt'] y $txt['AutoMergePost_txt_sub'] las cuales no se vuelcan en la vista del SMF, ya que los strings del mod llaman a las variables $txt['AutoMergePost_div'] y $txt['AutoMergePost_div_sub'].

Lamentablemente, hace poco comenzé con SMF y similares, así que pido disculpas si usé términos erroneos, pero creo que la base del mensaje se entiende.

Saludos y gracias por este mod.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 16, 2008, 09:40:13 AM
Quote from: Nao 尚 on December 15, 2008, 10:31:41 AM
Yeah, well, I have no problem with you using code from MDP to improve your own mod, rather than the other way around.
I don't want an extra mod to maintain. I already have enough work with two big ones :)
I just thought it would be too bad not to see this good code (both from Din and I) put to use.

Ok, and Thanks.

I wouldn't have use a code of others, without Permission Direct.

And if it is done, would give them their due credit.

If you want to do, we could talk best and more details.


Quote from: Nao 尚 on December 15, 2008, 10:31:41 AM
...
- I quickly became an addict
- I made a few more changes, month after month,
- One day I decided to "give back", and posted my SMF 2.0 version of MDP to a Charter Member topic, and also shared all of my code changes
...

I understand.

I also happened that. I've seen things and I thought I can improve, and then, share my changes.

Perhaps, this not be well "good interpreted".

Quote from: Nao 尚 on December 15, 2008, 10:31:41 AMSo now it's up to you

No problem, Thanks  :)


Quote from: KameL on December 16, 2008, 03:26:39 AM
English text:
Mods, please don't delete this post, it's a bug report! I wrote it on spanish because my english is not good. The Mod owner speaks spanish, so, he can understand me. Thanks.




Spanish text:
Hola M-DVD! Excelente mod!

Te comento que encontré un error en los archivos de traducción, para ser mas específicos en los siguientes archivos:
...

Thank you, I look what you have said, and thanks again for your interest and help.

Gracias, revisaré lo que me has dicho, y de nuevo gracias por el interés y por ayudar.
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 16, 2008, 10:47:56 AM
M-DVD I've pm you couple a days ago.
On my forum the result is same. No new button at all.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 16, 2008, 12:29:03 PM
Quote from: AlenNS on December 16, 2008, 10:47:56 AM
M-DVD I've pm you couple a days ago.
On my forum the result is same. No new button at all.

ok, I will continue to review. These days I have not had much time to do so. In my case, yes, it worked.

And before, don't show because the follows:

Test:
1.- User1: Create Topic.
2.- User2: Post a reply.
3.- User1: go to topic and See the Reply, and Retorn to index.
4.- User2: Modify his reply.
5.- User1: Refresh Message Board, and...


- see Icon New?
- ¡¡¡Yes!!!!.... and Not  :-\

Step 3½.- UserX: A member either, should do a new post (new topic or reply).

Then, yes, show "Icon New".

In my tests, this step wasn't case.

Doing this step, I made the correction in the MOD, and it worked me.

I will continue to review.
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 16, 2008, 01:48:30 PM
I don't know. It doesn't work for me. :(
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 17, 2008, 06:13:41 AM
Quote from: M-DVD on December 16, 2008, 12:29:03 PM
1.- User1: Create Topic.
2.- User2: Post a reply.
3.- User1: go to topic and See the Reply, and Retorn to index.
4.- User2: Modify his reply.
5.- User1: Refresh Message Board, and...


1.1.7

On my forum, when the user manually edits their post it will tell other users that the topic has a new post. Your mod does not do this and therefore I consider it a major flaw. This issue has to be considered a bug in your mod because it is a normal part of SMF software that fails to work when your mod is installed. Unfortunately, I must disable your mod until this is fixed.

It would be nice if you could have a feature that allows the admin to choose for the last post to be used for merging rather than the first, this would mean a new reply will always show. Some of us don't care that the topic is bumped because for many of us, people who double post are not doing it for that purpose.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 17, 2008, 10:49:58 PM
Quote from: mark7144 on December 17, 2008, 06:13:41 AM
1.1.7

On my forum, when the user manually edits their post it will tell other users that the topic has a new post. Your mod does not do this and therefore I consider it a major flaw. This issue has to be considered a bug in your mod because it is a normal part of SMF software that fails to work when your mod is installed. Unfortunately, I must disable your mod until this is fixed.

Yes, is true.

I have done the fix, and it worked for me.

I sent this fix for PM to AlenNS, for test, but it has not worked for he.

Then, I will continue to review.

Quote from: mark7144 on December 17, 2008, 06:13:41 AM
It would be nice if you could have a feature that allows the admin to choose for the last post to be used for merging rather than the first, this would mean a new reply will always show. Some of us don't care that the topic is bumped because for many of us, people who double post are not doing it for that purpose.

I'm not sure if i understood you correctly.

Do you want an option "AutoBUMP" when Merge the Posts?
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 18, 2008, 04:39:36 AM
Can someone tell me how to set the bump time in hours rather than days? If this is not possible then I think it should be added in the next version. On my forum, I want it so when users double post within the hour, it should be merged but when they post several hours later it should be considered as a new post.

Quote from: M-DVD on December 17, 2008, 10:49:58 PM
Do you want an option "AutoBUMP" when Merge the Posts?
Yes because my users do not double post to bump threads, they double post to add new information or just by being a newbie.

Currently: Post 2 is merged with Post 1, Post 2 is deleted.
Suggestion: Post 1 is merged with Post 2, Post 1 is deleted.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 18, 2008, 04:42:30 AM
Quote from: M-DVD on December 16, 2008, 09:40:13 AM
Ok, and Thanks.

I wouldn't have use a code of others, without Permission Direct.

And if it is done, would give them their due credit.

If you want to do, we could talk best and more details.
Yes, as I said, I will gladly let you use my code in your mod. :) And since Din gave me ownership of Merge Double Posts, you can basically use all of the code in it.

So, how do we do it? Do you have access to my code? To my latest version of the mod?
I'm attaching the latest version I could find, from January 2008. (I only updated my website's url)

@Mark> The Merge Double Posts mod I attached actually does it this way -- it merges posts into the LATEST one. ;)
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 18, 2008, 04:44:33 AM
Hi Nao, why are stalking me? ;)

Yes, what you said is exactly what I'm talking about.

I didn't realise that you have a Double Post mod as well, what is the difference between this one and yours?
Title: Re: Auto Merge Double Post
Post by: netoya on December 18, 2008, 04:50:18 AM
mark7144,
QuoteCan someone tell me how to set the bump time in hours rather than days?
I think you can do it manualy in Sources/Subs-Post.php

// Allow Bump?
if (time() >= ($modSettings['AutoMergePost_time'] * 86400 + $row['posterTime']))
return;


86400 - second in one day, so change this value to get bump in hours.
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 18, 2008, 04:53:26 AM
Quote from: netoya on December 18, 2008, 04:50:18 AM
I think you can do it manualy in Sources/Subs-Post.php
Thanks, hopefully it gets added as an option in the next version :)
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 18, 2008, 06:05:58 AM
Quote from: mark7144 on December 18, 2008, 04:44:33 AM
Hi Nao, why are stalking me? ;)
Nah, I only do that for girls.

QuoteI didn't realise that you have a Double Post mod as well, what is the difference between this one and yours?
Err...
Well, I dunno, just have a look at the file ;)
Basically, it allows you to choose whether to merge double posts automatically or with a button next to the Quote/Split/Delete buttons (the button also appears on the first post of a page if the last post in the previous page is by the same author), it allows admins to bypass the automatic double posting, it uses the last post's ID instead of the first post's, it adds a nice little [mergedate] tag that says (translated to the current viewer's language) "originally posted on..." or whatever you want (you can style it, as default it has a small font with dimmed color, and an horizontal dashed bar... I like how I made it look like.), and you can also choose the default minimum time below which double posts are automatically (in seconds), etc, etc...

Really, you can see it in action over at aeva.noisen.com :P
http://aeva.noisen.com/support/5060/video-embedding/msg227476/#msg227476

And since I'm not willing to have more than one actual mod of mine (and Aeva is already a lot of work), I really don't mind if M-DVD uses all of these features into his own mod. As long as he's willing to support the mod, of course! Because if he's going to give it up after a couple of months, I might as well offer Merge Double Posts as an actual mod and support it myself...
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 18, 2008, 06:51:09 AM
Does your mod support 1.1.7, Nao?

I couldn't find a mod page for it anywhere.

Quote from: Nao 尚 on December 18, 2008, 06:05:58 AMit uses the last post's ID instead of the first post's, it adds a nice little [mergedate] tag that says (translated to the current viewer's language) "originally posted on..." or whatever you want (you can style it, as default it has a small font with dimmed color, and an horizontal dashed bar... I like how I made it look like.), and you can also choose the default minimum time below which double posts are automatically (in seconds), etc, etc...
The bolded text are the three things are would like implemented into this mod.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 18, 2008, 08:12:20 AM
Quote from: mark7144 on December 18, 2008, 06:51:09 AM
Does your mod support 1.1.7, Nao?
No...
This is one of the reasons why I didn't release my own mod: 1.1.x was the only public release last year, and I didn't want to program for 1.1.x releases... So I was counting on Din to backport my additions to his own version, and maybe merge (no kidding) the two versions together, à la SMG or Aeva.

QuoteI couldn't find a mod page for it anywhere.
It still exists, but Din "deleted" it (i.e. it is hidden from non-team members).
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 18, 2008, 08:45:49 AM
Fair enough, then I will eagerly await this mod to mature a little :)
Title: Re: Auto Merge Double Post
Post by: AlenNS on December 18, 2008, 10:42:26 AM
Quote from: mark7144 on December 18, 2008, 04:39:36 AM
Can someone tell me how to set the bump time in hours rather than days? If this is not possible then I think it should be added in the next version. On my forum, I want it so when users double post within the hour, it should be merged but when they post several hours later it should be considered as a new post.

Quote from: M-DVD on December 17, 2008, 10:49:58 PM
Do you want an option "AutoBUMP" when Merge the Posts?
Yes because my users do not double post to bump threads, they double post to add new information or just by being a newbie.

Currently: Post 2 is merged with Post 1, Post 2 is deleted.
Suggestion: Post 1 is merged with Post 2, Post 1 is deleted.

This is great ideas. If post 1 would be deleted after merging it would be always shown on recent post list.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 18, 2008, 10:58:00 AM
Quote from: mark7144 on December 18, 2008, 04:39:36 AM
Can someone tell me how to set the bump time in hours rather than days? If this is not possible then I think it should be added in the next version. On my forum, I want it so when users double post within the hour, it should be merged but when they post several hours later it should be considered as a new post.

You tried input?
0.5 days, 0.3 days

Also, you can do this.

Quote from: netoya on December 18, 2008, 04:50:18 AM
in Sources/Subs-Post.php

// Allow Bump?
if (time() >= ($modSettings['AutoMergePost_time'] * 86400 + $row['posterTime']))
return;


86400 - second in one day, so change this value to get bump in hours.

Then change, in Admin.template.php:

Search:
<input type="text" name="AutoMergePost_time" id="AutoMergePost_time" value="', $modSettings['AutoMergePost_time'] ,'" size="5" maxlength="5" /> ', $txt[579] ,'

Replace
<input type="text" name="AutoMergePost_time" id="AutoMergePost_time" value="', $modSettings['AutoMergePost_time'] ,'" size="5" maxlength="5" /> ', $txt[578] ,'


Quote from: mark7144 on December 18, 2008, 04:39:36 AM
Currently: Post 2 is merged with Post 1, Post 2 is deleted.
Suggestion: Post 1 is merged with Post 2, Post 1 is deleted.

Not, Post2 never is created, never is deleted. Is add Post 1. Post 1 is modify.

The MOD makes a small change, and the result is similar to that you have chosen the option to Modify, rather than New Post, and takes advantage of the same features of the Forum.

That's why it's lighter, and compatible with the Forum.

Quote from: mark7144 on December 18, 2008, 04:39:36 AM
Yes because my users do not double post to bump threads, they double post to add new information or just by being a newbie.

That is possible, and it's not complicated.

When I find a solution that works for all (problem icon new), then, I do one updating.

Quote from: AlenNS on December 18, 2008, 10:42:26 AM
This is great ideas. If post 1 would be deleted after merging it would be always shown on recent post list.

I think, tha is bad idea  >:(  :P.

This would make a greater weight for a simple function, and also, solve a "problem" that can be solved by other means.

Title: Re: Auto Merge Double Post
Post by: M-DVD on December 19, 2008, 11:45:28 AM
Update Auto Merge Double Post v1.2:
=========================


New features:

How do I upgrade?

=======================================

Características Nuevas:

¿Como actualizar?
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 19, 2008, 11:52:17 AM
Quote from: M-DVD on December 19, 2008, 11:45:28 AM
Update Auto Merge Double Post v1.2:
=========================


New features:

  • You can enable Merge DoublePost for all Member, ignoring the Permissions.
  • Settings Moved to: Admin > Posts and Topics > Post Settings.
  • Now the Date in Text Merge is timestamp, adapts according to your local time.
  • Fix bug with Icon "New" in Merge Post.
Don't have time to look into it... Did you implement my [mergedate] tag then? :)
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 19, 2008, 11:52:45 AM
Nice one M-DVD, are you going to add a feature so the topic will be bumped on double post merge, just like Nao's?

I think that would be a major improvement as I'm sure so many of us admin would like that.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 19, 2008, 12:01:51 PM
Quote from: Nao 尚 on December 19, 2008, 11:52:17 AM
Don't have time to look into it... Did you implement my [mergedate] tag then? :)

eeeee.... O:)

SMF have [time] BBCode XD

[time]1229705537[/time] = December 19, 2008, 11:52:17 AM

--

Quote from: mark7144 on December 19, 2008, 11:52:45 AM
Nice one M-DVD, are you going to add a feature so the topic will be bumped on double post merge, just like Nao's?

More Later, but I think I will not in this MOD.

Is that I am currently working on "something" and i thought that it feature is better there, than in this MOD.
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 19, 2008, 12:13:03 PM
I wanted to style it like Nao's so I created a [mergedate] tag myself....

In Subs.php
   array(
            'tag' => 'mergedate',
            'before' => '<div class="mergedate">',
            'after' => '</div>',
         ),


In style.css
.mergedate {
   font-size: 10px;
   text-align: right;
   color: gray;
   padding: 5px 0 0 0;
   margin: 0;
   border-bottom: 1px dashed #999;
}


In admin cp
[mergedate]Posted on $date[/mergedate]

And we have it looking nice :D
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 19, 2008, 12:14:40 PM
Quote from: M-DVD on December 19, 2008, 12:01:51 PM
More Later, but I think I will not in this MOD.
That's sad for me, I have to probably disable mod until then :(

I can't think of a better place than to have that feature other than within this mod, I don't understand why you would use it on another mod.
Title: Re: Auto Merge Double Post
Post by: villasg on December 19, 2008, 01:16:04 PM
Greek utf 8

$txt['permissionname_doublePost'] = 'Επιτρέπετε το ΔιπλοΠοστάρισμα';
$txt['permissionhelp_doublePost'] = 'Με αυτή την επιλογή επιτρέπετε σε αυτο το group το ΔιπλοΠοστάρισμα.';
$txt['AutoMergePost_div'] = 'Πρόσθεσε ένα κείμενο όταν ενώνονται τα ποστ';
$txt['AutoMergePost_div_sub'] = 'Μπορείς να χρησιμοποιήσεις BBC  κώδικα και $date variable';
$txt['AutoMergePost_time'] = 'Χρονος που μετα την παρέλευση του θα επιτρέπετε το ΔιπλοΠοστάρισμα στο topic';
$txt['AutoMergePost_time_sub'] = 'Με 0 απενεργοποιειται το MOD και με 9999 δεν επιτρεπει ποτε το to ΔιπλοΠοστάρισμα';
$txt['AutoMergePost_4all'] = 'Αγνόησε τα δικαιώματα ΔιπλοΠοσταρίσματος ';
$txt['AutoMergePost_4all_sub'] = 'Πάντα να ενώνονται τα post , συμπεριλαμβανομένων και του Administrator';
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 19, 2008, 02:00:30 PM
Quote from: M-DVD on December 19, 2008, 12:01:51 PM
Quote from: Nao 尚 on December 19, 2008, 11:52:17 AM
Don't have time to look into it... Did you implement my [mergedate] tag then? :)

eeeee.... O:)

SMF have [time] BBCode XD

[time]1229705537[/time] = December 19, 2008, 11:52:17 AM
I know, but the time tag only allows you to show a date... The mergedate tag allows for more output -- which was configurable and everything. I liked the idea.
Apparently, Mark liked it, too ;)

NB: To show a tag in plain text, you don't have to put [b][/b] in it... Just use the nobbc tags...

Quote
Quote from: mark7144 on December 19, 2008, 11:52:45 AM
Nice one M-DVD, are you going to add a feature so the topic will be bumped on double post merge, just like Nao's?

More Later, but I think I will not in this MOD.
Why is it a problem?

QuoteIs that I am currently working on "something" and i thought that it feature is better there, than in this MOD.
...Are you going to discuss this with me or not? Hello?
Title: Re: Auto Merge Double Post
Post by: taha116 on December 19, 2008, 04:14:24 PM
Please add the updates to the main download page so that we other poeple dont have to look sooooo much to find the changes (Its ok 4 me but i am sure others would like to see it on the main download page...).

Great mod and good idea for the local time thing!....

@ NAO have you considered making a mod like AVEA 4 wordpress.. it wil have its competion but it will be successful. I am sure of it
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 19, 2008, 05:07:46 PM
Aeva 4 Wordpress?
1/ WHAT?!
2/ Err, this is irrelevant to this topic...
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 19, 2008, 06:50:22 PM
Bug

Problem: When 3 posts are merged, the first merge date message shows [ time ] bbc code in the message.

Reproduce: First double post > Notice the merge date message is formatted correctly > post another time > notice that same merge date message now shows the [ time ] bbc code.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 20, 2008, 08:16:48 AM
villasg, Alpay, saneone, thanks for update the translation.

Quote from: Nao 尚 on December 19, 2008, 11:52:17 AM
I know, but the time tag only allows you to show a date... The mergedate tag allows for more output -- which was configurable and everything. I liked the idea.
Apparently, Mark liked it, too ;)

Yes, me too now.

I will see more your pack, I see that I can deploy, and (as earlier) next year I will update with all yours features.

Quote from: Nao 尚 on December 19, 2008, 11:52:17 AM
NB: To show a tag in plain text, you don't have to put in it... Just use the nobbc tags...

Yes, but, two click vs write [-n-o-b-b-c-] [-/-n-o-b-b-c-]...  :-\ two clicks wins  :P (In addition, work in other CMS)

Quote from: mark7144 on December 19, 2008, 12:14:40 PM
I can't think of a better place than to have that feature other than within this mod, I don't understand why you would use it on another mod.

Quote from: Nao 尚 on December 19, 2008, 11:52:17 AM
Why is it a problem?

It would be nice to be able to choose, when merging the Post, also bump. Yes!!!.

But if the person, edit his latest post, would it be good too? I think so.

... :-\ But, only worked with merge...

Quote from: Nao 尚 on December 19, 2008, 11:52:17 AM
...Are you going to discuss this with me or not? Hello?

Sure, it is no secret.

When a new reply is posted in an topic, sent an e-mail notification.

A reply has been posted to a topic...

But when it has changed that answer, does not send anything.

The reply has been modified to a topic...

I've been doing a MOD, to make this work, plus an extra feature, and I think this new idea mark's, it comes very well in this MOD.

Everything is about the same, when modify the latest Post.

Quote from: taha116 on December 19, 2008, 04:14:24 PM
Please add the updates to the main download page so that we other poeple dont have to look sooooo much to find the changes (Its ok 4 me but i am sure others would like to see it on the main download page...).

Great mod and good idea for the local time thing!....

Thanks.

Do you think it would be a good idea?

I thought that now is better. If you want to watch the update, then there is a direct link to post update info.

The other option was to put everything as you say, but then would be very long.

I thought that a click is more comfortable than scroll + scroll + scroll + scroll

Quote from: mark7144 on December 19, 2008, 06:50:22 PM
Bug

Problem: When 3 posts are merged, the first merge date message shows [ time ] bbc code in the message.

Reproduce: First double post > Notice the merge date message is formatted correctly > post another time > notice that same merge date message now shows the [ time ] bbc code.

I did not have problem. The BBCode Time works like always. SMF does not have bug with this BBCode.

In addition, i did many merge and not have problems.
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 20, 2008, 09:43:18 AM
M-DVD: I think it's absolutely essential for THIS mod that you allow us have it so that when a post is merge, it shows as a new reply from the board index.

Regarding the bug, what version of SMF are you using? I have no idea why it is not working for me.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 20, 2008, 10:46:46 AM
Quote from: mark7144 on December 20, 2008, 09:43:18 AM
M-DVD: I think it's absolutely essential for THIS mod that you allow us have it so that when a post is merge, it shows as a new reply from the board index.
Let's be more specific: I suppose you mean that you want the merged post to inherit, just like Merge Double Posts does, the newer post's properties, rather than the older's. That way, obviously it won't bump the topic at all if a user has already read the newer post. It just needs to appear as Unread if users have already read the older post, but not the newer one.

Did you try to install MDP at all, by the way? Since it's all a philosophy issue, maybe I should release an updated MDP mod with support for both SMF1 and SMF2, a "no compromise" version... It would take me a few hours to make it though. M-DVD would still be allowed to use code for his version, as long as I'm credited for it I'm fine with it.
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 20, 2008, 10:49:30 AM
Sorry if I'm not being clear, what I want is when you merge two posts, the latest post stays which therefore bumps the topic. Currently when you merge two posts, the latest post is moved into the first meaning a new reply is not signalled.

This mod advertises the fact that people can't bump topics but is that really an issue for most of us admins? Surely that sort of behaviour is limited to support type forums and therefore most of us downloading this mod actually want the topic to be bumped.

Nao, it seems M-DVD is not keen on adding this to his mod so yes, it would be awesome if you could release yours to work with 1.1.7.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 20, 2008, 11:14:48 AM
Quote from: mark7144 on December 20, 2008, 10:49:30 AM
Sorry if I'm not being clear, what I want is when you merge two posts, the latest post stays which therefore bumps the topic. Currently when you merge two posts, the latest post is moved into the first meaning a new reply is not signalled.
Right, so we're both talking about the same thing. :)

QuoteThis mod advertises the fact that people can't bump topics but is that really an issue for most of us admins? Surely that sort of behaviour is limited to support type forums and therefore most of us downloading this mod actually want the topic to be bumped.
I *suppose* that such a mod could offer the ability to choose whether to integrate within the first, or last post. It would be an admin choice, and would default to "latest".
That way, everybody's happy ;)

QuoteNao, it seems M-DVD is not keen on adding this to his mod so yes, it would be awesome if you could release yours to work with 1.1.7.
I just need some extra time. As you already know, I'm quite busy with Aeva and SMF Media Gallery, I'm also spending time looking into Facebook interconnection, and I even have a life to deal with. (Where's the button to turn that off?! I'm willing to buy the 48-hours-a-day mod, too!)

Wow... 1234 posts. Next stop at 12345!
Title: Re: Auto Merge Double Post
Post by: mark7144 on December 20, 2008, 11:18:02 AM
Quote from: Nao 尚 on December 20, 2008, 11:14:48 AM
I'm also spending time looking into Facebook interconnection
Fantastic, I'm extremely interested in SMF using Facebook Connect.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 20, 2008, 11:29:32 AM
Yeah that's what I'm looking into... It looks possible to do it (I think a couple of hours will be enough to integrate it), but I'm not sure it can be made as a mod.
So I'm looking into adding it to one of my boards (either cynarhum.com or noisen.com) first, and then I'll think about sharing my knowledge with the community.
noisen.com already supports OpenID (thanks to a SMF2 feature), maybe I could plug fbConnect into the same code or something. (So, yeah, before you ask--if I ever do a mod out of it, if it's possible, then it will be SMF2 only. But I probably won't get this out for a few months, so maybe SMF2 Final will be out by then :P)
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 20, 2008, 12:02:50 PM
Quote from: mark7144 on December 20, 2008, 10:49:30 AM
This mod advertises the fact that people can't bump topics but is that really an issue for most of us admins? Surely that sort of behaviour is limited to support type forums and therefore most of us downloading this mod actually want the topic to be bumped.

The MOD advertises that double post (flood, bump, blah) will be automatically merged with the prev post.

If this is not what you want, then you have using the mod that you should not.

Quote from: mark7144 on December 20, 2008, 10:49:30 AM
Sorry if I'm not being clear, what I want is when you merge two posts, the latest post stays which therefore bumps the topic. Currently when you merge two posts, the latest post is moved into the first meaning a new reply is not signalled.

In programming and technology should aim at efficiency. The mission to fulfill is Auto Merge DoublePost. The current way to make that task is better than it you say.

It reads as "mania geek", but has led to technology to where it is today.

Besides, it sounds like something small, something small that can avoid to Administrator changing the Host plan, with more resources, more RAM, more CPU and more $$$$.

Therefore, I say that I will not add anything, in a way that makes very "heavy" a simple function.

Quote from: mark7144 on December 20, 2008, 10:49:30 AM
Nao, it seems M-DVD is not keen on adding this to his mod so yes, it would be awesome if you could release yours to work with 1.1.7.

I have not refusing to add certain features. I said to check the codes Nao's, to see that I can add.

Also I said that this feature is good for "Merge Post", but also when "Modify Last Post"; or not? Why should it be unique to "Merge Post"? Maybe someone wants this feature to all cases, not only for the case of the Merge.

--

Note: And if Nao want make a MOD with his style and codes, then I am happy. I am among those who thinks it's good, if there are many alternatives and the people are free to choose.

I am glad that the interest in the "Merge Post" has "reborn". Since this issue was "abandoned" for many months and year; and were many requests of a MOD to do this work.

Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 20, 2008, 12:48:23 PM
Quote from: M-DVD on December 20, 2008, 12:02:50 PM
Note: And if Nao want make a MOD with his style and codes, then I am happy. I am among those who thinks it's good, if there are many alternatives and the people are free to choose.

I am glad that the interest in the "Merge Post" has "reborn". Since this issue was "abandoned" for many months and year; and were many requests of a MOD to do this work.
The feeling is mutual.
Title: Re: Auto Merge Double Post
Post by: Relyana on December 26, 2008, 03:18:55 PM
Romanian-utf8

$txt['permissionname_doublePost'] = 'Permite efectuarea de posturi duble';
$txt['permissionhelp_doublePost'] = 'Activarea acesteia le va permite să posteze dublu.';
$txt['AutoMergePost_div'] = 'Adăugaţi text atunci când uniţi posturile';
$txt['AutoMergePost_div_sub'] = 'Aveţi posibilitatea să utilizaţi BBC şi variabila $date';
$txt['AutoMergePost_time'] = 'Timpul pentru a permite Postarea Dublă şi relansarea Subiectului';
$txt['AutoMergePost_time_sub'] = 'Timp 0 pentru a dezactiva MODIFICAREA şi 9999 pentru a nu o permite niciodată';
$txt['AutoMergePost_4all'] = 'Ignoraţi Permisiunea de Postare Dublă';
$txt['AutoMergePost_4all_sub'] = 'Uneşte întotdeauna Posturile Duble, inclusiv ale Administratorului';


Title: Re: Auto Merge Double Post
Post by: M-DVD on December 27, 2008, 05:49:36 PM
Quote from: Relyana on December 26, 2008, 03:18:55 PM
Romanian-utf8

$txt['permissionname_doublePost'] = 'Permite efectuarea de posturi duble';
$txt['permissionhelp_doublePost'] = 'Activarea acesteia le va permite să posteze dublu.';
$txt['AutoMergePost_div'] = 'Adăugaţi text atunci când uniţi posturile';
$txt['AutoMergePost_div_sub'] = 'Aveţi posibilitatea să utilizaţi BBC şi variabila $date';
$txt['AutoMergePost_time'] = 'Timpul pentru a permite Postarea Dublă şi relansarea Subiectului';
$txt['AutoMergePost_time_sub'] = 'Timp 0 pentru a dezactiva MODIFICAREA şi 9999 pentru a nu o permite niciodată';
$txt['AutoMergePost_4all'] = 'Ignoraţi Permisiunea de Postare Dublă';
$txt['AutoMergePost_4all_sub'] = 'Uneşte întotdeauna Posturile Duble, inclusiv ale Administratorului';


Thanks  :D

Translations Portuguese_Brazilian (by theo2f) and Romanian (by Relyana) have been added.
Title: Re: Auto Merge Double Post
Post by: taha116 on December 27, 2008, 09:35:32 PM
Quote from: Nao 尚 on December 19, 2008, 05:07:46 PM
Aeva 4 Wordpress?
1/ WHAT?!
2/ Err, this is irrelevant to this topic...

YEah sorry off topic but cant you make something similar for wordpress?
Title: Re: Auto Merge Double Post
Post by: AlaStar on December 28, 2008, 05:05:48 AM
Translation Portuguese_Portugal  :P

// MOD Auto Merge Double Post - Translation by AlaStar
$txt['permissionname_doublePost'] = 'Permitir fazer Double Post';
$txt['permissionhelp_doublePost'] = 'Com esta op&ccedil;&atilde;o activa permite a todos que fa&ccedil;am Double Post.';
$txt['AutoMergePost_div'] = 'Adicionar texto quando une o post';
$txt['AutoMergePost_div_sub'] = 'Podes usar BBC e a vari&aacute;vel $date';
$txt['AutoMergePost_time'] = 'Tempo que vai demorar a unir o Double Post no T&oacute;pico';
$txt['AutoMergePost_time_sub'] = 'Tempo 0 para desactivar o MOD e 9999 para nunca permitir';
$txt['AutoMergePost_4all'] = 'Ignorar a permiss&atilde;o do Double Post';
$txt['AutoMergePost_4all_sub'] = 'Unir sempre o(s) Double Post, incluindo o(s) do(s) Administrador(es)';
Title: Re: Auto Merge Double Post
Post by: taha116 on December 28, 2008, 11:48:54 AM
Has something been updated yesterday that i should know about???
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 28, 2008, 01:34:26 PM
Quote from: AlaStar on December 28, 2008, 05:05:48 AM
Translation Portuguese_Portugal  :P

// MOD Auto Merge Double Post - Translation by AlaStar
$txt['permissionname_doublePost'] = 'Permitir fazer Double Post';
$txt['permissionhelp_doublePost'] = 'Com esta op&ccedil;&atilde;o activa permite a todos que fa&ccedil;am Double Post.';
$txt['AutoMergePost_div'] = 'Adicionar texto quando une o post';
$txt['AutoMergePost_div_sub'] = 'Podes usar BBC e a vari&aacute;vel $date';
$txt['AutoMergePost_time'] = 'Tempo que vai demorar a unir o Double Post no T&oacute;pico';
$txt['AutoMergePost_time_sub'] = 'Tempo 0 para desactivar o MOD e 9999 para nunca permitir';
$txt['AutoMergePost_4all'] = 'Ignorar a permiss&atilde;o do Double Post';
$txt['AutoMergePost_4all_sub'] = 'Unir sempre o(s) Double Post, incluindo o(s) do(s) Administrador(es)';


Thanks, I upgrade in a few hours.   :)

Quote from: taha116 on December 28, 2008, 11:48:54 AM
Has something been updated yesterday that i should know about???

No, only Languajes.zip file has been updated.
Title: Re: Auto Merge Double Post
Post by: DistantJ on December 28, 2008, 04:45:54 PM
Would it be possible to mod this into something which DOES bump the topic, but merges the two posts?

As in, so that the user replying to his post will cause the topic to be bumped, but for it to be added into their previous post rather than having a whole new row for them, like the old, no longer compatible "Auto Merge Double Post" feature did?
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on December 28, 2008, 05:37:40 PM
Attempting to turn this into better English... Anyone, feel free to improve on that.
$txt['permissionname_doublePost'] = 'Allow Double Posts';
$txt['permissionhelp_doublePost'] = 'Enable this to allow users to post several messages in a row.';
$txt['AutoMergePost_div'] = 'Add text when merging posts';
$txt['AutoMergePost_div_sub'] = 'You can use BBCode and the $date variable.';
$txt['AutoMergePost_time'] = 'Time until Double Posts and Bumps';
$txt['AutoMergePost_time_sub'] = 'Delay after which Double Posts and Topic Bumps are allowed. Set to 0 to disable the mod, and 9999 to always disallow.';
$txt['AutoMergePost_4all'] = 'Ignore Double Post Permission';
$txt['AutoMergePost_4all_sub'] = 'Always merge Double Posts, even for administrators.';


French
$txt['permissionname_doublePost'] = 'Autoriser les Double Posts';
$txt['permissionhelp_doublePost'] = 'Activer pour autoriser l\'utilisateur &agrave; poster plusieurs messages d\'affil&eacute;e.';
$txt['AutoMergePost_div'] = 'Ajouter du texte lors d\'une fusion';
$txt['AutoMergePost_div_sub'] = 'Vous pouvez utiliser du BBCode et la variable $date.';
$txt['AutoMergePost_time'] = 'D&eacute;lai max. pour Double Posts et Bumps';
$txt['AutoMergePost_time_sub'] = 'D&eacute;lai au-del&agrave; duquel les Double Posts et Bumps (relances) de sujets seront autoris&eacute;s. Mettez &agrave; 0 pour d&eacute;sactiver le mod, ou 9999 pour toujours l\'activer.';
$txt['AutoMergePost_4all'] = 'Ignorer les permissions Double Post';
$txt['AutoMergePost_4all_sub'] = 'Toujours fusionner les Double Posts, m&ecirc;me pour les administrateurs.';


@distantJ> Use the "Merge Double Posts" mod for this. I posted it somewhere before in this topic.
Title: Re: Auto Merge Double Post
Post by: M-DVD on December 29, 2008, 01:50:52 PM
Quote from: Relyana on December 26, 2008, 03:18:55 PM
Romanian-utf8

$txt['permissionname_doublePost'] = 'Permite efectuarea de posturi duble';
$txt['permissionhelp_doublePost'] = 'Activarea acesteia le va permite să posteze dublu.';
$txt['AutoMergePost_div'] = 'Adăugaţi text atunci când uniţi posturile';
$txt['AutoMergePost_div_sub'] = 'Aveţi posibilitatea să utilizaţi BBC şi variabila $date';
$txt['AutoMergePost_time'] = 'Timpul pentru a permite Postarea Dublă şi relansarea Subiectului';
$txt['AutoMergePost_time_sub'] = 'Timp 0 pentru a dezactiva MODIFICAREA şi 9999 pentru a nu o permite niciodată';
$txt['AutoMergePost_4all'] = 'Ignoraţi Permisiunea de Postare Dublă';
$txt['AutoMergePost_4all_sub'] = 'Uneşte întotdeauna Posturile Duble, inclusiv ale Administratorului';


Quote from: AlaStar on December 28, 2008, 05:05:48 AM
Translation Portuguese_Portugal  :P

// MOD Auto Merge Double Post - Translation by AlaStar
$txt['permissionname_doublePost'] = 'Permitir fazer Double Post';
$txt['permissionhelp_doublePost'] = 'Com esta op&ccedil;&atilde;o activa permite a todos que fa&ccedil;am Double Post.';
$txt['AutoMergePost_div'] = 'Adicionar texto quando une o post';
$txt['AutoMergePost_div_sub'] = 'Podes usar BBC e a vari&aacute;vel $date';
$txt['AutoMergePost_time'] = 'Tempo que vai demorar a unir o Double Post no T&oacute;pico';
$txt['AutoMergePost_time_sub'] = 'Tempo 0 para desactivar o MOD e 9999 para nunca permitir';
$txt['AutoMergePost_4all'] = 'Ignorar a permiss&atilde;o do Double Post';
$txt['AutoMergePost_4all_sub'] = 'Unir sempre o(s) Double Post, incluindo o(s) do(s) Administrador(es)';


Quote from: Nao 尚 on December 28, 2008, 05:37:40 PM
French
$txt['permissionname_doublePost'] = 'Autoriser les Double Posts';
$txt['permissionhelp_doublePost'] = 'Activer pour autoriser l\'utilisateur &agrave; poster plusieurs messages d\'affil&eacute;e.';
$txt['AutoMergePost_div'] = 'Ajouter du texte lors d\'une fusion';
$txt['AutoMergePost_div_sub'] = 'Vous pouvez utiliser du BBCode et la variable $date.';
$txt['AutoMergePost_time'] = 'D&eacute;lai max. pour Double Posts et Bumps';
$txt['AutoMergePost_time_sub'] = 'D&eacute;lai au-del&agrave; duquel les Double Posts et Bumps (relances) de sujets seront autoris&eacute;s. Mettez &agrave; 0 pour d&eacute;sactiver le mod, ou 9999 pour toujours l\'activer.';
$txt['AutoMergePost_4all'] = 'Ignorer les permissions Double Post';
$txt['AutoMergePost_4all_sub'] = 'Toujours fusionner les Double Posts, m&ecirc;me pour les administrateurs.';


Thanks for translate  :D

Quote from: DistantJ on December 28, 2008, 04:45:54 PM
Would it be possible to mod this into something which DOES bump the topic, but merges the two posts?

As in, so that the user replying to his post will cause the topic to be bumped, but for it to be added into their previous post rather than having a whole new row for them, like the old, no longer compatible "Auto Merge Double Post" feature did?

Yes, I can do it, but, I would not made for this MOD; I think that it is not unique feature for this mod (and if the user not "Double Posted" and modify his message, you do not want bump into this case?). Soon you will have this functionality.
Title: Re: Auto Merge Double Post
Post by: taha116 on December 30, 2008, 12:45:24 PM
How do i make use of these language packs?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 02, 2009, 09:54:43 PM
Quote from: taha116 on December 30, 2008, 12:45:24 PM
How do i make use of these language packs?

1.- Download language_full.zip and PackMOD_v???.zip (in this case AutoMergeDoublePost_vXX.zip)

2.- UnZip language_full.zip Files

3.- Zip this Files in AutoMergeDoublePost_vXX.zip

4.- Install the Package AutoMergeDoublePost_vXX.zip.

:)
Title: Re: Auto Merge Double Post
Post by: Kalina on January 03, 2009, 05:22:22 PM
I had this problem with this modification before and uninstalled it, I figured by now it was fixed so I just installed this modification again and am having this problem where members are told "the time limit has passed for an edit" when they try to post an update to their threads... therefore it doesn't let them even post, it's calling their attempt to post, an "edit"... it's supposed to just merge their double post I thought. I have it set to 1 day, my understanding is if 24 hours have passed since their last post, it will let them post as normal and only act via merging if it's been under 24 hours since their last post.

Am I doing something wrong?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 04, 2009, 01:23:24 PM
Quote from: Kalina on January 03, 2009, 05:22:22 PM
I had this problem with this modification before and uninstalled it, I figured by now it was fixed so I just installed this modification again and am having this problem where members are told "the time limit has passed for an edit" when they try to post an update to their threads... therefore it doesn't let them even post, it's calling their attempt to post, an "edit"... it's supposed to just merge their double post I thought. I have it set to 1 day, my understanding is if 24 hours have passed since their last post, it will let them post as normal and only act via merging if it's been under 24 hours since their last post.

Am I doing something wrong?

Is correct, as you has told, it seems that everything is done well and should work as it should.

Abstract:
Day X: Time: 03:00
      The user creates the Post
Day X: Time: 05:30
      The user tries post again (double post).
      The MOD merge the posts (editing) with the prev post.
Day X: Time: 21:20
      The user tries post again (double post).
      The MOD merge the posts (editing) with the prev post. Again.

Day X + 1: Time: 03:00
      The user tries post again (double post).
      Now the MOD allows double post.


--

I cannot reproduce the error you say.

I can see your forum? (URL and user / pass test)
Title: Re: Auto Merge Double Post
Post by: Kalina on January 05, 2009, 03:29:10 PM
M-DVD, sure, I will pm you that info. Thank you. :)
Title: Re: Auto Merge Double Post
Post by: ZeUsSaN on January 07, 2009, 06:19:07 AM
Ukrainian
// MOD Auto Merge Double Post - Translation by ZeUsSaN
$txt['permissionname_doublePost'] = 'Дозволити відправку подвійних повідомлень';
$txt['permissionhelp_doublePost'] = 'Вмикаючи данну функцію, Ви дозволяєте відправку подвійних повідомлень';
$txt['AutoMergePost_div'] = 'Додавати текст при об\'єднанні повідомлень';
$txt['AutoMergePost_div_sub'] = 'Ви можете використовувати BB код і змінну $date';
$txt['AutoMergePost_time'] = 'Час, після якого повідомлення не будуть об\'єднуватися';
$txt['AutoMergePost_time_sub'] = 'Встановіть 0 для того щоб вимкнути модицікацію і 9999 щоб об\'єднувати завжди';
$txt['AutoMergePost_4all'] = 'Ігнорувати права налаштування прав для об\'єднання повідомлень';
$txt['AutoMergePost_4all_sub'] = 'Завжди об\'єднувати, в тому числі Адміністратора';
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 09, 2009, 11:56:10 AM
Quote from: ZeUsSaN on January 07, 2009, 06:19:07 AM
Ukrainian
// MOD Auto Merge Double Post - Translation by ZeUsSaN
$txt['permissionname_doublePost'] = 'Дозволити відправку подвійних повідомлень';
$txt['permissionhelp_doublePost'] = 'Вмикаючи данну функцію, Ви дозволяєте відправку подвійних повідомлень';
$txt['AutoMergePost_div'] = 'Додавати текст при об\'єднанні повідомлень';
$txt['AutoMergePost_div_sub'] = 'Ви можете використовувати BB код і змінну $date';
$txt['AutoMergePost_time'] = 'Час, після якого повідомлення не будуть об\'єднуватися';
$txt['AutoMergePost_time_sub'] = 'Встановіть 0 для того щоб вимкнути модицікацію і 9999 щоб об\'єднувати завжди';
$txt['AutoMergePost_4all'] = 'Ігнорувати права налаштування прав для об\'єднання повідомлень';
$txt['AutoMergePost_4all_sub'] = 'Завжди об\'єднувати, в тому числі Адміністратора';


Thanks for translate :D

--

Quote from: mark7144 on December 19, 2008, 11:52:45 AM
Nice one M-DVD, are you going to add a feature so the topic will be bumped on double post merge, just like Nao's?

I think that would be a major improvement as I'm sure so many of us admin would like that.

Quote from: AlenNS on December 18, 2008, 10:42:26 AM
This is great ideas. If post 1 would be deleted after merging it would be always shown on recent post list.

Quote from: DistantJ on December 28, 2008, 04:45:54 PM
Would it be possible to mod this into something which DOES bump the topic, but merges the two posts?

As in, so that the user replying to his post will cause the topic to be bumped, but for it to be added into their previous post rather than having a whole new row for them, like the old, no longer compatible "Auto Merge Double Post" feature did?

You can use this MOD Notify Modification Last Post (http://custom.simplemachines.org/mods/index.php?mod=1557). Is more specific to that role and more configurable as you like.

Works when the last post is edit, with or without fusion.
Title: Re: Auto Merge Double Post
Post by: ZeUsSaN on January 10, 2009, 07:22:05 AM
How I can merge old messages?
In old mod there was a button doublepost (:
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 10, 2009, 07:29:09 AM
Then... Use the older mod? ;)
I posted it a couple of pages before, I think. (Or was it only my SMF2 version?)
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 10, 2009, 08:07:48 AM
Quote from: M-DVD on January 09, 2009, 11:56:10 AM
You can use this MOD Notify Modification Last Post (http://custom.simplemachines.org/mods/index.php?mod=1557). Is more specific to that role and more configurable as you like.

Works when the last post is edit, with or without fusion.

Why would I want that? I don't want topics to be bumped when someone edits their post, I want topics to be bumped when people DOUBLE POST.

As with so many other people here, I want a mod that merges a double post and bumps it. That mod is of no use to me and unsurprisingly, you made a mistake but refusing to implement the feature request we have asked into this mod.
Title: Re: Auto Merge Double Post
Post by: ZeUsSaN on January 10, 2009, 08:19:58 AM
Nao
Earlier I used this mod, for old versions SMF
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 10, 2009, 08:32:55 AM
Quote from: ZeUsSaN on January 10, 2009, 08:19:58 AM
Nao
Earlier I used this mod, for old versions SMF
Yes, that's the one. Just use it if you're happy with it :)
If you need a SMF2 version, I posted it earlier, as I said.
Title: Re: Auto Merge Double Post
Post by: ZeUsSaN on January 10, 2009, 09:07:41 AM
Quote from: Nao 尚 on January 10, 2009, 08:32:55 AM
Yes, that's the one. Just use it if you're happy with it :)
If you need a SMF2 version, I posted it earlier, as I said.
Thanks
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 10, 2009, 09:12:32 AM
Nao, does the attached work for SMF 1.1.7?

This mod has so much potential but M-DVD knowingly leaves open a massive flaw which prevents many of us using his mod.
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 10, 2009, 09:58:44 AM
Quote from: mark7144 on January 10, 2009, 08:07:48 AM
Why would I want that? I don't want topics to be bumped when someone edits their post, I want topics to be bumped when people DOUBLE POST.

Why you do not wanted to know when the people edit his last post?

For example. When a member makes a new post on the topic; you would be angry because you just want to receive mail notifications when the person has made a double post and not when has made a normal reply?

We should make double post to get attention?

And if this is not the MOD you want, simply, do not use it. I Will make you a refund. You can use a MOD that yes has this feature, or can claim to someone other than myself.

And as information. The other MOD have not this feature as function, but as a "collateral effects".

Quote from: mark7144 on January 10, 2009, 08:07:48 AM
..., you made a mistake but refusing to implement the feature request we have asked into this mod.

Sorry, I have not made a mistake.

In Analysis of System and Engineering, is very important identify the problem correctly.

The problem is to have a notice when something new has been published in an topic (for example, a double post merge), but also if has been modify the last reply. I made a real solution to the real problem.

Contrary to what you say, it would be wrong if I had implemented such a solution only in this MOD.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 10, 2009, 10:04:12 AM
It's very simple... people who want to download your mod are not doing so because you refuse to include an OPTIONAL feature so that double posts will bump the topic. You ask "Why would anyone want that?" ...because in most forums, double posts are a sign of genuine new information rather than spamming... that is why!

Nao appropriately included the feature in his mod, are you saying that was wrong? Clearly it isn't if people are defecting from your new mod to something that isn't even being developed anymore.

I'm sorry about my angry tone towards you but I find it frustrating that your mod has so much potential but you are jeopardising its future by not listening to your users.

Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 10, 2009, 10:07:41 AM
Quote from: mark7144 on January 10, 2009, 09:12:32 AM
Nao, does the attached work for SMF 1.1.7?
I don't know but I guess it would.
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 10, 2009, 10:30:30 AM
Quote from: mark7144 on January 10, 2009, 10:04:12 AM
... You ask "Why would anyone want that?" ...because in most forums, double posts are a sign of genuine new information rather than spamming... that is why!

¡¡¡Fine, you have given in point, you has given the nail on the head!

Edit the Last post ALSO is a sign of New Information... ALWAYS.
NEVER is Spamming, ALWAYS is New Information


You see as I analyzed the problem correctly from the beginning?  O:)

Quote from: mark7144 on January 10, 2009, 10:04:12 AM
Nao appropriately included the feature in his mod, are you saying that was wrong?

I said that was a collateral effect. Wasn't a feature intentionally added.

PD: the autor is Din1031 (http://www.simplemachines.org/community/index.php?action=profile;u=10466)

Quote from: mark7144 on January 10, 2009, 10:04:12 AM
I'm sorry about my angry tone towards you but I find it frustrating that your mod has so much potential but you are jeopardising its future by not listening to your users.

No problem.

And I listen to users, a lot.

jossanaijr (http://www.simplemachines.org/community/index.php?topic=278227.msg1825376#msg1825376), AlenNS (http://www.simplemachines.org/community/index.php?topic=278227.msg1826829#msg1826829), netoya 1 (http://www.simplemachines.org/community/index.php?topic=278227.msg1828970#msg1828970) &2 (http://www.simplemachines.org/community/index.php?topic=278227.msg1831836#msg1831836), DistantJ (http://www.simplemachines.org/community/index.php?topic=278227.msg1845128#msg1845128), you (http://www.simplemachines.org/community/index.php?topic=278227.msg1845128#msg1845128), etc.

And you can see in my other mods, I responds to requests (provided they are reasonable, so far has been the case).
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 10, 2009, 11:26:41 AM
Quote from: M-DVD on January 10, 2009, 10:30:30 AM
Quote from: mark7144 on January 10, 2009, 10:04:12 AM
Nao appropriately included the feature in his mod, are you saying that was wrong?

I said that was a collateral effect. Wasn't a feature intentionally added.

PD: the autor is Din1031 (http://www.simplemachines.org/community/index.php?action=profile;u=10466)
Well technically I'm supposed to be the author, now... lol

Hey what's with the whole fight anyway? It's not worth it... Why is it that doubleposts mods always create fights where they shouldn't?
Title: Re: Auto Merge Double Post
Post by: AlenNS on January 11, 2009, 12:08:59 PM
M-DVD Great work!!! :)
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 11, 2009, 07:56:51 PM
Quote from: M-DVD on January 10, 2009, 10:30:30 AM
You see as I analyzed the problem correctly from the beginning?  O:)
What on earth are you on about?

In most forums a double post is a sign of genuine new information rather than spamming. Therefore, you have NOT analyzed the problem correctly because in your mod a merged post does not bump the topic.

I only want double posts that are merged to bump topics, I do not want topics to be bumped when people intentionally edit their posts. So your new mod is not appropriate for me.
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 11, 2009, 09:13:41 PM
Quote from: Nao 尚 on January 10, 2009, 11:26:41 AM
Hey what's with the whole fight anyway? It's not worth it...

It's not a fight. I have never seen it like this.

Quote from: Nao 尚 on January 10, 2009, 11:26:41 AM
... Why is it that doubleposts mods always create fights where they shouldn't?

Interestingly, there must be something in common.

Quote from: AlenNS on January 11, 2009, 12:08:59 PM
M-DVD Great work!!! :)

Thanks  :)

Quote from: mark7144 on January 11, 2009, 07:56:51 PM
What on earth are you on about?

In most forums a double post is a sign of genuine new information rather than spamming. Therefore, you have NOT analyzed the problem correctly because in your mod a merged post does not bump the topic.

I only want double posts that are merged to bump topics, I do not want topics to be bumped when people intentionally edit their posts. So your new mod is not appropriate for me.

I have a question.

Are you aware that when you make "Double Post" and "Merge the Post," the MOD AMDP causes the user Unintentionally Edit their Own Posts?.  ::)
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 12, 2009, 04:07:02 AM
Quote from: M-DVD on January 11, 2009, 09:13:41 PM
Are you aware that when you make "Double Post" and "Merge the Post," the MOD AMDP causes the user Unintentionally Edit their Own Posts?.  ::)
Yes, this is why I was careful with my wording in my last post, notice I used the word "intentionally".
Title: Re: Auto Merge Double Post
Post by: netoya on January 15, 2009, 11:47:15 AM
Is it possible add premission to make merged posts to the group of users who do not have permission to edit their own posts?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 15, 2009, 08:19:23 PM
Quote from: mark7144 on January 12, 2009, 04:07:02 AM
Quote from: M-DVD on January 11, 2009, 09:13:41 PM
Are you aware that when you make "Double Post" and "Merge the Post," the MOD AMDP causes the user Unintentionally Edit their Own Posts?.  ::)
Yes, this is why I was careful with my wording in my last post, notice I used the word "intentionally".

I just wanted to be sure.
--
His excuse was, you wanting a notice of "New Information".

In "Merge Post" or "Edit Last Post" there is new information, and "My New Mod" notify you in both cases. Your excuse, no longer serves.
   
The true is, you don't want a notice of new information, you only want to be notified when there are "Post Merge" (is your decision).

As I said before, I do real solutions to real problems. Your problem is something particular whim and I cannot release MODs to such things.

Sorry, if you want it, you can do a request, developing you, or pay someone. If my MOD don't serve you, then you can uninstalled, simple.

Quote from: netoya on January 15, 2009, 11:47:15 AM
Is it possible add premission to make merged posts to the group of users who do not have permission to edit their own posts?

Yes. I can try.

I doubt that you do before a couple of weeks, and I will be somewhat busy.
Title: Re: Auto Merge Double Post
Post by: netoya on January 16, 2009, 04:34:52 AM
M-DVD, ок i ll wait.
Updated my version to 1.2, i allways install and uninstall mods manualy.
Posts don't mergerd if not checked Ignore Double Post Permission.
In version 1.0 and 1.1 I used this one to ignore memberships premission
QuoteSearch:

if (allowedTo('doublePost') || isset($_REQUEST['msg']))

Replace:

if (isset($_REQUEST['msg']))
And now I want to use this function to manage premissions for groupes on my forum, but it dont work :(
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 16, 2009, 06:09:36 AM
M-DVD, I'm not asking you release a mod for my suggestion, I'm asking you to simply include an extra option in your Merge Post mod. The functionality was in Nao's mod so why not include it in yours as clearly it is not just a request from an individual, it is something many users want.
Title: Re: Auto Merge Double Post
Post by: Pablo25 on January 16, 2009, 08:57:37 AM
M-DVD, I've got a problem. After editing user's posts, info about merging posts changes. For example:

After writing second post:

Post Merge: 11-01-2009, 14:32

After editing post:
Post Merge: [time]sun 11 jan 2009 14:32:22 GMT-1[/time]

Do you have any idea? Thanks in advance.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 16, 2009, 11:56:42 AM
I had the above problem when merging more than 2 posts.
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 17, 2009, 02:40:49 PM
Quote from: netoya on January 16, 2009, 04:34:52 AM
M-DVD, ок i ll wait.
Updated my version to 1.2, i allways install and uninstall mods manualy.
Posts don't mergerd if not checked Ignore Double Post Permission.
In version 1.0 and 1.1 I used this one to ignore memberships premission
QuoteSearch:

if (allowedTo('doublePost') || isset($_REQUEST['msg']))

Replace:

if (isset($_REQUEST['msg']))
And now I want to use this function to manage premissions for groupes on my forum, but it dont work :(

You have reviewed all your changes?

Check this: Admin.template.php (only SMF 1.1.X), ManagePosts.php, Subs-Post.php.

Quote from: mark7144 on January 16, 2009, 06:09:36 AM
M-DVD, I'm not asking you release a mod for my suggestion, I'm asking you to simply include an extra option in your Merge Post mod. The functionality was in Nao's mod so why not include it in yours as clearly it is not just a request from an individual, it is something many users want.

Ok, I understand, but look this.

Imagine: "I added this feature"
Person A: wants bump topic with merge post, and enable this feature.
Person B: not wants bump topic with merge post, and disable this feature.
Person C: wants notification with new information (not only with merge), then this feature isn't helpful. Then install the "second MOD" and... -> problems + error + inefficiency.

So I have to choose, and choose the most logical.

Your solution: (I think so)

1 .- Install Auto Merge Double Post.
2 .- Install Notify Modification Last Post and...
3 .- Disable his functions (because you don't want this)
4 .- Edit the file Subs-Post.php and search:
$_REQUEST['msg'] = $_GET['msg'] = $row['id_last_msg'];

Add (before or after):

$modSettings['ModifyLastPostBump'] = true;  // If you like bump

or

$modSettings['ModifyLastPostMail'] = true;  // If you like mail

etc

I think that you should serve.

Quote from: Pablo25 on January 16, 2009, 08:57:37 AM
M-DVD, I've got a problem. After editing user's posts, info about merging posts changes. For example:

After writing second post:

Post Merge: 11-01-2009, 14:32

After editing post:
Post Merge: [time]sun 11 jan 2009 14:32:22 GMT-1[/time]

Do you have any idea? Thanks in advance.

Quote from: mark7144 on January 16, 2009, 11:56:42 AM
I had the above problem when merging more than 2 posts.

Time BBCode, is a BBCode native of SMF. Should work fine.

I couldn't reproduce this error. I have done many many mergers, many editions, and without issues. Any idea? Anything else that may help? Any link where I can see it?
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 17, 2009, 06:33:54 PM
M-DVD: If you are not going to make the most logical choice, which is doing what I suggest and what Nao did with his mod, then I'm now giving up with trying to persuade you. Eventually you'll probably realise how much your lack of action on this issue held back your mod, it's quite sad that you are stopping it reach its full potential.

Nao: Any chance you could get your mod to work for 1.1.7? I tried the attached and it said it was corrupt.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 19, 2009, 04:27:28 AM
Quote from: mark7144 on January 17, 2009, 06:33:54 PM
Nao: Any chance you could get your mod to work for 1.1.7?
Of course. I'll be transitioning this week from a fulltime work on Aeva, to a part-time work between Aeva, SMG and other things. Hopefully.

Maybe I can find some time to do a correct version of the DoublePost merge thingie for both SMF 1 and SMF 2. And publish it as an actual mod etc.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 19, 2009, 05:53:57 AM
Quote from: Nao 尚 on January 19, 2009, 04:27:28 AM
Maybe I can find some time to do a correct version of the DoublePost merge thingie for both SMF 1 and SMF 2. And publish it as an actual mod etc.
That would be awesome, thanks :)
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 19, 2009, 05:12:35 PM
Quote from: mark7144 on January 17, 2009, 06:33:54 PM
M-DVD: If you are not going to make the most logical choice, which is doing what I suggest and what Nao did with his mod, then I'm now giving up with trying to persuade you. Eventually you'll probably realise how much your lack of action on this issue held back your mod, it's quite sad that you are stopping it reach its full potential.

Nao: Any chance you could get your mod to work for 1.1.7? I tried the attached and it said it was corrupt.

I'm already making the most logical option. In the prev message (http://www.simplemachines.org/community/index.php?topic=278227.msg1882609#msg1882609) (I guess you don't read) explain why. Otherwise I will profit is to you, but I damage to others. In this way (the most logical option), I profit to others, but don't damage to you.

First 1) You said want to have notice of new information, and this mod (http://custom.simplemachines.org/mods/index.php?mod=1557) gives you what you want. Then you don't agree, 2) And you say want to have notice "only with Merge Post"; and I give you a solution on this issue (http://www.simplemachines.org/community/index.php?topic=278227.msg1882609#msg1882609) and also rejected it.

Please be honest in this topic, the Truth is, you don't like anything I have offered, not because they don't serves, but simply because they don't want.

I hope you have luck on their way, and please, don't waste me time with lies, I cannot follow their game.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 19, 2009, 06:01:49 PM
I am being honest, I did read your post and appreciate the effort you made, thanks.

However, your solution is far from ideal as it involves installing 2 mods and hacking one of them when instead I should be able to download 1 mod with no hacking. Tell me this, are you saying Nao made an illogical choice when he implemented the feature in his mod?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 19, 2009, 06:35:33 PM
Quote from: mark7144 on January 19, 2009, 06:01:49 PM
I am being honest and I did read your post and appreciate the effort you made, thanks.

However, your solution is far from ideal as it involves installing 2 mods and hacking one of them when instead I should be able to download 1 mod with no hacking. Tell me this, are you saying Nao made an illogical choice when he implemented the feature we are all asking for?

First: Yes, are two MODs, but you shouldn't see the number, you should see the code. Both MOD are much less code and more efficient than the other (yes, two MOD, more efficient and light than one MOD).

Second: "we are all asking for", I don't know how true it is. "Only you" just want notice to "Merge Post" and not for all cases (ok, is your decision, and also I have solution for you).

And as I said before, in the other MOD is a collateral effect. And I have no need to intentionally add this feature, because there is already a MOD that makes the role and more comprehensive. If I add this funcition in this MOD, then caused many problems for those who want the two functions of both MODs (If I will profit to you, then I damage to others. In this way, I profit to others, but don't damage to you;... and also is it the logical way).


A personal example:

I recently did a MOD, I needed to read a page remotely. Not all host have turned fsockopen function, then I went to add a function that uses cURL to make this work. This was a mistake. Then I decided to do what was correct, and don't add this.

Later, aldo (http://www.simplemachines.org/community/index.php?action=profile;u=98660) did something to solve "the real problem with a real solution," and did this MOD (http://custom.simplemachines.org/mods/index.php?mod=1569). I am happy and I congratulate him because that was what I had to do, he has given the nail on the head.

Now, I and everyone, need to add anything, because the aldo's MOD makes the work, and work for all, without cause problems or duplicating code.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 20, 2009, 02:31:14 AM
@mark> I didn't choose anything... As a reminder: I am not the author of Merge Double Posts. I merely "got the job" without asking for anything, after I wrote a SMF2 version and submitted it to the original author (Din). But even though these aren't my choices, I stand by them. I've been living with the MDP mod for 4 years on my websites, and I wouldn't go back for anything in the world. (Especially with my 2007 additions.)

Quote from: M-DVD on January 19, 2009, 06:35:33 PM
First: Yes, are two MODs, but you shouldn't see the number, you should see the code. Both MOD are much less code and more efficient than the other (yes, two MOD, more efficient and light than one MOD).
I'm not sure I like the idea of bumping/notifying a topic for a simple edit. Although I would like to see the "New" icon to show up again when a post has been edited. But it requires modifying everyone's topicseen/boardseen logs. Which is complicated.

QuoteSecond: "we are all asking for", I don't know how true it is. "Only you" just want notice to "Merge Post" and not for all cases (ok, is your decision, and also I have solution for you).
Yes, I have to admit Mark is very vocal about what he wants ;)
But one also has to admit that his website is nicely done (the kind that would actually make me like Andy Murray... Okay maybe not :D), and he does have some good ideas.

QuoteLater, aldo (http://www.simplemachines.org/community/index.php?action=profile;u=98660) did something to solve "the real problem with a real solution," and did this MOD (http://custom.simplemachines.org/mods/index.php?mod=1569). I am happy and I congratulate him because that was what I had to do, he has given the nail on the head.
Hmm yeah it's a good thing he made that mod, but most of the SMF community doesn't seem to care. As I mentioned to him in his topic, he needs to evangelize the community about what the point is. Also, he should add even more capability to his mod. If you look into Aeva, you'll see that my own implementation of fetch_web_data() (called aeva_fetch()) also "tries" two other retrieval methods before calling it quits. I don't remember ever seeing someone tell me the lookup feature didn't work, actually.
Title: Re: Auto Merge Double Post
Post by: netoya on January 20, 2009, 05:06:07 AM
M-DVD,
QuoteYou have reviewed all your changes?

Check this: Admin.template.php (only SMF 1.1.X), ManagePosts.php, Subs-Post.php.
yes, I have checked it many times but merging works only then "Ignore Double Post Permission" is on.
I attached my files, waiting for your help.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 20, 2009, 05:28:50 AM
Quote from: Nao 尚 on January 20, 2009, 02:31:14 AM
I'm not sure I like the idea of bumping/notifying a topic for a simple edit. Although I would like to see the "New" icon to show up again when a post has been edited. But it requires modifying everyone's topicseen/boardseen logs. Which is complicated.
Can you remind me, what exactly does your mod do in regards to this?

Quote from: Nao 尚 on January 20, 2009, 02:31:14 AM
But one also has to admit that his website is nicely done (the kind that would actually make me like Andy Murray... Okay maybe not :D), and he does have some good ideas.
Thanks, bro! :D
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 20, 2009, 09:37:50 AM
Quote from: mark7144 on January 20, 2009, 05:28:50 AM
Quote from: Nao 尚 on January 20, 2009, 02:31:14 AM
I'm not sure I like the idea of bumping/notifying a topic for a simple edit. Although I would like to see the "New" icon to show up again when a post has been edited. But it requires modifying everyone's topicseen/boardseen logs. Which is complicated.
Can you remind me, what exactly does your mod do in regards to this?
Nothing. It acts just like there was no merging in the first place. The last post is "silently edited" to insert the previous post at the beginning of it. Then the previous post is deleted.
Any notification related feature will do the same as if no merge operation had taken place.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 20, 2009, 10:02:55 AM
Quote from: Nao 尚 on January 20, 2009, 09:37:50 AM
Nothing. It acts just like there was no merging in the first place. The last post is "silently edited" to insert the previous post at the beginning of it. Then the previous post is deleted.
Any notification related feature will do the same as if no merge operation had taken place.
Perfect! That's exactly what I want and it is far the most logical method for a double post mod.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 20, 2009, 10:19:44 AM
So...?
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 20, 2009, 10:44:28 AM
Are you asking me a question?
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 20, 2009, 11:34:36 AM
I'm not sure what you want me, or M-DVD, to do?
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 20, 2009, 12:14:08 PM
How was I suggesting that either one of you should do anything? I just asked you a question about of curiosity :)
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 20, 2009, 09:28:53 PM
Quote from: netoya on January 20, 2009, 05:06:07 AM
yes, I have checked it many times but merging works only then "Ignore Double Post Permission" is on.
I attached my files, waiting for your help.

Ok, i will check.

Quote from: Nao 尚 on January 20, 2009, 02:31:14 AM
Quote from: M-DVD on January 19, 2009, 06:35:33 PM
First: Yes, are two MODs, but you shouldn't see the number, you should see the code. Both MOD are much less code and more efficient than the other (yes, two MOD, more efficient and light than one MOD).
1) I'm not sure I like the idea of bumping/notifying a topic for a simple edit. Although I would like to see the "New" icon to show up again when a post has been edited. 2) But it requires modifying everyone's topicseen/boardseen logs. Which is complicated.

I don't understand the relationship of the quote with the answer ({*} my paranoia makes me think ¿fallacies in a support forum?, sorry), but:

1.- With the second MOD if only you want to see the "New Icon", then only active this option, and disable the other. Because this MOD is specialist for this task.

PD: Then, What you think of MOD MDP?, because this MOD always bumping the topic and send mail with "a simple edition" (Post Merge)

2.- ? The MOD do this work... with two updates.

Quote from: Nao 尚 on January 20, 2009, 02:31:14 AM
Yes, I have to admit Mark is very vocal about what he wants ;)
But one also has to admit that his website is nicely done (the kind that would actually make me like Andy Murray... Okay maybe not :D), and he does have some good ideas.

({*} déjà vu?)

Okay, but, that you say doesn't change what happened. All his requests have been accepted and solved, then has rejected the solution, and has changed the history.

Quote from: Nao 尚 on January 20, 2009, 02:31:14 AM
Hmm yeah it's a good thing he made that mod, but most of the SMF community doesn't seem to care. As I mentioned to him in his topic, he needs to evangelize the community about what the point is. Also, he should add even more capability to his mod...

Yes, it is very good, pity that great things generally tend to go unnoticed for the people.

Quote from: mark7144 on January 20, 2009, 10:02:55 AM
Quote from: Nao 尚 on January 20, 2009, 09:37:50 AM
Nothing. It acts just like there was no merging in the first place. The last post is "silently edited" to insert the previous post at the beginning of it. Then the previous post is deleted.
Any notification related feature will do the same as if no merge operation had taken place.
Perfect! That's exactly what I want and it is far the most logical method for a double post mod.

don't bet your salary XD

Comparison:



- The reply is sent.
- Checked if is Double Post. (Yes)
- Then "silently" is change the "Form REQUEST", and...
- Now the reply isn't released "new", but modify the previous one.
- End.
- The reply has sent
- The new reply is released
(Increases the number of user posts,
the number replies in the topics,
the number replies in the board,
send notifications, missing something?)
- The last post is "silently edited", ie...
- Read the last two post
- Move attachments from another post, to the new reply.
- It decreases the number of posts topic's
- And the number of replies from the board
- And the number of posts member's.
- The post is updated with new information from the previous one.
- Now remove the prev post.
- End.
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 21, 2009, 04:26:46 AM
Quote from: M-DVD on January 20, 2009, 09:28:53 PM
All his requests have been accepted and solved, then has rejected the solution, and has changed the history.
What are you on about? My request has always been for you to include the functionality I want into your existing Double Post mod but you have rejected my request. Instead, you have given me a solution that requires too much effort - I don't want to install 2 mods and hack one of them just so that I can get something that should logically be included in 1 mod.
Title: Re: Auto Merge Double Post
Post by: L'AltroWeb on January 21, 2009, 08:14:18 AM
Hi!
I have installing this mod but i don't see how i can enable also for Admin:
Quote$txt['AutoMergePost_4all'] = 'Ignore Double Post Permission';
$txt['AutoMergePost_4all_sub'] = 'Always Merge Double Post, even the Administratortor';
::)
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 22, 2009, 12:09:35 PM
Quote from: netoya on January 20, 2009, 05:06:07 AM
yes, I have checked it many times but merging works only then "Ignore Double Post Permission" is on.
I attached my files, waiting for your help.

I have also checked yours files, and are fine.

You have checked the permissions of membergroups?

Quote from: Dark-Wolf on January 21, 2009, 08:14:18 AM
Hi!
I have installing this mod but i don't see how i can enable also for Admin:
Quote$txt['AutoMergePost_4all'] = 'Ignore Double Post Permission';
$txt['AutoMergePost_4all_sub'] = 'Always Merge Double Post, even the Administratortor';
::)

Hi.

This function doesn't work? The text doesn't appear?

Are there info in the error log?

--

Important: The MOD 'Double Post Stopper' also uses  the permission 'doublePost', if you had installed this mod before, the permissions work equals. I realize this, and this may be good or bad, depending on your point of view.

--

Quote from: mark7144 on January 21, 2009, 04:26:46 AM
What are you on about? My request has always been for you to include the functionality I want into your existing Double Post mod but you have rejected my request. Instead, you have given me a solution that requires too much effort - I don't want to install 2 mods and hack one of them just so that I can get something that should logically be included in 1 mod.

You want bumps topics, to have notice of new information. Done (https://www.simplemachines.org/community/Themes/smsite/images/post/solved.gif)

Don't like this, because you don't want to have notice (bump) of New information, but only to have notice of Post Merge. Done (https://www.simplemachines.org/community/Themes/smsite/images/post/solved.gif)

But neither you like, because you want this included in the package. And I have explained it to you: If I will profit to you, then I damage to others. If I profit to others, don't damage to you. In addition, I have explained because it is illogical to accept this request.

Is it too much effort? Ok, the life isn't easy. Nor I do the clicks for you.

There are cases where you have to manually install MODs. In these cases you request a MOD that is installed on your particular forum?

The answer is NOT. End.

Title: Re: Auto Merge Double Post
Post by: L'AltroWeb on January 22, 2009, 12:17:11 PM
Quote from: M-DVD on January 22, 2009, 12:09:35 PM
Quote from: Dark-Wolf on January 21, 2009, 08:14:18 AM
Hi!
I have installing this mod but i don't see how i can enable also for Admin:
Quote$txt['AutoMergePost_4all'] = 'Ignore Double Post Permission';
$txt['AutoMergePost_4all_sub'] = 'Always Merge Double Post, even the Administratortor';
::)

Hi.

This function doesn't work? The text doesn't appear?

Are there info in the error log?
No error in error log.
Simply i don't found this function in admin panel :(
-
PS: from first post:

Quote* Also You can set a text of division in the Merge Post.
      Admin > Posts and Topics > Post Settings
I have this option in:  Admin > Posts and Topics > Topic Settings  ???

See screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg516.imageshack.us%2Fimg516%2F6276%2Fmerge1le7.th.gif&hash=94c311a84ac44bf6f373e000c059d758fe39ba0a) (http://img516.imageshack.us/img516/6276/merge1le7.gif)
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 22, 2009, 12:50:29 PM
Quote from: Dark-Wolf on January 22, 2009, 12:17:11 PM
...
No error in error log.
Simply i don't found this function in admin panel :(
-
PS: from first post:

Quote* Also You can set a text of division in the Merge Post.
      Admin > Posts and Topics > Post Settings
I have this option in:  Admin > Posts and Topics > Topic Settings  ???

See screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg516.imageshack.us%2Fimg516%2F6276%2Fmerge1le7.th.gif&hash=94c311a84ac44bf6f373e000c059d758fe39ba0a) (http://img516.imageshack.us/img516/6276/merge1le7.gif)

Oh, ok.

I think you've installed the version: v1.1.

You must install the version v1.2  :)
Title: Re: Auto Merge Double Post
Post by: L'AltroWeb on January 22, 2009, 12:58:15 PM
I'm Really sorry! My error (ver.1.0), now is ok :)
Title: Re: Auto Merge Double Post
Post by: netoya on January 22, 2009, 02:10:06 PM
M-DVD, may I check the permissions of membergroups in databese using phpmyadmin? In ACP I allowed these rights to the groups.
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 23, 2009, 10:38:34 AM
Quote from: Dark-Wolf on January 22, 2009, 12:58:15 PM
I'm Really sorry! My error (ver.1.0), now is ok :)

No problem  :)

Quote from: netoya on January 22, 2009, 02:10:06 PM
M-DVD, may I check the permissions of membergroups in databese using phpmyadmin? In ACP I allowed these rights to the groups.

Yes, you can use this code:

SELECT *
FROM `smf_board_permissions`
WHERE `permission` = 'doublePost'
Title: Re: Auto Merge Double Post
Post by: netoya on January 23, 2009, 10:51:19 AM
I checked it in database, nothing changes when I disable or enable this permissions:(
It always
Quote
permission addDeny
doublePost     1
...

I have no problems with other permissions
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 23, 2009, 11:23:13 AM




ID_GROUPID_BOARDpermissionaddDeny
20doublePost   1
50doublePost   1

In this case the membergroup 2 and 5, have permissions of Double Post (not Merge post)

--

I reviewed the MOD and it works well, and I have reviewed your files and go well. So it's a mystery.

Why not try installing automatically?
Title: Re: Auto Merge Double Post
Post by: netoya on January 23, 2009, 11:26:13 AM
I have a strongly modified skin, so I'm afraid to install automatically.
But I will try in that case.
Title: Re: Auto Merge Double Post
Post by: netoya on January 23, 2009, 11:52:14 AM
I installed automatoaly, but have the same result.

It is my fault, I dont understend the meaning of "Allow to do Double Post" option. Now it works fine. :)
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 23, 2009, 11:54:13 AM
Quote from: netoya on January 23, 2009, 11:52:14 AM
I installed automatoaly, but have the same result.

It is my fault, I dont understend the meaning of "Allow to do Double Post" option. Now it works fine. :)

XD Ok, i am glad that has been solved.
Title: Re: Auto Merge Double Post
Post by: ccraciun on January 28, 2009, 01:01:34 PM
What do you mean by double post?
I would like to use this mod to prevent users for adding "bla... bla..." like messages, intended to increase their posts number. It would be great that messages posted at less then 10 minutes (for instance...) to be merged into only one.

This mod provides this feature by the time between posts, or by the text of the messages? Because the users may bump the topic with different sentences, like: "up", or "anyone here?"...
Title: Re: Auto Merge Double Post
Post by: svobodniy on January 28, 2009, 05:15:25 PM
Is it possible to write something like "added 5 minutes later"?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 28, 2009, 07:58:07 PM
Quote from: ccraciun on January 28, 2009, 01:01:34 PM
What do you mean by double post?

More than a post followed, by the same author in the same topic. With any text. :P

Quote from: ccraciun on January 28, 2009, 01:01:34 PM
What do you mean by double post?
I would like to use this mod to prevent users for adding "bla... bla..." like messages, intended to increase their posts number. It would be great that messages posted at less then 10 minutes (for instance...) to be merged into only one.

This mod provides this feature by the time between posts, or by the text of the messages? Because the users may bump the topic with different sentences, like: "up", or "anyone here?"...

(I think) most of what you say, already fulfills this MOD.

You can set the amount of time, and all doublepost before that time will be merged after that time if permitted doublepost.

The MOD working with the time, not with the text. With the text would be very easy to circumvent the MOD.

if you like, could you give me one example where it makes sense (according to the text) allow a doublepost and in cases that make mergepost? (and not take account of the time).   


Quote from: svobodniy on January 28, 2009, 05:15:25 PM
Is it possible to write something like "added 5 minutes later"?

I can try add this variable :)
Title: Re: Auto Merge Double Post
Post by: svobodniy on January 29, 2009, 01:40:36 AM
Quote from: M-DVD on January 28, 2009, 07:58:07 PM
I can try add this variable :)
It would be great! 8)
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 29, 2009, 02:56:39 AM
You're asking for the equivalent of my mod's [mergedate], actually?
Title: Re: Auto Merge Double Post
Post by: svobodniy on January 29, 2009, 04:02:08 AM
Where can i take it?
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 29, 2009, 04:10:40 AM
On page 3
http://www.simplemachines.org/community/index.php?topic=278227.msg1843408#msg1843408

But it's SMF2-only.
I also posted the original SMF1-only version (not made by me) a few pages later, but it doesn't have the [mergedate] feature.

That was the whole point of half of this topic -- should I make a SMF1 version of my SMF2 mod? Or should I let M-DVD use my ideas for his own mod? I was ready for that, but I think he changes his mind in the meantime so I may have to do it myself.
Title: Re: Auto Merge Double Post
Post by: ccraciun on January 29, 2009, 04:28:06 AM
Quote from: M-DVD on January 28, 2009, 07:58:07 PM
Quote from: ccraciun on January 28, 2009, 01:01:34 PM
What do you mean by double post?
More than a post followed, by the same author in the same topic. With any text. :P
....
if you like, could you give me one example where it makes sense (according to the text) allow a doublepost and in cases that make mergepost? (and not take account of the time).   
...
Many thanks!
Now it's clear to me...

I don't have such an example and i don't think it would worth the effort to add such a feature; if anyone wants to distinguish a merged post, could add some bolded text as: "later edit", or better as svobodniy suggested, a sentence like "added x minutes later".
I didn't had a clear idea about how this mod works and that's why i asked.
Congratulations for creating such a useful mod!
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 29, 2009, 04:31:40 AM
Quote from: ccraciun on January 29, 2009, 04:28:06 AM
I don't have such an example and i don't think it would worth the effort to add such a feature; if anyone wants to distinguish a merged post, could add some bolded text as: "later edit", or better as svobodniy suggested, a sentence like "added x minutes later".
Then, same answer: if you use SMF2, check out my mod.
Title: Re: Auto Merge Double Post
Post by: svobodniy on January 29, 2009, 05:37:18 AM
Eh :( I use 1.1.7... And i don't understand how to install
Quote from: Nao 尚 on January 29, 2009, 04:10:40 AM
the original SMF1-only version
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 29, 2009, 05:41:42 AM
The SMF1 version was posted here:
http://www.simplemachines.org/community/index.php?topic=278227.msg1872652#msg1872652

It does have the original date indicated, but it doesn't have the associated [mergedate] bbc, which is stylable and translatable. (Is this proper English?)
Still, it works, that's what matters eh ;)
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 29, 2009, 08:17:27 AM
Nao: As I posted earlier in this thread, your mod does not work with 1.1.7

Installations actions for "Merge Double Posts RE":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 29, 2009, 08:38:14 AM
Quote from: mark7144 on January 29, 2009, 08:17:27 AM
Nao: As I posted earlier in this thread, your mod does not work with 1.1.7
Installations actions for "Merge Double Posts RE":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

If you're talking about the 1.1 version, then it shouldn't say that...
Try to force the version number. If SMF1 doesn't have that feature, edit the package-info.xml file to that end.
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 29, 2009, 09:39:05 AM
I just fixed someone's issue. I thought he had taken all steps to ensure it should work (i.e. implement the fixes mentioned in the readme file that appears after installation is completed). Of course, it wasn't done, so I wasted over an hour just trying the find the cause.

So, basically, I'm a bit blue now. I'll pass on this one.
Title: Re: Auto Merge Double Post
Post by: Beer on January 29, 2009, 04:11:02 PM
SMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
:(
Title: Re: Auto Merge Double Post
Post by: ccraciun on January 29, 2009, 06:34:18 PM
Quote from: Beer on January 29, 2009, 04:11:02 PM
SMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
:(
Which are the edit (from SMF's admin page) and merge topics (from mod's admin page) time that are you using?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 29, 2009, 07:35:13 PM
Quote from: ccraciun on January 29, 2009, 04:28:06 AM

Many thanks!
Now it's clear to me...

I don't have such an example and i don't think it would worth the effort to add such a feature; if anyone wants to distinguish a merged post, could add some bolded text as: "later edit", or better as svobodniy suggested, a sentence like "added x minutes later".
I didn't had a clear idea about how this mod works and that's why i asked.
Congratulations for creating such a useful mod!

Thanks.

Now already you can set a separate text, the text can even add the date, but not in the manner suggested svobodniy.

Quote from: Nao 尚 on January 29, 2009, 02:56:39 AM
You're asking for the equivalent of my mod's [mergedate], actually?

No, he wants something different.

Currently, my MOD (and the MDP MOD), write the "merge date". (ie, January, 29, 2009 at 07:35:13)

svobodniy wants, the time that happened since the merger. (ie, 5 minutes later)

Quote from: svobodniy on January 29, 2009, 05:37:18 AM
Eh :( I use 1.1.7... And i don't understand how to install
Quote from: Nao 尚 on January 29, 2009, 04:10:40 AM
the original SMF1-only version

The feature that you want, currently hasn't it no MOD.

Therefore, you can use my MOD. Works on all versions and has support.

Quote from: Beer on January 29, 2009, 04:11:02 PM
SMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
:(

With so many suggestions, I have no idea which MOD you are using.

What MOD you are using?

Title: Re: Auto Merge Double Post
Post by: ccraciun on January 30, 2009, 03:19:14 AM
Quote from: M-DVD on January 29, 2009, 07:35:13 PM
...
With so many suggestions, I have no idea which MOD you are using.
What MOD you are using?
I have to agree that this is something that needs to be clarified; for me (and i guess for all) it wouldn't matter too much who's credit it is, but would matter that this topic treats the issues related to THE MOD and not other issues. And after all, we should know where should we send a xmas gift... in Spain, or in France? :)

Title: Re: Auto Merge Double Post
Post by: Beer on January 30, 2009, 03:59:52 AM
QuoteSMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
My settings Double Post:
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 30, 2009, 04:23:23 AM
Quote from: ccraciun on January 30, 2009, 03:19:14 AM
I have to agree that this is something that needs to be clarified; for me (and i guess for all) it wouldn't matter too much who's credit it is, but would matter that this topic treats the issues related to THE MOD and not other issues. And after all, we should know where should we send a xmas gift... in Spain, or in France? :)
I'm not trying to bring any confusion. Originally M-DVD was going to integrate my stuff into his mod, so I saw no point for a new topic.
Title: Re: Auto Merge Double Post
Post by: LOVELORD on January 30, 2009, 04:38:14 AM
Serbian translation...  >:(
Title: Re: Auto Merge Double Post
Post by: mark7144 on January 30, 2009, 07:43:56 AM
Quote from: Nao 尚 on January 29, 2009, 08:38:14 AM
If you're talking about the 1.1 version, then it shouldn't say that...
Try to force the version number. If SMF1 doesn't have that feature, edit the package-info.xml file to that end.
I'm talking about DoublePostMerge108_RE_UTF.zip and I'm not sure what you are suggesting that I do?
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on January 30, 2009, 08:15:00 AM
Open the zip, edit package-info.xml, find the version number stuff, replace with something generic like in Aeva (check out its package-info.xml file), save, rezip, upload, install.
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 30, 2009, 10:29:59 AM
Quote from: Beer on January 30, 2009, 03:59:52 AM
QuoteSMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
My settings Double Post:

Try set: Maximun time after posting to allow edit in 0.

Redone that you did and tell me if the error showed.

Quote from: LOVELORD on January 30, 2009, 04:38:14 AM
Serbian translation...  >:(

Thanks for translate.  :D

Is the serbian_cyrilic okay? I only see these signs --> ????? 0 ?? ??

Is because I not have this fonts? or that either were not saved?
Title: Re: Auto Merge Double Post
Post by: LOVELORD on January 30, 2009, 10:38:30 AM
Quote from: M-DVD on January 30, 2009, 10:29:59 AM

Quote from: LOVELORD on January 30, 2009, 04:38:14 AM
Serbian translation...  >:(

Thanks for translate.  :D

Is the serbian_cyrilic okay? I only see these signs --> ????? 0 ?? ??

Is because I not have this fonts? or that either were not saved?

I'll try on my forum and it works...

I will do next day utf-8 cyrilic, and laso latinic and i will attach on that post..
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 30, 2009, 11:00:49 AM
Ok, then should be, I not have install these fonts (cannot think otherwise).

PD: The serbian_latinic is fine.

$txt['permissionname_doublePost'] = 'Dozvoliti duple postove';
$txt['permissionhelp_doublePost'] = 'Omogu&#263vanjem ovoga omogu&#263i&#263ete duple postove.';
$txt['AutoMergePost_div'] = 'Dodaj tekst kada spaja&#353 postove';
$txt['AutoMergePost_div_sub'] = 'Mo&#382ete koristiti BBC i $datumske varijable';
$txt['AutoMergePost_time'] = 'Vreme koje &#263e dozvoliti Dupli Post i Smanjiti Temu';
$txt['AutoMergePost_time_sub'] = 'Vreme 0 da bi onemogu&#263ili MOD i 9999 da nikada ne dozvoli';
$txt['AutoMergePost_4all'] = 'Ignori&#353i dozvole za Dupli Post';
$txt['AutoMergePost_4all_sub'] = 'Uvek spajaj Duple Postove, uklju&#269uju&#263i i administratorove';


but the cyrilic i see bad  :(

$txt['permissionname_doublePost'] = '??????? ????? ???????';
$txt['permissionhelp_doublePost'] = '???????????? ????? ???????????? ????? ???????.';
$txt['AutoMergePost_div'] = '????? ????? ???? ?????? ???????';
$txt['AutoMergePost_div_sub'] = '?????? ????????? BBC i $???????? ?????????';
$txt['AutoMergePost_time'] = '????? ???? ?? ????????? ????? ???? ? ??????? ????';
$txt['AutoMergePost_time_sub'] = '????? 0 ?? ?? ??????????? da bi ??? ? 9999 ?? ?????? ?? ???????';
$txt['AutoMergePost_4all'] = '???????? ??????? ?? ????? ????';
$txt['AutoMergePost_4all_sub'] = '???? ?????? ????? ???????, ??????????? ? ????????????????';


you will can download languaje_full.zip and add your texts and attach.  :)
Title: Re: Auto Merge Double Post
Post by: LOVELORD on January 30, 2009, 11:28:05 AM
Try now.. It must work...

Title: Re: Auto Merge Double Post
Post by: svobodniy on January 31, 2009, 05:10:28 AM
Quote from: M-DVD on January 29, 2009, 07:35:13 PM
svobodniy wants, the time that happened since the merger. (ie, 5 minutes later)
Do you try to do it?
Title: Re: Auto Merge Double Post
Post by: M-DVD on January 31, 2009, 09:10:37 PM
Quote from: LOVELORD on January 30, 2009, 11:28:05 AM
Try now.. It must work...

Thanks, now I upload your translations.

Quote from: LOVELORD on January 30, 2009, 11:28:05 AM
Try now.. It must work...

Quote from: svobodniy on January 31, 2009, 05:10:28 AM
Quote from: M-DVD on January 29, 2009, 07:35:13 PM
svobodniy wants, the time that happened since the merger. (ie, 5 minutes later)
Do you try to do it?

Yes  :)

Quote from: M-DVD on January 28, 2009, 07:58:07 PM
Quote from: svobodniy on January 28, 2009, 05:15:25 PM
Is it possible to write something like "added 5 minutes later"?

I can try add this variable :)
Title: Re: Auto Merge Double Post
Post by: Beer on February 01, 2009, 10:30:00 AM
QuoteSMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
My settings Double Post:
Try set: Maximun time after posting to allow edit in 0.
Redone that you did and tell me if the error showed.
If Maximun time after posting to allow  0 - new post addet - no problem, new message no merge...

This seems to happen with one user. Profile it as all.
Title: Re: Auto Merge Double Post
Post by: ccraciun on February 02, 2009, 04:47:13 PM
@Beer: That means it's working fine now?

Quote from: M-DVD on January 30, 2009, 10:29:59 AM
Quote from: Beer on January 30, 2009, 03:59:52 AM
QuoteSMF 1.1.7 Install - OK!
Admin messages in forum - no problem. User if added message in your message date 25/01/2009 - problem: "You may not modify this post as the time limit for edits has passed."
My settings Double Post:

Try set: Maximun time after posting to allow edit in 0.
Redone that you did and tell me if the error showed.
...
Indeed, i also noticed this issue:
- if "Maximum time after posting to allow edit" is "1 minute" i can still add posts (which are merged fine) for ~ more then 3 - 4 minutes since the first posted message; after 8 minutes or so, the "cannot modify post" appeared;

There is a way to solve this?
I intend to allow an edit time of 10 minutes, but to allow unlimited merged messages posted sooner than 1 day after the 1st post. By the way: 1 day (time for allow the double post...) means 24 hours from the 1st post, am i right?
I don't want to allow unlimited time for editing a message (value = "0"), because this way a user may delete anytime the content of his messages...

And one other thing: "Time for will allow the Doble Post and Bump the Topic:" sounds a little strange, at least for my english knowledge. :) Maybe would be better: "Time to allow the Double Post and Bump the Topic:"

Title: Re: Auto Merge Double Post
Post by: M-DVD on February 03, 2009, 07:57:44 PM
Quote from: ccraciun on February 02, 2009, 04:47:13 PM
Indeed, i also noticed this issue:
- if "Maximum time after posting to allow edit" is "1 minute" i can still add posts (which are merged fine) for ~ more then 3 - 4 minutes since the first posted message; after 8 minutes or so, the "cannot modify post" appeared;

There is a way to solve this?
I intend to allow an edit time of 10 minutes, but to allow unlimited merged messages posted sooner than 1 day after the 1st post. By the way: 1 day (time for allow the double post...) means 24 hours from the 1st post, am i right?
I don't want to allow unlimited time for editing a message (value = "0"), because this way a user may delete anytime the content of his messages...

Quote from: Beer on February 01, 2009, 10:30:00 AM
If Maximun time after posting to allow  0 - new post addet - no problem, new message no merge...

This seems to happen with one user. Profile it as all.

Ok, for the next version I will have this in mind.

Even I haven't studied this problem, but in the meantime, I think they can try this little hack.

Search in Sources/Subs-Post.php:
$_REQUEST['msg'] = $_GET['msg'] = $row['id_last_msg'];

Add before:
$modSettings['edit_disable_time'] = 0;


Quote from: ccraciun on February 02, 2009, 04:47:13 PM
And one other thing: "Time for will allow the Doble Post and Bump the Topic:" sounds a little strange, at least for my english knowledge. :) Maybe would be better: "Time to allow the Double Post and Bump the Topic:"

Thanks, also i will correct this.  :)
Title: Re: Auto Merge Double Post
Post by: ccraciun on February 04, 2009, 01:58:07 AM
Quote from: M-DVD on February 03, 2009, 07:57:44 PM
Search in Sources/Subs-Post.php:
$_REQUEST['msg'] = $_GET['msg'] = $row['id_last_msg'];

Add before:
$modSettings['edit_disable_time'] = 0;
It works!
Thanks a lot!
Title: Re: Auto Merge Double Post
Post by: mark7144 on February 04, 2009, 07:35:59 AM
The correct english: "Time before a double post will bump the topic"
Title: Re: Auto Merge Double Post
Post by: svobodniy on February 04, 2009, 08:23:18 PM
Quote from: M-DVD on January 31, 2009, 09:10:37 PM
Quote from: svobodniy on January 31, 2009, 05:10:28 AM
Quote from: M-DVD on January 29, 2009, 07:35:13 PM
svobodniy wants, the time that happened since the merger. (ie, 5 minutes later)
Do you try to do it?
Yes  :)
I done it myself.

In ManagePosts.php search for:
array('int', 'AutoMergePost_time', 'postinput' => $txt['days_word'], 'subtext' => $txt['AutoMergePost_time_sub']),
replace:
array('int', 'AutoMergePost_time', 'postinput' => $txt['AutoMergePost_min'], 'subtext' => $txt['AutoMergePost_time_sub']),

In Subs-Post.php search for:
function doublePostCheck()
{
global $smcFunc, $user_info, $topic, $modSettings;

replace:
function doublePostCheck()
{
global $smcFunc, $user_info, $topic, $modSettings, $txt;

search for:
// Allow Bump?
if (time() >= ($modSettings['AutoMergePost_time'] * 86400 + $row['poster_time']))
return;

// Now Modify >:D
$_REQUEST['msg'] = $_GET['msg'] = $row['id_last_msg'];
$_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
$_REQUEST['message'] = $_POST['message'] = un_htmlspecialchars(un_preparsecode($row['body'])) . "\n" . str_replace('$date', '[time]'.time().'[/time]', $modSettings['AutoMergePost_div']) . "\n" . $_POST['message'];

replace:
// Allow Bump?
if (time() >= ($modSettings['AutoMergePost_time'] * 60 + $row['poster_time']))
return;

// Now Modify >:D
$_AMDP_min = floor((time()-$row['poster_time'])/60);
$_AMDP_sec = ((time()-$row['poster_time'])%60);
if ($_AMDP_min < 1)
$_AMDP_time = "$_AMDP_sec " . $txt['AutoMergePost_sec'];
else
$_AMDP_time = "$_AMDP_min " . $txt['AutoMergePost_min'] . " $_AMDP_sec " . $txt['AutoMergePost_sec'];
$_REQUEST['msg'] = $_GET['msg'] = $row['id_last_msg'];
$_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
$_REQUEST['message'] = $_POST['message'] = un_htmlspecialchars(un_preparsecode($row['body'])) . "\n" . str_replace('$time', $_AMDP_time, $modSettings['AutoMergePost_div']) . "\n" . $_POST['message'];


In Modifications.english.php add:
$txt['AutoMergePost_min'] = 'min.';
$txt['AutoMergePost_sec'] = 'sec.';


For russian, in Modifications.russian-utf8.php add:
$txt['AutoMergePost_min'] = 'мин.';
$txt['AutoMergePost_sec'] = 'сек.';


Results:
1)
Quotethe time that happened since the merger. (ie, 5 minutes later)
2) and I added one more "convenience": in the settings you don't write "days", you write "minutes" - i think it's more comfortable.

In the attachment this mod only for SMF 2+ and contains english and russian_utf8 langs.
Title: Re: Auto Merge Double Post
Post by: M-DVD on February 10, 2009, 01:41:20 PM
Quote from: ccraciun on February 04, 2009, 01:58:07 AM
It works!
Thanks a lot!

Thanks, in the next version i will add this.

Quote from: mark7144 on February 04, 2009, 07:35:59 AM
The correct english: "Time before a double post will bump the topic"

Thanks, in the next version i will correct this and the ccraciun's and Nao's corrections.

Quote from: svobodniy on February 04, 2009, 08:23:18 PM
Quote from: M-DVD on January 31, 2009, 09:10:37 PM
Quote from: svobodniy on January 31, 2009, 05:10:28 AM
Quote from: M-DVD on January 29, 2009, 07:35:13 PM
svobodniy wants, the time that happened since the merger. (ie, 5 minutes later)
Do you try to do it?
Yes  :)
I done it myself.

Ok, perfect. I am glad you have resolved.

This gives me more time.  :P

--

The next version will not come soon, but after a few weeks or month. First I have to fix some MODs that are incompatible with the new profile of SMF RC1, check other things, and attend to other matters.

Thank you.
Title: Re: Auto Merge Double Post
Post by: Kuzmitch on February 11, 2009, 05:29:49 AM
Hi M-DVD!

Thanks for the great mod, I use it on the forum with about 1.8M messages. It really saved my commerce boards from "bumping madness".

Unfortunately on my VPS sever I found a strange bug: this query sometimes execute infinitly and locks messages and threads tables:

$result = db_query("
SELECT
t.ID_LAST_MSG, m.subject, m.body, m.posterTime
FROM
{$db_prefix}topics AS t, {$db_prefix}messages AS m
WHERE
t.ID_LAST_MSG = m.ID_MSG
AND m.ID_TOPIC = $topic
AND m.ID_MEMBER = $ID_MEMBER
LIMIT 1"
,__FILE__,__LINE__
);


Do you have any ideas why does it happen? The performance of the whole forum is OK, mysql is tuned, I use eAccelerator, nginx to lower the server load. Forum has about 500 people online.

Thanks in advance.
Title: Re: Auto Merge Double Post
Post by: autogespot.com on February 11, 2009, 07:10:20 AM
Is there a possibility to merge posts manually instead of automatically? Some double posts don't have to be merged.
Title: Re: Auto Merge Double Post
Post by: CvH on February 12, 2009, 11:13:38 AM
hi,  have made an german and an german-utf8 translation :)

great mod  ;D
Title: Re: Auto Merge Double Post
Post by: autogespot.com on February 12, 2009, 12:35:40 PM
I did a dutch one. Don't know how to do it in utf8
Title: Re: Auto Merge Double Post
Post by: Kuzmitch on February 12, 2009, 03:41:03 PM
Quote from: Kuzmitch on February 11, 2009, 05:29:49 AM
Unfortunately on my VPS sever I found a strange bug: this query sometimes execute infinitly and locks messages and threads tables:

Forget about that - I've finally found the bug in MySQL misconfiguration. :)
Title: Re: Auto Merge Double Post
Post by: M-DVD on February 17, 2009, 04:49:23 PM
Quote from: autogespot.com on February 12, 2009, 12:35:40 PM
I did a dutch one. Don't know how to do it in utf8

Quote from: CvH on February 12, 2009, 11:13:38 AM
hi,  have made an german and an german-utf8 translation :)

great mod  ;D

Thanks for your comments :D, soon (tomorrow), I will update the language pack.

Quote from: autogespot.com on February 11, 2009, 07:10:20 AM
Is there a possibility to merge posts manually instead of automatically? Some double posts don't have to be merged.

Yes, it is possible to do so in the future, medium or far.

Quote from: Kuzmitch on February 12, 2009, 03:41:03 PM
Quote from: Kuzmitch on February 11, 2009, 05:29:49 AM
Unfortunately on my VPS sever I found a strange bug: this query sometimes execute infinitly and locks messages and threads tables:

Forget about that - I've finally found the bug in MySQL misconfiguration. :)

This query is very light, I saw no problem in it, but i preferred be sure before. And I'm glad you've solved the problem (and you've notified ;)).


Thanks.

--

Thanks, the language packs have been uploaded.  :)
Title: Re: Auto Merge Double Post
Post by: Kuzmitch on February 18, 2009, 06:01:06 AM
Hi, it's me again :)

The problem is back and I finally found the solution. I'm not sure that it is the global problem which will exist on every MySQL server, but it helps me to avoid table-locking problem on every post.

I've made a small modification in the same query: in WHERE block I changed "m.ID_TOPIC = $topic" to "t.ID_TOPIC = $topic" and now everythink works fine.

It seems like on the large smf_messages table (mine is about 800 Mb) we have problems with indexes selection and it's good idea to use smf_topics table where it's possible.

Thanx!
Title: Re: Auto Merge Double Post
Post by: M-DVD on February 18, 2009, 10:01:33 PM
Oh,  :o  ok, i didn't know that this could create problem with big DB.

Thank you very much for notify and the Fix. :P

If you want, you can do this test, it may be better.

SELECT
t.ID_LAST_MSG, m.subject, m.body, m.posterTime
FROM
{$db_prefix}topics AS t
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_LAST_MSG)
WHERE m.ID_TOPIC = {$topic}
AND m.ID_MEMBER = {$ID_MEMBER}
LIMIT 1


If you do this test, tell me the result, to place the final change in the next version.
Title: Re: Auto Merge Double Post
Post by: Kuzmitch on February 19, 2009, 04:53:33 AM
Hi,

Just tried that query. Unfortunately the problems are back. It's kind of mistery :) I'll better stay with my personal mod, It seems like it works only at my forum.

I'm not a MySQL guru, but I found one mention that the queries could freeze with "Sending data" if you have bad (or large) indexes on the table and if you do this selection on the indexed field. I've did the repairs for the all tables for the several times, but It doesn't help.

Let leave our post in this thread and probably in the future it will help someone with the similar problems.

Yours,
Michael
Title: Re: Auto Merge Double Post
Post by: M-DVD on February 20, 2009, 08:33:42 PM
Ok, then I will make this change, to be included in next update.

Thanks :)
Title: Re: Auto Merge Double Post
Post by: narcolog on February 22, 2009, 02:51:29 AM
This mod doesn't work correctly with "AJAX Instant Quick Reply (http://custom.simplemachines.org/mods/index.php?mod=1214)". After poster sends double message, it shows 2 messages: first without merge and second with 2 merged messages. But after refresh everything shows OK.
Title: Re: Auto Merge Double Post
Post by: LOVELORD on February 26, 2009, 01:35:42 PM
How to allow Allow auto merge in some forums, but in others to disable???  ::)
Title: Re: Auto Merge Double Post
Post by: M-DVD on February 28, 2009, 12:23:46 AM
Quote from: narcolog on February 22, 2009, 02:51:29 AM
This mod doesn't work correctly with "AJAX Instant Quick Reply (http://custom.simplemachines.org/mods/index.php?mod=1214)". After poster sends double message, it shows 2 messages: first without merge and second with 2 merged messages. But after refresh everything shows OK.

Yes, this is because the MOD AIQR believe that has published a new reply and shows a new reply, ie, not expected to have a merge.

Should change the MOD AIQR, but I don't know the code of this mod, and besides, I don't think is serious.

Quote from: LOVELORD on February 26, 2009, 01:35:42 PM
How to allow Allow auto merge in some forums, but in others to disable???  ::)

Currently don't work in this way. The MOD  work it throughout the forum.

And don't know if many people are interested in this feature.
Title: Re: Auto Merge Double Post
Post by: narcolog on March 10, 2009, 04:40:41 AM
Quote from: M-DVD on February 28, 2009, 12:23:46 AM
Quote from: LOVELORD on February 26, 2009, 01:35:42 PM
How to allow Allow auto merge in some forums, but in others to disable???  ::)

Currently don't work in this way. The MOD  work it throughout the forum.

And don't know if many people are interested in this feature.
I'm very interested in this feature. We have a city forum on wich some boards have buy/sell themes, but others are cultural, historical. I want to prevent from bumping only on buy/sell boards, but stay other boards. Maybe it will be additional text field in admin panel, where administrator will fill comma delimited  ids of boards which will allow merging of double posts? Or disallow, never mind...
It's very useful feature for me.
Title: Re: Auto Merge Double Post
Post by: M-DVD on March 23, 2009, 10:24:43 AM
Quote from: narcolog on March 10, 2009, 04:40:41 AM
Quote from: M-DVD on February 28, 2009, 12:23:46 AM
Quote from: LOVELORD on February 26, 2009, 01:35:42 PM
How to allow Allow auto merge in some forums, but in others to disable???  ::)

Currently don't work in this way. The MOD  work it throughout the forum.

And don't know if many people are interested in this feature.
I'm very interested in this feature. We have a city forum on wich some boards have buy/sell themes, but others are cultural, historical. I want to prevent from bumping only on buy/sell boards, but stay other boards. Maybe it will be additional text field in admin panel, where administrator will fill comma delimited  ids of boards which will allow merging of double posts? Or disallow, never mind...
It's very useful feature for me.

Ok. It is possible that in the next update I release two versions (with and without this feature), because "possibly" this feature was "bother" for the rest the people. Depend on the tests. :)
Title: Re: Auto Merge Double Post
Post by: narcolog on March 26, 2009, 03:59:39 PM
Hooray!!!
Waiting for "with" version  ;)
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on March 28, 2009, 02:41:22 PM
Hi,

great mod.

I have a problem.
When a user write a post, it is ok.
When hi write a next post, it is ok.
When hi write a next post, hi becomes a error and the post doesn´t save.
Title: Re: Auto Merge Double Post
Post by: M-DVD on March 28, 2009, 10:05:01 PM
Quote from: Eclipse16V on March 28, 2009, 02:41:22 PM
Hi,

great mod.

I have a problem.
When a user write a post, it is ok.
When hi write a next post, it is ok.
When hi write a next post, hi becomes a error and the post doesn´t save.

Thanks :)

This isn't normal.  ::)

Ok
What version SMF's are you using? What version MOD's are you using? What error? A link to see the problem?
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on March 29, 2009, 06:22:00 AM
Hi,

- SMF 2.0RC1
- Auto Merge Double Post v1.2

Error:
Doesn´t post the message.
Title: Re: Auto Merge Double Post
Post by: M-DVD on March 29, 2009, 04:32:38 PM
Sorry, I cannot reproduce this error.

Could you give me more details?
Have you installed manually?
Could you give me an URL, user and pass, for test the error?
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on March 30, 2009, 03:51:12 AM
A pic from the error.
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on March 31, 2009, 07:39:09 AM
Here the Files:
Title: Re: Auto Merge Double Post
Post by: erdem86 on March 31, 2009, 10:50:24 AM
Hi,

Thanks for this nice mod. Is there any way to set topics to be bumped while messages are merged?

I mean;

A person will open a thread at 10:00AM

He will come back at 18:00PM when his thread is at the fifth place. He will reply and messages will be merged but his topic will bump, go to the first line. Leting us to know that there is a new reply even if it is merged.
Title: Re: Auto Merge Double Post
Post by: M-DVD on March 31, 2009, 08:32:27 PM
Quote from: Eclipse16V on March 31, 2009, 07:39:09 AM
Here the Files:

Ok, i will check. More later or tomorrow i tell you.

Quote from: erdem86 on March 31, 2009, 10:50:24 AM
Hi,

Thanks for this nice mod. Is there any way to set topics to be bumped while messages are merged?

I mean;

A person will open a thread at 10:00AM

He will come back at 18:00PM when his thread is at the fifth place. He will reply and messages will be merged but his topic will bump, go to the first line. Leting us to know that there is a new reply even if it is merged.

Thanks
Yes, you can use this MOD
http://custom.simplemachines.org/mods/index.php?mod=1557
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on April 01, 2009, 07:52:00 AM
OK

THX
Title: Re: Auto Merge Double Post
Post by: erdem86 on April 03, 2009, 01:18:53 PM
Quote from: M-DVD on March 31, 2009, 08:32:27 PM
Quote from: Eclipse16V on March 31, 2009, 07:39:09 AM
Here the Files:

Ok, i will check. More later or tomorrow i tell you.

Quote from: erdem86 on March 31, 2009, 10:50:24 AM
Hi,

Thanks for this nice mod. Is there any way to set topics to be bumped while messages are merged?

I mean;

A person will open a thread at 10:00AM

He will come back at 18:00PM when his thread is at the fifth place. He will reply and messages will be merged but his topic will bump, go to the first line. Leting us to know that there is a new reply even if it is merged.

Thanks
Yes, you can use this MOD
http://custom.simplemachines.org/mods/index.php?mod=1557
Thanks :D
Title: Re: Auto Merge Double Post
Post by: M-DVD on April 03, 2009, 11:49:33 PM
Quote from: Eclipse16V on April 01, 2009, 07:52:00 AM
OK

THX

Quote from: erdem86 on April 03, 2009, 01:18:53 PM
Thanks :D

Your welcome  ;)
Title: Re: Auto Merge Double Post
Post by: TetsuoS on April 18, 2009, 04:35:53 AM
Hey

I have some remarks/questions/possible feature requests:

I've been using a merge double post mod on my forum for several years. A few days ago we decided to get rid of tons of bloat and do a complete re-install. Upon searching for this mod I found it was no longer listed, but I did come up with your mod. I've looked over the code of your mod and it's quite elegant. The other mod merged the posts in the 'new' post, while this one seems to merge them in the 'old already present' post. Both ways of doing things have their ups and downs I suppose. Anyway...

How does your mod react to a double post merge that exceeds the maximum number of chars in a single post, the other mod had a setting that would temporarily disable such limitations? This is mostly a theoretical question for me, since in most instances, the double posts we encounter on our board are not that long, but I can imagine it might matter for other boards, especially, since your default minimum time interval is a whole day.

Would it be possible for you to add a 'merge double post' button on a post that is detected to be a double post with a permission so that mods can merge  double posts even if those posts were made after the automatic double post merging time had passed?

I normally used to use the automatic merge double post feature of the other mod to merge posts that were made in close succession simply because the member was too lazy to use the edit button of his other post and thus set it to a relatively short interval time (I can manually edit the days into seconds, minutes or hours in your mod by changing the 86400 literal to something smaller, like 60 or 3600 or so, that's not a problem, though you might think about making this a configurable variable for those that are not confident with manually editing code, maybe even via an elegant drop down box or so where admins can select the multiplier from a set list), however, every now and then somebody posts what I'd call a 'real' double post after the set time had passed, a bump or whatever. Moderators would then merge that bump into the previous post if they deemed it to be useless (simple deletion of posts is not an option, members generally truely dislike it if you start deleting their posts, even if they are worthless posts, merging seems to be a good compromise for both parties involved (moderators/members). Another alternative is that after the short interval time had passed the double poster would do his thing again, but this time, he'd provide a valuable new post that's worthy of standing on its own, in this case, the mods could decide not to merge. Increasing the auto double post interval would automatically merge those posts, and that we'd rather not have happen.

So I'm faced with a dilemma, either install the old mod, which seems to do double post merging a bit less efficient, but does have the ability to manually merge a double post, or use your new mod which lacks this feature, but speeds up the merging.

I realise that we're using the mod not entirely for it's prime intended purpose (the control of thread bumps), but it's a small step from one use to the other.

Thanks for looking into my questions. :)
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on April 18, 2009, 05:03:09 AM
> but speeds up the merging.

In what way?
Title: Re: Auto Merge Double Post
Post by: TetsuoS on April 18, 2009, 07:00:59 AM
Well, I only glanced at it, but it seemed to me as if this merge mod never actually posts the new message if it detects it's going to be a double post, but just edits the original post. While the other merge mod does post the new message and then takes the old message and merges that into the new message and then deletes the original message. Not? If that's right, it should be clear that this newer merge mod is faster, simply because it has less overhead to deal with. Not that it would make a great difference in overall server performance, unless double posting has become a way of life for the members. :)

I've used the old mod for over 2 years and have been very pleased with its performance. I had a few minor issues with it, but nothing that would have made me switch if it were still available and maintained. I think one minor issue I had with it, was with insufficient permission settings, where I couldn't assign double post permissions/usergroup?

With this new mod, the issue would be, no merge possibilities after the merge time has been exceeded. To me that's a rather major issue, unfortunately, so I'm hoping the author will be willing to implement such a system, though it's clear that the merging principle used for the automatic system will have to be altered for manual merging, since the post obviously already exists in case of merging after the fact.
Title: Re: Auto Merge Double Post
Post by: M-DVD on April 18, 2009, 12:37:30 PM
Quote from: TetsuoS on April 18, 2009, 04:35:53 AM
Hey

I have some remarks/questions/possible feature requests:

I've been using a merge double post mod on my forum for several years. A few days ago we decided to get rid of tons of bloat and do a complete re-install. Upon searching for this mod I found it was no longer listed, but I did come up with your mod. I've looked over the code of your mod and it's quite elegant. The other mod merged the posts in the 'new' post, while this one seems to merge them in the 'old already present' post. Both ways of doing things have their ups and downs I suppose. Anyway...

Hi. Thanks

And yes, is truth :)

--

About the Maximun number chars:

Currently, if exceeded, is displayed the error message "post very large".

For the new version I was planned include the option to choose if you want to ignore this.

The solution is very simple and elegant, it is enough assign a value to a variable and the forum does the rest. ;)

About the Escale Time:

Ok. Currently seems to me that isn't required manual editing of MOD. I think you can try input, for example: 0.5 (days) ≡ 12 (hours)

I remember that this works (in my test).

About the Manual Merge:

Yes, I thought make a classic version that only focuses on the automatic merging; and an extended version that also has option of manual merging, with their own permissions for users and moderators permissions.

Then each person chooses the version needed for his forum.

--

I think I have answered all your questions, if I have forgotten some, let me know. :)
Title: Re: Auto Merge Double Post
Post by: TetsuoS on April 18, 2009, 06:33:37 PM
Nope, thank you very much for replying so promptly.

Any idea on a loosely defined timescale for the extended version? Finished in a few months, a year, etc? I don't want to seem pushy or anything, I'm just curious. :)
Title: Re: Auto Merge Double Post
Post by: M-DVD on April 19, 2009, 08:57:34 PM
I don't think that before a month, maybe two, i have backlog ::)
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on April 30, 2009, 02:25:38 AM
I have a problem with the [time] Code.  :-[
Auto Merge Double Post = Newest Version
SMF = Newest Version
Title: Re: Auto Merge Double Post
Post by: M-DVD on May 02, 2009, 07:49:54 PM
Afaik this is a problem with bbcode time.

I will check it.
Title: Re: Auto Merge Double Post
Post by: Enders on May 28, 2009, 06:42:34 PM
Uhh is there a way to mark the merged post as a new post?
Title: Re: Auto Merge Double Post
Post by: Nao 尚 on May 29, 2009, 02:27:40 AM
Yes, use the alternative mod that was posted in the first pages. It is mentioned here on a regular basis ;)
(Must be annoying in the long run for you, M-DVD -- my sympathies to you.)
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on May 29, 2009, 03:58:40 AM
Quote from: M-DVD on May 02, 2009, 07:49:54 PM
Afaik this is a problem with bbcode time.

I will check it.
Any news?
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 01, 2009, 11:01:38 AM
I have used this mod time and time again, and in my member's journal area, there's always a problem with it for some reason. Here is what a member told me:

Quotedont know if this is a glitch or not................
been trying to write in my journal.............. I was the laast to make a post, over a week ago and now i'm getting anerror message saying time for modification has elapsed..........

ERROR MESSAGE:
you may not modify this post as the time limit for edits has passed

Her last entry was on about a week ago.

I have not messed with the original settings since I installed it just yesterday, but I did uncheck Ignore Double Post Permission to see if that might help.

Any idea what could be the problem?
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 01, 2009, 06:46:18 PM
Quote from: Enders on May 28, 2009, 06:42:34 PM
Uhh is there a way to mark the merged post as a new post?

You can try this :)
http://www.simplemachines.org/community/index.php?topic=278227.msg1882609#msg1882609

--

Quote from: Eclipse16V on May 29, 2009, 03:58:40 AM
Any news?

:P, today I will check it.

--

Quote from: Autumn13 on June 01, 2009, 11:01:38 AM
I have used this mod time and time again, and in my member's journal area, there's always a problem with it for some reason. Here is what a member told me:

Quotedont know if this is a glitch or not................
been trying to write in my journal.............. I was the laast to make a post, over a week ago and now i'm getting anerror message saying time for modification has elapsed..........

ERROR MESSAGE:
you may not modify this post as the time limit for edits has passed

Her last entry was on about a week ago.

I have not messed with the original settings since I installed it just yesterday, but I did uncheck Ignore Double Post Permission to see if that might help.

Any idea what could be the problem?

You can try this, and tell me :)
http://www.simplemachines.org/community/index.php?topic=278227.msg1910620#msg1910620
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 01, 2009, 10:46:00 PM
Quote from: M-DVD on June 01, 2009, 06:46:18 PM
You can try this, and tell me :)
http://www.simplemachines.org/community/index.php?topic=278227.msg1910620#msg1910620

Thank you for being so sweet and getting back to me. However, I am using smf 1.1.9, and when I open Sources/Subs-Post.php, the code you said to search for does not turn up, so I am a bit lost.

Thank you so much for replying. I would appreciate it so much if we can figure this out. This mod is so useful!
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on June 02, 2009, 12:01:39 AM
Quote from: M-DVD on June 01, 2009, 06:46:18 PM
Quote from: Eclipse16V on May 29, 2009, 03:58:40 AM
Any news?

:P, today I will check it.
OK, thanks
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on June 03, 2009, 12:01:25 AM
Are there already any pieces of news?

Thanks
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 03, 2009, 10:52:34 PM
Quote from: Autumn13 on June 01, 2009, 10:46:00 PM
Quote from: M-DVD on June 01, 2009, 06:46:18 PM
You can try this, and tell me :)
http://www.simplemachines.org/community/index.php?topic=278227.msg1910620#msg1910620

Thank you for being so sweet and getting back to me. However, I am using smf 1.1.9, and when I open Sources/Subs-Post.php, the code you said to search for does not turn up, so I am a bit lost.

Thank you so much for replying. I would appreciate it so much if we can figure this out. This mod is so useful!

This code exists, only if already you have installed the mod.

If you like, you can attach this file, and I will check.

--

Quote from: Eclipse16V on June 03, 2009, 12:01:25 AM
Are there already any pieces of news?

Thanks

The other day, I could reproduce this error on your forum.

However, I have been trying on my test forum, I even changed the language to German, but I couldn't to reproduce the issue yet. ::)
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on June 03, 2009, 11:45:42 PM
And now?  :(
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 04, 2009, 10:28:41 PM
Quote from: M-DVD on June 03, 2009, 10:52:34 PM
This code exists, only if already you have installed the mod.

If you like, you can attach this file, and I will check.

Ah, that was my fault. I could have sworn I did this while the Mod was applied, but apparently not.

Fixed, put in your suggestion and will report back.

Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 06, 2009, 03:46:31 PM
All is working fine! It did the trick!

However, I'd like for the merged post to automatically bump the topic. I searched in this topic for key words and came up with only the first post....I was sure I had read the solution in here before....any help from anyone on that? :-[ Sorry
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 07, 2009, 02:02:58 PM
Ah, finally found the way to fix it. Thanks!
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 07, 2009, 06:48:54 PM
Quote from: Autumn13 on June 04, 2009, 10:28:41 PM
Ah, that was my fault. I could have sworn I did this while the Mod was applied, but apparently not.

Fixed, put in your suggestion and will report back.

No problem.

Quote from: Autumn13 on June 07, 2009, 02:02:58 PM
Ah, finally found the way to fix it. Thanks!

Your welcome :)
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 10, 2009, 04:18:45 PM
My goodness, M-DVD, I am so sorry to keep bumping this topic!

Everything functions now like it should, except my forum members are now complaining about a code coming up at the very top of the page. I have experienced this myself, personally, but usually when I am sending PMs.
$_REQUEST['msg'] = $_GET['msg'] = $row['id_last_msg'];   
Users who use IE complain this message is in a rather large font. I use Firefox and the font is normal.

A member gave me this report
QuoteI get the message each and every time I change windows, whether I'm trying to read other people's posts, post in my journal or reply to something.

When I go to change places within the forum (changing topics or whatever) it first gives me a blank screen with that error message, then the normal forum page(s) appear but the error message stays in the upper right corner of the screen. I use IE at work and Firefox at home and am seeing the error message in both places.

As far as the font goes, it shows this very large font - looks like about 16 pt on the screen - when I'm posting. It's identical to the font size used in the TMI warning box. But then once the post is actually "posted" it drops down to it's normal size.

Also, I don't know if this has anything to do with it, but the insert quote from the actual post and when you are in full reply does not work.

I will double check the code when I get home...make sure I didn't add anything extra, but I followed your advice to the letter, so I do  not believe I made a mistake in the code, but of course I won't rule that out.
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 10, 2009, 10:19:37 PM
Can you give me link/user/pass and the steps to reproduce the problem?

Perhaps if I see it, I could know what was the mistake that was made.
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 15, 2009, 02:35:43 PM
I believe this is the file you wanted.
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 15, 2009, 09:58:10 PM
Quote from: Autumn13 on June 15, 2009, 02:35:43 PM
I believe this is the file you wanted.

Done :)
Title: Re: Auto Merge Double Post
Post by: Autumn13 on June 16, 2009, 11:00:19 AM
*blushes* Thank you very much, you are such a doll. Sorry to be so bothersome!
Title: Re: Auto Merge Double Post
Post by: vika.vedy on June 18, 2009, 03:56:10 AM
Hello again, M-DVD,
and I have another issue with other your mod: Auto Merge Double Post. I have corrected it and suggest to add my solution in next update of the MOD
The issue:
I have one board with totally restricted modifying messages,
so, when my members posts their next message right after previous, they receive "cannot_modify_own" error.

The solution is:
add 'modify_own' permission to the end and global array $user_info at the beginning of you doublePostCheck() function:
function doublePostCheck()
{
global $db_prefix, $ID_MEMBER, $topic, $modSettings, $user_info;

// Allow Doble Post?
if (allowedTo('doublePost') && !($modSettings['AutoMergePost_4all']))
return;

// Do the Query to checking exist Double Post
$result = db_query("
SELECT
t.ID_LAST_MSG, m.subject, m.body, m.posterTime
FROM
{$db_prefix}topics AS t, {$db_prefix}messages AS m
WHERE
t.ID_LAST_MSG = m.ID_MSG
AND m.ID_TOPIC = $topic
AND m.ID_MEMBER = $ID_MEMBER
LIMIT 1"
,__FILE__,__LINE__
);

// No Flood?
if (!mysql_num_rows($result))
return;

$row = mysql_fetch_assoc($result);
mysql_free_result($result);

// Allow Bump?
if (time() >= ($modSettings['AutoMergePost_time'] * 86400 + $row['posterTime']))
return;

// Now Modify >:D
$_REQUEST['msg'] = $_GET['msg'] = $row['ID_LAST_MSG'];
$_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
$_REQUEST['message'] = $_POST['message'] = un_htmlspecialchars(un_preparsecode($row['body'])) . "\n" . str_replace('$date', '[time]'.time().'[/time]', $modSettings['AutoMergePost_div']) . "\n" . $_POST['message'];
if(!in_array('modify_own',$user_info['permissions'])) $user_info['permissions'][] = 'modify_own';
}



Thank you fo this MOD!
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 21, 2009, 01:51:34 PM
Quote from: vika.vedy on June 18, 2009, 03:56:10 AM
Hello again, M-DVD,
...
The issue:
I have one board with totally restricted modifying messages,
so, when my members posts their next message right after previous, they receive "cannot_modify_own" error.

Yes, this is a known problem, also with easy solution. Now in July / August I will have time to update this mod and add the tricks that there are along this theme.

Thank you :)
Title: Re: Auto Merge Double Post
Post by: wladymeer on June 23, 2009, 08:17:15 AM
I may not know if this mod was causing me a problem but after I installed it I've lost verification image on registration page and when I rolled back verification image was there again.
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 24, 2009, 10:28:15 PM
Quote from: wladymeer on June 23, 2009, 08:17:15 AM
I may not know if this mod was causing me a problem but after I installed it I've lost verification image on registration page and when I rolled back verification image was there again.

No, this mod has no relation to that place. The cause must be another. ::)
Title: Re: Auto Merge Double Post
Post by: wladymeer on June 24, 2009, 10:36:33 PM
I'm not saying that this is causing the problem, maybe the problem is in collision with other mods, here is the list of currently installed on my forum:

AjaxChat Integration 3.2
Search Focus Dropdown 1.3
Locked Topic Color 1.0
Yet Another Global Announcements Mod 1.1.7.2
Aeva ~ Auto-Embed Video & Audio 6.9.99
Pm Number in All Pages
Simple Joomla! 1.5.x / SMF 2.0.x Bridge 1.0.14a
vB Style Topic Author Name 1.0
Advanced Reputation System 1.7.4
Recent posts user preference 3.06


But I do know that I installed it last and I've lost verification page - when I uninstalled it I got it back.
Title: Re: Auto Merge Double Post
Post by: akbora on June 27, 2009, 08:58:38 AM
I have an error. Date of first merged message is wrong.

For example:

Üst Üste Gelen Mesaj, Otomatik Birleştirildi: Bugün, 13:56:39deneme
Üst Üste Gelen Mesaj, Otomatik Birleştirildi: Bugün, 14:56:54deneme
Üst Üste Gelen Mesaj, Otomatik Birleştirildi: Bugün, 15:57:18deneme


I sent them between one minute.
Title: Re: Auto Merge Double Post
Post by: M-DVD on June 29, 2009, 04:47:16 PM
Quote from: wladymeer on June 24, 2009, 10:36:33 PM
I'm not saying that this is causing the problem, maybe the problem is in collision with other mods, here is the list of currently installed on my forum:

Ok.

It is possible a "conflict between mods", but it is unlikely that the effects are there.

However, I will check it in the weekend.

--

Quote from: akbora on June 27, 2009, 08:58:38 AM
I have an error. Date of first merged message is wrong.

For example:

Üst Üste Gelen Mesaj, Otomatik Birleştirildi: Bugün, 13:56:39deneme
Üst Üste Gelen Mesaj, Otomatik Birleştirildi: Bugün, 14:56:54deneme
Üst Üste Gelen Mesaj, Otomatik Birleştirildi: Bugün, 15:57:18deneme

I sent them between one minute.


Something must be wrong in your forum/host.

This mod, records the time with the php function time(), and displays it using the BBCode [time] of SMF.

Ie, even though I try, I don't see how (the mod) can cause and fix it the failure.
Title: Re: Auto Merge Double Post
Post by: netoya on June 29, 2009, 04:51:15 PM
QuoteSomething must be wrong in your forum/host.

Just noticed the same problem on my forum.
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on June 29, 2009, 05:49:59 PM
Same Problem:
http://www.simplemachines.org/community/index.php?topic=278227.msg2037441#msg2037441
Title: Re: Auto Merge Double Post
Post by: Autumn13 on July 03, 2009, 11:00:56 PM
I just wanted to reply and say everything works perfectly now. My whole forum appreciates it! Thank you!
Title: Re: Auto Merge Double Post
Post by: mpver on July 17, 2009, 01:31:55 PM
Hi, I am trying to uninstal this mod but keep getting an error message:-
1.     Execute Modification     ./Themes/default/Admin.template.php     Test failed
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ManagePosts.php    Test failed
4.    Execute Modification    ./Sources/Post.php    Test successful
5.    Execute Modification    ./Sources/Subs-Post.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Modifications.english_british.php    Skipping file
9.    Execute Modification    ./Themes/default/languages/Modifications.english_british-utf8.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.spanish-utf8.php    Skipping file
12.    Execute Modification    ./Themes/default/languages/Modifications.spanish_es.php    Skipping file
13.    Execute Modification    ./Themes/default/languages/Modifications.spanish_es-utf8.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.spanish_latin.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.spanish_latin-utf8.php    Test successful

Is it ok to ignore these errors or is it going to cause a problem with my forum, if so how do I disable this mod?
Title: Re: Auto Merge Double Post
Post by: Owdy on August 02, 2009, 02:09:28 PM
Never used this MOD, but here it goes by Finnish

$txt['permissionname_doublePost'] = 'Salli peräkkäiset viestit';
$txt['permissionhelp_doublePost'] = 'Tämä asetus sallii peräkkäiset viestit.';
$txt['AutoMergePost_div'] = 'Lisää teksti yhdistettyjen viestien yhteyteen';
$txt['AutoMergePost_div_sub'] = 'Voit käyttää BBC koodia sekä $date variable';
$txt['AutoMergePost_time'] = 'Aika jolloin peräkkäiset viestit sallitaan';
$txt['AutoMergePost_time_sub'] = 'Aseta 0 ottaaksesi koko toiminnon pois käytöstä ja 9999 estääksesi kokonaan';
$txt['AutoMergePost_4all'] = 'Älä huomioi yhdistettyjen viestien oikeuksia';
$txt['AutoMergePost_4all_sub'] = 'Yhdistä peräkkäiset viestit aina, ylläpitäjiltäkin';
Title: Re: Auto Merge Double Post
Post by: apTyaH on August 12, 2009, 03:08:08 PM
How-to delete added date of modification post when posts auto merged? I want when posts auto merge was added only string of AutoMergePost_div and without of modification date. I use smf 1.1.9 and AutoMergeDoublePost_v1.2.
Title: Re: Auto Merge Double Post
Post by: M-DVD on September 27, 2009, 07:49:05 PM
Update Auto Merge Double Post v1.3:
=========================


Sorry for delay.

New features:

How do I upgrade?

=======================================

Características Nuevas:


¿Como actualizar?
Title: Re: Auto Merge Double Post
Post by: Owdy on September 28, 2009, 02:01:53 AM
Awesome, manual setting is what i avve been waiting for. Thanks!
Title: Re: Auto Merge Double Post
Post by: villasg on September 28, 2009, 02:28:01 AM
Greek-utf8
// MOD Auto Merge Double Post
$txt['permissionname_doublePost'] = 'Επιτρέπετε το ΔιπλοΠοστάρισμα';
$txt['permissionhelp_doublePost'] = 'Με αυτή την επιλογή επιτρέπετε σε αυτο το group το ΔιπλοΠοστάρισμα.';
$txt['AutoMergePost_div'] = 'Πρόσθεσε ένα κείμενο όταν ενώνονται τα ποστ
<div class="smalltext">You Μπορείς να χρησιμοποιήσεις BBC  κώδικα και $date variable</div>';
$txt['AutoMergePost_time'] = 'Χρόνος που μετα την παρέλευση του θα επιτρέπετε το ΔιπλοΠοστάρισμα στο topic
<div class="smalltext">Με 0 απενεργοποιείται το MOD και με 9999 δεν επιτρέπει ποτε το to ΔιπλοΠοστάρισμα</div>';
$txt['AutoMergePost_4all'] = 'Αγνόησε τα δικαιώματα ΔιπλοΠοσταρίσματος
<div class="smalltext">Πάντα να ενώνονται τα post , συμπεριλαμβανομένων και του Administrator</div>';

$txt['merge_button'] = 'Συγχώνευση Posts';
$txt['AutoMergePost_auto'] = 'Ενεργοποίηση αυτόματης Συγχώνευσης Doble Posts';
$txt['AutoMergePost_manual'] = 'Ενεργοποίηση χειροκίνητης Συγχώνευσης Doble Posts';
$txt['AutoMergePost_nomax'] = 'Παράβλεψε το maximum post size';
$txt['AutoMergePost_reason'] = 'Συγχωνευμένο DoublePost';

$txt['permissionname_doublePostmerge'] = 'Επέτρεψε το χειροκίνητο merge double posts';
$txt['permissionhelp_doublePostmerge'] = 'This permission allows users to merge double posts.';
$txt['permissionname_doublePostmerge_own'] = 'Δικό μου double posts';
$txt['permissionname_doublePostmerge_any'] = 'Οποιοδήποτε double posts';
$txt['cannot_merged_replies'] = 'Δεν σας επιτρέπεται να συγχωνεύσετε αυτα τα posts.';
$txt['modlog_ac_merged'] = 'Συγχωνευμένα &quot;{message}&quot; απο &quot;{member}&quot;';

$txt['manageposts_automerge_settings'] = 'Merge Double Posts';
$txt['manageposts_automerge_settings_description'] = 'Εδώ μπορείτε να ρυθμίσετε τα settings περιλαμβανομένων της  αυτόματης & χειροκίνητης συγχώνευσης των doubles posts.';]]></add>

   
Title: Re: Auto Merge Double Post
Post by: villasg on September 28, 2009, 07:03:24 AM
Canot find in the admin panel the mod in ver 1.1.10
Title: Re: Auto Merge Double Post
Post by: Owdy on September 28, 2009, 07:12:07 AM
I got same problem. It showed in default theme, then i realised that those thanslations arent complete. There are missing strings. I added them and now it appears in my own theme.
Title: Re: Auto Merge Double Post
Post by: M-DVD on September 28, 2009, 12:51:03 PM
Quote from: Owdy on September 28, 2009, 02:01:53 AM
Awesome, manual setting is what i avve been waiting for. Thanks!

Thanks for your comments, and for help :D

Quote from: villasg on September 28, 2009, 02:28:01 AM
Greek-utf8

villasg & netoya, Thanks for translate, I have uploaded yours translations. :D
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 07, 2009, 05:50:24 PM
Very nice mod.
But i found a bug - with non english localization (of the forum), when we edit the merged post, the time tag does not parsed, it's edited like this:

QuoteДобавлено: Октябрь 08, 2009, 00:08:28

Any ideas on how to fix that?
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on October 08, 2009, 01:26:07 AM
This is a old Bug.
I have it too.  :(
Title: Re: Auto Merge Double Post
Post by: villasg on October 08, 2009, 07:36:11 AM
Me too !
Title: Re: Auto Merge Double Post
Post by: M-DVD on October 14, 2009, 10:35:52 PM
Quote from: MrCreatoR on October 07, 2009, 05:50:24 PM
Very nice mod.
But i found a bug - with non english localization (of the forum), when we edit the merged post, the time tag does not parsed, it's edited like this:

QuoteДобавлено: Октябрь 08, 2009, 00:08:28

Any ideas on how to fix that?

Quote from: Eclipse16V on October 08, 2009, 01:26:07 AM
This is a old Bug.
I have it too.  :(

Quote from: villasg on October 08, 2009, 07:36:11 AM
Me too !

>:( Oh ****, I thought I had already fixed.

Then find in Subs-Post.php

$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);

And replace

// $parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);

Anyway, it is a bug in time bbcode, I tried fix it :/
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 14, 2009, 10:47:10 PM
[?] (http://www.simplemachines.org/community/index.php?topic=278227.msg2309764#msg2309764)
QuoteThen find in Subs-Post.php

And replace
They are the same, isn't? :)
Title: Re: Auto Merge Double Post
Post by: M-DVD on October 14, 2009, 11:15:14 PM
Quote from: MrCreatoR on October 14, 2009, 10:47:10 PM
[?] (http://www.simplemachines.org/community/index.php?topic=278227.msg2309764#msg2309764)
QuoteThen find in Subs-Post.php

And replace
They are the same, isn't? :)

No xD, the second line are commented. ie, will not be unparsed.

Title: Re: Auto Merge Double Post
Post by: netoya on October 15, 2009, 01:16:46 AM
Quote from: M-DVD on October 14, 2009, 10:35:52 PM
Then find in Subs-Post.php

$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);

And replace

// $parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);

Anyway, it is a bug in time bbcode, I tried fix it :/

Thanks it helped on 1.2 version of mod. Still can't update to 1.3:( too many conflicts when uninstall
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 15, 2009, 07:30:04 AM
[?] (http://www.simplemachines.org/community/index.php?topic=278227.msg2309796#msg2309796)
QuoteNo xD, the second line are commented. ie, will not be unparsed.
Oops, sorry, didn't see that :)
Thank you, now it's parsed properly.
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 15, 2009, 05:18:06 PM
Is there any chance to add an option to disable posts merging for the first post (when creating the topic)?
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 26, 2009, 09:34:00 PM
*Bump* (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.myopera.com%2FCreat0R%2FOpera_AC%2FIcons%2Fwhistle.gif&hash=b463a7a5f361486e1fc887fed195705a19ef377f)
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 27, 2009, 11:55:14 AM
When merging post that have single quote char in his title ('), it's prefixed by slash character - like this: \'.

Any ideas how to fix that?
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 27, 2009, 05:27:03 PM
And one more request if possible - change days to hours, so we be able to limit by hours not only days.
Title: Re: Auto Merge Double Post
Post by: netoya on October 28, 2009, 06:57:09 AM
0.5 is equivalent to 12 hours ;)
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 28, 2009, 07:13:49 AM
Quote from: netoya on October 28, 2009, 06:57:09 AM
0.5 is equivalent to 12 hours ;)
Are you sure? Have you tried this? ;)
I have, but it's turned to 0 :(
Title: Re: Auto Merge Double Post
Post by: netoya on October 28, 2009, 07:18:17 AM
MrCreatoR http://www.simplemachines.org/community/index.php?topic=278227.msg1843771#msg1843771
you can try 0,5. May be it works.
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on October 28, 2009, 08:16:25 AM
Quote from: netoya on October 28, 2009, 07:18:17 AM
MrCreatoR http://www.simplemachines.org/community/index.php?topic=278227.msg1843771#msg1843771
you can try 0,5. May be it works.
0,5 doesn't working either. I changed the template eventualy, thanks.
Title: Re: Auto Merge Double Post
Post by: alx on November 04, 2009, 02:58:11 PM
I get this error.

8: Undefined index: merge_button
Arquivo: /home/XXXX/public_html/forum/Sources/Subs.php
Linha: 3619


and this is the line refered

Quotereturn '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');

someone could help me???
tks.
Title: Re: Auto Merge Double Post
Post by: dj_pont on November 10, 2009, 09:35:03 PM
In RC2 no this string "$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');"
Title: Re: Auto Merge Double Post
Post by: Dreadaxe on November 11, 2009, 05:20:52 PM
Quote from: villasg on September 28, 2009, 07:03:24 AM
Canot find in the admin panel the mod in ver 1.1.10

That work for me but I don't have option to the default theme!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg109.imageshack.us%2Fimg109%2F6817%2Fcapturer1.jpg&hash=e8ead42470746b9932a4faf26208061f447ab335)
Title: Re: Auto Merge Double Post
Post by: RML on November 20, 2009, 01:57:54 PM
Here is the Hungarian utf-8 translation.

$txt['permissionname_doublePost'] = 'Dupla hozzászólás engedélyezése';
$txt['permissionhelp_doublePost'] = 'Ha engedélyezed megengedett lesz a dupla hozzászólás.';
$txt['AutoMergePost_div'] = 'Szöveg hozzáadása összevonáskor
<div class="smalltext">Használhatsz BB kódot és a $date változót</div>';
$txt['AutoMergePost_time'] = 'Idő, ami után engedélyezett a dupla hozzászólás a téma előre ugrasztására
<div class="smalltext">Add meg az időt napokban. Állítsd 9999 napra az összevonás letiltásához</div>';
$txt['AutoMergePost_4all'] = 'Engedélyek figyelmen kívül hagyása dupla hozzászóláskor
<div class="smalltext">Mindíg vonja össze a dupla hozzászólásokat, még az adminokét is</div>';

$txt['merge_button'] = 'Hozzászólás összevonása';
$txt['AutoMergePost_auto'] = 'Hozzászólás automatikus összevonásának engedélyezése';
$txt['AutoMergePost_manual'] = 'Hozzászólás manuális összevonásának engedélyezése';
$txt['AutoMergePost_nomax'] = 'Hosszászólás karakterszámának figyelmen kívül hagyása';
$txt['AutoMergePost_reason'] = 'Öszevont dupla hozzászólás';

$txt['permissionname_doublePostmerge'] = 'Manuális összevonás engedélyezése';
$txt['permissionhelp_doublePostmerge'] = 'A felhasználó összevonhat dupla hozzászólásokat.';
$txt['permissionname_doublePostmerge_own'] = 'Saját dupla hozzászólás';
$txt['permissionname_doublePostmerge_any'] = 'Bármely dupla hozzászólás';
$txt['cannot_merged_replies'] = 'Nincs engedélyed a hozzászólások összevonására.';
$txt['modlog_ac_merged'] = 'Összevonva &quot;{message}&quot; &quot;{member}&quot; által';

$txt['manageposts_automerge_settings'] = 'Dupla hozzászólás összevonása';
$txt['manageposts_automerge_settings_description'] = 'Itt elvégezheted a beállításokat az auto &
manuális dupla hozzászólások összevonására vonatkozóan.';
Title: Re: Auto Merge Double Post
Post by: TurtleKicker on November 20, 2009, 02:25:01 PM
Any word on an RC2 update for this mod? I depend on it heavily and would hate to lose it.

Thanks. :)
Title: Re: Auto Merge Double Post
Post by: Tanshaydar on December 03, 2009, 01:29:43 AM
This is a great and very functional mod, I was using this on my forums.
Any chance to get it updated for RC2?
Title: Re: Auto Merge Double Post
Post by: infyquest on December 07, 2009, 01:56:15 PM
I have made a small fix for 2.0 RC2 (file in attachment)
please test it
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on December 08, 2009, 04:54:08 AM
Work fine on SMF 2.0 RC2  8)
Title: Re: Auto Merge Double Post
Post by: Tanshaydar on December 08, 2009, 06:25:25 AM
Quote from: infyquest on December 07, 2009, 01:56:15 PM
I have made a small fix for 2.0 RC2 (file in attachment)
please test it

It merges, but merging button doesn't show text nor image.
Title: Re: Auto Merge Double Post
Post by: Milossh on December 13, 2009, 02:15:45 AM
Quote from: Tanshaydar on December 08, 2009, 06:25:25 AM
Quote from: infyquest on December 07, 2009, 01:56:15 PM
I have made a small fix for 2.0 RC2 (file in attachment)
please test it

It merges, but merging button doesn't show text nor image.

Yeah, because RC2 now pulles images from CSS, and the author is trying to find the line where split button is created, then adds a code to create merge button which will be used later. Merge button shows image and text after it. Now, as installer can't find split button creation code, it can't add code for creating merge button, and that's why nothing is showed. So simply open your Display.template.php, find

// Can the user merge the doble post?

and change it with:

// Can the user merge the doble post?
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"';)


P.S. I just needed to add style="padding: 0px;" to my link params to have it all look nice, because by default, SMF adds some left padding to that ul class.
Title: Re: Auto Merge Double Post
Post by: C4G-TK on December 23, 2009, 07:28:52 PM
I'm using the file from reply #283 for rc2

When I go into Display.template, I have the following:

// Can the user merge the doble post?
if ($message['can_merge'])
echo '
<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';



Do I need to still add the following into it?

$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"';)
Title: Re: Auto Merge Double Post
Post by: Milossh on December 31, 2009, 01:37:28 AM
There's no need, if you have merge image button on a topic.
Title: Re: Auto Merge Double Post
Post by: ChaosEnergy on December 31, 2009, 04:39:30 AM
there is no button, i enabled manual merge for #283 posted file
Title: Re: Auto Merge Double Post
Post by: Milossh on January 07, 2010, 01:00:55 AM
When you enable manual merge, posts won't be merged manually, and you should have an button[merge] in the toolbar of every post that may be merged. So, try posting 2 posts opne after another, and see if there's merge button on both of them. If there aren't any buttons, you may want to use my fix.
Title: Re: Auto Merge Double Post
Post by: atfosan on January 17, 2010, 04:35:43 PM
Make for yourself full-fixed version of mod: no 1.x support, no extra, only Russian-utf8 and English translation. Tested on 2.0 RC2.
Title: Re: Auto Merge Double Post
Post by: yurkli on January 21, 2010, 01:24:13 PM
hello:
I have SMF 2.0 RC2 but I Display.template appears, how can I get the MOD?

Thank you very much

Quote from: atfosan on January 17, 2010, 04:35:43 PM
Make for yourself full-fixed version of mod: no 1.x support, no extra, only Russian-utf8 and English translation. Tested on 2.0 RC2.

I installed your version and I no longer fails, but I have to join the post button. How can I link a button to post?
Title: Re: Auto Merge Double Post
Post by: atfosan on January 25, 2010, 06:28:58 AM
Quote from: yurkli on January 21, 2010, 01:24:13 PM
I installed your version and I no longer fails, but I have to join the post button. How can I link a button to post?

Hello! Sorry, I'm not well in English :) and I don't understand what you are want.

There is screenshot of all buttons in double message on my forum in attachments.
Title: Re: Auto Merge Double Post
Post by: yurkli on January 25, 2010, 01:35:08 PM
Since I work. thank you very much
Title: Re: Auto Merge Double Post
Post by: steve51184 on February 09, 2010, 09:07:42 PM
Quote from: atfosan on January 17, 2010, 04:35:43 PM
Make for yourself full-fixed version of mod: no 1.x support, no extra, only Russian-utf8 and English translation. Tested on 2.0 RC2.

using this mod on smf 2.0 rc2 and it's working fine for admins but i can't give other membergroups (global mods) the permission to see the 'merge topic' button/link any ideas why?
Title: Re: Auto Merge Double Post
Post by: atfosan on February 10, 2010, 10:40:14 AM
Quote from: ppbz on February 09, 2010, 09:07:42 PM
Quote from: atfosan on January 17, 2010, 04:35:43 PM
Make for yourself full-fixed version of mod: no 1.x support, no extra, only Russian-utf8 and English translation. Tested on 2.0 RC2.

using this mod on smf 2.0 rc2 and it's working fine for admins but i can't give other membergroups (global mods) the permission to see the 'merge topic' button/link any ideas why?

Go to Forum » Administration Center » Permissions » General Permissions. Select group which you want to setting and check needed strings. On my site it works well with any groups. Global Mods and Admins see the merge button if there are doubled post, but I don't know what about regular users because their posts automatically merge. For example screenshot of Global Mods settings page.
But I don't know why 2 strings have same names... they make different things and I checked it trying all variants.
Title: Re: Auto Merge Double Post
Post by: steve51184 on February 10, 2010, 02:22:41 PM
Quote from: atfosan on February 10, 2010, 10:40:14 AM
Quote from: ppbz on February 09, 2010, 09:07:42 PM
Quote from: atfosan on January 17, 2010, 04:35:43 PM
Make for yourself full-fixed version of mod: no 1.x support, no extra, only Russian-utf8 and English translation. Tested on 2.0 RC2.

using this mod on smf 2.0 rc2 and it's working fine for admins but i can't give other membergroups (global mods) the permission to see the 'merge topic' button/link any ideas why?

Go to Forum » Administration Center » Permissions » General Permissions. Select group which you want to setting and check needed strings. On my site it works well with any groups. Global Mods and Admins see the merge button if there are doubled post, but I don't know what about regular users because their posts automatically merge. For example screenshot of Global Mods settings page.
But I don't know why 2 strings have same names... they make different things and I checked it trying all variants.

yeah i did that but still they can't see it
Title: Re: Auto Merge Double Post
Post by: atfosan on February 10, 2010, 02:32:58 PM
And what about your first and second options in Forum » Administration Center » Posts and Topics » Merge Double Posts ?
Title: Re: Auto Merge Double Post
Post by: steve51184 on February 10, 2010, 02:34:40 PM
Quote from: atfosan on February 10, 2010, 02:32:58 PM
And what about your first and second options in Forum » Administration Center » Posts and Topics » Merge Double Posts ?


Enable Auto Merge Doble Posts = no
Enable Manual Merge Doble Posts = yes
Title: Re: Auto Merge Double Post
Post by: steve51184 on February 10, 2010, 08:08:06 PM
any ideas?
Title: Re: Auto Merge Double Post
Post by: atfosan on February 11, 2010, 08:07:05 AM
Ehm... very strange. I have same settings but my users of tested group see the Merge button... Try to reinstall mod maybe... if it will be useless you need to ask developers because I don't know what you need to do.

And in my opinion this problem doesn't relate to my fixed version of mod.
Title: Re: Auto Merge Double Post
Post by: steve51184 on February 11, 2010, 02:40:02 PM
Quote from: atfosan on February 11, 2010, 08:07:05 AM
Ehm... very strange. I have same settings but my users of tested group see the Merge button... Try to reinstall mod maybe... if it will be useless you need to ask developers because I don't know what you need to do.

And in my opinion this problem doesn't relate to my fixed version of mod.

yeah i tested it on a test forum and it works but not on my smf 1.1.11 updated to smf 2.0 rc2 forum... is it dut to having the old mod on 1.1.11 and it somehow messing the settings up?
Title: Re: Auto Merge Double Post
Post by: atfosan on February 11, 2010, 02:45:43 PM
Quote from: ppbz on February 11, 2010, 02:40:02 PM
Quote from: atfosan on February 11, 2010, 08:07:05 AM
Ehm... very strange. I have same settings but my users of tested group see the Merge button... Try to reinstall mod maybe... if it will be useless you need to ask developers because I don't know what you need to do.

And in my opinion this problem doesn't relate to my fixed version of mod.

yeah i tested it on a test forum and it works but not on my smf 1.1.11 updated to smf 2.0 rc2 forum... is it dut to having the old mod on 1.1.11 and it somehow messing the settings up?

Try to install mod manually.
Title: Re: Auto Merge Double Post
Post by: steve51184 on February 11, 2010, 02:55:24 PM
Quote from: atfosan on February 11, 2010, 02:45:43 PM
Quote from: ppbz on February 11, 2010, 02:40:02 PM
Quote from: atfosan on February 11, 2010, 08:07:05 AM
Ehm... very strange. I have same settings but my users of tested group see the Merge button... Try to reinstall mod maybe... if it will be useless you need to ask developers because I don't know what you need to do.

And in my opinion this problem doesn't relate to my fixed version of mod.

yeah i tested it on a test forum and it works but not on my smf 1.1.11 updated to smf 2.0 rc2 forum... is it dut to having the old mod on 1.1.11 and it somehow messing the settings up?

Try to install mod manually.

i have/did but it still only works for admins and not mods
Title: Re: Auto Merge Double Post
Post by: Bruno36 on February 20, 2010, 08:33:42 AM
Hello!

I use SMF 2.0 RC2 and the default theme.
In Display.template.php I can not find the code line
   $split_button = create_button('split.gif', 'split', 'split', 'align="middle"');
Title: Re: Auto Merge Double Post
Post by: smldmr on February 21, 2010, 03:29:53 PM
i can't find it too.
Title: Re: Auto Merge Double Post
Post by: atfosan on February 21, 2010, 04:36:39 PM
Reread previous page.
Title: Re: Auto Merge Double Post
Post by: Bruno36 on February 22, 2010, 03:51:30 AM
http://www.simplemachines.org/community/index.php?action=dlattach;topic=278227.0;attach=126756  :)
Title: Re: Auto Merge Double Post
Post by: matiaz on February 27, 2010, 04:18:32 PM
Hi M-DVD, first of all thanks for share your MOD. It's really very usefull. I've created [mergedate] TAG (thanks mark7144 (http://www.simplemachines.org/community/index.php?action=profile;u=34087)) and i want to mod merge the post like this:
Post 1[mergedate][b]** EDIT: Flood. Posts combinados. **[/b][/mergedate]Post 2

For the moment, the MOD it's doing it this way:
Post 1[mergedate][b]** EDIT: Flood. Posts combinados. **[/b][/mergedate]
Post 2


¿Any suggest?

Sorry about my poor english.





EDIT: Solved. On "Subs-Post.php" i've deleted the bold text.
Quote// Now Modify >:D
   $user_info['permissions'][] = 'modify_own';
   $modSettings['edit_disable_time'] = 0;
   $modSettings['max_messageLength'] = empty($modSettings['AutoMergePost_nomax']) ? $modSettings['max_messageLength'] : 0;
   $_REQUEST['msg'] = $_GET['msg'] = $row['ID_MSG'];
   $_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
   $_REQUEST['message'] = $_POST['message'] = un_htmlspecialchars(un_preparsecode($row['body'])) . "\n" . str_replace('$date', ''.time().'', $modSettings['AutoMergePost_div']) . "\n" . $_POST['message'];
}
Title: Re: Auto Merge Double Post
Post by: steve51184 on March 03, 2010, 08:52:45 AM
found a rather big bug... when you merge a double post the topic notifications are cleared :\
Title: Re: Auto Merge Double Post
Post by: matiaz on March 03, 2010, 02:11:05 PM
Quote from: zx71 on March 03, 2010, 08:52:45 AM
found a rather big bug... when you merge a double post the topic notifications are cleared :\
http://custom.simplemachines.org/mods/index.php?mod=1557  ;)
Title: Re: Auto Merge Double Post
Post by: steve51184 on March 03, 2010, 02:14:58 PM
Quote from: matiaz on March 03, 2010, 02:11:05 PM
Quote from: zx71 on March 03, 2010, 08:52:45 AM
found a rather big bug... when you merge a double post the topic notifications are cleared :\
http://custom.simplemachines.org/mods/index.php?mod=1557  ;)

but that won't work for rc2?
Title: Re: Auto Merge Double Post
Post by: matiaz on March 03, 2010, 02:35:47 PM
¿Can't you parse the files manually for test in local server?
Title: Re: Auto Merge Double Post
Post by: steve51184 on March 03, 2010, 05:40:51 PM
Quote from: matiaz on March 03, 2010, 02:35:47 PM
¿Can't you parse the files manually for test in local server?

when trying to install this it will let me do it but i get this 1 error:

Quote3.     Execute Modification     ./Themes/default/scripts/xml_topic.js     File not found

and it looks like xml_topic.js was renamed topic.js so i've fixed the archive and it's working find on smf 2.0 rc2
Title: Re: Auto Merge Double Post
Post by: steve51184 on March 03, 2010, 06:01:16 PM
tested and it works perfect thank you :)
Title: Re: Auto Merge Double Post
Post by: matiaz on March 03, 2010, 06:25:06 PM
Nice. The MOD now can be updated  ;D
Title: Re: Auto Merge Double Post
Post by: matiaz on March 03, 2010, 09:39:29 PM
Quote from: matiaz on February 27, 2010, 04:18:32 PM
Hi M-DVD, first of all thanks for share your MOD. It's really very usefull. I've created [mergedate] TAG (thanks mark7144 (http://www.simplemachines.org/community/index.php?action=profile;u=34087)) and i want to mod merge the post like this:
Post 1[mergedate][b]** EDIT: Flood. Posts combinados. **[/b][/mergedate]Post 2

For the moment, the MOD it's doing it this way:
Post 1[mergedate][b]** EDIT: Flood. Posts combinados. **[/b][/mergedate]
Post 2


¿Any suggest?

Sorry about my poor english.

¿Nobody can help me?  :-\




EDIT: Solved. On "Subs-Post.php" i've deleted the bold text.
Quote// Now Modify >:D
   $user_info['permissions'][] = 'modify_own';
   $modSettings['edit_disable_time'] = 0;
   $modSettings['max_messageLength'] = empty($modSettings['AutoMergePost_nomax']) ? $modSettings['max_messageLength'] : 0;
   $_REQUEST['msg'] = $_GET['msg'] = $row['ID_MSG'];
   $_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
   $_REQUEST['message'] = $_POST['message'] = un_htmlspecialchars(un_preparsecode($row['body'])) . "\n" . str_replace('$date', ''.time().'', $modSettings['AutoMergePost_div']) . "\n" . $_POST['message'];
}
Title: Re: Auto Merge Double Post
Post by: Bugo on March 04, 2010, 01:18:31 PM
Updated russian translation:

$txt['permissionname_doublePost'] = 'Разрешить "двойные" сообщения';
$txt['permissionhelp_doublePost'] = 'Включая, вы разрешаете отправлять сообщения подряд (не склеивая).';
$txt['AutoMergePost_div'] = 'Добавлять текст при склеивании сообщений
<div class="smalltext">Можно использовать BB код и переменную $date</div>';
$txt['AutoMergePost_time'] = 'Время, по истечении которого сообщение не будет склеиваться и тема будет поднята
<div class="smalltext">Установите значение в днях. Значение "9999" полностью отключит данную опцию</div>';
$txt['AutoMergePost_4all'] = 'Игнорировать права по отправке "двойных" сообщений
<div class="smalltext">Всегда "склеивать" сообщения, даже для администраторов</div>';
$txt['merge_button'] = 'Объединить сообщения';
$txt['AutoMergePost_auto'] = 'Включить автоматическое объединение сообщений';
$txt['AutoMergePost_manual'] = 'Включить ручное объединение сообщений';
$txt['AutoMergePost_nomax'] = 'Игнорировать значение максимальной длины сообщения';
$txt['AutoMergePost_reason'] = 'Объединение сообщений';
$txt['permissionname_doublePostmerge'] = 'Разрешить ручное объединение двойных сообщений';
$txt['permissionhelp_doublePostmerge'] = 'Эта опция позволяет пользователям склеивать двойные сообщения.';
$txt['permissionname_doublePostmerge_own'] = 'Свои двойные сообщения';
$txt['permissionname_doublePostmerge_any'] = 'Любые двойные сообщения';
$txt['cannot_merged_replies'] = 'У Вас нет прав на склеивание сообщений.';
$txt['modlog_ac_merged'] = 'Сообщение &quot;{message}&quot; объединено пользователем &quot;{member}&quot;';
$txt['manageposts_automerge_settings'] = 'Склеивание двойных сообщений';
$txt['manageposts_automerge_settings_description'] = 'Здесь можно задать параметры автоматической и ручной склейки двойных сообщений.';

Title: Re: Auto Merge Double Post
Post by: RacingETR on March 07, 2010, 11:03:49 AM
Hola soy nuevo aqui pues mi problema es que no se como instalar esos archivos en mi foro u,u

Saludos y disculpen mi ignorancia. :'(

EDIT.

Sorry ya me explicaron Gracias por el Mod
Title: Re: Auto Merge Double Post
Post by: mmubashar on March 10, 2010, 08:47:27 PM
Whenever I try to add this plugin, I keep getting this text at the top of the site:
// MOD Auto Merge Double Post $txt['permissionname_doublePost'] = 'Allow to do Double Post'; $txt['permissionhelp_doublePost'] = 'By Enabling this will allow them to double post.'; $txt['AutoMergePost_div'] = 'Add text when merging the post'; $txt['AutoMergePost_div_sub'] = 'You can use BBC and $date variable'; $txt['AutoMergePost_time'] = 'Time after which it will allow the bump the topic'; $txt['AutoMergePost_time_sub'] = 'Time 0 to disable the MOD and 9999 for never allow bump'; // MOD Auto Merge Double Post $txt['permissionname_doublePost'] = 'Allow Double Posts'; $txt['permissionhelp_doublePost'] = 'By Enabling this will allow them to double post.'; $txt['AutoMergePost_div'] = 'Add text when merging posts
You can use BBCode and the $date variable
'; $txt['AutoMergePost_time'] = 'Time to allow the Double Post and Bump the Topic
Set time in days. Set 9999 days for never allow
'; $txt['AutoMergePost_4all'] = 'Ignore Double Post Permission
Always Merge Double Posts, even for administrators
'; $txt['merge_button'] = 'Merge Posts'; $txt['AutoMergePost_auto'] = 'Enable Auto Merge Doble Posts'; $txt['AutoMergePost_manual'] = 'Enable Manual Merge Doble Posts'; $txt['AutoMergePost_nomax'] = 'Ignore maximum post size'; $txt['AutoMergePost_reason'] = 'Merged DoublePost'; $txt['permissionname_doublePostmerge'] = 'Allow manual merge double posts'; $txt['permissionhelp_doublePostmerge'] = 'This permission allows users to merge double posts.'; $txt['permissionname_doublePostmerge_own'] = 'Own double posts'; $txt['permissionname_doublePostmerge_any'] = 'Any double posts'; $txt['cannot_merged_replies'] = 'You are not, allowed to merge this posts.'; $txt['modlog_ac_merged'] = 'Merged "{message}" by "{member}"'; $txt['manageposts_automerge_settings'] = 'Merge Double Posts'; $txt['manageposts_automerge_settings_description'] = 'Here you can set all settings involving auto & manual merge doubles posts.';


Any workaround?
Title: Re: Auto Merge Double Post
Post by: atfosan on March 10, 2010, 10:50:19 PM
Quote from: mmubashar on March 10, 2010, 08:47:27 PM
Any workaround?

There is no errors reports... Strange. Is mod working at all?
If it doesn't firstly try to reinstall the mod. If it is useless you need to install mod manually.

Bugo
Thank you for your translation! :)
Title: Re: Auto Merge Double Post
Post by: Tanshaydar on March 13, 2010, 07:54:35 PM
Any chance to get updated for RC3?
Title: Re: Auto Merge Double Post
Post by: Tanshaydar on March 13, 2010, 11:06:24 PM
Looks like working. Thanks!
Title: Re: Auto Merge Double Post
Post by: hcfwesker on March 14, 2010, 12:14:42 AM
I've got this installed on SMF 1.1.11 successfully, and works on all of my themes.  The problem is, the double posts don't get automatically merged, I can only manually merge them.  I have messed around with the different options in the adminCP for auto and manually merging ... but so far only the manual merger is working.

Anyone explain to me the correct procedure to get double posts automatically merged?

Title: Re: Auto Merge Double Post
Post by: mmubashar on March 14, 2010, 12:24:19 PM
Hey guys,
I'm having a little problem here..Running SMF 1.1.11 and somehow, when the first post is edited, it repost everything on that same post twice with a double-post timeline divider..I want to disable the plugin to work with "edits" and only work with new posts..How do I do this?
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on March 15, 2010, 01:53:15 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Auto Merge Double Post
Post by: Tanshaydar on March 15, 2010, 11:05:16 AM
Quote from: Tanshaydar on March 13, 2010, 11:06:24 PM
Looks like working. Thanks!

It looked like working, but it's not :/
Title: Re: Auto Merge Double Post
Post by: mmubashar on March 16, 2010, 02:12:40 AM
Okay, some updates, here is the problem that's occuring.
Edit posts are just not working. Whenever we try to edit a post, it repost it to the last post instead of the edited one. Any workaround guys? This is really annoying.
Title: Re: Auto Merge Double Post
Post by: wynnyelle on March 27, 2010, 05:24:31 PM
I can't seem to get this mod installed on my test forum.

This is what my friend said:

Quote

the first file edit on ./Themes/default/Display.template.php we can't do since there is no edit like that


Thanks for any help anyone may have!
Title: Re: Auto Merge Double Post
Post by: Hitakashi on March 27, 2010, 08:58:45 PM
To explain more what im saying:

There is no
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');

@groovystar
Title: Re: Auto Merge Double Post
Post by: mmubashar on March 28, 2010, 02:53:45 AM
Hitakashi,
SOmetimes there are other plugins that "replace" the lines accordingly. I'm not the expert, but that solved my problem above. Removed all plugins, installed this first, and it worked like a charm..
Title: Re: Auto Merge Double Post
Post by: Hitakashi on March 28, 2010, 02:16:02 PM
ok well i looked at a new install and it doesn't have that i think the code changed
Title: Re: Auto Merge Double Post
Post by: wynnyelle on March 29, 2010, 09:04:29 PM
I'm still not seeing this working on my board. I tried a double post to experiment and it didn't merge it at all.
Title: Re: Auto Merge Double Post
Post by: atfosan on March 30, 2010, 05:24:17 AM
Quote from: Groovystar on March 29, 2010, 09:04:29 PM
I'm still not seeing this working on my board. I tried a double post to experiment and it didn't merge it at all.

Did you try http://www.simplemachines.org/community/index.php?topic=278227.msg2460112#msg2460112 ?
Title: Re: Auto Merge Double Post
Post by: Dzonny on April 24, 2010, 11:29:49 AM
Hello there.
Great mod, thanks for it..  8)

i installed it on 1.1.11 version, and everythings work fine, just wanted to know if theres a chanse to fix this time tag when post are merged.
When first post merge with second its okay, but for 3rd, 4th post i got time tag....
Please see attached image.
Nothing in error log.

Regards.
Title: Re: Auto Merge Double Post
Post by: Bugo on May 02, 2010, 04:08:09 AM
Why this line is repeated twice?
Title: Re: Auto Merge Double Post
Post by: atfosan on May 02, 2010, 04:45:22 AM
Quote from: Bugo on May 02, 2010, 04:08:09 AM
Why this line is repeated twice?

May it's because of incorrect uninstalling of previous version?
Title: Re: Auto Merge Double Post
Post by: Arantor on May 02, 2010, 06:18:57 AM
The author only built it to use Classic mode permissions; there's two permissions, one for own and one for any.

If you switch to Classic Mode you'll see two permissions there with different names.
Title: Re: Auto Merge Double Post
Post by: Bugo on May 02, 2010, 07:33:39 AM
Quote from: Arantor on May 02, 2010, 06:18:57 AM
The author only built it to use Classic mode permissions; there's two permissions, one for own and one for any.

If you switch to Classic Mode you'll see two permissions there with different names.
I know, but I don't want switch to Classic Mode :)
Title: Re: Auto Merge Double Post
Post by: Arantor on May 02, 2010, 05:22:37 PM
Then the mod has to be modified and add new language strings.
Title: Re: Auto Merge Double Post
Post by: ZeUsSaN on May 07, 2010, 06:56:25 PM
When will a new version?
Title: Re: Auto Merge Double Post
Post by: Ellendway on May 15, 2010, 04:13:03 AM
Hello there,

I have got a problem with my forum. I installed this mod and in error list I have got this:

Quote8: Undefined index: merge_button
file: /users/xxxxx/forum/SMF/Sources/Subs.php
Linha: 3914

And there is       return '<img src="' . $settings['images_url'] . '/buttons-utf8/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
Title: Re: Auto Merge Double Post
Post by: Bugo on May 24, 2010, 03:08:14 AM
Anybody fixed a bug with the impossibility of manually merging messages in SMF 2.0?
Title: Re: Auto Merge Double Post
Post by: Babalui on June 06, 2010, 10:09:41 AM
Hi all,
This mod is working fin on my SMF 1.1.11, but I have small question:

How to manually search for posts that can be merged?

Thanks in advance
Title: Re: Auto Merge Double Post
Post by: Hüsamettin on June 12, 2010, 04:37:59 AM
what give for 2.0RC3 please
Title: Re: Auto Merge Double Post
Post by: alexleitte on July 01, 2010, 03:42:52 PM
waiting for 2.0 RC3 version. this is a great mod! please, send us ASAP!

tks.
Title: Re: Auto Merge Double Post
Post by: Eclipse16V on July 01, 2010, 04:41:02 PM
Quote from: alexleitte on July 01, 2010, 03:42:52 PM
waiting for 2.0 RC3 version. this is a great mod! please, send us ASAP!

tks.

Ohhh yes please update.
Title: Re: Auto Merge Double Post
Post by: Gryzor on July 04, 2010, 12:15:56 PM
Works just find on my 2.0RC3 (except for the manual merging, that is). But what I'd like to do is limit its functionality to *hours*, not *days* when merging... is this possible? I mean I'd like to automerge posts only hours apart (maybe 3 or 4 hours), not 1 or 2 days...

Thanks - it's great and it should be in the default forum functionality!
Title: Re: Auto Merge Double Post
Post by: Sheepy on July 10, 2010, 03:18:28 AM
Chinese translation for version 1.3, both traditional Chinese and simplified Chinese, in both UTF-8 and native encoding.
Title: Re: Auto Merge Double Post
Post by: vkot on July 18, 2010, 06:20:42 AM
I think that someone else has to do the fix for this mod to work with SMF 2.0 (manual merge), because the developer M-DVD (http://www.simplemachines.org/community/index.php?action=profile;u=148997) was Last Active: February 14, 2010.
Title: Re: Auto Merge Double Post
Post by: geolindien on July 18, 2010, 03:53:31 PM
Hi all, i have a big problem with smf 1.1.11 and AutoMergeDoublePost_v1_3. I had install the mod with multilanguage
In english no pb the mod work, but when i put my board in french the mod doesn't appear in the admin
Someone have an idea ?? ( Sorry for my poor english )
Best regards Geoffrey
Title: Re: Auto Merge Double Post
Post by: diamondred123 on July 18, 2010, 04:00:29 PM
ok im just following the croud

when it on 2.0 rc3?
i might see if i can update but i doubt it
Title: Re: Auto Merge Double Post
Post by: geolindien on July 19, 2010, 05:15:50 AM
Quote from: geolindien on July 18, 2010, 03:53:31 PM
Hi all, i have a big problem with smf 1.1.11 and AutoMergeDoublePost_v1_3. I had install the mod with multilanguage
In english no pb the mod work, but when i put my board in french the mod doesn't appear in the admin
Someone have an idea ?? ( Sorry for my poor english )
Best regards Geoffrey
And i have the same pb with other mod ??
Title: Re: Auto Merge Double Post
Post by: alexleitte on July 26, 2010, 11:01:44 AM
Quote from: geolindien on July 19, 2010, 05:15:50 AM
Quote from: geolindien on July 18, 2010, 03:53:31 PM
Hi all, i have a big problem with smf 1.1.11 and AutoMergeDoublePost_v1_3. I had install the mod with multilanguage
In english no pb the mod work, but when i put my board in french the mod doesn't appear in the admin
Someone have an idea ?? ( Sorry for my poor english )
Best regards Geoffrey
And i have the same pb with other mod ??

Have you tried using the default theme?
Title: Re: Auto Merge Double Post
Post by: cisco2950 on August 10, 2010, 04:41:02 AM
Please please make a version for SMF 2.0 RC3!!!  :'(
Title: Re: Auto Merge Double Post
Post by: Bugo on August 11, 2010, 03:27:07 AM
Try http://arantor.org/index.php?action=media;sa=item;in=12
Title: Re: Auto Merge Double Post
Post by: Makar on August 15, 2010, 06:19:56 PM
After installing this mod stops working captcha. Visitors can not enter the verification code, or they can enter it correctly. Messages will still be added.

Title: Re: Auto Merge Double Post
Post by: vkot on August 17, 2010, 06:08:41 AM
Quote from: Bugo on March 13, 2010, 10:47:37 PM
Quote from: Tanshaydar on March 13, 2010, 07:54:35 PM
Any chance to get updated for RC3?
Try this attachment

I tried to use your attachment. This gives an error (the string was not found):
<file name="$sourcedir/Subs-Post.php">
<operation>
<search position="replace"><![CDATA[$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></search>
<add><![CDATA[// $parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></add>
</operation>
</file>


I ignored it as it doesn't seem critical, and continued with the installation.
Manual merge does not work. When I click "Merge posts" it takes me to the Reply page.
Title: Re: Auto Merge Double Post
Post by: Bruno36 on September 24, 2010, 08:42:33 AM
Hello!

in in Display.template.php I can not find the line of code
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');
I use the default theme
My forum is blank without any mod install
Title: Re: Auto Merge Double Post
Post by: Loginsvarios on September 24, 2010, 09:57:38 PM
Quote from: Bruno36 on September 24, 2010, 08:42:33 AM
Hello!

in in Display.template.php I can not find the line of code
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');
I use the default theme
My forum is blank without any mod install
Same here...
Title: Re: Auto Merge Double Post
Post by: vkot on September 28, 2010, 01:06:23 AM
Bruno36 & Loginsvarios,
I guess you are using SMF 2.0 RC3. This mod is not updated for SMF 2.0 RC3 and nobody knows if the creator or someone else will update it...

If I had some info on how it works, maybe I could do it, but the creator (M-DVD) hasn't logged in for 7.5 months now... 
Title: Re: Auto Merge Double Post
Post by: ~DS~ on September 28, 2010, 03:43:32 AM
A better solution is here: http://arantormods.com/index.php?action=media;sa=item;in=12
Title: Re: Auto Merge Double Post
Post by: samurai-lupin on October 03, 2010, 12:07:27 AM
This fine mod is working for me but it will add October 03, 2010, 12:07:20 AM tags in my message body around previous merged post dates. Please see my screenshot. Is there any way to fix this?

Thank you!
Title: Re: Auto Merge Double Post
Post by: Makar on October 03, 2010, 02:47:13 AM
samurai-lupin look http://www.simplemachines.org/community/index.php?topic=278227.msg2309764#msg2309764
Title: Re: Auto Merge Double Post
Post by: samurai-lupin on October 03, 2010, 04:24:54 AM
Thanks a lot!
Title: Re: Auto Merge Double Post
Post by: vkot on October 05, 2010, 04:34:52 PM
Quote from: Dismal Shadow on September 28, 2010, 03:43:32 AM
A better solution is here: http://arantormods.com/index.php?action=media;sa=item;in=12

Personally, I really need the manual merge feature, and the mod that you quote doesn't have it.  :(
Title: Re: Auto Merge Double Post
Post by: Oya on October 05, 2010, 04:43:37 PM
that mod doesnt have manual merge but thats because it *auto* merges, if thats the option used, there is never the option to have double posts in that board

you know, you could post it on that forum, the author might take it into account for a future version
Title: Re: Auto Merge Double Post
Post by: miro-ppb on November 19, 2010, 10:56:17 PM
Any possibility of it to be updated for RC4?
Title: Re: Auto Merge Double Post
Post by: automerge on November 21, 2010, 04:34:00 AM
Here's an 2.0 RC4 compatible version of this must-have mod (I can't live without it, it's a major feature for me!). I found the RC3 version on the russian SMF website* and modified it a bit so I can use it on RC4. Maybe some admin can add this file to the download page of the mod?


*http://www.simplemachines.ru/index.php?topic=9441.msg68392#msg68392
Title: Re: Auto Merge Double Post
Post by: NanoSector on November 21, 2010, 05:09:25 AM
Quote from: automerge on November 21, 2010, 04:34:00 AM
Here's an 2.0 RC4 compatible version of this must-have mod (I can't live without it, it's a major feature for me!). I found the RC3 version on the russian SMF website* and modified it a bit so I can use it on RC4. Maybe some admin can add this file to the download page of the mod?


*http://www.simplemachines.ru/index.php?topic=9441.msg68392#msg68392
Wow, thank you!
Title: Re: Auto Merge Double Post
Post by: NanoSector on November 21, 2010, 05:47:13 AM
Allright, here's a package that fixes all errors in 2.0 RC4.

I build it but I take no credits, as it's the authors mod.

(reuploaded it again to fix an typing error)

PERFORM THIS STEP AFTER INSTALLING!! (http://www.simplemachines.org/community/index.php?topic=278227.msg2886710#msg2886710)
Title: Re: Auto Merge Double Post
Post by: automerge on November 21, 2010, 06:17:48 AM
Thanks goes to the Russians  ;)

Is there a possibility to modify this mod so that the first post is deleted and the merge will happen in the second post?
I want people to be able to bump their topics (or say, post an update to a read-only-post) without double posting. Currently the post stays marked as read for other users when merged.
Title: Re: Auto Merge Double Post
Post by: Makar on November 22, 2010, 08:22:58 AM
 thank you

however ! your corrections take into account one ! It mod not safe ! If for you it is let to post to the guests, then they will be able to mount
message in the round of captcha
Title: Re: Auto Merge Double Post
Post by: automerge on November 22, 2010, 05:52:50 PM
I made my own solution to the "Modified shows as unread"-Problem: Here's (http://www.simplemachines.org/community/index.php?topic=410322.0) a dirty hack which serves my needs...
Title: Re: Auto Merge Double Post
Post by: C4G-TK on December 19, 2010, 03:13:49 PM
Quote from: Yoshi2889 on November 21, 2010, 05:47:13 AM
Allright, here's a package that fixes all errors in 2.0 RC4.

I build it but I take no credits, as it's the authors mod.

(reuploaded it again to fix an typing error)

I get a white page after installing this mod when trying to go into Admin > Posts & Topics areas
Using RC4 with that package.

When I uninstall, I can go into the Admin > Posts & Topics area w/o problem.
Did this on two of my RC4 forums and get the same result.


Does anyone else have the same problem?
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 20, 2010, 10:14:42 AM
Quote from: C4G-TK on December 19, 2010, 03:13:49 PM
Quote from: Yoshi2889 on November 21, 2010, 05:47:13 AM
Allright, here's a package that fixes all errors in 2.0 RC4.

I build it but I take no credits, as it's the authors mod.

(reuploaded it again to fix an typing error)

I get a white page after installing this mod when trying to go into Admin > Posts & Topics areas
Using RC4 with that package.

When I uninstall, I can go into the Admin > Posts & Topics area w/o problem.
Did this on two of my RC4 forums and get the same result.


Does anyone else have the same problem?

Please attach your Manageposts.php.
Title: Re: Auto Merge Double Post
Post by: C4G-TK on December 20, 2010, 11:31:16 AM
Sorry for the need of assistance, Yoshi.

The only other mod that I have installed that makes edits to that file is Boilerplates For Posts.  Since I could still get to that area after installation, I figured that one was ok.  It was only after installing Auto Merge that I couldn't get into the page.  Plus, since I could get back in there after uninstalling Auto Merge, it made me believe it wasn't Boilerplates.

Other than not getting into the admin area for Posts & Topics, it never threw any errors in the log.
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 20, 2010, 11:34:31 AM
Quote from: C4G-TK on December 20, 2010, 11:31:16 AM
Sorry for the need of assistance, Yoshi.
Meh, I have nothing to do anyways ::)

Try this.

EDIT: Yeah the problem relies on my package; there is an error in it which I cannot locate.
Title: Re: Auto Merge Double Post
Post by: C4G-TK on December 20, 2010, 11:38:06 AM
OK
1) Thanks for my first Birthday gift of the day.  It worked.  What the **** did I do wrong?  I need to make the same change on another forum, too.

2) Thanks for taking the time to help me.
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 20, 2010, 11:39:48 AM
Quote from: C4G-TK on December 20, 2010, 11:38:06 AM
OK
1) Thanks for my first Birthday gift of the day.  It worked.  What the **** did I do wrong?  I need to make the same change on another forum, too.

2) Thanks for taking the time to help me.
1. Look for (it may be a bit different!!)
'censor' => 'SetCensor'
'topics' => 'ModifyTopicSettings',,

As you see it has double commas, and setcensor has no comma, which is needed.

Replace it with:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',


2. No problem; the problem relies on my package, too, it ain't your fault :)
I also had this problem on my own forum.

Oh, and happy birthday!
Title: Re: Auto Merge Double Post
Post by: C4G-TK on December 20, 2010, 11:44:01 AM
YAY, I'm not going senile, yet!

Thanks for your help!
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 20, 2010, 11:49:30 AM
No problem, I added it to my post:

Quote from: Yoshi2889 on November 21, 2010, 05:47:13 AM
Allright, here's a package that fixes all errors in 2.0 RC4.

I build it but I take no credits, as it's the authors mod.

(reuploaded it again to fix an typing error)

PERFORM THIS STEP AFTER INSTALLING!! (http://www.simplemachines.org/community/index.php?topic=278227.msg2886710#msg2886710)
Title: Re: Auto Merge Double Post
Post by: C4G-TK on December 20, 2010, 11:59:39 AM
On my other forum, I found that edit you were talking about, but it was a little different.

It looked like this:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,


So, I replaced it to be:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',
'automerge' => 'ModifyAutoMergePostSettings',


and it worked. 

Thanks again!
You can't hear me, but I just made the Yoshi noise!
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 20, 2010, 12:01:12 PM
Quote from: C4G-TK on December 20, 2010, 11:59:39 AM
On my other forum, I found that edit you were talking about, but it was a little different.

It looked like this:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,


So, I replaced it to be:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',
'automerge' => 'ModifyAutoMergePostSettings',


and it worked. 

Thanks again!
You can't hear me, but I just made the Yoshi noise!
Ah yes, it may sometimes be a little different.

Haha, no I can't hear you ;)

I'll go with fixing that bug in a moment, to ensure nobody gets into trouble.
Title: Re: Auto Merge Double Post
Post by: Geor'G on December 23, 2010, 04:19:29 PM
Manual Merge not work
v 2.0 RC4
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 24, 2010, 06:28:11 AM
Quote from: Geor'G on December 23, 2010, 04:19:29 PM
Manual Merge not work
v 2.0 RC4
Download my package and perform the fix.
Title: Re: Auto Merge Double Post
Post by: Geor'G on December 24, 2010, 08:36:42 AM
QuoteDownload my package and perform the fix.
In it does not work - "Manual Merge"

P.S fix Error Log ;)

8: Undefined variable: merge_button
Файл: Z:/home/Myforum/www/Themes/default/Display.template.php (main sub template - eval?)
Строка: 444


Error file Display.template.php:
// Can the user merge the doble post?
if ($message['can_merge'])
echo '
<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');


Replace:

if ($message['can_merge'])
{
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');
echo '

<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
}
Title: Re: Auto Merge Double Post
Post by: NanoSector on December 24, 2010, 09:18:33 AM
Quote from: Geor'G on December 24, 2010, 08:36:42 AM
QuoteDownload my package and perform the fix.
In it does not work - "Manual Merge"

P.S fix Error Log ;)

8: Undefined variable: merge_button
Файл: Z:/home/Myforum/www/Themes/default/Display.template.php (main sub template - eval?)
Строка: 444


Error file Display.template.php:
// Can the user merge the doble post?
if ($message['can_merge'])
echo '
<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');


Replace:

if ($message['can_merge'])
{
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');
echo '

<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
}

It should work though...
Title: Re: Auto Merge Double Post
Post by: rafli on December 26, 2010, 06:27:10 AM
Hi, Great Mod!
But it collide with "Delete Spam Posts", which is edit file ./Sources/Post.php in the same line :

Auto Merge Double Post 1.3 (AutoMergeDoublePost_v1_3.zip) :
Find:

logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));

Replace With:

logAction(empty($modSettings['AutoMergePost_manual_flag']) ? 'modify' : 'merge', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));


And

Delete Spam Posts 1.5 (DeleteSpamPostsv15.zip) :
Find:

logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));

Replace With:

logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER'], 'subject' => $row['subject'], 'messagebody' => $row['body'] == stripslashes($_POST['message']) ? $txt['deletespampost_no_change'] : $row['body']));


Kindly need help to integrate both mod together.
Thanks in advance,

Rafli
Title: Re: Auto Merge Double Post
Post by: rafli on December 26, 2010, 06:30:18 AM
Sorry,
Forgot to say that I am on SMF 1.1.12
Title: Re: Auto Merge Double Post
Post by: Adrek on January 02, 2011, 02:48:57 PM
I installed mod from this post: http://www.simplemachines.org/community/index.php?topic=278227.msg2857211#msg2857211

and when i go to Admin > Posts and Topics i get white page...

SMF 2.0 RC4
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 02, 2011, 03:27:19 PM
Quote from: adi1166 on January 02, 2011, 02:48:57 PM
I installed mod from this post: http://www.simplemachines.org/community/index.php?topic=278227.msg2857211#msg2857211

and when i go to Admin > Posts and Topics i get white page...

SMF 2.0 RC4
Please perform the fix.
Title: Re: Auto Merge Double Post
Post by: Adrek on January 02, 2011, 03:41:55 PM
I know why it did not work...
I changed:
$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,
);


to

$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',
);


and don't added "," to line above..

now works ;)

//

but i don't see manual Merge button :/
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 02, 2011, 04:16:14 PM
Quote from: adi1166 on January 02, 2011, 03:41:55 PM
I know why it did not work...
I changed:
$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,
);


to

$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',
);


and don't added "," to line above..

now works ;)

//

but i don't see manual Merge button :/
Apply the other fix (either on this page or on the previous page). lol I know I'm nasty.
Title: Re: Auto Merge Double Post
Post by: Adrek on January 03, 2011, 05:10:05 AM
other fix ? I can't find them ;p
anyway..  now i got this error in my error log everytime when i open any post/topic:

8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 03, 2011, 06:38:20 AM
Quote from: adi1166 on January 03, 2011, 05:10:05 AM
other fix ? I can't find them ;p
anyway..  now i got this error in my error log everytime when i open any post/topic:

8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379

It's the button fix.
Title: Re: Auto Merge Double Post
Post by: saks on January 08, 2011, 09:31:23 PM
I have the same problem with manual merge. I have the button for manual merge, but if i click it I get only the post window and not merge posts. I made fix on this page, but it not work. :(
I use  SMF 2.0 RC3 and Pretty URLs mod... May be it conflict with Auto Merge mod ?
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 15, 2011, 02:33:32 PM
Here's a package which has both the ,, fix and the button fix included.

I'm going to test installing it soon.
Title: Re: Auto Merge Double Post
Post by: Adrek on January 15, 2011, 02:49:11 PM
still i don't have manual merge button and got this error:
8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379

:(
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 15, 2011, 02:50:01 PM
Quote from: adi1166 on January 15, 2011, 02:49:11 PM
still i don't have manual merge button and got this error:
8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379

:(
Weird?

I'll look into it.
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 15, 2011, 02:56:08 PM
In ./Souces/Display.php, Find:
&& $context['double_post'][$message['id_msg']]

& remove it. Should work since I see no point in having it.

EDIT: Yes the merge button shows...but with a little space. I'll release an updated package with all three fixes later.

Updated package:
Title: Re: Auto Merge Double Post
Post by: Adrek on January 15, 2011, 03:14:29 PM
merge button shows when i removed && $context['double_post'][$message['id_msg']]

But, i don't know if that's how this mod works - i got Merge button on every post [screen] (http://img209.imageshack.us/img209/4153/qqqo.png) - even if there is not "double post", and when i try to merge posts it redirect me to ?action=post;topic

i hope you understand... :E
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 15, 2011, 03:19:46 PM
That you get it on every post is normal.

I will recheck the link issue.
Title: Re: Auto Merge Double Post
Post by: Adrek on January 15, 2011, 03:51:47 PM
Quote from: Simple Series team on January 15, 2011, 03:19:46 PM
That you get it on every post is normal.

because on mod site this button isn't on every post
http://custom.simplemachines.org/mods/index.php?action=download;mod=1523;id=117210;image
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 15, 2011, 03:54:00 PM
Quote from: adi1166 on January 15, 2011, 03:51:47 PM
Quote from: Simple Series team on January 15, 2011, 03:19:46 PM
That you get it on every post is normal.

because on mod site this button isn't on every post
http://custom.simplemachines.org/mods/index.php?action=download;mod=1523;id=117210;image
That's because the first post you see is the first post in the topic.
Title: Re: Auto Merge Double Post
Post by: Arantor on January 15, 2011, 08:01:24 PM
QuoteThat you get it on every post is normal.

No it isn't... it should be related to whether the posts are from the same author!
Title: Re: Auto Merge Double Post
Post by: Jeet Chowdhury on January 16, 2011, 03:17:53 AM
how to add this mod in 2.0 rc4???
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 16, 2011, 04:00:05 AM
Quote from: Arantor on January 15, 2011, 08:01:24 PM
QuoteThat you get it on every post is normal.

No it isn't... it should be related to whether the posts are from the same author!
That is false.

@ latest post: use my package on this page.
Title: Re: Auto Merge Double Post
Post by: Arantor on January 16, 2011, 04:37:13 AM
Funny, that's how the mod's code is geared to be.
Title: Re: Auto Merge Double Post
Post by: Adrek on January 16, 2011, 06:20:58 AM
Quote from: Simple Series team on January 15, 2011, 03:54:00 PM
That's because the first post you see is the first post in the topic.

hmm... that's only one post in topic and still got the button...
http://img703.imageshack.us/img703/1466/000g.png
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 16, 2011, 06:26:43 AM
Quote from: adi1166 on January 16, 2011, 06:20:58 AM
Quote from: Simple Series team on January 15, 2011, 03:54:00 PM
That's because the first post you see is the first post in the topic.

hmm... that's only one post in topic and still got the button...
http://img703.imageshack.us/img703/1466/000g.png
At least the button shows.

I'll try to fix it in the next release.
Title: Re: Auto Merge Double Post
Post by: Arantor on January 16, 2011, 06:29:53 AM
I wonder if instead of blindly removing $context['double_post']'s check, you reinstate it and fix where it's generated...
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 16, 2011, 07:18:05 AM
Quote from: Arantor on January 16, 2011, 06:29:53 AM
I wonder if instead of blindly removing $context['double_post']'s check, you reinstate it and fix where it's generated...
I wonder what you are doing with correcting me when I told you not to do that earlier our fight with my mod.
Title: Re: Auto Merge Double Post
Post by: Dzonny on January 16, 2011, 10:30:59 AM
Simple Series team, thanks for 2.0 RC4 version, works perfectly :D
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 16, 2011, 10:34:26 AM
Quote from: Dzonny on January 16, 2011, 10:30:59 AM
Simple Series team, thanks for 2.0 RC4 version, works perfectly :D
Except for that little manual post merge bug :(

Thanks anyway :)
Title: Re: Auto Merge Double Post
Post by: Arantor on January 16, 2011, 10:35:23 AM
Quote from: Simple Series team on January 16, 2011, 07:18:05 AM
I wonder what you are doing with correcting me when I told you not to do that earlier our fight with my mod.

You tell people to make changes that you don't think have any issues and when one is presented to you, you seem to ignore it. $context['double_post'] is, funnily enough, there for a REASON. Just because you don't understand that reason doesn't mean there isn't one.

And it's the cause of the displaying the manual merge button on every page because you're now not testing whether it should be displayed on a given post but displaying it all the time...
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 16, 2011, 10:39:00 AM
Quote from: Arantor on January 16, 2011, 10:35:23 AM
Quote from: Simple Series team on January 16, 2011, 07:18:05 AM
I wonder what you are doing with correcting me when I told you not to do that earlier our fight with my mod.

You tell people to make changes that you don't think have any issues and when one is presented to you, you seem to ignore it. $context['double_post'] is, funnily enough, there for a REASON. Just because you don't understand that reason doesn't mean there isn't one.

And it's the cause of the displaying the manual merge button on every page because you're now not testing whether it should be displayed on a given post but displaying it all the time...
You DO NOT seem to get the words "I'll fix it LATER ON".

You know I'm truly OVER with you, Arantor?
Title: Re: Auto Merge Double Post
Post by: Makar on January 16, 2011, 05:20:30 PM
I have a board in which permission to write guests
all posts must be pre-approved by moderators.
before sending the visitor must solve a captcha, and answer any additional questions.
so here.
if I put this mod, the introduction of answering questions and solving a captcha is not mandatory
Guests can enter into the fields to answer anything you like and send a message
message is sent and there is no warning that the answers to the captcha entered non correctly!
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 17, 2011, 09:36:42 AM
Quote from: Makar on January 16, 2011, 05:20:30 PM
I have a board in which permission to write guests
all posts must be pre-approved by moderators.
before sending the visitor must solve a captcha, and answer any additional questions.
so here.
if I put this mod, the introduction of answering questions and solving a captcha is not mandatory
Guests can enter into the fields to answer anything you like and send a message
message is sent and there is no warning that the answers to the captcha entered non correctly!
That is pretty weird.

Try uninstalling this mod, then the captcha software.
Then reinstall this mod, then the captcha software.

That should put the captcha software on top of this software ;)
Title: Re: Auto Merge Double Post
Post by: Arantor on January 17, 2011, 09:47:36 AM
What if it's the CAPTCHA+verification questions in 2.0 which are both built in features?
Title: Re: Auto Merge Double Post
Post by: Makar on January 17, 2011, 10:45:59 AM
Standard!  2.0 rc4 No mods of this plan no .
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 17, 2011, 11:50:22 AM
Quote from: Makar on January 17, 2011, 10:45:59 AM
Standard!  2.0 rc4 No mods of this plan no .
Then you should uninstall this mod until the issue is fixed.
Title: Re: Auto Merge Double Post
Post by: Makar on January 17, 2011, 12:39:29 PM
Ha:) I know.
On this issue, I wrote here a few weeks ago.
So now I use a mod Arantor antibumper .
but this mod I like, and I hope that he will be brought to mind:)
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 17, 2011, 01:46:39 PM
Quote from: Makar on January 17, 2011, 12:39:29 PM
Ha:) I know.
On this issue, I wrote here a few weeks ago.
So now I use a mod Arantor antibumper .
but this mod I like, and I hope that he will be brought to mind:)
I will try to fix all issues at once :)

Until then, please try an alternative solution, as you said.
Title: Re: Auto Merge Double Post
Post by: Jeet Chowdhury on January 20, 2011, 02:39:42 AM
if i install new themes. how to add mods to new theme?
Title: Re: Auto Merge Double Post
Post by: Arantor on January 20, 2011, 03:08:13 AM
Quote from: Jeet Chowdhury on January 20, 2011, 02:39:42 AM
if i install new themes. how to add mods to new theme?

Uninstall the mod and reinstall it, or manually add the code to the new theme.
Title: Re: Auto Merge Double Post
Post by: Bugo on January 20, 2011, 03:14:52 AM
Just imagine that need reinstall a lot of mods (50+) :)
Title: Re: Auto Merge Double Post
Post by: Arantor on January 20, 2011, 03:27:55 AM
I didn't say it was ideal ;) But that's the situation as it stands.
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 20, 2011, 12:41:26 PM
We actually need a function that allows you to automatically search through your mods and then reports which ones can be installed in the new theme. would be super great.

Anyhow, no development going so far...school. Bah.
Title: Re: Auto Merge Double Post
Post by: Arantor on January 20, 2011, 01:18:55 PM
Which doesn't help in the case of manually installed mods.
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 20, 2011, 01:35:54 PM
Quote from: Arantor on January 20, 2011, 01:18:55 PM
Which doesn't help in the case of manually installed mods.
Yeah but it WILL in the case of Package Manager mods ;)
Title: Re: Auto Merge Double Post
Post by: Arantor on January 20, 2011, 01:39:13 PM
Yes and no. The package manager does store what themes it has already installed to, but has no way of knowing if you installed something manually to a theme - so it's possible it might try and install something again. I've seen cases where it's installed something twice to custom themes when it shouldn't have, because the log of what was installed was badly maintained.

Though really, if you're putting in the time and energy to overhaul the package manager that much, you might as well spend it more productively making the core better able to support mods without needing any kinds of theme edit in the first place.
Title: Re: Auto Merge Double Post
Post by: Bugo on January 20, 2011, 02:21:04 PM
No changes in index.template.php, for example. Only in Sources dir.
Title: Re: Auto Merge Double Post
Post by: Arantor on January 20, 2011, 02:22:27 PM
Sometimes it's unavoidable to make theme changes, such as in this mod for example, because the buttons are generated at theme level.
Title: Re: Auto Merge Double Post
Post by: Bugo on January 20, 2011, 02:45:18 PM
Well, nothing is impossible to a willing heart :)
Title: Re: Auto Merge Double Post
Post by: Arantor on January 20, 2011, 02:50:37 PM
I proved a great many things were possible without theme edits, such as a popup menu appearing when you click on a user's name in the post display - without a theme edit. Heck, I even proved it could be done to remove the links to unread/unread replies from the index.template.php without a template edit, but to inject the links needed for this mod without a template edit... there's just nowhere to hook it in.
Title: Re: Auto Merge Double Post
Post by: venex on January 24, 2011, 01:39:10 AM
Damn... hopefully this mod will work for RC4... I'll be waiting for it ;D.
Title: Re: Auto Merge Double Post
Post by: NanoSector on January 25, 2011, 06:50:35 AM
Quote from: venex on January 24, 2011, 01:39:10 AM
Damn... hopefully this mod will work for RC4... I'll be waiting for it ;D.
It already works besides a few flaws; use the package I posted (look through the pages).
Title: Re: Auto Merge Double Post
Post by: HiramAbif on January 28, 2011, 06:25:53 PM
Is there anyway to make this also merge topics or would that require a whole rewrite?  I have a forum that allows guest posting and occasionally someone maliciously spams the board with the same message.  Any help you can provide would be much appreciated.  Thank you.
Title: Re: Auto Merge Double Post
Post by: XnIcRaM on February 01, 2011, 06:46:03 PM
new polish translation:

(saneone's previous translation is not complete and causes some problems)

$txt['permissionname_doublePost'] = 'Pozwól na podwójny post';
$txt['permissionhelp_doublePost'] = 'Włącz aby zezwolić na podwójne posty.';
$txt['AutoMergePost_div'] = 'Dodaj tekst po połączeniu postów
<div class="smalltext">Można używać BBCode oraz zmiennej $date</div>';
$txt['AutoMergePost_time'] = 'Czas po którym pozwolić na podwójny post i podbicie tematu
<div class="smalltext">Czas w dniach. Wpisz 9999 dni aby niepozwolić nigdy, wpisz 0 aby wyłączyć moda</div>';
$txt['AutoMergePost_4all'] = 'Zignoruj pozwolenie na podwójne posty
<div class="smalltext">Zawsze łącz podwójne posty, nawet Administratora</div>';

$txt['merge_button'] = 'Połącz posty';
$txt['AutoMergePost_auto'] = 'Włącz auto łączenie podwójnych postów';
$txt['AutoMergePost_manual'] = 'Włacz ręczne łączenie podwójnych postów';
$txt['AutoMergePost_nomax'] = 'Ignoruj maksymalny rozmiar postów';
$txt['AutoMergePost_reason'] = 'Połączony podwójny post';

$txt['permissionname_doublePostmerge'] = 'Pozwól na ręczne łaczenie postów';
$txt['permissionhelp_doublePostmerge'] = 'Pozwól użytkownikom na łączenie podwójnych postów.';
$txt['permissionname_doublePostmerge_own'] = 'Tylko swoich własnych';
$txt['permissionname_doublePostmerge_any'] = 'Wszystkich';
$txt['cannot_merged_replies'] = 'Nie masz uprawnień pozwalających na połączenie tych postów.';
$txt['modlog_ac_merged'] = 'Połaczone &quot;{message}&quot; przez &quot;{member}&quot;';
$txt['manageposts_automerge_settings'] = 'Połącz podwójne posty';
$txt['manageposts_automerge_settings_description'] = 'Ustawienia ręcznego i automatycznego łączenia podwójnych postów.';]]></add>
Title: Re: Auto Merge Double Post
Post by: Makar on February 15, 2011, 02:06:54 AM
Quote from: Simple Series team on January 17, 2011, 01:46:39 PMI will try to fix all issues at once :)


progress of the errors?

Title: Re: Auto Merge Double Post
Post by: NanoSector on February 15, 2011, 06:25:17 AM
Quote from: Makar on February 15, 2011, 02:06:54 AM
Quote from: Simple Series team on January 17, 2011, 01:46:39 PMI will try to fix all issues at once :)
progress of the errors?
Whoops, totally forgot about this mod :P

I will look into it today.
Title: Re: Auto Merge Double Post
Post by: tamasir on March 01, 2011, 02:56:34 PM
 new translation:Hungarian ISO
Quote//   MOD Auto Merge Double Post
$txt['permissionname_doublePost'] = 'Dupla üzenetek engedélyezése';
$txt['permissionhelp_doublePost'] = 'Lehetővé teszi számunkra a dupla üzeneteket.';
$txt['AutoMergePost_div'] = 'Írj hozzá üzenetet ha összevonásra kerül
<div class="smalltext">Használhatod a BBCode-ot és a $date változót is</div>';
$txt['AutoMergePost_time'] = 'Idő napokban, két üzenet írása között
<div class="smalltext">Megállapított idő napokban. Ha 9999 nap, akkor nincs idő megadva</div>';
$txt['AutoMergePost_4all'] = 'Dupla üzenetek jogosultságainak mellőzése
<div class="smalltext">Dupla üzenetek összefésülése, rendszergazdáknak is</div>';

$txt['merge_button'] = 'Üzenetek összefésülése';
$txt['AutoMergePost_auto'] = 'Autómata összefésülés dupla üzeneteknél (engedélyezés)';
$txt['AutoMergePost_manual'] = 'Manuális összefésülés dupla üzenetek (engedélyezés)';
$txt['AutoMergePost_nomax'] = 'Maximum üzenet méret mellőzése';
$txt['AutoMergePost_reason'] = 'Dupla üzenetek összefésülése';

$txt['permissionname_doublePostmerge'] = 'Manuális engedélyezés összefésülésre dupla üzeneteknél';
$txt['permissionhelp_doublePostmerge'] = 'Ez az engedély lehetővé teszi a felhasználók számára, hogy összevonja a kettős üzeneteket.';
$txt['permissionname_doublePostmerge_own'] = 'Saját kettős üzenetek';
$txt['permissionname_doublePostmerge_any'] = 'Bármely dupla üzenetek';
$txt['cannot_merged_replies'] = 'Nincs jogosultságod az összefésülésre.';
$txt['modlog_ac_merged'] = 'Összefésülést &quot;{message}&quot; végezte &quot;{member}&quot;';

$txt['manageposts_automerge_settings'] = 'Dupla üzenetek összefésülése';
$txt['manageposts_automerge_settings_description'] = 'Itt lehet beállítani az összes automatikus és manuális összefésülést dupla üzeneteknél.';]]>
Title: Re: Auto Merge Double Post
Post by: Arantor on March 01, 2011, 04:30:37 PM
And if you posted it here, it'll be UTF-8 recoded...
Title: Re: Auto Merge Double Post
Post by: NanoSector on March 02, 2011, 10:58:00 AM
Looking into this mod now...and gonna include a few user-translations if you'd wish.
Title: Re: Auto Merge Double Post
Post by: Makar on March 07, 2011, 07:30:43 AM
Quote from: Yoshi2889 on February 15, 2011, 06:25:17 AM
Quote from: Makar on February 15, 2011, 02:06:54 AM
Quote from: Simple Series team on January 17, 2011, 01:46:39 PMI will try to fix all issues at once :)
progress of the errors?
Whoops, totally forgot about this mod :P

I will look into it today.

soon as the month will come today  :o :(
Title: Re: Auto Merge Double Post
Post by: NanoSector on March 07, 2011, 07:36:48 AM
Quote from: Makar on March 07, 2011, 07:30:43 AM
Quote from: Yoshi2889 on February 15, 2011, 06:25:17 AM
Quote from: Makar on February 15, 2011, 02:06:54 AM
Quote from: Simple Series team on January 17, 2011, 01:46:39 PMI will try to fix all issues at once :)
progress of the errors?
Whoops, totally forgot about this mod :P

I will look into it today.

soon as the month will come today  :o :(
*sighs* I gotta stop saying "I'll do it later today" to myself XD

Very sorry for the delay, trying again now (and with "now" I mean "RIGHT NOW!!").
Title: Re: Auto Merge Double Post
Post by: NanoSector on March 07, 2011, 08:12:34 AM
(sorry for the double post)

It seems to me the $context['double_post']  doesn't even exist... Thus I cannot fix it.

However, here is a package with updated languages (credits go to XnIcRaM and tamasir), and it supports 2.0 RC5.
Title: Re: Auto Merge Double Post
Post by: Makar on March 08, 2011, 06:50:46 AM
yes I just recalled
sorrowfully  :'(
Title: Re: Auto Merge Double Post
Post by: NanoSector on March 08, 2011, 07:00:03 AM
Quote from: Makar on March 08, 2011, 06:50:46 AM
yes I just recalled
sorrowfully  :'(
Yes it is... This mod is just so good :P
Title: Re: Auto Merge Double Post
Post by: kt84 on April 08, 2011, 02:27:48 PM
Don't wanne bug around, but on SMF Version 2 RC 4 Security Patched, the mod throws out errors . Anybody got an Idea or is this a known Problem? Haven't seen any report bout it yet.
Title: Re: Auto Merge Double Post
Post by: NanoSector on April 08, 2011, 03:10:49 PM
I'm gonna stop supporting this mod, got other things to do :)

@ kt84: Use my version of the mod.
Title: Re: Auto Merge Double Post
Post by: kt84 on April 08, 2011, 03:13:34 PM
okay, gimme a hint where to find :3
Greetz + Thx
Title: Re: Auto Merge Double Post
Post by: NanoSector on April 08, 2011, 03:15:44 PM
Quote from: kt84 on April 08, 2011, 03:13:34 PM
okay, gimme a hint where to find :3
Greetz + Thx
It's the third post above your previous post :P
You will eventually find a ZIP in that post. Install it on your forum :)
Title: Re: Auto Merge Double Post
Post by: Casal on April 10, 2011, 09:38:37 AM
This mod in Manual doesn´t work for SMF 2.0 RC4.

Please any suggestions??.

Is very important for me any solution.
Title: Re: Auto Merge Double Post
Post by: NanoSector on April 10, 2011, 11:00:37 AM
Quote from: Casal on April 10, 2011, 09:38:37 AM
This mod in Manual doesn´t work for SMF 2.0 RC4.

Please any suggestions??.

Is very important for me any solution.
Quote from: Yoshi2889 on March 07, 2011, 08:12:34 AM
(sorry for the double post)

It seems to me the $context['double_post']  doesn't even exist... Thus I cannot fix it.

However, here is a package with updated languages (credits go to XnIcRaM and tamasir), and it supports 2.0 RC5.

And update to RC5.
Title: Re: Auto Merge Double Post
Post by: live627 on May 09, 2011, 07:32:42 PM
QuoteIt seems to me the $context['double_post']  doesn't even exist...
but why did it go missing and when?
Title: Re: Auto Merge Double Post
Post by: NanoSector on May 10, 2011, 03:36:57 AM
Quote from: live627 on May 09, 2011, 07:32:42 PM
QuoteIt seems to me the $context['double_post']  doesn't even exist...
but why did it go missing and when?
Gooood question.
Title: Re: Auto Merge Double Post
Post by: Dreko on May 10, 2011, 11:38:12 AM
RC5 ?this line does not exist in rc5


$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');

help
Title: Re: Auto Merge Double Post
Post by: kt84 on May 10, 2011, 11:50:38 AM
Have you tried the fixxed version a few postings above this one?
If you overseen it here the direct link to the posting: http://www.simplemachines.org/community/index.php?topic=278227.msg2979793#msg2979793

Title: Re: Auto Merge Double Post
Post by: NanoSector on May 10, 2011, 02:51:47 PM
Quote from: Dreko on May 10, 2011, 11:38:12 AM
RC5 ?this line does not exist in rc5


$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');

help
You probably have installed a few other mods or you have a custom theme :-\

nothing much I can do about it since it worked fine on a vanilla SMF installation.
Title: Re: Auto Merge Double Post
Post by: live627 on May 10, 2011, 08:42:52 PM
Then try this one which does work on RC5 http://dev.live627.com/index.php?action=mods#48
Title: Re: Auto Merge Double Post
Post by: ~DS~ on May 10, 2011, 08:45:44 PM
Quote from: live627 on May 10, 2011, 08:42:52 PM
Then try this one which does work on RC5 http://dev.live627.com/index.php?action=mods#48
I smell a "...but why isn't it free?" coming. :P
Title: Re: Auto Merge Double Post
Post by: live627 on May 10, 2011, 08:55:58 PM
Don't you know it :D
Title: Re: Auto Merge Double Post
Post by: Dreko on May 16, 2011, 12:09:20 PM
RC5 PLIZ
Title: Re: Auto Merge Double Post
Post by: NanoSector on May 16, 2011, 12:49:44 PM
Quote from: Dreko on May 16, 2011, 12:09:20 PM
RC5 PLIZ
Quote from: live627 on May 10, 2011, 08:42:52 PM
Then try this one which does work on RC5 http://dev.live627.com/index.php?action=mods#48

The mod author (AFAIK) nor me do support this anymore.
Title: Re: Auto Merge Double Post
Post by: oxeo on May 31, 2011, 10:12:39 AM
I found it: _https://rapidshare.com/files/269305061/AutoMergeDoublePost_v1_4.zip
install successful, but when I try to merge posts - get "post reply" form ... 
Any ideas?
Title: Re: Auto Merge Double Post
Post by: live627 on May 31, 2011, 07:45:00 PM
I seriously doubt that package comes with any support at all.
Title: Re: Auto Merge Double Post
Post by: NanoSector on June 01, 2011, 02:01:01 AM
That package is THIS package :S
Title: Re: Auto Merge Double Post
Post by: live627 on June 01, 2011, 04:19:48 AM
Oh xD I saw rapidshare and assumed it was an unauthorized copy
Title: Re: Auto Merge Double Post
Post by: NanoSector on June 01, 2011, 06:44:38 AM
Without the author's permissions, it can be considered breaking the rules, yes.
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 09, 2011, 02:58:56 AM
Corrected:
- now works "manual merge"
- carry setting - "Permissions" in point "Post topics and replies to the board"

{Update}
Title: Re: Auto Merge Double Post
Post by: SacredCultivator on June 09, 2011, 03:06:58 AM
^Unless I'm doing something wrong, the Icon appears for it, but when I click on it, it just treats it as a "Post Reply" and doesn't merge.
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 09, 2011, 05:11:11 AM
Update mod

Forum - smf rc4-rc5

Title: Re: Auto Merge Double Post
Post by: SacredCultivator on June 09, 2011, 12:21:39 PM
Close:

7.    Execute Modification    ./Sources/Subs-Post.php    Test failed
      1.    Replace    ./Sources/Subs-Post.php    Test failed

BUT I am able to merge posts now ^^

Thanks.
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 09, 2011, 01:32:32 PM
QuoteClose:

7.    Execute Modification    ./Sources/Subs-Post.php    Test failed
      1.    Replace    ./Sources/Subs-Post.php    Test failed
In file Subs-Post.php, find:
$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);
replace:
//$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);
Title: Re: Auto Merge Double Post
Post by: Jeet Chowdhury on June 10, 2011, 08:47:42 AM
how to use this mod on rc5?
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Title: Re: Auto Merge Double Post
Post by: TurtleKicker on June 14, 2011, 05:41:12 PM
Does this work on SMF 2.0 final using emulate during install, or are there issues that require an update?

This is one of my most-important mods on my SMF 1.1.14 forum.
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 16, 2011, 03:52:37 PM
Mod compatible with - smf 2.0 final
Title: Re: Auto Merge Double Post
Post by: GlitchPC on June 23, 2011, 08:59:19 AM
Geor'G...

Currently using your version/fix and it works but, in Permissions for membergroups there is a duplicate entry...see attached image.  I'm using SMF 2.0 Final.
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 24, 2011, 03:41:57 AM
Yes there is such problem, make adjustment in these options:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg840.imageshack.us%2Fimg840%2F979%2F41765742.gif&hash=b12969840baf6ac8c436489cc70cafd433c83d1c)

Pravelnye values of options:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg146.imageshack.us%2Fimg146%2F1909%2F81890996.gif&hash=e635364ad6ebc701f3258c6a529f77d0f125fe7d)
Title: Re: Auto Merge Double Post
Post by: Anik on July 13, 2011, 10:47:10 AM
Why with this new mod when admin merge posts they marked as edited?
How can swich off this edit mark?
Title: Re: Auto Merge Double Post
Post by: live627 on July 13, 2011, 06:46:40 PM
Because merging is editing a post in its own right.
Title: Re: Auto Merge Double Post
Post by: Anik on July 13, 2011, 07:04:18 PM
No! Editing - it is changing! Then post edited - it's mean that admin change content!
But if admin just merge double posts without changing content, then this mark should not to be!

If somebody can fix this bug in mod - do it... Please..
Title: Re: Auto Merge Double Post
Post by: NanoSector on July 14, 2011, 03:55:11 AM
Quote from: Anik on July 13, 2011, 07:04:18 PM
No! Editing - it is changing! Then post edited - it's mean that admin change content!
But if admin just merge double posts without changing content, then this mark should not to be!

If somebody can fix this bug in mod - do it... Please..
Merging is editing one post to hold the contents of two ;)
Title: Re: Auto Merge Double Post
Post by: Anik on July 14, 2011, 04:03:09 AM
I asked for help, no for flood.
Title: Re: Auto Merge Double Post
Post by: Anik on July 14, 2011, 04:04:40 AM
Can anyone fix this mod?
I don't want to see in this message edit mark if admin merge my two posts.
Title: Re: Auto Merge Double Post
Post by: live627 on July 14, 2011, 11:22:52 AM
Doing so would would defy the purpose of edits.
Title: Re: Auto Merge Double Post
Post by: marci_n on July 14, 2011, 01:03:06 PM
Hi Guys,

I have installed this mod on my forum but I am using polish lang and auto merge post menu not showing in admin (topic and posts) menu. When I change lang to english is everything fine. Also I have many errors
QuoteUndefined index: manageposts_automerge_settings
in smf/Sources/ManagePosts.php

Any help? Tried download manual install but got error "modification couldn't be parsed"
Title: Re: Auto Merge Double Post
Post by: live627 on July 14, 2011, 01:24:39 PM
Yes the required text strings are absent in the Polish files.
Title: Re: Auto Merge Double Post
Post by: marci_n on July 14, 2011, 01:50:32 PM
Quote from: live627 on July 14, 2011, 01:24:39 PM
Yes the required text strings are absent in the Polish files.

Do you have the solution to fix that problem?
Title: Re: Auto Merge Double Post
Post by: live627 on July 14, 2011, 03:19:19 PM
Copy the lanuage entriess from the mod package into your polish files
Title: Re: Auto Merge Double Post
Post by: Kurakama on August 05, 2011, 05:48:57 PM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

thank you (:
Title: Re: Auto Merge Double Post
Post by: leftezi on August 08, 2011, 06:55:10 PM
I am a little bit lost here with the versions.
Can someone tell me please witch one is compatible with SMF 2.0 final?
Title: Re: Auto Merge Double Post
Post by: NanoSector on August 09, 2011, 09:26:07 AM
Quote from: leftezi on August 08, 2011, 06:55:10 PM
I am a little bit lost here with the versions.
Can someone tell me please witch one is compatible with SMF 2.0 final?
You should search a bit in this topic. The original mod author discontinued this modification, so we (community members) are taking over ;)
Title: Re: Auto Merge Double Post
Post by: leftezi on August 09, 2011, 06:40:15 PM
I found that there is an old greek-utf8 translation but i found it late when i already have made my own.
Maybe there are some changes from the old, so i put the new here. I don't know if there are differences between the normal Greek and the greek-utf8. I think that the only difference is that they are saved in different files (the greek-utf8 in "utf8 without BOOM" mode). Maybe that can some one confirm.
Anyway here is my from Modifications.greek-utf8.php file.

$txt['merge_button'] = 'Συγχώνευση μηνυμάτων';
$txt['AutoMergePost_auto'] = 'Ενεργοποίηση της αυτόματης συγχώνευσης μηνυμάτων';
$txt['AutoMergePost_manual'] = 'Ενεργοποίηση της χειροκίνητης συγχώνευσης μηνυμάτων';
$txt['AutoMergePost_nomax'] = 'Αγνόηση του μέγιστου μεγέθους των μηνυμάτων';
$txt['AutoMergePost_reason'] = 'Συγχώνευση μηνυμάτων';

$txt['permissionname_doublePostmerge'] = 'Να επιτρέπεται η χειροκίνητη συγχώνευση μηνυμάτων';
$txt['permissionhelp_doublePostmerge'] = 'Αυτή η ρύθμιση επιτρέπει στα μέλη να συγχωνεύουν μηνύματα.';
$txt['permissionname_doublePostmerge_own'] = 'Τα δικά τους μηνύματα';
$txt['permissionname_doublePostmerge_any'] = 'Οποιοδήποτε μήνυμα';
$txt['cannot_merged_replies'] = 'Δεν έχετε το δικαίωμα να κάνετε συγχώνευση μηνυμάτων.';
$txt['modlog_ac_merged'] = 'Συγχώνευση &quot;{message}&quot; by &quot;{member}&quot;';

$txt['manageposts_automerge_settings'] = 'Συγχώνευση διπλών μηνυμάτων';
$txt['manageposts_automerge_settings_description'] = 'Εδώ μπορείτε να κάνετε όλες τις ρυθμίσεις για την αυτόματη και χειροκίνητη συγχώνευση μηνυμάτων.';


Title: Re: Auto Merge Double Post
Post by: aelmiger on August 11, 2011, 09:46:51 PM
Please upgrade to 2.0
Title: Re: Auto Merge Double Post
Post by: leftezi on August 11, 2011, 10:02:50 PM
I have installed in 2.0 final (and works fine) the version from this post:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688
Title: Re: Auto Merge Double Post
Post by: aelmiger on August 11, 2011, 11:21:02 PM
Quote from: leftezi on August 11, 2011, 10:02:50 PM
I have installed in 2.0 final (and works fine) the version from this post:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688

Thanks very much!!!
Title: Re: Auto Merge Double Post
Post by: bobybc on August 24, 2011, 01:59:32 AM
hi,
does it possible to make this mod configurable for some boards only?
Title: Re: Auto Merge Double Post
Post by: leftezi on September 05, 2011, 08:00:56 AM
Quote from: Geor'G on June 16, 2011, 03:52:37 PM
Mod compatible with - smf 2.0 final

I have an issue in SMF 2.0 final.
When i make a double post merging in a topic where i have the notification enabled, the notification turns off and i have to klick "Notify" again to turn it back on.

EDIT: I have the "Reason For Editing Mod" also installed. It is cooperating with the "Auto Merge Double Post" and puts as reason the auto edit. I don't know if this is related.
Title: Re: Auto Merge Double Post
Post by: remingtone on October 01, 2011, 08:21:29 AM
dont work post moderation with this mod :( mod is good, but i uninstal him. dont work captcha and questions in post moderation, but on registration page all is works.. SMF 2.0
Title: Re: Auto Merge Double Post
Post by: vkot on October 01, 2011, 03:12:21 PM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Works - smf rc4-rc5

Fix, update

Me too, I have used this fixed mod in SMF 2.0 Final and it works fine (Auto & Manual merge).
Title: Re: Auto Merge Double Post
Post by: SourdoughStomper on October 22, 2011, 04:21:21 PM
For some reason, I cannot see a tab that allows me to modify the auto-merge function, like changing the color or having it auto-merge for admin as well, or editing the time between double posts to allow members to bump their threads after a decent amount of time.

When I look at this screen shot: http://custom.simplemachines.org/mods/index.php?action=download;mod=1523;id=117212;image  ---  but I do not see it in reality when I go to the same area myself.
Title: Re: Auto Merge Double Post
Post by: Ascot on November 25, 2011, 03:38:15 PM
Please update for SMF 2.0.1.
Thanks in advance !! :)
Title: Re: Auto Merge Double Post
Post by: leftezi on November 25, 2011, 09:03:45 PM
I have updated from 2.0 to 2.01 without problem. It works fine with 2.01 too, exept the small isue with notifications that i mentioned 5 post before.
Title: Re: Auto Merge Double Post
Post by: Ascot on November 25, 2011, 11:50:54 PM
Well i have lots of installing errors. I've verify the code to replace at, and its not updated to codes from new V (i guess) or they're simply missing.

i also try to update the "looking for" codes to the actually most similar but when i install the mod i got pharse error. :/
Title: Re: Auto Merge Double Post
Post by: littleone on November 26, 2011, 11:52:05 AM
Im trying to install on 2.0.1 and it should work according to the install file however i keep getting a corrupt error.
Title: Re: Auto Merge Double Post
Post by: robert_cyrus on February 09, 2012, 06:11:10 PM
Quote from: leftezi on August 11, 2011, 10:02:50 PM
I have installed in 2.0 final (and works fine) the version from this post:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688
Ditto, works for me in 2.0.2
Title: Re: Auto Merge Double Post
Post by: amiralib on February 10, 2012, 12:56:37 AM
please update for 2.02
Title: Re: Auto Merge Double Post
Post by: GlitchPC on February 10, 2012, 02:08:45 AM
Quote from: amiralib on February 10, 2012, 12:56:37 AM
please update for 2.02


Read the post above your post.  I have it installed on 2.0.2.  Works fine.
Title: Re: Auto Merge Double Post
Post by: amiralib on February 10, 2012, 04:16:34 AM
yes but I dont want to install it manually
Title: Re: Auto Merge Double Post
Post by: GlitchPC on February 10, 2012, 10:27:55 AM
Quote from: amiralib on February 10, 2012, 04:16:34 AM
yes but I dont want to install it manually

Then use Package Manger
Title: Re: Auto Merge Double Post
Post by: Ascot on February 15, 2012, 08:24:56 AM
Quote from: GlitchPC on February 10, 2012, 10:27:55 AM
Quote from: amiralib on February 10, 2012, 04:16:34 AM
yes but I dont want to install it manually

Then use Package Manger

He obviously means to make manual edits to fit mod to his theme or whatever.
And i did so, install process go right but something still doesn't work: When i click the "Merge post" settings button it shows the same as "Message settings".  I guess it has something to see with Url and php sesion.

Url looks like this.

http://myhosting.com/forum/index.php?action=admin;area=postsettings;sa=automerge;cb876f828e1=f8991ec79398244890e71f1802a70216
Title: Re: Auto Merge Double Post
Post by: Heardy on February 23, 2012, 06:11:40 AM
Is there any chance of an update for 2.0.2? I've got loads of errors that are appearing :(.

Or is there any way to incorperate it with PrettyUrls? I've realised that Pretty Urls is the mod that is giving me errors when installing this mod :(
Title: Re: Auto Merge Double Post
Post by: NekoJonez on March 09, 2012, 02:49:21 AM
Well, I tried to install this mod on 2.0.2 and it failed on ALL my themes.
Title: Re: Auto Merge Double Post
Post by: netpaydays on March 09, 2012, 03:11:31 AM
Can someone tell me how to set the bump time in hours rather than days? If this is not possible then I think it should be added in the next version. On my forum, I want it so when users double post within the hour, it should be merged but when they post several hours later it should be considered as a new post.

Do you want an option "AutoBUMP" when Merge the Posts?
Yes because my users do not double post to bump threads, they double post to add new information or just by being a newbie.

Currently: Post 2 is merged with Post 1, Post 2 is deleted.
Suggestion: Post 1 is merged with Post 2, Post 1 is deleted.
Title: Re: Auto Merge Double Post
Post by: saimo on March 09, 2012, 03:56:47 AM
ขอบใจจร้า
Title: Re: Auto Merge Double Post
Post by: loplo on March 09, 2012, 09:12:55 AM
Please uptade for 2.0.2
Title: Re: Auto Merge Double Post
Post by: Owdy on March 09, 2012, 03:25:05 PM
Quote from: loplo on March 09, 2012, 09:12:55 AM
Please uptade for 2.0.2
Mod author: Last Active:    14.02.10 - klo:06:19
Title: Re: Auto Merge Double Post
Post by: loplo on March 09, 2012, 04:39:35 PM
Right, but maybe somebody can mod the mod :)
Title: Re: Auto Merge Double Post
Post by: GlitchPC on March 10, 2012, 01:06:25 AM
This mod works fine with 2.0.2 using emulation.
Title: Re: Auto Merge Double Post
Post by: sildenafil on March 10, 2012, 08:41:58 AM
Hi,

great mod.

I have a problem.
When a user write a post, it is ok.
When hi write a next post, it is ok.
When hi write a next post, hi becomes a error and the post doesn´t save.
Report
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on April 03, 2012, 05:21:16 AM
I already have asked these questions before, but had no answer:

1.
Quote from: MrCreatoR on October 27, 2009, 11:55:14 AM
When merging post that have single quote char in his title ('), it's prefixed by slash character - like this: \'.

Any ideas how to fix that?

2.
Quote from: MrCreatoR on October 15, 2009, 05:18:06 PM
Is there any chance to add an option to disable posts merging for the first post (when creating the topic)?

any ideas?
Title: Re: Auto Merge Double Post
Post by: luuuciano on May 01, 2012, 11:39:23 AM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Used this on a 2.0.2, works like a charm
Thanks for sharing it




It has an odd thing with subjects... if the subject has "" it will scape it, and save it that way...

so, something like
This is a subject "with quotes"
it is changed to
This is a subject \"with quotes\"

Did not tested with several mergings, maybe it continue adding \ for ever?

Can someone check if this happens on yours auto merged threads?
Title: Re: Auto Merge Double Post
Post by: Geor'G on May 06, 2012, 12:30:52 AM
Quote from: MrCreatoR on April 03, 2012, 05:21:16 AM
2.
Quote from: MrCreatoR on October 15, 2009, 05:18:06 PM
Is there any chance to add an option to disable posts merging for the first post (when creating the topic)?
any ideas?

In file Post.php, find:
// Flooder?
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);

replace:
// Flooder?
if ($_REQUEST['last_msg'] != $topic_info['id_first_msg'])
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);
Title: Re: Auto Merge Double Post
Post by: MrCreatoR on May 06, 2012, 04:17:36 AM
Quote from: Geor'G on May 06, 2012, 12:30:52 AM
In file Post.php, find:
// Flooder?
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);

replace:
// Flooder?
if ($_REQUEST['last_msg'] != $topic_info['id_first_msg'])
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);


Thank you.
Now i left with the first issue...
Title: Re: Auto Merge Double Post
Post by: Biology Forums on May 10, 2012, 10:10:20 PM
Great mod... Is there a way to show a little message (only to the person doing the bumping) explaining that they can bump their topic again in 1 day (or whatever value that was set)?
Title: Re: Auto Merge Double Post
Post by: luuuciano on May 10, 2012, 11:54:52 PM
In our forum people do not bump... they are just lazy people, replying to many posts without using the multi quote option (when the quick reply is active)

Having this mod is a new world!
Thanks again for this contribution
Title: Re: Auto Merge Double Post
Post by: Biology Forums on May 11, 2012, 04:08:45 PM
Quote from: luuuciano on May 10, 2012, 11:54:52 PM
In our forum people do not bump... they are just lazy people, replying to many posts without using the multi quote option (when the quick reply is active)

Having this mod is a new world!
Thanks again for this contribution

I agree as well.
Title: Re: Auto Merge Double Post
Post by: crypter4991 on May 18, 2012, 04:19:01 PM
Why I get this error when I install the version 1.3 fixed on SMF 2.0.2?

Fatal error: Cannot redeclare modifyautomergepostsettings() (previously declared in /membri/coretanima/Sources/ManagePosts.php:380) in /membri/coretanima/Sources/ManagePosts.php on line 461

How do I fix?
Title: Re: Auto Merge Double Post
Post by: duzzzstar on May 22, 2012, 12:10:02 PM
The instalation fails to edit some files.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fb0hFi.png&hash=12092c1b9a04e5207eb81cab3b57a73517d5bbf8)

Waiting for updates :(
Title: Re: Auto Merge Double Post
Post by: Arantor on May 22, 2012, 12:11:04 PM
It fails because you have other mods that this conflicts with - changing the mod can't solve those problems, you'll have to apply the code changes by hand.
Title: Re: Auto Merge Double Post
Post by: FireDitto on May 26, 2012, 06:41:30 AM
Is there a way to make it so that the merged post will bump the thread as if it were a new post, but merge so that it is a part of the old post?

It would still look exactly as it does, but the bump would send the thread to the top of the list, mark it as unread, and bring it attention once more, without choking it up with a line of 'bump' posts.

I have an RP site, and it would be very good to be able to bump threads that have become forgotten or overlooked, without having to post new posts on it etc.

Is this possible?
Title: Re: Auto Merge Double Post
Post by: rickmastfan67 on May 26, 2012, 09:52:04 AM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Thanks for posting this fixed file.  However, I might have just spotted a bug.

When installing it on my test forum (offline), I noticed that the modifications don't work for the "core" theme.  (yes I clicked the box first and it said it passed the modification test on the core Display.template.php file...)

In the "default/Curve" theme, the "merge.gif" image loads perfectly fine beside the "Merge Posts" text.  However, in the "core" theme, this doesn't happen.  The "Merge Posts" text is there (however not in bold), but the "merge.gif" image isn't even though it's in the proper directory.

Do you know why this might be happening?  This was the first mod I installed in the test forum, so there can't be any conflicting mods effecting it.  Is there something more that needs to be added to the Display.template.php file in the core theme to get the image to properly show up?  This is with SMF 2.0.2.  Thanks.
Title: Re: Auto Merge Double Post
Post by: rickmastfan67 on May 27, 2012, 12:43:54 AM
Quote from: rickmastfan67 on May 26, 2012, 09:52:04 AM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Thanks for posting this fixed file.  However, I might have just spotted a bug.

When installing it on my test forum (offline), I noticed that the modifications don't work for the "core" theme.  (yes I clicked the box first and it said it passed the modification test on the core Display.template.php file...)

In the "default/Curve" theme, the "merge.gif" image loads perfectly fine beside the "Merge Posts" text.  However, in the "core" theme, this doesn't happen.  The "Merge Posts" text is there (however not in bold), but the "merge.gif" image isn't even though it's in the proper directory.

Do you know why this might be happening?  This was the first mod I installed in the test forum, so there can't be any conflicting mods effecting it.  Is there something more that needs to be added to the Display.template.php file in the core theme to get the image to properly show up?  This is with SMF 2.0.2.  Thanks.

I've been able to fix this problem myself.  Geor'G, if you don't mind updating your post's attachment, here's the fixes to allow it to install correctly in the "core" theme (/Themes/core/) Display.template.php file.  If you don't want to update your attachment, I'll post the version with the fix in a little while to help people out. ;)

I took the code from the original 1.3 version when it's parsed to install in 1.1.16 and tweaked to code a tad to work for the 2.0 version of the same theme and it worked.  Tested it offline, got no errors, and it can properly merge posts.


<file name="$themes_dir/core/Display.template.php" error="skip">
<operation>
<search position="after"><![CDATA[
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');]]></search>
<add><![CDATA[
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');]]></add>
</operation>

<operation>
<search position="after"><![CDATA[
// What about splitting it off the rest of the topic?
]]></search>
<add><![CDATA[
// Can the user merge the doble post?
if ($message['can_merge'])
echo '
<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $merge_button, '</a></li>';
]]></add>
</operation>
</file>



Hopes this helps out other people who still want to use the "Core" theme for their 2.0 forums or are making a theme based off the core theme. ;)

I also put in the "error="skip"" command in case people had already deleted the core theme to save space so the installer wouldn't reject the addon because of it being missing.
Title: Re: Auto Merge Double Post
Post by: gevv on June 29, 2012, 03:35:39 AM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update



thanks @Geor'G   smf 2.0.2 works   

problem: automatically added to the post title "\"   

http://postimage.org/image/qqv1k8z8b/

sample 

merge  post add auto   "\" merge again add  "\"  merge again add  "\"

Title: Re: Auto Merge Double Post
Post by: luuuciano on June 30, 2012, 01:03:39 PM
I have reported it on #526... then PM Geor'G about that, he said that did not have that problem (odd)
To "solve" it I have erased the addslashes function on Subs-Post.php

//   $_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
   $_REQUEST['subject'] = $_POST['subject'] = un_htmlspecialchars($row['subject']);

So... no addlashes...... I have tried adding odd things on subjects, ', ", etc... without problems
Is that safe??
Title: Re: Auto Merge Double Post
Post by: Geor'G on June 30, 2012, 05:02:32 PM
Aright...

Or so:
$_REQUEST['subject'] = $_POST['subject'] = htmlspecialchars($row['subject'],ENT_QUOTES);
Title: Re: Auto Merge Double Post
Post by: Motorhed on July 02, 2012, 07:05:11 PM
Quote from: Arantor on May 22, 2012, 12:11:04 PM
It fails because you have other mods that this conflicts with - changing the mod can't solve those problems, you'll have to apply the code changes by hand.

This is not necessarily true.

I just tried installing this mod on a freshly installed forum with no mods in place and it still had many errors during installation.

Something else is at play.
Title: Re: Auto Merge Double Post
Post by: Rivalyn on July 10, 2012, 05:01:40 PM
Has anyone made modifications to this Mod to alter the days to hours? I.e. auto-merge but allow bump after 2 hours instead of days (running 2.0.2)
Title: Re: Auto Merge Double Post
Post by: Biology Forums on July 18, 2012, 12:21:44 AM
Bug on 1.x:

If two different guests post one after the other, the posts are merged. How do I prevent this from happening? :(

In other words, it is not discriminated guests of different usernames are separate people, and so is merging all guests that post one right after the other.

See here: http://biology-forums.com/index.php?topic=17286.msg81706#msg81706
Title: Re: Auto Merge Double Post
Post by: live627 on July 22, 2012, 12:52:50 AM
It is because all guest postings are considered to be from the same member - ID 0

So they should not have permission to merge... wait, the permission is tied to the manual merge button. Crap. {
I'll need to check the code.
Title: Re: Auto Merge Double Post
Post by: live627 on July 22, 2012, 01:08:37 AM
Permission "Allow Double Posts" - on or off for guests?
Title: Re: Auto Merge Double Post
Post by: Biology Forums on July 23, 2012, 04:44:56 PM
Quote from: live627 on July 22, 2012, 01:08:37 AM
Permission "Allow Double Posts" - on or off for guests?

Crap, never knew that existed  :P
Title: Re: Auto Merge Double Post
Post by: FireDitto on July 28, 2012, 06:59:34 AM
Quote from: FireDitto on May 26, 2012, 06:41:30 AM
Is there a way to make it so that the merged post will bump the thread as if it were a new post, but merge so that it is a part of the old post?

It would still look exactly as it does, but the bump would send the thread to the top of the list, mark it as unread, and bring it attention once more, without choking it up with a line of 'bump' posts.

I have an RP site, and it would be very good to be able to bump threads that have become forgotten or overlooked, without having to post new posts on it etc.

Is this possible?

Any ideas?
Title: Re: Auto Merge Double Post
Post by: Geor'G on August 02, 2012, 09:26:37 AM
Quote
Any ideas?
Notify Modification Last Post (http://custom.simplemachines.org/mods/index.php?mod=1557)
Title: Re: Auto Merge Double Post
Post by: amiralib on August 19, 2012, 03:20:55 PM
when I want to install in to 2.0.2 , I see some error :
./Themes/default/Display.template.php
./Sources/Admin.php
./Sources/Display.php


hm.... do you have any verision of this mod for smf2.0.2 ?
regards
Title: Re: Auto Merge Double Post
Post by: Geor'G on August 23, 2012, 06:47:47 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Auto Merge Double Post
Post by: amiralib on August 24, 2012, 01:28:43 AM
manual installation is not good !!! after upgrading SMF, we should do every thing again ! lol
I prefer to wait for new version of this MOD !

if some one is ready to work then we can renew this mod
Title: Re: Auto Merge Double Post
Post by: Irisado on August 24, 2012, 05:51:42 AM
This mod saves me moderation work, so that makes it a very good one in my eyes.  It effectively makes the forum auto moderate users for serial posting  :D.  Thanks for putting it together.
Title: Re: Auto Merge Double Post
Post by: Geor'G on August 24, 2012, 07:36:42 AM
Quoteafter upgrading SMF, we should do every thing again ! lol
I prefer to wait for new version of this MOD !
Mod works with version SMF 2.0.2

http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688
Title: Re: Auto Merge Double Post
Post by: amiralib on August 24, 2012, 11:55:41 AM
thanks Geor'G
it works !
Title: Re: Auto Merge Double Post
Post by: fox1987 on September 19, 2012, 06:49:55 PM
i try on 2.0.2 and got errors,installed and nothing ,no options ,is there any tutorial how to manualy change code and mod to work on this version of smf
Title: Re: Auto Merge Double Post
Post by: Geor'G on September 29, 2012, 03:02:26 PM
http://www.simplemachines.org/community/index.php?topic=278227.msg3395577#msg3395577
Title: Re: Auto Merge Double Post
Post by: Bluearrow on October 30, 2012, 06:32:04 AM
Getting a error in mod page   "Sorry, but the modification could not be parsed.". when trying to get Manual Install Instructions.


http://custom.simplemachines.org/mods/index.php?action=parse
Title: Re: Auto Merge Double Post
Post by: gevv on December 14, 2012, 02:26:48 PM
auto merge How to set the 2 hours ?

solved  change "posterTime" 

if (time() >= ($modSettings['AutoMergePost_time'] * 86400 + $row['posterTime']))

86400= 1 day   7200= 2 hours
Title: Re: Auto Merge Double Post
Post by: dadaas on January 31, 2013, 10:56:00 AM
Not working on 2.0.3 no mods default theme and lots of errors, didnt even try to install it. any update? Why is SMF 2.0 not having this as default option?
Title: Re: Auto Merge Double Post
Post by: Hristo on January 31, 2013, 01:29:42 PM
Works just fine with 2.0.3, but I use this one:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688
Title: Re: Auto Merge Double Post
Post by: theone1984 on February 21, 2013, 02:45:23 AM
I'm try install and got message error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi175.photobucket.com%2Falbums%2Fw148%2Fddmquan2003%2F12345-1.png&hash=8b9c764efd0ff36553e6d82c1b7db1d636cd628c)

anybody help me explain why i'm got error, i'm used ver 2.0.4
Title: Re: Auto Merge Double Post
Post by: antivladinforum on March 01, 2013, 12:32:17 PM
any update for 2.0.4
Title: Re: Auto Merge Double Post
Post by: Adrek on March 01, 2013, 12:33:20 PM
Quote from: Hristo on January 31, 2013, 01:29:42 PM
Works just fine with 2.0.3, but I use this one:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688

Works fine with 2.0.4
Title: Re: Auto Merge Double Post
Post by: Bluearrow on April 09, 2013, 01:11:43 AM
I use Geor'Gs updated one. and noticed a bug or something wrong in my end. Having a problem with Ignore maximum post size option.

If someone try to make a post with 20k characters you get this message about maximum post size and then member try to post in a new post Mod try to merge 2 posts and get that maximum post size message again. 

Title: Re: Auto Merge Double Post
Post by: petb on November 02, 2013, 03:54:53 PM
Hi,

sorry, i have to ask, i am confused.
Is there a Solution/Workaround changing the MSG IDs under which the combined Post was stored ?
Or was this Patch/Workaround i found in this Thread (very old Posting Date) only for SMF 1.x

For example what i want to have is:

Post 1, posted yesterday.
Post 2 posted today.
I wanna be notified about the new Post2 as a new Post of this user and i want the combined Post be stored with the MSG ID of the New Post,
and wann have deleted the old Post(MSG ID).

Is this possible with a little change in the Code i can patch by myself ?

Thank You.
Title: Re: Auto Merge Double Post
Post by: Jade Elizabeth on November 19, 2013, 04:21:55 AM
I installed this, everything except the manual button, and it's not working. What's up with that?
Title: Re: Auto Merge Double Post
Post by: Infinito on January 27, 2014, 10:49:21 AM
Hi all,

i use the 2.0.5 forum version and when i try to install mod, get the same error of theone1984. Is there a stable release for 2.0.5 or a similar mod to apply the merge o posts ??
Title: Re: Auto Merge Double Post
Post by: margarett on January 27, 2014, 10:59:11 AM
Check this:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688

Also, you should update your forum, at least to 2.0.6 which is a SECURITY update.
Title: Re: Auto Merge Double Post
Post by: rickmastfan67 on January 27, 2014, 03:07:50 PM
Quote from: margarett on January 27, 2014, 10:59:11 AM
Check this:
http://www.simplemachines.org/community/index.php?topic=278227.msg3069688#msg3069688

Also, you should update your forum, at least to 2.0.6 which is a SECURITY update.

It seems that the file in that post is causing problems upgrading to 2.0.7 from 2.0.6.
http://www.simplemachines.org/community/index.php?topic=517626.0
Title: Re: Auto Merge Double Post
Post by: luuuciano on January 27, 2014, 06:13:06 PM
Quote from: rickmastfan67 on January 27, 2014, 03:07:50 PM
It seems that the file in that post is causing problems upgrading to 2.0.7 from 2.0.6.
http://www.simplemachines.org/community/index.php?topic=517626.0

Well... any mod that changes upgraded sections will cause "problems upgrading xx to zz"...
You have to handle those issues "by hand"
Title: Re: Auto Merge Double Post
Post by: rickmastfan67 on January 27, 2014, 11:07:39 PM
Quote from: luuuciano on January 27, 2014, 06:13:06 PM
Quote from: rickmastfan67 on January 27, 2014, 03:07:50 PM
It seems that the file in that post is causing problems upgrading to 2.0.7 from 2.0.6.
http://www.simplemachines.org/community/index.php?topic=517626.0

Well... any mod that changes upgraded sections will cause "problems upgrading xx to zz"...
You have to handle those issues "by hand"

I know.  I'd just thought I'd give everybody a heads up.
Title: Re: Auto Merge Double Post
Post by: Avalanche91 on February 04, 2014, 06:55:18 AM
Hello folks,

First of all - great work, very useful mod. There is only one little problem that I have noticed with this mod. After two posts are merged together automatically, I am not being notified about the new post when I click on the button that shows all unread posts (Show unread posts since last visit). The interesting thing is that I can see the icon for new posts while I am browsing the boards but the new post is not added in the unread section.

Any chances of fixing that? Thank you!
Title: Re: Auto Merge Double Post
Post by: petb on February 04, 2014, 10:29:10 AM
Quote from: Avalanche91 on February 04, 2014, 06:55:18 AM
Hello folks,

First of all - great work, very useful mod. There is only one little problem that I have noticed with this mod. After two posts are merged together automatically, I am not being notified about the new post when I click on the button that shows all unread posts (Show unread posts since last visit). The interesting thing is that I can see the icon for new posts while I am browsing the boards but the new post is not added in the unread section.

Any chances of fixing that? Thank you!

I have the same Problem  ;)
So i thought about that in this Way
Quote from: petb on November 02, 2013, 03:54:53 PM
Hi,

sorry, i have to ask, i am confused.
Is there a Solution/Workaround changing the MSG IDs under which the combined Post was stored ?
Or was this Patch/Workaround i found in this Thread (very old Posting Date) only for SMF 1.x

For example what i want to have is:

Post 1, posted yesterday.
Post 2 posted today.
I wanna be notified about the new Post2 as a new Post of this user and i want the combined Post be stored with the MSG ID of the New Post,
and wann have deleted the old Post(MSG ID).

Is this possible with a little change in the Code i can patch by myself ?

Thank You.

But the only Solutions we got is to look at another Mod
Notify Modification Last Post (http://custom.simplemachines.org/mods/index.php?mod=1557)
which makes every Edit with an behaviour like a new Post,
so then you will get the notification.
But this Mod also have some Problems  :'(

And another Problem was:
If you are using the Auto Merge Mod, and you have allowed Guests to Post Messages,
the Auto Merge Mod override the Spam Protection of the Forum.
The Anti Spam Captcha and the Questions wont work anymore.
Guests can type in the Fields whatever they want and are able to post.

After a Look at the Code,
i believe this is because the Mod Functions are inserted int the Forum Code,
before the SMF Anti Spam Protection Code Segment.
So after running into the MOD Code Section,
the Forum owned Anti Spam Protection Code is no longer performed.



Another Thing was:
If you have configured a Time, let say 1 hour, to allow users to edit Posts.
And you have configured the Mod to merge a longer Period than this one hour.
The User writes a Post and then it will be merged, but he cant edit his new Post,
because his New post was merged into the old one, whos EDIT Time Range is still over.
So you should set the Edit Time Range longer than the Auto Merge time range,
to prevent Trouble with the users.


An if i remember right there maybe some other Problems too.
Title: Re: Auto Merge Double Post
Post by: Avalanche91 on February 04, 2014, 03:45:58 PM
I see. Thank you, @petb, very thorough answer :)
Title: Re: Auto Merge Double Post
Post by: kamili34 on February 06, 2014, 05:24:21 PM
Have trouble with this on Subs-Post.php

<file name="$sourcedir/Subs-Post.php">
<operation>
<search position="replace"><![CDATA[$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></search>
<add><![CDATA[// $parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></add>
</operation>


I dont have that line. :/
Title: Re: Auto Merge Double Post
Post by: luuuciano on February 06, 2014, 07:46:51 PM
It would be helpful if you attach the Subs-Post.php file, so we can analize it... if not, we will have to hack your computer to get it (?)
Title: Re: Auto Merge Double Post
Post by: kamili34 on February 07, 2014, 01:16:29 PM
 :P

Ok here you go! :)
Title: Re: Auto Merge Double Post
Post by: margarett on February 07, 2014, 01:48:06 PM
If you are using 2.0.7 it will fail to find that line:

preg_replace('~

This was replaced in the latest patch to be PHP5.5 compatible.

You need to install with errors (make sure this is the only error you have!!!) and find your line 399

$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', create_function('$m', ' return "[time]" . timeformat("$m[1]", false) . "[/time]";'), $parts[$i]);

And comment it out.
Title: Re: Auto Merge Double Post
Post by: kamili34 on February 07, 2014, 03:01:00 PM
Great, works!  8)
Title: Re: Auto Merge Double Post
Post by: Ovrdrv on March 01, 2014, 06:51:57 PM
Really needed mod, thank you.

I use fresh install 2.0.7 with this updated version http://www.simplemachines.org/community/index.php?topic=278227.msg3067518#msg3067518

Automerge works perfect, but manual merge doen't keep attachments of first post when merging. Only attachments of second post are present in merged post.

Could anyone try to fix it? I will pay 40 dollars for this if anyone interested(by paypal).
Title: Re: Auto Merge Double Post
Post by: margarett on March 02, 2014, 04:09:54 PM
Hi and welcome to SMF,

QuoteOnly attachments of second post are present in merged post.
Does this happen only after installation of this mod?
Title: Re: Auto Merge Double Post
Post by: KillerKeox on March 06, 2014, 03:00:13 AM
Quote from: margarett on February 07, 2014, 01:48:06 PM
If you are using 2.0.7 it will fail to find that line:

preg_replace('~

This was replaced in the latest patch to be PHP5.5 compatible.

You need to install with errors (make sure this is the only error you have!!!) and find your line 399

$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', create_function('$m', ' return "[time]" . timeformat("$m[1]", false) . "[/time]";'), $parts[$i]);

And comment it out.

Thank you friend, that will help many
Title: Re: Auto Merge Double Post
Post by: live627 on March 07, 2014, 07:10:10 PM
Quote from: Ovrdrv on March 01, 2014, 06:51:57 PM
Really needed mod, thank you.

I use fresh install 2.0.7 with this updated version http://www.simplemachines.org/community/index.php?topic=278227.msg3067518#msg3067518

Automerge works perfect, but manual merge doen't keep attachments of first post when merging. Only attachments of second post are present in merged post.

Could anyone try to fix it? I will pay 40 dollars for this if anyone interested(by paypal).

What is your limit on attachments per post?
Title: Re: Auto Merge Double Post
Post by: VasVadum on March 26, 2014, 12:37:24 PM
Quote from: margarett on February 07, 2014, 01:48:06 PM
If you are using 2.0.7 it will fail to find that line:

preg_replace('~

This was replaced in the latest patch to be PHP5.5 compatible.

You need to install with errors (make sure this is the only error you have!!!) and find your line 399

$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', create_function('$m', ' return "[time]" . timeformat("$m[1]", false) . "[/time]";'), $parts[$i]);

And comment it out.

I was hoping someone would eventually update this so that it would work by default without needing to manually change anything in your files.  I don't like manually changing files in case it breaks the ability to install/uninstall other mods as that happened to me once years ago.
Title: Re: Auto Merge Double Post
Post by: margarett on March 26, 2014, 07:29:30 PM
Unfortunately only the author can do that. There is no license methinks, so that prevents any modification and redistribution of the package.
Title: Re: Auto Merge Double Post
Post by: VasVadum on March 28, 2014, 02:31:51 PM
Quote from: margarett on March 26, 2014, 07:29:30 PM
Unfortunately only the author can do that. There is no license methinks, so that prevents any modification and redistribution of the package.

And the author is gone? :P
Title: Re: Auto Merge Double Post
Post by: margarett on March 28, 2014, 10:04:14 PM
QuoteLast Active: February 13, 2010, 11:19:25 PM
Title: Re: Auto Merge Double Post
Post by: NekoJonez on March 29, 2014, 01:47:36 PM
Well dayum. Isn't there a way that mods where the mod authors have left the scene can be updated by the community?
Title: Re: Auto Merge Double Post
Post by: margarett on March 29, 2014, 04:38:54 PM
Well the thing is... If we want to respect copyright (which we do!) we can't allow it. Not only we won't do it as we won't allow distribution here. I'm sorry, it's law.

I'm pretty sure the author won't care. But as long as not explicitly stated, there's nothing we can do.

Now please let's stop this side discussion. The mod works fine with the small manual edit.
Title: Re: Auto Merge Double Post
Post by: NekoJonez on March 30, 2014, 09:28:16 AM
Quote from: margarett on March 29, 2014, 04:38:54 PM
Well the thing is... If we want to respect copyright (which we do!) we can't allow it. Not only we won't do it as we won't allow distribution here. I'm sorry, it's law.

I'm pretty sure the author won't care. But as long as not explicitly stated, there's nothing we can do.

Now please let's stop this side discussion. The mod works fine with the small manual edit.

Thank the lords that there are people who make these workarounds ;)
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on April 18, 2014, 10:04:42 AM
is this working on smf 2.0.7
using black n black theme?
this is what i got when i attempted to install.

Thanks
Title: Re: Auto Merge Double Post
Post by: luuuciano on April 18, 2014, 11:01:45 AM
Quote from: ryan_dwight on April 18, 2014, 10:04:42 AM
is this working on smf 2.0.7
using black n black theme?
this is what i got when i attempted to install.

Thanks

Have you used this?
http://www.simplemachines.org/community/index.php?topic=278227.msg3067518#msg3067518

Have you readed this?
http://www.simplemachines.org/community/index.php?topic=278227.msg3666870#msg3666870
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on April 18, 2014, 12:09:02 PM
thanks for your reply
i used this
http://custom.simplemachines.org/mods/index.php?mod=1523
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on April 18, 2014, 12:20:05 PM
ok I used the link and i found one error only
but i cant find the code that to be replaced on line 399
this is a part of it fromline 390 to 404
$parts[$i] = preg_replace_callback('~\[html\](.+?)\[/html\]~i', create_function('$m', 'return "[html]" . strtr(htmlspecialchars("$m[1]", ENT_QUOTES), array("\\&quot;" => "&quot;", "&amp;#13;" => "<br />", "&amp;#32;" => " ", "&amp;#91;" => "[", "&amp;#93;" => "]")) . "[/html]";'), $parts[$i]);
// $parts[$i] = preg_replace('~\[html\](.+?)\[/html\]~ie', '\'[html]\' . strtr(htmlspecialchars(\'$1\', ENT_QUOTES), array(\'\\&quot;\' => \'&quot;\', \'&amp;#13;\' => \'<br />\', \'&amp;#32;\' => \' \', \'&amp;#38;\' => \'&#38;\', \'&amp;#91;\' => \'[\', \'&amp;#93;\' => \']\')) . \'[/html]\'', $parts[$i]);

// Attempt to un-parse the time to something less awful.
$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', create_function('$m', ' return "[time]" . timeformat("$m[1]", false) . "[/time]";'), $parts[$i]);
}
}

// Change breaks back to \n's and &nsbp; back to spaces.
return preg_replace('~<br( /)?' . '>~', "\n", str_replace('&nbsp;', ' ', implode('', $parts)));
}

// Fix any URLs posted - ie. remove 'javascript:'.
function fixTags(&$message)
what part should i replace
Title: Re: Auto Merge Double Post
Post by: luuuciano on April 18, 2014, 01:29:11 PM
Quote from: ryan_dwight on April 18, 2014, 12:20:05 PM
what part should i replace

It is pretty clear... the only section that has THAT is the one below "Attempt to un-parse the time to something less awful."
And you do not have to replace, just add // at the begining of that line (that is "comment it out")
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on April 18, 2014, 02:37:40 PM
thanks

I asked you to what to replace because according to the error manual edit it needs to be replace.


is this a retroactive, I mean those past threads would be affected or just the new ones?
Title: Re: Auto Merge Double Post
Post by: emicd on April 30, 2014, 01:22:42 AM
cant install this mod in 2.0.7.  can you give me some help?
Title: Re: Auto Merge Double Post
Post by: NekoJonez on April 30, 2014, 05:28:22 AM
Which errors do you get good sir?
Title: Re: Auto Merge Double Post
Post by: emicd on April 30, 2014, 06:38:14 PM
Empty browser screen and the url

www.myforum.com/          index.php?action=admin;area=packages;sa=install;package=AutoMergeDoublePost_v1_3.zip

others mods installed correctly... :(
Title: Re: Auto Merge Double Post
Post by: emicd on April 30, 2014, 06:48:18 PM
-----------------

now it goes! but its says:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi57.tinypic.com%2F24vnqyx.png&hash=69db2a3e305c70ca9b7b0fa1f6b98c8cd0334626)

i would use emulation for the version... but the file erros in red?
Title: Re: Auto Merge Double Post
Post by: margarett on April 30, 2014, 08:38:21 PM
You can't really install that that in 2.0.x versions...

This mod was developed for RC1, which suffered some intense changes until 2.0 final. This made it incompatible with recent versions. Since the author is long absent from SM.org and there is no licence that allows update of this mod, I'd advise you a mod request in the specific board.
Title: Re: Auto Merge Double Post
Post by: emicd on May 02, 2014, 12:11:40 AM
Quote from: margarett on April 30, 2014, 08:38:21 PM
You can't really install that that in 2.0.x versions...

This mod was developed for RC1, which suffered some intense changes until 2.0 final. This made it incompatible with recent versions. Since the author is long absent from SM.org and there is no licence that allows update of this mod, I'd advise you a mod request in the specific board.

so the problem was the interface between the keyboard and the chair.... i mean me heheh

its a extremely usefull mod!!! i cant beleive im the first who is willing it to work on 2.0.x!

ok so i will post a request!
Title: Re: Auto Merge Double Post
Post by: Hristo on May 02, 2014, 07:17:25 AM
The mod works fine with 2.0.6 (i suppose 2.0.7 too), but you have to use the unofficial version which is available to download some posts back in this same thread. There are multiple links pointing to that version on the last few pages of this thread.
Title: Re: Auto Merge Double Post
Post by: emicd on May 02, 2014, 10:55:32 PM
THANKS!!! iwill try the unofficial
Title: Re: Auto Merge Double Post
Post by: Steelio on June 30, 2014, 01:11:14 AM
ok i just installed this mod, apologies for asking this, but can you tell me where i should go to do the corrections as recommended by Margarett below?

Quote from: margarett on February 07, 2014, 01:48:06 PM
If you are using 2.0.7 it will fail to find that line:

preg_replace('~

This was replaced in the latest patch to be PHP5.5 compatible.

You need to install with errors (make sure this is the only error you have!!!) and find your line 399

$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', create_function('$m', ' return "[time]" . timeformat("$m[1]", false) . "[/time]";'), $parts[$i]);

And comment it out.
Title: Re: Auto Merge Double Post
Post by: margarett on June 30, 2014, 05:16:52 AM
Quote from: kamili34 on February 06, 2014, 05:24:21 PM
Have trouble with this on Subs-Post.php

<file name="$sourcedir/Subs-Post.php">
<operation>
<search position="replace"><![CDATA[$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></search>
<add><![CDATA[// $parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></add>
</operation>


I dont have that line. :/

Quote from: margarett on February 07, 2014, 01:48:06 PM
If you are using 2.0.7 it will fail to find that line:

preg_replace('~

This was replaced in the latest patch to be PHP5.5 compatible.

You need to install with errors (make sure this is the only error you have!!!) and find your line 399

$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', create_function('$m', ' return "[time]" . timeformat("$m[1]", false) . "[/time]";'), $parts[$i]);

And comment it out.

Subs-Post.php ;)
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on August 28, 2014, 10:02:10 AM
Is it possible for this to merge all the member's reply in a thread in a day?

Scenario:
on a day in one thread.
Member A replied
Member B replied
Member A replied
Member B replied
Member A replied
Member B replied

repeating this scenario in a day will not automerge because someone already replied on it.

Is there a chance to have a merge reply button not necessarily automatic.

Thanks
Title: Re: Auto Merge Double Post
Post by: Arantor on August 28, 2014, 10:50:43 AM
Except if you do that, the merging of A's and B's posts will be attributed to one person which is not desirable in most circumstances...
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on August 28, 2014, 11:01:42 AM
Quote from: ‽ on August 28, 2014, 10:50:43 AM
Except if you do that, the merging of A's and B's posts will be attributed to one person which is not desirable in most circumstances...

I mean A and A will be merged.

I don't know how complicated will be but same as the split option where you can select what reply to split but in here merge the 2 replies of the same member.
Title: Re: Auto Merge Double Post
Post by: Arantor on August 28, 2014, 11:03:30 AM
Except if you have A and B interspersed, how can it meaningfully merge A's posts?

Surely, if A and B are having a conversation, and you bunch up A's posts together, you break the flow of conversation.
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on August 28, 2014, 11:11:03 AM
Quote from: ‽ on August 28, 2014, 11:03:30 AM
Except if you have A and B interspersed, how can it meaningfully merge A's posts?

Surely, if A and B are having a conversation, and you bunch up A's posts together, you break the flow of conversation.
You are absolutely right if it is a conversation. But I have some boards that it contains pictures, I mean sharing some pictures.
That is why an option to moderate (a button to manually merge) will be necessary not an automatic merging.

Im sorry if this is not related to the topic. Bit I think they are the same goal.
Title: Re: Auto Merge Double Post
Post by: Arantor on August 28, 2014, 11:16:05 AM
You'd actually need to rewrite the mod to accomplish it because it's not just about having the button there, the underlying code will also refuse to merge the two because they're not consecutive.

It's a huge amount of work for what amounts to an edge case. If you *really* need to do it, you can do it by way of splitting the posts, merging the posts and remerging the topic, but it's not ideal on way too many levels from a user expectation standpoint.
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on August 28, 2014, 11:21:29 AM
Quote from: ‽ on August 28, 2014, 11:16:05 AM
You'd actually need to rewrite the mod to accomplish it because it's not just about having the button there, the underlying code will also refuse to merge the two because they're not consecutive.

It's a huge amount of work for what amounts to an edge case. If you *really* need to do it, you can do it by way of splitting the posts, merging the posts and remerging the topic, but it's not ideal on way too many levels from a user expectation standpoint.

thanks that's what I thought.
Title: Re: Auto Merge Double Post
Post by: hcfwesker on September 07, 2014, 06:46:58 PM
Thank you to those who have made this possible for current SMF versions.   While I understand the whole "we can't add updates to the package" reasoning.  Isn't it possible for the updated package to be submitted as a new mod, just rename the title "Double Post Merger".  Obviously there is code changes that have been made to make it compatible with current versions, so it's not like it's an exact duplicate of the mod.
Title: Re: Auto Merge Double Post
Post by: Arantor on September 07, 2014, 06:52:05 PM
The legality is questionable of doing just that, I'm afraid unless someone can point to anywhere where the mod's licence is stated - and is such that such a thing could be done.
Title: Re: Auto Merge Double Post
Post by: margarett on September 07, 2014, 06:56:05 PM
And morally questionable...

This is why the customization guidelines now enforce a license to be specified 

For this case, as long as no one comes up with a mod of his own, there isn't much we can do :(
Title: Re: Auto Merge Double Post
Post by: ryan_dwight on September 08, 2014, 01:06:50 PM
Is it possible to specify on the license that it will be to the extent of the current smf version? And if a new SMf version will be released every author or anyone can make a new mod for the new smf version.

Incase of duplicate mods, correct me if Im wrong but you guys are screening those mods that are submitted before it will be available for DL. right? and I think you can give the original author the privelege of doing un update and if no updates were made the new author can be approve.

I know its not that easy what I am thinking but if it will continue like this, all the mods will be buried without updates. The idea is there I know some of you can make a better one but it will be just an idea because you can't make it in to an updated mod.

And I think some of this authors are no longer visiting this site or maybe they are already six feet below the ground.

Pardon me for that.
Title: Re: Auto Merge Double Post
Post by: Arantor on September 08, 2014, 01:20:06 PM
Most of the time the licences chosen by mod authors fit into the category of 'derivative versions, e.g. suitable for future versions of SMF, are permitted'

Yes, mods are screened by the team when first created. Mods just being 'taken off people' will not happen simply because it's borderline illegal and definitely immoral, which is why derivative versions occur rather than taking it off them.

Those of us that can make better mods don't need to make derivative versions ;)

And yes, most of the older mod authors have simply moved on.
Title: Re: Auto Merge Double Post
Post by: vietravel247.com on May 08, 2015, 05:19:26 AM
My xml file work with smf 2.0.9.
Title: Re: Auto Merge Double Post
Post by: villasg on June 19, 2015, 09:10:26 AM
With this xml file xave errors in 2.0.10
Title: Re: Auto Merge Double Post
Post by: Asdelon on September 21, 2015, 04:48:29 PM
Hungarian ("Magyar", "Ungarisch") translation:

<file name="$languagedir/Modifications.hungarian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Auto Merge Double Post
$txt['permissionname_doublePost'] = 'Dupla hozzászólások engedélyezése';
$txt['permissionhelp_doublePost'] = 'Ezzel lehetővé vállik több hozzászólást írni egymás után.';
$txt['AutoMergePost_div'] = 'Szöveg hozzáadása összefűzésekor
<div class="smalltext">Használhatod a BB Kódokat és a $date függvényt</div>';
$txt['AutoMergePost_time'] = 'Idő a hozzászólások összefűzéséhez, a lejárt téma zárásához
<div class="smalltext">Add meg napokban. Állíts be 9999-et ahhoz, ha sohasem akarod</div>';
$txt['AutoMergePost_4all'] = 'Dupla hozzászólások tiltása
<div class="smalltext">Mindig fűzze össze a hozzászólásokat, az adminokét is.</div>';

$txt['merge_button'] = 'Hozzászólások Összefűzése';
$txt['AutoMergePost_auto'] = 'Automatikus hozzászólások fűzése';
$txt['AutoMergePost_manual'] = 'Kézi hozzászólások fűzése';
$txt['AutoMergePost_nomax'] = 'A túl nagy hozzászólást hagyja figyelmen kivül';
$txt['AutoMergePost_reason'] = 'Összefűzött hozzászólás';

$txt['permissionname_doublePostmerge'] = 'Manuális összefűzés';
$txt['permissionhelp_doublePostmerge'] = 'Ez lehetővé teszi, hogy a felhasználók összefűzzék a hozzászólásaikat.';
$txt['permissionname_doublePostmerge_own'] = 'Saját hozzászólást';
$txt['permissionname_doublePostmerge_any'] = 'Bármelyik hozzászólást';
$txt['cannot_merged_replies'] = 'Nincs jogod összefűzni ezt a hozzászólást.';
$txt['modlog_ac_merged'] = 'Összefűzve: &quot;{message}&quot; ő általa: &quot;{member}&quot;';

$txt['manageposts_automerge_settings'] = 'Hozzászólás összefűzése';
$txt['manageposts_automerge_settings_description'] = 'Itt tudod beállítani a Hozzászólások összefűzésének tulajdonságait';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.hungarian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Auto Merge Double Post
$txt['permissionname_doublePost'] = 'Dupla hozzászólások engedélyezése';
$txt['permissionhelp_doublePost'] = 'Ezzel lehetővé vállik több hozzászólást írni egymás után.';
$txt['AutoMergePost_div'] = 'Szöveg hozzáadása összefűzésekor
<div class="smalltext">Használhatod a BB Kódokat és a $date függvényt</div>';
$txt['AutoMergePost_time'] = 'Idő a hozzászólások összefűzéséhez, a lejárt téma zárásához
<div class="smalltext">Add meg napokban. Állíts be 9999-et ahhoz, ha sohasem akarod</div>';
$txt['AutoMergePost_4all'] = 'Dupla hozzászólások tiltása
<div class="smalltext">Mindig fűzze össze a hozzászólásokat, az adminokét is.</div>';

$txt['merge_button'] = 'Hozzászólások Összefűzése';
$txt['AutoMergePost_auto'] = 'Automatikus hozzászólások fűzése';
$txt['AutoMergePost_manual'] = 'Kézi hozzászólások fűzése';
$txt['AutoMergePost_nomax'] = 'A túl nagy hozzászólást hagyja figyelmen kivül';
$txt['AutoMergePost_reason'] = 'Összefűzött hozzászólás';

$txt['permissionname_doublePostmerge'] = 'Manuális összefűzés';
$txt['permissionhelp_doublePostmerge'] = 'Ez lehetővé teszi, hogy a felhasználók összefűzzék a hozzászólásaikat.';
$txt['permissionname_doublePostmerge_own'] = 'Saját hozzászólást';
$txt['permissionname_doublePostmerge_any'] = 'Bármelyik hozzászólást';
$txt['cannot_merged_replies'] = 'Nincs jogod összefűzni ezt a hozzászólást.';
$txt['modlog_ac_merged'] = 'Összefűzve: &quot;{message}&quot; ő általa: &quot;{member}&quot;';

$txt['manageposts_automerge_settings'] = 'Hozzászólás összefűzése';
$txt['manageposts_automerge_settings_description'] = 'Itt tudod beállítani a Hozzászólások összefűzésének tulajdonságait';]]></add>
</operation>
</file>
Title: Re: Auto Merge Double Post
Post by: cieplutki on January 09, 2016, 10:26:09 AM
I use smf 2.0.11
in my file: subs-post.php I have this code
$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', 'time_format__preg_callback', $parts[$i]);
I should be changed to
// $parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', 'time_format__preg_callback', $parts[$i]);
Title: Re: Auto Merge Double Post
Post by: aegersz on August 15, 2016, 06:37:03 PM
is there a SMF 2.0.11 version of this ?
Title: Re: Auto Merge Double Post
Post by: d3vcho on August 15, 2016, 06:38:46 PM
No, but check this:

How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Auto Merge Double Post
Post by: aegersz on August 15, 2016, 06:41:35 PM
no, it's not that simple (i think) because there are at least 4/5 editing failures.

changing the level doesn't change the code so i can't see that it would help - i tried SMF 2.0 anyhow ... the source looks quite different to what it expects.

is there something like this in 2.0.11 that i can enable ?
Title: Re: Auto Merge Double Post
Post by: aegersz on August 16, 2016, 06:39:04 AM
if the author (or someone who knows SMF internals well) could update this then i'd be very happy.

this is a poorly worded request ... i think this is a great feature !

(please update it)
Title: Re: Auto Merge Double Post
Post by: leftezi on October 29, 2016, 06:13:52 PM
Please update it.
Title: Re: Auto Merge Double Post
Post by: Biology Forums on August 17, 2017, 11:37:27 AM
Not sure if this has been noted but if you merge two posts of the same member, that member can no longer mark the topic "unread"
Title: Re: Auto Merge Double Post
Post by: aegersz on February 13, 2018, 06:31:54 PM
I made a 1.4 version that has the ready-to-go DB settings so there is no post-install redirect.

I have removed the Manual Merge option as it gets confused with the Topic Merge.

I have tested it and it works fine (but no responsibility accepted) so i have attached the zip file and PMed the author (M-DVD) but have no idea what to do with this now ...
Title: Re: Auto Merge Double Post
Post by: Kindred on February 13, 2018, 09:14:44 PM
Attachment removed. Current mod license does not allow modification and redistribution
Title: Re: Auto Merge Double Post
Post by: aegersz on February 13, 2018, 09:17:06 PM
so sorry - what can i do if i can't raise the author ?

worse case, he passes away - what would happen ?
Title: Re: Auto Merge Double Post
Post by: Kindred on February 13, 2018, 10:32:01 PM
The mod dies
Title: Re: Auto Merge Double Post
Post by: aegersz on February 13, 2018, 10:52:34 PM
hmm ... i was not able to determine copyright but the author has furnished some paypal details.

anyway, at least it's working for me and my members.

i still haven't looked into 2.1 and wondered how you go about matching functionality when you up against such copyright ? i suppose you write it yourself and there is no longer an issue.

What i take away from this is: if i do not find copyright, i must always assume that any distribution of modified code is not legal.

i just wanted to share the functionality with my SMF friends so i put a bit of effort in to package it properly.

if i ever get around to writing something useful then i will specify that distribution of minor changes and modifications to accomodate current software versions are permissable, via this site.
Title: Re: Auto Merge Double Post
Post by: aegersz on February 14, 2018, 02:16:01 PM
can i just list the minor changes that need to be made here ?

that way, i can help others get it running.
Title: Re: Auto Merge Double Post
Post by: aegersz on February 16, 2018, 02:23:56 AM
This is messy so try in a test system first etc.

No responsibility accepted, sorry. In lieu of an appropriate mod package and if you really want to get this running this is how i did so initially using v1.3 with 2.0.15 BUT i ignored the Manual Merge logic because it was too much hassle for me plus i didn't want it anyway.

see my installation errors in the attachment and IF they are the same as yours then perform the following steps:

1. backup ./Sources/Admin.php and then
locate:
                                                'censor' => array($txt['admin_censored_words']),
add:
                                                'topics' => array($txt['manageposts_topic_settings']),

2. backup ./Sources/ManagePosts.php and then
locate:
                'topics' => 'ModifyTopicSettings',
add:
                'automerge' => 'ModifyAutoMergePostSettings',

3. backup ./Sources/Display.php and then
locate:
        $posters = array_unique($all_posters);
add:
        $context['double_post_temp'] = array();

4.
Quotelet the mod installation proceed with errors

5. set Admin > Forum > Posts and Topics > Post Settings > Merge Double Posts:

Enable Auto Merge Doble Posts   ON

Enable Manual Merge Posts         OFF             

Ignore Double Post Permission    ON

Quoteto undo the changes, restore from your backups and let the mod uninstall proceed with errors
Title: Re: Auto Merge Double Post
Post by: aegersz on May 22, 2018, 08:36:19 PM
BUG: this mod will not merge two or more attachments in multiple posts.
Title: Re: Auto Merge Double Post
Post by: shadav on August 18, 2019, 08:41:25 AM
I know that this mod is pretty much end of life and all
but I'd like to try to install it onto a 2.0.15
I think I've got everything else worked out except this line in display.template.php
it's wanting
find
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');
add before
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');

I don't have anything at all like that in my file
what I did find though is
// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['real_num_replies']))
echo '
<li class="split_button"><a title="', $txt['split'], '" href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"></a></li>';

that is the only mention of split_button in my file
so then I would need to edit the merge_button to look something like that?
so would changing that to this work?
// automatically merge double post
echo '
<li class="merge_button"><a title="', $txt['merge'], '" href="', $scripturl, '?action=mergepost;topic=', $context['current_topic'], '.0;at=', $message['id'], '"></a></li>';


thanks...
Title: Re: Auto Merge Double Post
Post by: shadav on August 18, 2019, 11:52:12 AM
I think... I say, I think.... I could be wrong
I got this working
after going through every single post here and all the attachments and win merging them all to find the differences and whatnots

It finally installed without any errors (which I had been able to do before) and now the button shows (just need to edit that code to show a different button) and I'm able to merge the last post with the post above it....

2.0.15
I had to remove all of the utf8's from the language files, it kept giving errors, so you can just add those back in yourself if you need them
Title: Re: Auto Merge Double Post
Post by: Kindred on August 18, 2019, 05:17:57 PM
Attachment removed. The license of the mod does not allow it to be modified and redistributed.
Title: Re: Auto Merge Double Post
Post by: jsx on April 20, 2020, 05:59:22 AM
Hi,

I use Auto Merge Double Post modification, this modification has been adapted to work correctly by @aegersz - this modification works fine but there is a issue in my forum with the [time] tag that appears next to the date. On the forum I use Polish as the main language of the forum and this is where the issue occurs.

(https://i.imgur.com/IicnLbr.png)

I do not know why the [time] tag is displayed here next to the date. This tag is displayed only if I use Polish in the forum.

If I set English as the main forum language then this tag will not be displayed next to the date.

(https://i.imgur.com/LrsGHjV.png)

Even if I disable the [time] tag in Posts and Topics> Bulletin Board Code, this tag still appears next to the date when the Polish language is set.

When I set the Polish language again and added the test 8 post then this tag appeared next to all merged posts.

(https://i.imgur.com/HKbf2UL.png)

Anyone know what's going on?
Title: Re: Auto Merge Double Post
Post by: jsx on April 21, 2020, 02:56:39 PM
This is not a issue with the language which I use, because I uploaded few languages and set each of these languages as the main language of the forum and the same [time] tag appears. So there is something wrong in the code of this modification that this tag is displayed when using a language other than English.

Title: Re: Auto Merge Double Post
Post by: jsx on June 03, 2020, 07:05:18 AM
Can anyone fix this mistake?
Title: Re: Auto Merge Double Post
Post by: Arantor on June 03, 2020, 07:26:44 AM
Since the original author left years ago...?
Title: Re: Auto Merge Double Post
Post by: jsx on June 03, 2020, 07:43:55 AM
I understand that the author of this modification is not active on this support. But maybe some clever coder could help me solve this mistake.
Title: Re: Auto Merge Double Post
Post by: Shambles on June 03, 2020, 08:52:57 AM
The only thing I spotted was in the language translations/inserts that accompany the mod.

For English there are 18 $txt declarations; for Polish there are only 5 $txt declarations.

No idea if this contributes to the fault... haven't time to dig further.
Title: Re: Auto Merge Double Post
Post by: kilk on June 09, 2020, 04:07:40 PM
Just what I was looking for, thank you OP!
Title: Re: Auto Merge Double Post
Post by: shadav on October 09, 2020, 08:58:49 PM
as I've been asked :) I'll try to post here what all I had done (though that was a year ago, so comparing my package file with the latest downloaded one)
Here's what I did to get this mod to work for me

download the AutoMergeDoublePost_v1_3 and unzip it

in install_2.xml
find
<file name="$themedir/Display.template.php">
<operation>
<search position="after"><![CDATA[
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');]]></search>
<add><![CDATA[
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');]]></add>
</operation>

<operation>
<search position="after"><![CDATA[
// What about splitting it off the rest of the topic?
]]></search>
<add><![CDATA[
// Can the user merge the doble post?
if ($message['can_merge'])
echo '
<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
]]></add>
</operation>
</file>

replace
<file name="$themedir/Display.template.php">
<operation>
<search position="after"><![CDATA[
// What about splitting it off the rest of the topic?
]]></search>
<add><![CDATA[
// Can the user merge the double post?
if ($message['can_merge'])
echo '
<li class="split_button"><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['merge_button'], '</a></li>';
]]></add>
</operation>
</file>


find
<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA[
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),]]></search>
<add><![CDATA[
'automerge' => array($txt['manageposts_automerge_settings'], 'admin_forum'),]]></add>
</operation>
</file>

replace
<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA[
'topics' => array($txt['manageposts_topic_settings']),]]></search>
<add><![CDATA[
'automerge' => array($txt['manageposts_automerge_settings']),]]></add>
</operation>
</file>


find
<file name="$sourcedir/ManagePosts.php">
<operation>
<search position="before"><![CDATA[
'topics' => array('ModifyTopicSettings', 'admin_forum'),]]></search>
<add><![CDATA[
'automerge' => array('ModifyAutoMergePostSettings', 'admin_forum'),]]></add>
</operation>

replace
<file name="$sourcedir/ManagePosts.php">
<operation>
<search position="before"><![CDATA[
'topics' => 'ModifyTopicSettings',]]></search>
<add><![CDATA[
'automerge' => 'ModifyAutoMergePostSettings',]]></add>
</operation>


find
<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="after"><![CDATA[
'report_any' => array(false, 'post', 'participate'),]]></search>
<add><![CDATA[
'doublePost' => array(false, 'post', 'participate'),
'doublePostmerge' => array(true, 'post', 'participate'),]]></add>
</operation>
</file>

replace
<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="after"><![CDATA[
'post_reply' => array(true, 'topic', 'make_posts', 'make_posts'),]]></search>
<add><![CDATA[
'doublePost' => array(false, 'topic', 'make_posts'),
'doublePostmerge' => array(true, 'topic', 'make_posts'),]]></add>
</operation>
</file>


find
<file name="$sourcedir/Post.php">
<operation>
<search position="after"><![CDATA[
// Replying to a topic?]]></search>
<add><![CDATA[
global $post_errors;

// Flooder?
$_GET['merge'] = empty($_GET['merge']) ? 0 : (int)$_GET['merge'];
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);
]]></add>
</operation>

replace
<file name="$sourcedir/Post.php">
<operation>
<search position="replace"><![CDATA[
if (empty($_POST) && empty($topic))]]></search>
<add><![CDATA[
$_GET['merge'] = empty($_GET['merge']) ? 0 : (int)$_GET['merge'];
if (empty($_POST) && empty($topic) && (empty($_GET['merge']) && empty($modSettings['AutoMergePost_manual'])))]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
elseif (empty($_POST) && !empty($topic))]]></search>
<add><![CDATA[
elseif (empty($_POST) && !empty($topic) && (empty($_GET['merge']) && empty($modSettings['AutoMergePost_manual'])))]]></add>
</operation>
<operation>
<search position="after"><![CDATA[
// Replying to a topic?]]></search>
<add><![CDATA[
global $post_errors;

// Flooder?
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);
]]></add>
</operation>


find
<file name="$sourcedir/Display.php">
<operation>
<search position="before"><![CDATA[
$posters = array();]]></search>
<add><![CDATA[
$context['double_post_temp'] = array();]]></add>
</operation>

replace
<file name="$sourcedir/Display.php">
<operation>
<search position="before"><![CDATA[
$all_posters = array();]]></search>
<add><![CDATA[
$context['double_post_temp'] = array();]]></add>
</operation>


find
<operation>
<search position="before"><![CDATA[
'can_see_ip' => allowedTo('moderate_forum') || ($message['id_member'] == $user_info['id'] && !empty($user_info['id'])),]]></search>
<add><![CDATA[
'can_merge' => !empty($modSettings['AutoMergePost_manual']) && (!$context['is_locked'] || allowedTo('moderate_board')) && (allowedTo('doublePostmerge_any') || (allowedTo('doublePostmerge_own') && $message['id_member'] == $user_info['id'])) && $context['double_post'][$message['id_msg']],]]></add>
</operation>
</file>

</modification>

replace
<operation>
<search position="before"><![CDATA['can_see_ip' => allowedTo('moderate_forum') || ($message['id_member'] == $user_info['id'] && !empty($user_info['id'])),]]></search>
<add><![CDATA[
'can_merge' => !empty($modSettings['AutoMergePost_manual']) && (!$context['is_locked'] || allowedTo('moderate_board')) && (allowedTo('doublePostmerge_any') || (allowedTo('doublePostmerge_own') && $message['id_member'] == $user_info['id'])) && ($message['id_msg'] != $topicinfo['id_first_msg'] ? $context['double_post'][$message['id_msg']] : ''),]]></add>
</operation>
</file>

</modification>


===
in package-info.xml
find
<install for="2.0 - 2.99.99">
<readme type="file" parsebbc="true">readme.txt</readme>
<modification format="xml" type="file">install_2.xml</modification>
<modification format="xml" type="file">languages.xml</modification>
<modification format="xml" type="file">extra.xml</modification>
<database type="file">install_2.php</database>
</install>

replace
<install for="2.0 - 2.99.99">
<readme type="file" parsebbc="true">readme.txt</readme>
<modification format="xml" type="file">install_2.xml</modification>
<modification format="xml" type="file">languages.xml</modification>
<modification format="xml" type="file">extra.xml</modification>
<database type="file">install_2.php</database>
<redirect url="$scripturl?action=admin;area=postsettings;sa=automerge" timeout="5000" />
</install>


find
<uninstall for="2.0 - 2.99.99">
<modification format="xml" type="file" reverse="true">install_2.xml</modification>
<modification format="xml" type="file" reverse="true">languages.xml</modification>
<modification format="xml" type="file" reverse="true">extra.xml</modification>
</uninstall>

replace
<uninstall for="2.0 - 2.99.99">
<modification format="xml" type="file" reverse="true">install_2.xml</modification>
<modification format="xml" type="file" reverse="true">languages.xml</modification>
<modification format="xml" type="file" reverse="true">extra.xml</modification>
<redirect url="$scripturl?action=admin;area=packages;sa=browse" timeout="2000" />
</uninstall>


====
rezip the files and upload it to your package folder
good luck :)

hopefully it'll work or at least you'll have a bit less to figure out
Title: Re: Auto Merge Double Post
Post by: jsx on October 12, 2020, 07:28:23 AM
shadav,

Thanks for sharing the codes, unfortunately this error with the time tag still occurs.

(https://i.imgur.com/HKbf2UL.png)

Is there anyone able to check this and fix this error? There is something wrong in the code of this modification that this tag is displayed when using a language other than English.
Title: Re: Auto Merge Double Post
Post by: shadav on October 12, 2020, 10:03:45 AM
sorry I don't understand what the error is, my guess is to check the language file, the error is probably in there
Title: Re: Auto Merge Double Post
Post by: jsx on October 12, 2020, 10:15:50 AM
The extra.xml file in the package of this modification contains the following code:

<!-- Fixing bug in Time BBCode -->
<file name="$sourcedir/Subs-Post.php">
<operation error="ignore">
<search position="replace"><![CDATA[
$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . strftime(\'%c\', \'$1\') . \'[/time]\'', $parts[$i]);]]></search>
<add><![CDATA[
$parts[$i] = preg_replace('~\[time\](\d{0,10})\[/time\]~ie', '\'[time]\' . timeformat(\'$1\', false) . \'[/time]\'', $parts[$i]);]]></add>
</operation>
</file>


There may be some bug in this code. So this bug was known to the author of this modification because he entered this code in this file "Fixing bug in Time BBCode".