Advertisement:

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

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #380 on: December 20, 2010, 11:39:48 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!!)
Code: [Select]
'censor' => 'SetCensor'
'topics' => 'ModifyTopicSettings',,
As you see it has double commas, and setcensor has no comma, which is needed.

Replace it with:
Code: [Select]
'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!
« Last Edit: December 20, 2010, 12:01:30 PM by Yoshi2889 »
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."

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Auto Merge Double Post
« Reply #381 on: December 20, 2010, 11:44:01 AM »
YAY, I'm not going senile, yet!

Thanks for your help!
-img removed-

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #382 on: December 20, 2010, 11:49:30 AM »
No problem, I added it to my post:

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

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Auto Merge Double Post
« Reply #383 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:
Code: [Select]
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,

So, I replaced it to be:
Code: [Select]
'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-

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #384 on: December 20, 2010, 12:01:12 PM »
On my other forum, I found that edit you were talking about, but it was a little different.

It looked like this:
Code: [Select]
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,

So, I replaced it to be:
Code: [Select]
'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."

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: Auto Merge Double Post
« Reply #385 on: December 23, 2010, 04:19:29 PM »
Manual Merge not work
v 2.0 RC4

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #386 on: December 24, 2010, 06:28:11 AM »
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."

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: Auto Merge Double Post
« Reply #387 on: December 24, 2010, 08:36:42 AM »
Quote
Download 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:
Code: [Select]
// 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:

Code: [Select]
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>';
}
« Last Edit: December 24, 2010, 09:07:46 AM by Geor'G »

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #388 on: December 24, 2010, 09:18:33 AM »
Quote
Download 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:
Code: [Select]
// 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:

Code: [Select]
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."

Offline rafli

  • Semi-Newbie
  • *
  • Posts: 11
Re: Auto Merge Double Post
« Reply #389 on: December 26, 2010, 06:27:10 AM »
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:
Code: [Select]
logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));Replace With:
Code: [Select]
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:
Code: [Select]
logAction('modify', array('topic' => $topic, 'message' => (int) $_REQUEST['msg'], 'member' => $row['ID_MEMBER']));Replace With:
Code: [Select]
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

Offline rafli

  • Semi-Newbie
  • *
  • Posts: 11
Re: Auto Merge Double Post
« Reply #390 on: December 26, 2010, 06:30:18 AM »
Sorry,
Forgot to say that I am on SMF 1.1.12

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Auto Merge Double Post
« Reply #391 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
Polskie wsparcie SMF na simplemachines.org

My mods

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #392 on: January 02, 2011, 03:27:19 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."

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Auto Merge Double Post
« Reply #393 on: January 02, 2011, 03:41:55 PM »
I know why it did not work...
I changed:
Code: [Select]
$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,
);

to

Code: [Select]
$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 :/
« Last Edit: January 02, 2011, 03:55:28 PM by adi1166 »
Polskie wsparcie SMF na simplemachines.org

My mods

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #394 on: January 02, 2011, 04:16:14 PM »
I know why it did not work...
I changed:
Code: [Select]
$subActions = array(
'posts' => 'ModifyPostSettings',
'hidetagspecial' => 'ModifyHideTagSpecialSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings'
'automerge' => 'ModifyAutoMergePostSettings',,
);

to

Code: [Select]
$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."

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Auto Merge Double Post
« Reply #395 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:

Code: [Select]
8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379
« Last Edit: January 03, 2011, 05:21:45 AM by adi1166 »
Polskie wsparcie SMF na simplemachines.org

My mods

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #396 on: January 03, 2011, 06:38:20 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:

Code: [Select]
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."

Offline saks

  • Semi-Newbie
  • *
  • Posts: 64
  • Gender: Male
    • Krasnoyarsk paragliding club
Re: Auto Merge Double Post
« Reply #397 on: January 08, 2011, 09:31:23 PM »
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 ?

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Auto Merge Double Post
« Reply #398 on: January 15, 2011, 02:33:32 PM »
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."

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Auto Merge Double Post
« Reply #399 on: January 15, 2011, 02:49:11 PM »
still i don't have manual merge button and got this error:
Code: [Select]
8: Undefined index: double_post
File: /home/usename/public_html/example.com/Sources/Display.php
Line: 1379
:(
Polskie wsparcie SMF na simplemachines.org

My mods