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

NanoSector

#380
Quote from: C4G-TK on December 20, 2010, 11:38:06 AM
OK
1) Thanks for my first Birthday gift of the day.  It worked.  What the **** did I do wrong?  I need to make the same change on another forum, too.

2) Thanks for taking the time to help me.
1. Look for (it may be a bit different!!)
'censor' => 'SetCensor'
'topics' => 'ModifyTopicSettings',,

As you see it has double commas, and setcensor has no comma, which is needed.

Replace it with:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',


2. No problem; the problem relies on my package, too, it ain't your fault :)
I also had this problem on my own forum.

Oh, and happy birthday!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

C4G-TK

YAY, I'm not going senile, yet!

Thanks for your help!

-img removed-

NanoSector

No problem, I added it to my post:

Quote from: Yoshi2889 on November 21, 2010, 05:47:13 AM
Allright, here's a package that fixes all errors in 2.0 RC4.

I build it but I take no credits, as it's the authors mod.

(reuploaded it again to fix an typing error)

PERFORM THIS STEP AFTER INSTALLING!!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

C4G-TK

On my other forum, I found that edit you were talking about, but it was a little different.

It looked like this:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,


So, I replaced it to be:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',
'automerge' => 'ModifyAutoMergePostSettings',


and it worked. 

Thanks again!
You can't hear me, but I just made the Yoshi noise!

-img removed-

NanoSector

Quote from: C4G-TK on December 20, 2010, 11:59:39 AM
On my other forum, I found that edit you were talking about, but it was a little different.

It looked like this:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,


So, I replaced it to be:
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',
'automerge' => 'ModifyAutoMergePostSettings',


and it worked. 

Thanks again!
You can't hear me, but I just made the Yoshi noise!
Ah yes, it may sometimes be a little different.

Haha, no I can't hear you ;)

I'll go with fixing that bug in a moment, to ensure nobody gets into trouble.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Geor'G

Manual Merge not work
v 2.0 RC4

NanoSector

Quote from: Geor'G on December 23, 2010, 04:19:29 PM
Manual Merge not work
v 2.0 RC4
Download my package and perform the fix.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Geor'G

#387
QuoteDownload my package and perform the fix.
In it does not work - "Manual Merge"

P.S fix Error Log ;)

8: Undefined variable: merge_button
Файл: Z:/home/Myforum/www/Themes/default/Display.template.php (main sub template - eval?)
Строка: 444


Error file Display.template.php:
// 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'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');


Replace:

if ($message['can_merge'])
{
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');
echo '

<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
}

NanoSector

Quote from: Geor'G on December 24, 2010, 08:36:42 AM
QuoteDownload my package and perform the fix.
In it does not work - "Manual Merge"

P.S fix Error Log ;)

8: Undefined variable: merge_button
Файл: Z:/home/Myforum/www/Themes/default/Display.template.php (main sub template - eval?)
Строка: 444


Error file Display.template.php:
// 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'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');


Replace:

if ($message['can_merge'])
{
$merge_button = create_button('merge.gif', 'merge_button', 'merge_button', 'align="middle"');
echo '

<li><a href="', $scripturl, '?action=post2;merge=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $merge_button, '</a></li>';
}

It should work though...
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

rafli

Hi, Great Mod!
But it collide with "Delete Spam Posts", which is edit file ./Sources/Post.php in the same line :

Auto Merge Double Post 1.3 (AutoMergeDoublePost_v1_3.zip) :
Find:

logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));

Replace With:

logAction(empty($modSettings['AutoMergePost_manual_flag']) ? 'modify' : 'merge', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));


And

Delete Spam Posts 1.5 (DeleteSpamPostsv15.zip) :
Find:

logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));

Replace With:

logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER'], 'subject' => $row['subject'], 'messagebody' => $row['body'] == stripslashes($_POST['message']) ? $txt['deletespampost_no_change'] : $row['body']));


Kindly need help to integrate both mod together.
Thanks in advance,

Rafli

rafli

Sorry,
Forgot to say that I am on SMF 1.1.12

Adrek

I installed mod from this post: http://www.simplemachines.org/community/index.php?topic=278227.msg2857211#msg2857211

and when i go to Admin > Posts and Topics i get white page...

SMF 2.0 RC4
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

NanoSector

Quote from: adi1166 on January 02, 2011, 02:48:57 PM
I installed mod from this post: http://www.simplemachines.org/community/index.php?topic=278227.msg2857211#msg2857211

and when i go to Admin > Posts and Topics i get white page...

SMF 2.0 RC4
Please perform the fix.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Adrek

#393
I know why it did not work...
I changed:
$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,
);


to

$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',
);


and don't added "," to line above..

now works ;)

//

but i don't see manual Merge button :/
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

NanoSector

Quote from: adi1166 on January 02, 2011, 03:41:55 PM
I know why it did not work...
I changed:
$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,
);


to

$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',
);


and don't added "," to line above..

now works ;)

//

but i don't see manual Merge button :/
Apply the other fix (either on this page or on the previous page). lol I know I'm nasty.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Adrek

#395
other fix ? I can't find them ;p
anyway..  now i got this error in my error log everytime when i open any post/topic:

8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

NanoSector

Quote from: adi1166 on January 03, 2011, 05:10:05 AM
other fix ? I can't find them ;p
anyway..  now i got this error in my error log everytime when i open any post/topic:

8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379

It's the button fix.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

saks

I have the same problem with manual merge. I have the button for manual merge, but if i click it I get only the post window and not merge posts. I made fix on this page, but it not work. :(
I use  SMF 2.0 RC3 and Pretty URLs mod... May be it conflict with Auto Merge mod ?

NanoSector

Here's a package which has both the ,, fix and the button fix included.

I'm going to test installing it soon.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Adrek

still i don't have manual merge button and got this error:
8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379

:(
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Advertisement: