Merge Double Posts By Same Member

Started by ディン1031, June 11, 2005, 04:54:02 PM

Previous topic - Next topic

autogespot.com

Hmm, got a error for the dutch languange, how to fix?

8: Undefined index: merge_doublepost
Bestand: /home/autogespot/domains/autogespot.com/public_html/forum/Sources/Subs.php
Regel: 4120

Shadow1243

Quote from: Kalina on June 21, 2008, 06:09:20 PM
It worked for me in 1.1.5!

All I did was open package-info.xml and add , 1.1.5 to these two lines:
   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4">
   <uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4">

So they become:
   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5">
   <uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5">

Then I zipped it again and uploaded the package, works like a charm, very handy! :D

It's attached. :)


Can you add manuel description for this modification ? Please ? :)

Kalina

Quote from: Shadow1243 on July 17, 2008, 07:06:20 AM
Quote from: Kalina on June 21, 2008, 06:09:20 PM
It worked for me in 1.1.5!

All I did was open package-info.xml and add , 1.1.5 to these two lines:
   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4">
   <uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4">

So they become:
   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5">
   <uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5">

Then I zipped it again and uploaded the package, works like a charm, very handy! :D

It's attached. :)


Can you add manuel description for this modification ? Please ? :)

Sorry, but I don't know what you mean.


Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!


_Anthony_

Hmm, has anyone had any success making this compatible with AJAX quick reply?


hefca_serbia

Thanks a lot, finally Im gonna get rid of unwanted double/triple posts! Thank youuu! Works perfectly on 1.1.5

DiveSlip

Could somebody create this mod for 1.1.6?

Hunnenkoenig

I modified this for 1.1.6

See attachment!

It works like a charm (at least on my forum)

shinji

#331
1.1.7 ???  :'( :'(

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
[b]// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';[/b]
</search for>

<add after>
//Merge Button
$MergePosts_button = create_button('mergeposts.gif', 'merge_doublepost',

'merge_doublepost', 'align="middle"');
</add after>

<search for>
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
</search for>

<add before>
//Doublepost for Merge?
if ($message['can_modify'] && $message['doublepost']['postok'] && !empty($message['doublepost']['lastpostid']))
echo '
<a href="', $scripturl, '?action=mergeposts;pid=', $message['id'], ';msnid=', $message['doublepost']['lastpostid'], ';topic=', $context['current_topic'], '">', $MergePosts_button, '</a>';
</add before>


Display.template.php  1.1.7 ???

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';




saludos

MODD Artesano y Profesional..
(Mr.Shinji/Christianeithor)
User bar


pinoypetfinder

would like to have this on 1.1.7 too! anyone please? we have this contest on our forum, and someone's trying to post/spam the board to meet the post requirement :(

pinoypetfinder

Quote from: Kalina on June 21, 2008, 06:09:20 PM
It worked for me in 1.1.5!

All I did was open package-info.xml and add , 1.1.5 to these two lines:
   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4">
   <uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4">

So they become:
   <install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5">
   <uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5">

Then I zipped it again and uploaded the package, works like a charm, very handy! :D

It's attached. :)

I tried this (added 1.1.7) and seemed to work, only that i got a prob with the display.template.php - maybe i should modify that manually?

pinoypetfinder

anyone? i really need this one, badly :(

Eleglin

Quote from: ディン1031 on April 21, 2008, 01:31:04 PM
Yes but not supported ;) .

Bye
DIN1031
I thought that this mod was very useful.
Why is it no more available, if I can ask it ?
No support by PM or Mail.

Nao 尚

You really want to know, Eleglin?

Okay, this one is super-creepy... You might as well not read about it. Especially because I'm telling it, so as always with Nao, it's 10 times longer than it should be. Blame my early days as a news writer. I used to be paid by the line.

Ready for it, guys?
The reason why the mod was removed is because of a sad misunderstanding between Din1031 and I.

Basically, when I got hold of SMF 2 Beta 1 (back in September 2007), I started updating all of my 1.x mods for SMF 2.0 which weren't listed in a special topic with a list of all SMF2-compatible mods (this is what got me into beta testing SMF 2 as well). Merge Double Posts was not part of the list, so I converted it, and then sent it to Din on October 10. At this point, he replied this to me: "I allready convertet the mod... somehow it's not in the list for it... Bye DIN1031". As you can see, the link no longer works but that's not important. I was a bit surprised by the harshness of his answer. I couldn't help it if he didn't advertise his SMF2 port in the list. I'm only telling you this because I suspect he wasn't in a particular good mood at that time.

Anyway, since I did the conversion, I also used the opportunity to understand the inner code and made a few improvements, such as adding a [mergedate] tag that would translate to any language. At that time, I really wasn't confident with making mods at all, so I simply posted here, on this topic, a long list of changes I'd made to my own copy, and how to reproduce them, encouraging Din1031 to implement them in Merge Double Posts.

The results of this?

For a reason that still eludes me, Din declared that he was stopping development of MDP, since I was obviously (??) better at improving it than he was. He removed his mod from the mod list, and renamed his topic to another name, in order to "hide" it. He tried to declare me as the new maintainer. However, there was a problem here -- he never asked me to do it. He assigned me as the new maintainer. It was a year ago, I was barely starting to work seriously on SMF and I had absolutely no idea how to make a mod. Now would be a different matter, I'd feel up to the task, although I clearly prefer being asked to do something, and having my say in it.

This is how I remember the story. Hopefully it's faithful to what happened. I can't track down the conversation. Maybe it was removed (but by whom?), but I think it actually happened in the Charter Member board (where SMF2 mods were posted back when it wasn't public). In any case, it is true that the story was never made available to the non-Charter audience.

I find it sad that Din 'killed' his mod like that, for such a silly misunderstanding. At the time, I was hoping he would come back and start working on it again. It seems this was not to be.
Now that I actually can produce mods, I'd be willing to discuss taking over the mod (if only to apply my improvements, if someone could retrieve my original post from the Charter boards with all of my suggestions). Of course, I would rather see him take over and realize that I really, *really* never had any intention of harming anyone with my suggestions. And once again, I apologize if there was anything in my posts that made it look like I had any.

PS: you wanted the story, don't you complain now ;)
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.

pinoypetfinder

^i read your long post :P

anyways, i used to use this mod and i really like it, i made some upgrades and now i can no longer install it  ::) ? i hope you or the other mod or anyone else could update this mod or atleast make a similar one maybe? this is indeed a very helpful mod, would work well esp if you're running a contest that requires a number of post before their entry to be valid (like on our forum :P LOL) to kill the spammers/double poster.

Nao 尚

You realize that instead of double-posting (which is easy to spot and "kill"), they will spam-post to several topics instead? Much longer to clean up ;)
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.

Vampy

#339
It's sad this mod is no longer available - I have been using it successfully for years - only recently when I did a clean install of 1.1.8 on my test site did I discover it was no longer available and the version I have cannot be installed :(

A search of the mod site brought up this mod - would it replace this one - does it do exactly the same thing in the same way?

Advertisement: