Advertisement:

Author Topic: Merge two consecutive posts from the same member  (Read 761 times)

Offline MoonCat

  • Semi-Newbie
  • *
  • Posts: 16
Merge two consecutive posts from the same member
« on: October 09, 2020, 06:15:59 AM »
Hi,

I wonder is there a mod, which automatically merges two consecutive posts (same member, same topic), posted one after the other, into one, in the same order, of course.
People say, answering to different posts, quoting them, and creating sometimes 5-8 consecutive posts. I'd prefer to have instead 1 post from that person, as this seems more organized and visually pleasing. Any ideas?

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 19,077
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Merge two consecutive posts from the same member
« Reply #1 on: October 09, 2020, 06:45:58 AM »
This hasn't been updated in a while, so no promises from me - but would seem like a mod that would do just that.
https://custom.simplemachines.org/mods/index.php?mod=1523
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline MoonCat

  • Semi-Newbie
  • *
  • Posts: 16
Re: Merge two consecutive posts from the same member
« Reply #2 on: October 09, 2020, 09:39:41 AM »
Thanks a ton, Aleksi! I'll explore if this is something I can reuse for 2.0.17.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 19,077
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Merge two consecutive posts from the same member
« Reply #3 on: October 09, 2020, 09:53:33 AM »
You're welcome :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline MoonCat

  • Semi-Newbie
  • *
  • Posts: 16
Re: Merge two consecutive posts from the same member
« Reply #4 on: October 09, 2020, 04:31:16 PM »
I've tried to install the package as is. Unfortunately it fails installation. Many of the changes I was able to resolve manually. But there is one, my knowledge of the source code doesn't allow me to find alternative solution. I'd be very thankful if you help me with the following change:

./Themes/default/Display.template.php
Code: [Select]
Code: (Find)
 $split_button = create_button('split.gif', 'split', 'split', 'align="middle"');
Code: (Add before)
 $merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');

Thanks in advance!

Offline MoonCat

  • Semi-Newbie
  • *
  • Posts: 16
Re: Merge two consecutive posts from the same member
« Reply #5 on: October 09, 2020, 08:58:24 PM »
Ok. I solved all the issues. Mod is working as designed. Thank You again!

Offline shadav

  • Sr. Member
  • ****
  • Posts: 705
  • Gender: Female
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Merge two consecutive posts from the same member
« Reply #6 on: October 09, 2020, 09:04:47 PM »
Ok. I solved all the issues. Mod is working as designed. Thank You again!
;D glad it worked

I went ahead and posted the fixes I did to get it to work for me in the support thread so if anyone else wants to try