Auto Merge Double Post

Started by M-DVD, December 03, 2008, 10:18:25 AM

Previous topic - Next topic

Nao 尚

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

mark7144

Fair enough, then I will eagerly await this mod to mature a little :)

AlenNS

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.

M-DVD

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.


M-DVD

#64
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

Nao 尚

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? :)
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.

mark7144

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.

M-DVD

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.

mark7144

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

mark7144

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.

villasg

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';

Nao 尚

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

taha116

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

Nao 尚

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.

mark7144

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

M-DVD

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.

mark7144

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.

Nao 尚

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

mark7144

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

Nao 尚

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

Advertisement: