Advertisement:

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

Offline villasg

  • Full Member
  • ***
  • Posts: 485
Re: Auto Merge Double Post
« Reply #620 on: June 19, 2015, 09:10:26 AM »
With this xml file xave errors in 2.0.10

Offline Asdelon

  • Newbie
  • *
  • Posts: 6
Re: Auto Merge Double Post
« Reply #621 on: September 21, 2015, 04:48:29 PM »
Hungarian ("Magyar", "Ungarisch") translation:

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

Offline cieplutki

  • Jr. Member
  • **
  • Posts: 107
  • Gender: Male
    • http://www.facebook.com/pages/ewmapapl/27284179607 on Facebook
    • @https://twitter.com/ on Twitter
    • .:: ewmapa ::.
Re: Auto Merge Double Post
« Reply #622 on: January 09, 2016, 10:26:09 AM »
I use smf 2.0.11
in my file: subs-post.php I have this code
Code: [Select]
$parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', 'time_format__preg_callback', $parts[$i]);I should be changed to
Code: [Select]
// $parts[$i] = preg_replace_callback('~\[time\](\d{0,10})\[/time\]~i', 'time_format__preg_callback', $parts[$i]);

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #623 on: August 15, 2016, 06:37:03 PM »
is there a SMF 2.0.11 version of this ?
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,856
  • Gender: Male
    • frandominguez03 on GitHub
Re: Auto Merge Double Post
« Reply #624 on: August 15, 2016, 06:38:46 PM »

"Greeting Death as an old friend, they departed this life as equals."

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #625 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 ?
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #626 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)
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline leftezi

  • Jr. Member
  • **
  • Posts: 341
  • Gender: Male
    • leftezi
Re: Auto Merge Double Post
« Reply #627 on: October 29, 2016, 06:13:52 PM »
Please update it.

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,746
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Auto Merge Double Post
« Reply #628 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"

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Auto Merge Double Post v1.4 for 2.0.15 (and probably a few patches below)
« Reply #629 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 ...
« Last Edit: February 13, 2018, 09:14:03 PM by Kindred »
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,498
  • Gender: Male
    • Kindred-999 on GitHub
Re: Auto Merge Double Post
« Reply #630 on: February 13, 2018, 09:14:44 PM »
Attachment removed. Current mod license does not allow modification and redistribution
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #631 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 ?
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,498
  • Gender: Male
    • Kindred-999 on GitHub
Re: Auto Merge Double Post
« Reply #632 on: February 13, 2018, 10:32:01 PM »
The mod dies
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #633 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.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #634 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.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #635 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:
Code: [Select]
                                                'censor' => array($txt['admin_censored_words']),add:
Code: [Select]
                                                'topics' => array($txt['manageposts_topic_settings']),
2. backup ./Sources/ManagePosts.php and then
locate:
Code: [Select]
                'topics' => 'ModifyTopicSettings',add:
Code: [Select]
                'automerge' => 'ModifyAutoMergePostSettings',
3. backup ./Sources/Display.php and then
locate:
Code: [Select]
        $posters = array_unique($all_posters);add:
Code: [Select]
        $context['double_post_temp'] = array();
4.
Quote
let 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

Quote
to undo the changes, restore from your backups and let the mod uninstall proceed with errors
   
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Auto Merge Double Post
« Reply #636 on: May 22, 2018, 08:36:19 PM »
BUG: this mod will not merge two or more attachments in multiple posts.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline shadav

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Female
Re: Auto Merge Double Post
« Reply #637 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
Code: [Select]
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');add before
Code: [Select]
$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
Code: [Select]
// 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?
Code: [Select]
// 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...

Offline shadav

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Female
Re: Auto Merge Double Post
« Reply #638 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
« Last Edit: August 18, 2019, 05:17:12 PM by Kindred »

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,498
  • Gender: Male
    • Kindred-999 on GitHub
Re: Auto Merge Double Post
« Reply #639 on: August 18, 2019, 05:17:57 PM »
Attachment removed. The license of the mod does not allow it to be modified and redistributed.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.