Posted 8 ноября, 20177 yr comment_139044 Как сделать вместо сообщения сделать последняя тема? Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/ Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139045 4 минуты назад, venior сказал: Как сделать вместо сообщения сделать последняя тема? в языках переводится Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139045 Share on other sites Больше вариантов
8 ноября, 20177 yr Author comment_139046 1 минуту назад, WOLF сказал: в языках переводится точно? вроде не в языках Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139046 Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139047 1 минуту назад, venior сказал: точно? вроде не в языках раз знаешь нахрен спрашивать? Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139047 Share on other sites Больше вариантов
8 ноября, 20177 yr Author comment_139048 Только что, WOLF сказал: раз знаешь нахрен спрашивать? мда Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139048 Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139049 Только что, venior сказал: мда вот и я о том же Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139049 Share on other sites Больше вариантов
8 ноября, 20177 yr Author comment_139050 Только что, WOLF сказал: раз знаешь нахрен спрашивать? знаещь помоги , если не хочещь материться не надо Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139050 Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139051 Только что, venior сказал: знаещь помоги , если не хочещь материться не надо я и не матерился, ты бы лучше русский подучил чем такие претензии выдвигать. я сказал где правится, ты тут начал свои догадки выдвигать, мне по 20 раз отвечать на одно и то же? Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139051 Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139054 5 минут назад, venior сказал: точно? вроде не в языках В поиск posts_no_number Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139054 Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139063 2 часа назад, venior сказал: знаещь помоги , если не хочещь материться не надо Стоит уже привыкнуть что многоуважаемый @WOLF так общается , у него такая манера общения) Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139063 Share on other sites Больше вариантов
8 ноября, 20177 yr comment_139074 5 часов назад, venior сказал: Как сделать вместо сообщения сделать последняя тема? или вот так???? Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139074 Share on other sites Больше вариантов
9 ноября, 20177 yr Author comment_139116 14 часов назад, SlawkA сказал: или вот так???? да как сделать чтобы только темы отоброжалься? дай код Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139116 Share on other sites Больше вариантов
9 ноября, 20177 yr comment_139118 3 минуты назад, venior сказал: дай код лови Спойлер {{if $forum->can('view')}} {{$lastPost = $forum->lastPost();}} <li class="cForumRow ipsDataItem ipsDataItem_responsivePhoto {{if \IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsDataItem_unread{{endif}} ipsClearfix" data-forumID="{$forum->_id}"> <div class="ipsDataItem_icon ipsDataItem_category"> {{if !$forum->redirect_on}} {{if \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}<a href="{{if $isSubForum}}{$forum->url()->setQueryString( array( 'do' => 'markRead', 'return' => $forum->parent_id ) )->csrf()}{{else}}{$forum->url()->setQueryString( 'do', 'markRead' )->csrf()}{{endif}}" data-action='markAsRead' title='{lang="mark_forum_read"}' data-ipsTooltip>{{endif}} {{endif}} {{if $forum->icon}} <img src="{file="$forum->icon" extension="forums_Icons"}" class='ipsItemStatus ipsItemStatus_custom {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> {{else}} {{if $forum->redirect_on}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_redirect {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{foreach explode(',',theme.volpe_fn_redirect_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} </span> {{elseif $forum->forums_bitoptions['bw_enable_answers']}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_answers {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{foreach explode(',',theme.volpe_fn_question_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} </span> {{elseif $forum->password}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_password {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{if $forum->loggedInMemberHasPasswordAccess()}} {{foreach explode(',',theme.volpe_fn_unlock_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} {{else}} {{foreach explode(',',theme.volpe_fn_lock_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} {{endif}} </span> {{else}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_normal {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{foreach explode(',',theme.volpe_fn_discussion_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} </span> {{endif}} {{endif}} {{if !$forum->redirect_on and \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}} </a> {{endif}} </div> <div class="ipsDataItem_main"> <h4 class="ipsDataItem_title ipsType_large ipsType_break"> {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}} <a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password" sprintf="$forum->_title"}'>{$forum->_title}</a> {{else}} <a href="{$forum->url()}">{$forum->_title}</a> {{endif}} {{if $forum->redirect_on}} <span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span> {{endif}} </h4> {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}">{$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} {{if $forum->description}} <div class="ipsDataItem_meta ipsType_richText ipsContained">{$forum->description|raw}</div> {{endif}} </div> {{if !$forum->redirect_on}} <div class="ipsDataItem_stats ipsDataItem_statsLarge"> {{if $lastPost}} {{if theme.volpe_forumrow_show_posts or theme.volpe_forumrow_show_topics}} {{if theme.volpe_forumrow_show_topics}} <dl> <dt>{{if $forum->hasChildren()}}{{$cSubTopics = 0;}}{{foreach $forum->children() as $subforum}}{{$cSubTopics += $subforum->topics;}}{{endforeach}}{{$cTopics = $forum->topics + $cSubTopics;}}{number="$cTopics"}{{else}}{{$cTopics = $forum->topics;}}{number="$cTopics"}{{endif}}</dt><br> <dd class="ipsDataItem_stats_type ipsType_light">{lang="Тем" pluralize="$cTopics"}</dd> </dl> {{endif}} {{if theme.volpe_forumrow_show_posts}} <dl> {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}} <dt>{number="$count"}</dt><br> <dd class="ipsDataItem_stats_type ipsType_light">{lang="Сообщений" pluralize="$count"}</dd> </dl> {{endif}} {{endif}} {{endif}} {{if \IPS\forums\Topic::modPermission( 'unhide', NULL, $forum ) AND $unapprovedContent = $forum->unapprovedContentRecursive() and ( $unapprovedContent['topics'] OR $unapprovedContent['posts'] )}} <strong class='ipsType_warning ipsType_medium'> <i class='fa fa-warning'></i> {{if $unapprovedContent['topics']}} <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_topics' ) )->csrf()}' data-ipsTooltip title='{lang="queued_topics_badge" pluralize="$unapprovedContent['topics']"}' class='ipsType_blendLinks'>{$unapprovedContent['topics']}</a> {{else}} <span class='ipsType_light'>0</span> {{endif}} / {{if $unapprovedContent['posts']}} <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_posts' ) )->csrf()}' data-ipsTooltip title='{lang="queued_posts_badge" pluralize="$unapprovedContent['posts']"}' class='ipsType_blendLinks'>{$unapprovedContent['posts']}</a> {{else}} <span class='ipsType_light'>0</span> {{endif}} </strong> {{endif}} </div> <ul class="ipsDataItem_lastPoster ipsDataItem_withPhoto"> {{if $lastPost}} <li>{template="userPhoto" app="core" group="global" params="$lastPost['author'], 'tiny'"}</li> {{if $lastPost['topic_title']}}<li><a href="{$lastPost['topic_url']->setQueryString( 'do', 'getNewComment' )}" title='{$lastPost['topic_title']}'>{truncate="$lastPost['topic_title']" length="26"}</a></li>{{endif}} <li class='ipsType_blendLinks'>{lang="byline_nodate" htmlsprintf="$lastPost['author']->link()"}</li> {{if $lastPost['topic_title']}} <li class="ipsType_light"><a href='{$lastPost['topic_url']->setQueryString( 'do', 'getLastComment' )}' title='{lang="get_last_post"}' class='ipsType_blendLinks'>{datetime="$lastPost['date']"}</a></li> {{else}} <li class="ipsType_light">{datetime="$lastPost['date']"}</li> {{endif}} {{else}} <li class='ipsType_light ipsResponsive_showDesktop'>{{if $forum->password}}{lang="no_forum_posts_password"}{{else}}{lang="no_forum_posts"}{{endif}}</li> {{endif}} </ul> {{endif}} {{if $table and $table->canModerate()}} <div class='ipsDataItem_modCheck'> <span class='ipsCustomInput'> <input type='checkbox' data-role='moderation' name="moderate[{$forum->_id}]" data-actions="{expression="implode( ' ', $table->multimodActions( $forum ) )"}" data-state=''> <span></span> </span> </div> {{endif}} </li> {{endif}} если что то код меняй вот здесь. Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139118 Share on other sites Больше вариантов
9 ноября, 20177 yr Author comment_139133 3 часа назад, SlawkA сказал: лови Скрыть контент {{if $forum->can('view')}} {{$lastPost = $forum->lastPost();}} <li class="cForumRow ipsDataItem ipsDataItem_responsivePhoto {{if \IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsDataItem_unread{{endif}} ipsClearfix" data-forumID="{$forum->_id}"> <div class="ipsDataItem_icon ipsDataItem_category"> {{if !$forum->redirect_on}} {{if \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}<a href="{{if $isSubForum}}{$forum->url()->setQueryString( array( 'do' => 'markRead', 'return' => $forum->parent_id ) )->csrf()}{{else}}{$forum->url()->setQueryString( 'do', 'markRead' )->csrf()}{{endif}}" data-action='markAsRead' title='{lang="mark_forum_read"}' data-ipsTooltip>{{endif}} {{endif}} {{if $forum->icon}} <img src="{file="$forum->icon" extension="forums_Icons"}" class='ipsItemStatus ipsItemStatus_custom {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> {{else}} {{if $forum->redirect_on}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_redirect {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{foreach explode(',',theme.volpe_fn_redirect_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} </span> {{elseif $forum->forums_bitoptions['bw_enable_answers']}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_answers {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{foreach explode(',',theme.volpe_fn_question_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} </span> {{elseif $forum->password}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_password {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{if $forum->loggedInMemberHasPasswordAccess()}} {{foreach explode(',',theme.volpe_fn_unlock_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} {{else}} {{foreach explode(',',theme.volpe_fn_lock_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} {{endif}} </span> {{else}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_normal {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}> {{foreach explode(',',theme.volpe_fn_discussion_icon) as $key => $icon}} <i class='fa fa-{$icon}'></i> {{endforeach}} </span> {{endif}} {{endif}} {{if !$forum->redirect_on and \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}} </a> {{endif}} </div> <div class="ipsDataItem_main"> <h4 class="ipsDataItem_title ipsType_large ipsType_break"> {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}} <a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password" sprintf="$forum->_title"}'>{$forum->_title}</a> {{else}} <a href="{$forum->url()}">{$forum->_title}</a> {{endif}} {{if $forum->redirect_on}} <span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span> {{endif}} </h4> {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}">{$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} {{if $forum->description}} <div class="ipsDataItem_meta ipsType_richText ipsContained">{$forum->description|raw}</div> {{endif}} </div> {{if !$forum->redirect_on}} <div class="ipsDataItem_stats ipsDataItem_statsLarge"> {{if $lastPost}} {{if theme.volpe_forumrow_show_posts or theme.volpe_forumrow_show_topics}} {{if theme.volpe_forumrow_show_topics}} <dl> <dt>{{if $forum->hasChildren()}}{{$cSubTopics = 0;}}{{foreach $forum->children() as $subforum}}{{$cSubTopics += $subforum->topics;}}{{endforeach}}{{$cTopics = $forum->topics + $cSubTopics;}}{number="$cTopics"}{{else}}{{$cTopics = $forum->topics;}}{number="$cTopics"}{{endif}}</dt><br> <dd class="ipsDataItem_stats_type ipsType_light">{lang="Тем" pluralize="$cTopics"}</dd> </dl> {{endif}} {{if theme.volpe_forumrow_show_posts}} <dl> {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}} <dt>{number="$count"}</dt><br> <dd class="ipsDataItem_stats_type ipsType_light">{lang="Сообщений" pluralize="$count"}</dd> </dl> {{endif}} {{endif}} {{endif}} {{if \IPS\forums\Topic::modPermission( 'unhide', NULL, $forum ) AND $unapprovedContent = $forum->unapprovedContentRecursive() and ( $unapprovedContent['topics'] OR $unapprovedContent['posts'] )}} <strong class='ipsType_warning ipsType_medium'> <i class='fa fa-warning'></i> {{if $unapprovedContent['topics']}} <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_topics' ) )->csrf()}' data-ipsTooltip title='{lang="queued_topics_badge" pluralize="$unapprovedContent['topics']"}' class='ipsType_blendLinks'>{$unapprovedContent['topics']}</a> {{else}} <span class='ipsType_light'>0</span> {{endif}} / {{if $unapprovedContent['posts']}} <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_posts' ) )->csrf()}' data-ipsTooltip title='{lang="queued_posts_badge" pluralize="$unapprovedContent['posts']"}' class='ipsType_blendLinks'>{$unapprovedContent['posts']}</a> {{else}} <span class='ipsType_light'>0</span> {{endif}} </strong> {{endif}} </div> <ul class="ipsDataItem_lastPoster ipsDataItem_withPhoto"> {{if $lastPost}} <li>{template="userPhoto" app="core" group="global" params="$lastPost['author'], 'tiny'"}</li> {{if $lastPost['topic_title']}}<li><a href="{$lastPost['topic_url']->setQueryString( 'do', 'getNewComment' )}" title='{$lastPost['topic_title']}'>{truncate="$lastPost['topic_title']" length="26"}</a></li>{{endif}} <li class='ipsType_blendLinks'>{lang="byline_nodate" htmlsprintf="$lastPost['author']->link()"}</li> {{if $lastPost['topic_title']}} <li class="ipsType_light"><a href='{$lastPost['topic_url']->setQueryString( 'do', 'getLastComment' )}' title='{lang="get_last_post"}' class='ipsType_blendLinks'>{datetime="$lastPost['date']"}</a></li> {{else}} <li class="ipsType_light">{datetime="$lastPost['date']"}</li> {{endif}} {{else}} <li class='ipsType_light ipsResponsive_showDesktop'>{{if $forum->password}}{lang="no_forum_posts_password"}{{else}}{lang="no_forum_posts"}{{endif}}</li> {{endif}} </ul> {{endif}} {{if $table and $table->canModerate()}} <div class='ipsDataItem_modCheck'> <span class='ipsCustomInput'> <input type='checkbox' data-role='moderation' name="moderate[{$forum->_id}]" data-actions="{expression="implode( ' ', $table->multimodActions( $forum ) )"}" data-state=''> <span></span> </span> </div> {{endif}} </li> {{endif}} если что то код меняй вот здесь. что за ошибка Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139133 Share on other sites Больше вариантов
9 ноября, 20177 yr comment_139139 1 час назад, venior сказал: что за ошибка а ты как заменял? полностью? Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139139 Share on other sites Больше вариантов
9 ноября, 20177 yr Author comment_139140 2 минуты назад, SlawkA сказал: а ты как заменял? полностью? Полностью Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139140 Share on other sites Больше вариантов
9 ноября, 20177 yr comment_139142 19 минут назад, venior сказал: Полностью а надо было просто нужную часть кода, прописать к себе. они же на русском, и то что тебе нужно в коде. вот это всего лишь. Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139142 Share on other sites Больше вариантов
9 ноября, 20177 yr comment_139144 А как корректно запихнуть в мой код? Спойлер {{if $forum->can('view')}} {{$lastPost = $forum->lastPost();}} <li class="ipsDataItem ipsDataItem_responsivePhoto {{if \IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsDataItem_unread{{endif}} ipsClearfix" data-forumID="{$forum->_id}"> <div class="ipsDataItem_icon ipsDataItem_category"> {{if !$forum->redirect_on}} {{if \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}<a href="{{if $isSubForum}}{$forum->url()->setQueryString( array( 'do' => 'markRead', 'return' => $forum->parent_id ) )->csrf()}{{else}}{$forum->url()->setQueryString( 'do', 'markRead' )->csrf()}{{endif}}" data-action='markAsRead' title='{lang="mark_forum_read"}' data-ipsTooltip>{{endif}} {{endif}} {{if $forum->icon}} <img src="{file="$forum->icon" extension="forums_Icons"}" class='ipsItemStatus ipsItemStatus_custom {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> {{else}} {{if $forum->redirect_on}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_redirect {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> <i class='fa fa-arrow-right'></i> </span> {{elseif $forum->forums_bitoptions['bw_enable_answers']}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_answers {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> <i class='fa fa-question'></i> </span> {{elseif $forum->password}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_password {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> {{if $forum->loggedInMemberHasPasswordAccess()}} <i class='fa fa-unlock'></i> {{else}} <i class='fa fa-lock'></i> {{endif}} </span> {{else}} <span class='ipsItemStatus ipsItemStatus_large cForumIcon_normal {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'> <i class="fa fa-comments"></i> </span> {{endif}} {{endif}} {{if !$forum->redirect_on and \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}} </a> {{endif}} </div> <div class="ipsDataItem_main"> <h4 class="ipsDataItem_title ipsType_large ipsType_break"> {{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}} <a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password"}'>{$forum->_title}</a> {{else}} <a href="{$forum->url()}">{$forum->_title}</a> {{endif}} {{if $forum->redirect_on}} <span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span> {{endif}} </h4> {{if $forum->hasChildren()}} <ul class="ipsDataItem_subList ipsList_inline"> {{foreach $forum->children() as $subforum}} <li class="{{if \IPS\forums\Topic::containerUnread( $subforum )}}ipsDataItem_unread{{endif}}"> <a href="{$subforum->url()}"><i class="fa fa-arrow-circle-o-right"></i> {$subforum->_title}</a> </li> {{endforeach}} </ul> {{endif}} {{if $forum->description}} <div class="ipsDataItem_meta ipsType_richText">{$forum->description|raw}</div> {{endif}} </div> {{if !$forum->redirect_on}} <div class="ipsDataItem_stats ipsDataItem_statsLarge"> {{if $lastPost}} <dl> {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}} <dt class="ipsDataItem_stats_number">{number="$count"}</dt> <dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count"}</dd> </dl> {{endif}} {{if \IPS\forums\Topic::modPermission( 'unhide', NULL, $forum ) AND $unapprovedContent = $forum->unapprovedContentRecursive() and ( $unapprovedContent['topics'] OR $unapprovedContent['posts'] )}} <strong class='ipsType_warning ipsType_medium'> <i class='fa fa-warning'></i> {{if $unapprovedContent['topics']}} <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_topics' ) )->csrf()}' data-ipsTooltip title='{lang="queued_topics_badge" pluralize="$unapprovedContent['topics']"}' class='ipsType_blendLinks'>{$unapprovedContent['topics']}</a> {{else}} <span class='ipsType_light'>0</span> {{endif}} / {{if $unapprovedContent['posts']}} <a href='{$forum->url()->setQueryString( array( 'advanced_search_submitted' => 1, 'topic_type' => 'queued_posts' ) )->csrf()}' data-ipsTooltip title='{lang="queued_posts_badge" pluralize="$unapprovedContent['posts']"}' class='ipsType_blendLinks'>{$unapprovedContent['posts']}</a> {{else}} <span class='ipsType_light'>0</span> {{endif}} </strong> {{endif}} </div> <ul class="ipsDataItem_lastPoster ipsDataItem_withPhoto"> {{if $lastPost}} <li>{template="userPhoto" app="core" group="global" params="$lastPost['author'], 'tiny'"}</li> {{if $lastPost['topic_title']}}<li><a href="{$lastPost['topic_url']->setQueryString( 'do', 'getNewComment' )}" title='{$lastPost['topic_title']}'>{truncate="$lastPost['topic_title']" length="26"}</a></li>{{endif}} <li class='ipsType_blendLinks'>{lang="byline_nodate" htmlsprintf="$lastPost['author']->link()"}</li> {{if $lastPost['topic_title']}} <li class="ipsType_light"><a href='{$lastPost['topic_url']->setQueryString( 'do', 'getLastComment' )}' title='{lang="get_last_post"}' class='ipsType_blendLinks'>{datetime="$lastPost['date']"}</a></li> {{else}} <li class="ipsType_light">{datetime="$lastPost['date']"}</li> {{endif}} {{else}} <li class='ipsType_light ipsResponsive_showDesktop'>{{if $forum->password}}{lang="no_forum_posts_password"}{{else}}{lang="no_forum_posts"}{{endif}}</li> {{endif}} </ul> {{endif}} {{if $table and $table->canModerate()}} <div class='ipsDataItem_modCheck'> <span class='ipsCustomInput'> <input type='checkbox' data-role='moderation' name="moderate[{$forum->_id}]" data-actions="{expression="implode( ' ', $table->multimodActions( $forum ) )"}" data-state=''> <span></span> </span> </div> {{endif}} </li> {{endif}} Link to comment https://ipbmafia.ru/topic/18697-kak-sdelat-vmesto-soobsheniya-poslednyaya-tema/?&do=findComment&comment=139144 Share on other sites Больше вариантов
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.