Advertisement:

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

Offline Nao 尚

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • wedgebook on Facebook
    • Wedge
Re: Auto Merge Double Post
« Reply #60 on: December 18, 2008, 08:12:20 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.

Quote
I 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).
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #61 on: December 18, 2008, 08:45:49 AM »
Fair enough, then I will eagerly await this mod to mature a little :)

Offline AlenNS

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

This is great ideas. If post 1 would be deleted after merging it would be always shown on recent post list.

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 #63 on: December 18, 2008, 10:58:00 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.

in Sources/Subs-Post.php

Code: [Select]
// 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:
Code: [Select]
<input type="text" name="AutoMergePost_time" id="AutoMergePost_time" value="', $modSettings['AutoMergePost_time'] ,'" size="5" maxlength="5" /> ', $txt[579] ,'
Replace
Code: [Select]
<input type="text" name="AutoMergePost_time" id="AutoMergePost_time" value="', $modSettings['AutoMergePost_time'] ,'" size="5" maxlength="5" /> ', $txt[578] ,'

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.

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.

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.


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 #64 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 - Thanks jossanaijr for idea.
  • Settings Moved to: Admin > Posts and Topics > Post Settings.
  • Now the Date in Text Merge is timestamp, adapts according to your local time - Thanks netoya for idea.
  • Fixed bug with Icon New in Merge Post - Thanks villasg for report.

How do I upgrade?
  • Uninstall the previous version
  • Install the new
  • Isn't neccesary reedit your custom templates files

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

Características Nuevas:
  • Puedes activar Fusión de DoblePost para todos los usuarios, ignorando los permisos.
  • Configuraciones Movidas a: Administración > Mensajes y Temas > Configuración de Temas.
  • Ahora la Fecha en el Texto de Fusión is timestamp, se adapta según tu zona horaria.
  • Reparado bug con icono "Nuevo" en Mensajes Fusionados.
  • Reparado bug en archivos de lenguaje con spanish_???-utf8.

¿Como actualizar?
  • Desinstalar la anterior versión
  • Instalar la nueva
  • No es necesario editar archivos de tu tema personalizado
« Last Edit: September 27, 2009, 08:00:17 PM by M-DVD »

Offline Nao 尚

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • wedgebook on Facebook
    • Wedge
Re: Auto Merge Double Post
« Reply #65 on: December 19, 2008, 11:52:17 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? :)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #66 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.

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 #67 on: December 19, 2008, 12:01:51 PM »
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

--

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.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #68 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
Code: [Select]
   array(
            'tag' => 'mergedate',
            'before' => '<div class="mergedate">',
            'after' => '</div>',
         ),

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

In admin cp
Code: [Select]
[mergedate]Posted on $date[/mergedate]
And we have it looking nice :D

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #69 on: December 19, 2008, 12:14:40 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.

Offline villasg

  • Full Member
  • ***
  • Posts: 485
Re: Auto Merge Double Post
« Reply #70 on: December 19, 2008, 01:16:04 PM »
Greek utf 8

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

Offline Nao 尚

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • wedgebook on Facebook
    • Wedge
Re: Auto Merge Double Post
« Reply #71 on: December 19, 2008, 02:00:30 PM »
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
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?

Quote
Is 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?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Offline taha116

  • Jr. Member
  • **
  • Posts: 270
Re: Auto Merge Double Post
« Reply #72 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
"The man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116

Offline Nao 尚

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • wedgebook on Facebook
    • Wedge
Re: Auto Merge Double Post
« Reply #73 on: December 19, 2008, 05:07:46 PM »
Aeva 4 Wordpress?
1/ WHAT?!
2/ Err, this is irrelevant to this topic...
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #74 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.
« Last Edit: December 19, 2008, 06:52:16 PM by mark7144 »

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 #75 on: December 20, 2008, 08:16:48 AM »
villasg, Alpay, saneone, thanks for update the translation.

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.

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)

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.

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...

...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.

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

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.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #76 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.

Offline Nao 尚

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • wedgebook on Facebook
    • Wedge
Re: Auto Merge Double Post
« Reply #77 on: December 20, 2008, 10:46:46 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.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,174
Re: Auto Merge Double Post
« Reply #78 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.
« Last Edit: December 20, 2008, 10:53:07 AM by mark7144 »

Offline Nao 尚

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • wedgebook on Facebook
    • Wedge
Re: Auto Merge Double Post
« Reply #79 on: December 20, 2008, 11:14:48 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. :)

Quote
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.
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 ;)

Quote
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 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!
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.