News:

Wondering if this will always be free?  See why free is better.

Main Menu

Auto Merge Double Post

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

Previous topic - Next topic

loplo


Owdy

Quote from: loplo on March 09, 2012, 09:12:55 AM
Please uptade for 2.0.2
Mod author: Last Active:    14.02.10 - klo:06:19
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

loplo

Right, but maybe somebody can mod the mod :)

GlitchPC

This mod works fine with 2.0.2 using emulation.

sildenafil

Hi,

great mod.

I have a problem.
When a user write a post, it is ok.
When hi write a next post, it is ok.
When hi write a next post, hi becomes a error and the post doesn´t save.
Report

MrCreatoR

I already have asked these questions before, but had no answer:

1.
Quote from: MrCreatoR on October 27, 2009, 11:55:14 AM
When merging post that have single quote char in his title ('), it's prefixed by slash character - like this: \'.

Any ideas how to fix that?

2.
Quote from: MrCreatoR on October 15, 2009, 05:18:06 PM
Is there any chance to add an option to disable posts merging for the first post (when creating the topic)?

any ideas?

luuuciano

#526
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Used this on a 2.0.2, works like a charm
Thanks for sharing it




It has an odd thing with subjects... if the subject has "" it will scape it, and save it that way...

so, something like
This is a subject "with quotes"
it is changed to
This is a subject \"with quotes\"

Did not tested with several mergings, maybe it continue adding \ for ever?

Can someone check if this happens on yours auto merged threads?
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Geor'G

Quote from: MrCreatoR on April 03, 2012, 05:21:16 AM
2.
Quote from: MrCreatoR on October 15, 2009, 05:18:06 PM
Is there any chance to add an option to disable posts merging for the first post (when creating the topic)?
any ideas?

In file Post.php, find:
// Flooder?
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);

replace:
// Flooder?
if ($_REQUEST['last_msg'] != $topic_info['id_first_msg'])
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);

MrCreatoR

Quote from: Geor'G on May 06, 2012, 12:30:52 AM
In file Post.php, find:
// Flooder?
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);

replace:
// Flooder?
if ($_REQUEST['last_msg'] != $topic_info['id_first_msg'])
if ((isset($topic) && !isset($_REQUEST['msg']) && !empty($modSettings['AutoMergePost_auto']))
|| (!empty($_GET['merge']) && !empty($modSettings['AutoMergePost_manual'])))
doublePostCheck($_GET['merge']);


Thank you.
Now i left with the first issue...

Biology Forums

Great mod... Is there a way to show a little message (only to the person doing the bumping) explaining that they can bump their topic again in 1 day (or whatever value that was set)?

luuuciano

In our forum people do not bump... they are just lazy people, replying to many posts without using the multi quote option (when the quick reply is active)

Having this mod is a new world!
Thanks again for this contribution
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Biology Forums

Quote from: luuuciano on May 10, 2012, 11:54:52 PM
In our forum people do not bump... they are just lazy people, replying to many posts without using the multi quote option (when the quick reply is active)

Having this mod is a new world!
Thanks again for this contribution

I agree as well.

crypter4991

Why I get this error when I install the version 1.3 fixed on SMF 2.0.2?

Fatal error: Cannot redeclare modifyautomergepostsettings() (previously declared in /membri/coretanima/Sources/ManagePosts.php:380) in /membri/coretanima/Sources/ManagePosts.php on line 461

How do I fix?

duzzzstar

The instalation fails to edit some files.



