чтобы скрытый текст открывался только после нажатия кнопки СПАСИБО в данной теме. В общем за утро нашел решение сам Вроде бы работает как надо, в лофай версии пока не как надо но это поборю сам. Vic'er, не могли бы вы сказать насколько сильно нагрузит такая модификация ваш мод: вот эту строчку в вашем моде скрытого текста для 2.1.х в функции regex_hide_hidden if ((!$this->ipsclass->vars['hide_min'] && !$this->ipsclass->member['id']) || (!$this->ipsclass->member['g_is_supmod'] && !$this->ipsclass->member['is_mod'] && intval($this->ipsclass->member['posts'])<$this->ipsclass->vars['hide_min'])){ заменил на $topic = $this->ipsclass->DB->simple_exec_query( array ( 'select' => 'thanks', 'from' => 'topics', 'where' => "tid='" . $this->ipsclass->input['t'] . "'" ) );
$thank = unserialize( $topic['thanks'] ) ? unserialize( $topic['thanks'] ) : FALSE;
$thank_ids=explode ( ',', $thank['id'] );
$is_thanked=FALSE;
if( $thank != FALSE ) {
if (in_array($this->ipsclass->member['id'],$thank_ids)) {$is_thanked=TRUE;}
}
if ($is_thanked==FALSE || !$this->ipsclass->member['id']) { в частности $topic = $this->ipsclass->DB->simple_exec_query( array ( 'select' => 'thanks', 'from' => 'topics', 'where' => "tid='" . $this->ipsclass->input['t'] . "'" ) ); наверное будет генерить много подключений к БД?