Вот оный, работает с 2.0.0 PF1 #############
sources\lib\post_reply_post.php
#############
Находим:
$DB->do_insert( 'posts', $this->post );
Перед найденным вставляем:
// Merge Posts
$DB->query("SELECT * FROM ibf_posts WHERE topic_id = '".$this->post['topic_id']."' ORDER BY post_date DESC LIMIT 0,1");
$this->lastpost = $DB->fetch_row();
$timedeff = time() - $this->lastpost['post_date'];
if ($this->post['author_id'] == $this->lastpost['author_id'] && $timedeff < 21600 && !($this->post['attach_id']) && $this->post['author_id'])
{
$this->post['post'] = $this->lastpost['post'] . "[mergetext] [mergetime]".time()."[/mergetime] [/mergetext]". $this->post['post'];
$DB->query("UPDATE ibf_posts SET post = '".addslashes($this->post['post'])."' WHERE pid = '".$this->lastpost['pid']."'");
if ( $class->obj['moderate'] == 1 or $class->obj['moderate'] == 3 )
{
$DB->query("UPDATE ibf_forums SET has_mod_posts=1 WHERE id=".$class->forum['id']);
$page = floor( ($this->topic['posts'] ) / $ibforums->vars['display_max_posts']);
$page = $page * $ibforums->vars['display_max_posts'];
$print->redirect_screen( $ibforums->lang['moderate_post'], "showtopic={$this->topic['tid']}&st=$page" );
}
//-------------------------------------------------
// Redirect them back to the topic
//-------------------------------------------------
if ($return_to_move == 1)
{
$std->boink_it($this->class->base_url."act=Mod&CODE=02&f={$this->class->forum['id']}&t={$this->topic['tid']}");
}
else
{
$page = floor( ($this->topic['posts'] + 1) / $ibforums->vars['display_max_posts']);
$page = $page * $ibforums->vars['display_max_posts'];
$std->boink_it($ibforums->base_url."showtopic={$this->topic['tid']}&st=$page&p={$this->post['pid']}entry{$this->post['pid']}");
}
exit;
}
// Merge Posts
#############
sources\Topics.php находим:
#############
Находим:
if ( ($row['append_edit'] == 1) and ($row['edit_time'] != "") and ($row['edit_name'] != "") )
{
...
}
Перед найденным вставляем:
$row['post'] = str_replace( "[mergetext]", "<br /><br /><font color='#666666' size='1'>Добавлено ", $row['post'] );
$row['post'] = str_replace( "[/mergetext]", "</font><br />", $row['post'] );
$row['post'] = preg_replace( "#\[mergetime\](\d+)\[/mergetime\]#ies", "\$std->get_date( '\\1', 'MERGE' )", $row['post'] );
#############
sources\functions.php
#############
Находим:
$this->time_options = array( 'JOINED' => $ibforums->vars['clock_joined'],
'SHORT' => $ibforums->vars['clock_short'],
'LONG' => $ibforums->vars['clock_long'],
);
Заменяем найденное на:
$this->time_options = array( 'JOINED' => $ibforums->vars['clock_joined'],
'SHORT' => $ibforums->vars['clock_short'],
'LONG' => $ibforums->vars['clock_long'],
'MERGE' => 'H:i'
);
#############
sources\lib\post_edit_post.php
#############
Находим:
//-------------------------------------------------
// Sort out the "raw" textarea input and make it safe incase
// we have a <textarea> tag in the raw post var.
//-------------------------------------------------
Ниже впихиваем:
$this->orig_post['post'] = str_replace( "[mergetext]", "<br /><br />", $this->orig_post['post'] );
$this->orig_post['post'] = str_replace( " [/mergetext]", "", $this->orig_post['post'] );
$this->orig_post['post'] = preg_replace( "# \[mergetime\](\d+)\[/mergetime\]#ies", "", $this->orig_post['post'] );