Сообщение изменено: Repack (23 Февраль 2013 - 14:42)
Куратор/модератор темы File Updated: 24 May 2009
#61
Отправлено 23 Февраль 2013 - 14:42
При просмотре тем определенного форума не отображается строчка "Куратор темы" после названия какой-нибудь темы. Как исправить?
#62
Отправлено 23 Февраль 2013 - 15:26
Решил проблему:
###################################################################### ./sources/action_public/forums.php ====================================================================== НАЙТИ ---------------------------------------------------------------------- if ($this->pinned_print == 0) { // we've a pinned topic, but we've not printed the pinned // starter row, so.. $show = $this->announce_out ? 1 : 0; $p_start = $this->ipsclass->compiled_templates['skin_forum']->render_pinned_start( $show ); $this->pinned_print = 1; } return $p_start . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 ); ---------------------------------------------------------------------- ЗАМЕНИТЬ ---------------------------------------------------------------------- return $p_start . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 ); ---------------------------------------------------------------------- НА ---------------------------------------------------------------------- //curator $list = unserialize(stripslashes($topic['curator_id'])); if ($list['id']) { $curator='<strong><span style="color: green">Куратор темы:</span> <a href="./index.php?showuser='.$list['id'].'">'.$list['name'].'</a></strong>'; } return $p_start . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1, $curator); //curator ---------------------------------------------------------------------- НАЙТИ ---------------------------------------------------------------------- if ($this->pinned_print == 1) { //----------------------------------------- // Nope, so.. //----------------------------------------- $p_end = $this->ipsclass->compiled_templates['skin_forum']->render_pinned_end(); $this->pinned_print = 0; } return $p_end . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 ); ---------------------------------------------------------------------- ЗАМЕНИТЬ ---------------------------------------------------------------------- return $p_end . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 ); ---------------------------------------------------------------------- НА ---------------------------------------------------------------------- //curator $list = unserialize(stripslashes($topic['curator_id'])); if ($list['id']) { $curator='<strong><span style="color: green">Куратор темы:</span> <a href="./index.php?showuser='.$list['id'].'">'.$list['name'].'</a></strong>'; } return $p_end . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1, $curator); //curator ======================================================================
###################################################################### Заходим в админку ACP Home > Skin Manager Home > Edit Template HTML Выбираем там группу фрагментов Forum Index в ней выбираем фрагмент render_forum_row ====================================================================== Добавляем новые входные данные Add new incoming Data Variables ,$curator="" ---------------------------------------------------------------------- Ищем в фрагменте ---------------------------------------------------------------------- </span> {$data[PAGES]} <div class="desc"><span onclick='return span_desc_to_input("{$data['tid']}");' id='tid-desc-{$data['tid']}'>{$data['description']}</span> ---------------------------------------------------------------------- Вставляем после этого ---------------------------------------------------------------------- <i>{$curator}</i>