Waiting for updates :(

Arantor

It fails because you have other mods that this conflicts with - changing the mod can't solve those problems, you'll have to apply the code changes by hand.

FireDitto

Is there a way to make it so that the merged post will bump the thread as if it were a new post, but merge so that it is a part of the old post?

It would still look exactly as it does, but the bump would send the thread to the top of the list, mark it as unread, and bring it attention once more, without choking it up with a line of 'bump' posts.

I have an RP site, and it would be very good to be able to bump threads that have become forgotten or overlooked, without having to post new posts on it etc.

Is this possible?
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

rickmastfan67

#536
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Thanks for posting this fixed file.  However, I might have just spotted a bug.

When installing it on my test forum (offline), I noticed that the modifications don't work for the "core" theme.  (yes I clicked the box first and it said it passed the modification test on the core Display.template.php file...)

In the "default/Curve" theme, the "merge.gif" image loads perfectly fine beside the "Merge Posts" text.  However, in the "core" theme, this doesn't happen.  The "Merge Posts" text is there (however not in bold), but the "merge.gif" image isn't even though it's in the proper directory.

Do you know why this might be happening?  This was the first mod I installed in the test forum, so there can't be any conflicting mods effecting it.  Is there something more that needs to be added to the Display.template.php file in the core theme to get the image to properly show up?  This is with SMF 2.0.2.  Thanks.

rickmastfan67

Quote from: rickmastfan67 on May 26, 2012, 09:52:04 AM
Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update

Thanks for posting this fixed file.  However, I might have just spotted a bug.

When installing it on my test forum (offline), I noticed that the modifications don't work for the "core" theme.  (yes I clicked the box first and it said it passed the modification test on the core Display.template.php file...)

In the "default/Curve" theme, the "merge.gif" image loads perfectly fine beside the "Merge Posts" text.  However, in the "core" theme, this doesn't happen.  The "Merge Posts" text is there (however not in bold), but the "merge.gif" image isn't even though it's in the proper directory.

Do you know why this might be happening?  This was the first mod I installed in the test forum, so there can't be any conflicting mods effecting it.  Is there something more that needs to be added to the Display.template.php file in the core theme to get the image to properly show up?  This is with SMF 2.0.2.  Thanks.

I've been able to fix this problem myself.  Geor'G, if you don't mind updating your post's attachment, here's the fixes to allow it to install correctly in the "core" theme (/Themes/core/) Display.template.php file.  If you don't want to update your attachment, I'll post the version with the fix in a little while to help people out. ;)

I took the code from the original 1.3 version when it's parsed to install in 1.1.16 and tweaked to code a tad to work for the 2.0 version of the same theme and it worked.  Tested it offline, got no errors, and it can properly merge posts.


<file name="$themes_dir/core/Display.template.php" error="skip">
<operation>
<search position="after"><![CDATA[
$split_button = create_button('split.gif', 'split', 'split', 'align="middle"');]]></search>
<add><![CDATA[
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');]]></add>
</operation>

<operation>
<search position="after"><![CDATA[
// What about splitting it off the rest of the topic?
]]></search>
<add><![CDATA[
// Can the user merge the doble post?
if ($message['can_merge'])
echo '
<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $merge_button, '</a></li>';
]]></add>
</operation>
</file>



Hopes this helps out other people who still want to use the "Core" theme for their 2.0 forums or are making a theme based off the core theme. ;)

I also put in the "error="skip"" command in case people had already deleted the core theme to save space so the installer wouldn't reject the addon because of it being missing.

gevv

Quote from: Geor'G on June 11, 2011, 12:04:28 PM
Quotehow to use this mod on rc5?
Works - smf rc4-rc5

Fix, update



thanks @Geor'G   smf 2.0.2 works   

problem: automatically added to the post title "\"   

http://postimage.org/image/qqv1k8z8b/

sample 

merge  post add auto   "\" merge again add  "\"  merge again add  "\"

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

luuuciano

I have reported it on #526... then PM Geor'G about that, he said that did not have that problem (odd)
To "solve" it I have erased the addslashes function on Subs-Post.php

//   $_REQUEST['subject'] = $_POST['subject'] = addslashes(un_htmlspecialchars($row['subject']));
   $_REQUEST['subject'] = $_POST['subject'] = un_htmlspecialchars($row['subject']);

So... no addlashes...... I have tried adding odd things on subjects, ', ", etc... without problems
Is that safe??
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Advertisement: