Advertisement:

Author Topic: Auto Merge Double Post  (Read 266132 times)

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Auto Merge Double Post
« on: December 03, 2008, 10:18:25 AM »
Link to Mod

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

  • Author:
M-DVD
  • Version:
1.3
  • Release:
21th November 2008
  • Languages:



  • Compatible With:
SMF 1.1.1 - 1.1.X
SMF 2 RC1-X
Comment this Mod
My MODs
Images
Help support my MODs


Features:

  • This MOD Automatically Merge the Double Post and prevent Spam Flood and Bumping the topic.

  • Also is available the Manual Merge.

  • You can enable and disable the Auto Merge or Manual Merge.

  • The attachments are also merge.

  • You can ignore the 'Maximum allowed post size' when try merge posts.

  • Also You can set a text of division in the Merge Post. (allowed $date var)
    Admin > Posts and Topics > Merge Double Posts

  • Auto Merge: You can set a permission and allow the Double Post by members groups.

  • Auto Merge: You can ignore the permissions and always Merge Double Post.

  • Auto Merge: Also you can set the time after which it will allow the double post and bump the topic

  • Manual Merge: You can set a permission and allow Merge the Double Post own or any.

  • Manual Merge: The manual merge double post is logged in the Moderation Action Log.



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

Quote
Languages (normal & utf-8)
   
Quote
Leyend
  • 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

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

Características:

  • Con este Mod Automáticamente se unirán los mensajes cuando un usuario intente hacer Doble Post, FLOODEAR o Subir el Tema.

  • También está disponible la Fusión Manual de Mensajes.

  • Puedes activar o desactivar por separado la Fusión Manual o la Fusión Automática.

  • Los archivos adjuntos también son fusionados.

  • Puedes configurar ignorar los 'Caracteres máximos permitidos en los mensajes' al intentar fusionar.

  • También puedes fijar un texto de división entre Post Unidos. (está permitida la variable $date)
    Administración > Mensajes y Temas > Fusión de Mensajes

  • Fusión Automática: Es posible asignar permisos según grupos de usuarios y permitir el Doble Post.

  • Fusión Automática: Puedes activar 'ignorar estos permisos' y siempre Fusionar los Doble Post.

  • Fusión Automática: También puedes fijar el número de días luego del cual se podrá DoblePostear y Subir el tema.

  • Fusión Manual: Es posible asignar permisos según grupos de usuarios y permitir la fusión de Doble Post propios o de cualquiera.

  • Fusión Manual: La fusión manual es registrada en el Log de Moderacción.



Fin.

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

ChangeLog:

Quote
Version 1.0 - 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 - 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 - 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 - 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
   + Extra: Compatible with Reason For Editing Mod
   * 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
Quote
Leyend
oFeature
*Change
+Added
-Eliminated
!Bug Fixed
?How to Update
« Last Edit: September 28, 2009, 12:51:34 PM by M-DVD »

Offline villasg

  • Full Member
  • ***
  • Posts: 485
Re: Auto Merge Double Post
« Reply #1 on: December 03, 2008, 10:40:00 AM »
Thanks work very good
greek-utf8

Code: [Select]
$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 ΔιπλοΠοστάρισμα';
« Last Edit: December 03, 2008, 10:47:09 AM by villasg »

Offline villasg

  • Full Member
  • ***
  • Posts: 485
Re: Auto Merge Double Post
« Reply #2 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;

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: Auto Merge Double Post
« Reply #3 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!


Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,319
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Auto Merge Double Post
« Reply #4 on: December 03, 2008, 01:17:34 PM »
Nice mod, its perfect for me...!!!

Thanks ..
¡¡NEW MOD: Sparkles User Names!!!

Offline matasanos

  • Jr. Member
  • **
  • Posts: 267
    • Lords-Beer.net
Re: Auto Merge Double Post
« Reply #5 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

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: Auto Merge Double Post
« Reply #6 on: December 03, 2008, 02:57:15 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.

Offline RIGILKENTARUS

  • Jr. Member
  • **
  • Posts: 108
    • ChileDescargas.Com
Re: Auto Merge Double Post
« Reply #7 on: December 03, 2008, 05:55:32 PM »
Code: [Select]
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)
Code: [Select]
('AutoMergePost_time????
Do you get it? I use 1.1.7
« Last Edit: December 03, 2008, 06:01:56 PM by RIGILKENTARUS »
WwW.ChileDescargas.Com Comunidad de Descargas..... Si no lo tenemos, pidelo y lo traemos.......

Offline pinoypetfinder

  • Jr. Member
  • **
  • Posts: 188
    • Pinoy Pet Finder
Re: Auto Merge Double Post
« Reply #8 on: December 04, 2008, 12:10:33 AM »
FANTASTIC! will download and install it! thank you! :)

Offline Sakae

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
    • TigreLOG
Re: Auto Merge Double Post
« Reply #9 on: December 04, 2008, 12:32:05 AM »
Awesome. Installed, but haven't tested yet.
http://www.tigrelog.com.br
l: simple p: machines

Offline AlenNS

  • Full Member
  • ***
  • Posts: 617
  • Gender: Male
    • Baklja forum - Vaš forum
Re: Auto Merge Double Post
« Reply #10 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.


Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Auto Merge Double Post
« Reply #11 on: December 04, 2008, 08:29:38 PM »
Thanks work very good
greek-utf8

Thank  you. Soon upload the language.

--

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.

--

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.

--

Nice mod, its perfect for me...!!!

Thanks ..

Thank for your comments.

--

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:

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.

--

Code: [Select]
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)
Code: [Select]
('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.

--

FANTASTIC! will download and install it! thank you! :)

Awesome. Installed, but haven't tested yet.

Thanks for use this MOD.

--

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?  :-\
« Last Edit: December 04, 2008, 09:32:53 PM by M-DVD »

Offline Aspera

  • Newbie
  • *
  • Posts: 5
Re: Auto Merge Double Post
« Reply #12 on: December 04, 2008, 09:16:34 PM »
croatian:

Code: [Select]
$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!!

Offline AlenNS

  • Full Member
  • ***
  • Posts: 617
  • Gender: Male
    • Baklja forum - Vaš forum
Re: Auto Merge Double Post
« Reply #13 on: December 04, 2008, 09:45:08 PM »
Quote
Merge 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. :-[

Offline villasg

  • Full Member
  • ***
  • Posts: 485
Re: Auto Merge Double Post
« Reply #14 on: December 05, 2008, 07:21:42 AM »
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
Code: [Select]
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

Offline netoya

  • Semi-Newbie
  • *
  • Posts: 61
Re: Auto Merge Double Post
« Reply #15 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:
Code: [Select]
$txt['permissionname_doublePost'] = 'Разрешить отправлять двойные посты';
$txt['permissionhelp_doublePost'] = 'Включая, Вы разрешаете отправку двойных постов.';
$txt['AutoMergePost_div'] = 'Добавлять текст при слиянии сообщений';
$txt['AutoMergePost_div_sub'] = 'Вы можете использовать BB код и переменную $date';
$txt['AutoMergePost_time'] = 'Время, после которого сообщения не будут склеиваться';
$txt['AutoMergePost_time_sub'] = 'Время до которого происходит слияние сообщений. Установите 0, чтобы выключить мод, 9999 чтобы склеивалось всегда, не поднимая тему';
« Last Edit: December 05, 2008, 10:34:40 AM by netoya »

Offline Alpay

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,636
  • Gender: Male
  • test
    • Personal Web Page
Re: Auto Merge Double Post
« Reply #16 on: December 05, 2008, 03:12:15 PM »
Very good mod. Thanks M-DVD .

Offline EgAr

  • SMF Hero
  • ******
  • Posts: 1,596
  • Gender: Male
  • [=';'=]
Re: Auto Merge Double Post
« Reply #17 on: December 05, 2008, 09:24:05 PM »
Exelente  ;)

Offline AlenNS

  • Full Member
  • ***
  • Posts: 617
  • Gender: Male
    • Baklja forum - Vaš forum
Re: Auto Merge Double Post
« Reply #18 on: December 05, 2008, 10:18:30 PM »
Quote
Merge 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. :-[

Offline netoya

  • Semi-Newbie
  • *
  • Posts: 61
Re: Auto Merge Double Post
« Reply #19 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.
« Last Edit: December 06, 2008, 04:14:05 AM by netoya »