Posts merging

Preview turns off "Do not merge with previous post" flag - Posts merging

Preview turns off "Do not merge with previous post" flag

by sky_diver » Sun Jul 22, 2018 5:25 am

Hi!

Thanks for this good mod!

Can you fix some small error? When I turn on a flag "Do not merge with previous post" during writing a message and after that I go to preview form, I see this flag is turning off. I use the last version of your mode (2.1.0), version of phpbb is 3.2.0.

Thanks in advance!

Kind regards,
Vadim.
sky_diver
Registered User
Posts: 7
Joined: Fri Mar 17, 2017 6:32 am

Re: Preview turns off "Do not merge with previous post" flag

by rxu » Sun Jul 22, 2018 12:59 pm

Good catch.

Code: Select all

OPEN
\ext\rxu\PostsMerging\styles\prosilver\template\event\posting_editor_options_prepend.html

FIND
id="posts_merging_option"

IN-LINE AFTER, ADD
{S_POSTS_MERGING_OPTION_CHECKED}

OPEN
\ext\rxu\PostsMerging\event\listener.php

FIND
$this->template->assign_vars(array('POSTS_MERGING_OPTION' => true));

REPLACE WITH
$this->template->assign_vars(array(
	'POSTS_MERGING_OPTION'				=> true,
	'S_POSTS_MERGING_OPTION_CHECKED'	=> $this->request->is_set_post('posts_merging_option', false) ? ' checked="checked"' : '',
	)
);
Than purge the board cache.
rxu
Extensions Development Team
Posts: 4018
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Preview turns off "Do not merge with previous post" flag

by sky_diver » Sun Jul 22, 2018 1:05 pm

Thank you very much!
sky_diver
Registered User
Posts: 7
Joined: Fri Mar 17, 2017 6:32 am