Украв технологию из прошлой темы http://www.ibresource.ru/forums/index.php?showtopic=8853 сделал нынешний вариант для 2.1.х /sources/ipsclass.php Ищем:
$work['return'] = $this->compiled_templates['skin_global']->pagination_compile($work['first_page'],$previous_link,$work['st_dots'],$work['page_span'],$work['end_dots'],$next_link,$data['TOTAL_POSS'],$data['PER_PAGE'], $data['BASE_URL']);
Ниже вставляем:
if (preg_match ("/act=ST/", $data['BASE_URL']) or preg_match ("/showtopic/", $data['BASE_URL']) )
{
if ( $data['CUR_ST_VAL'] == 'all' )
{
$work['return'] .= $this->compiled_templates['skin_global']->pagination_current_page($this->lang['all_pages']);
}
else
{
$work['return'] .= $this->compiled_templates['skin_global']->pagination_page_link("{$data['BASE_URL']}&$use_st=all",$this->lang['all_pages']);
}
}
/sources/action_public/topics.php Ищем: //-----------------------------------------
// Multi PIDS?
//-----------------------------------------
$this->ipsclass->input['selectedpids'] = $this->ipsclass->my_getcookie('modpids');
$this->ipsclass->input['selectedpidcount'] = 0;
$this->ipsclass->my_setcookie('modpids', '', 0); Ниже вставляем: //-----------------------------------------
// All Pages
//-----------------------------------------
if ($this->ipsclass->input['st'] == 'all')
{
$this->first = 0;
$this->ipsclass->vars['display_max_posts'] = $this->topic['posts'] + 1;
} /sources/action_public/forums.php Ищем: $topic['PAGES'] = $this->ipsclass->compiled_templates['skin_forum']->pagination_wrap_pages($topic['tid'], $topic['PAGES'], $topic['posts'] + 1, $this->ipsclass->vars['display_max_posts']); ВЫШЕ! вставляем: $topic['PAGES'] .= $this->ipsclass->compiled_templates['skin_forum']->pagination_show_page($topic['tid'], "all" , $this->ipsclass->lang['all_pages']); /www/cache/lang_cache/ваш_русский_скин/lang_forum.php и lang_global.php Ищем: $lang = array ( Ниже вставляем: // All Pages Mod
'all_pages' => '<b>Все</b>', /www/cache/lang_cache/ваш_английский_скин/lang_forum.php и lang_global.php Ищем: $lang = array ( Ниже вставляем: // All Pages Mod
'all_pages' => '<b>All</b>', Всё!