Блин у меня 2.2 после того когда вставляю код в ./sources/action_public/topics.php /*/ -- Thanks (by AVol) - Begin -- /*/
if ($this->ipsclass->vars['thanks_mod_enable'])
{
$member_thanks = explode(',',$row['post_thanks']);
if ( ( in_array($this->topic['forum_id'], explode(',',$this->ipsclass->vars['thanks_forums'])) or (!$this->ipsclass->vars['thanks_forum_lim']) )
and ( in_array($this->ipsclass->member['mgroup'], explode(',',$this->ipsclass->vars['thanks_from_groups'])) or (!$this->ipsclass->vars['thanks_from_grp_lim']) )
and ( in_array($poster['mgroup'], explode(',',$this->ipsclass->vars['thanks_to_groups'])) or (!$this->ipsclass->vars['thanks_to_grp_lim']) )
and ($this->ipsclass->member['id']) )
{
if ( (!in_array($this->ipsclass->member['id'],$member_thanks)) and ($this->ipsclass->member['id'] != $row['author_id']) )
{
$row['thanks_button'] = $this->ipsclass->compiled_templates['skin_topic']->button_thanks($row['pid'] );
}
}
if ( ( in_array($this->ipsclass->member['mgroup'], explode(',',$this->ipsclass->vars['thanks_view_groups'])) or (!$this->ipsclass->vars['thanks_view_grp_lim']) )
and ( (count($member_thanks) > 0) && ($member_thanks[0] != "") ) )
{
$in_thanks = (count($member_thanks)==2) ? $row['post_thanks'] : implode(',',$member_thanks);
$this->ipsclass->DB->simple_construct( array( 'select' => '`id`, `members_display_name`', 'from' => 'members', 'where' => '`id` IN (' . $in_thanks . ')', 'order' => '`members_display_name` ASC') );
$this->ipsclass->DB->simple_exec();
while($who_thanks = $this->ipsclass->DB->fetch_row())
{
$show_thanks .= "<a href='{$this->ipsclass->base_url}showuser={$who_thanks['id']}' target='_blank'>" . $who_thanks['members_display_name'] . "</a>" . ', ';
}
$row['who_thanks'] = "<br /><br /><div class=\"thin\"><I>{$this->ipsclass->lang['thx_thanks_told']}:</I><div class=\"signature\">" . $show_thanks . "</div></div>";
}
}
/*/ -- Thanks (by AVol) - End -- /*/ все посты исчезают подскажите может кто сталкивался