Jump to content

статус (новые) в форумах

Featured Replies

подскажите как можно сделать пометку новое

444455.png

Link to comment
https://ipbmafia.ru/topic/27893-status-novye-v-forumah/
Share on other sites

forums > front > index >forumRow найти:

<h4 class="ipsDataItem_title 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()}">{{if $club}}{lang="club_node" sprintf="$club->name, $forum->_title"}{{else}}{$forum->_title}{{endif}}</a>
				{{endif}}
				{{if $forum->redirect_on}}
					&nbsp;&nbsp;<span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span>
				{{endif}}
			</h4>

сразу после этого вставьте этот код:

&nbsp;<span class='ipsItemStatusRu ipsItemStatus_largeRu {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_readRu{{endif}}' {template="formattedInlineStyle" params="$forum" app="core" group="global" location="front"}>НОВОЕ</span>

в custom.css вставьте этот код:

.ipsItemStatusRu.ipsItemStatus_largeRu {
background: #135bec;
    color: #fff;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: 0.15s all linear;
}
.ipsItemStatusRu.ipsItemStatus_readRu {
    display:none;;
}

Untitled.thumb.png.62b3e3a7d03760732b0f8652df8db8da.png

Link to comment
https://ipbmafia.ru/topic/27893-status-novye-v-forumah/?&do=findComment&comment=210865
Share on other sites

спасибо 😇

у меня теперь почти все форумы новые, как то вручную выставлять можно это?

Link to comment
https://ipbmafia.ru/topic/27893-status-novye-v-forumah/?&do=findComment&comment=210868
Share on other sites
12 минут назад, umbro32111 сказал:

спасибо 😇

у меня теперь почти все форумы новые, как то вручную выставлять можно это?

Это работает для любого форума

Link to comment
https://ipbmafia.ru/topic/27893-status-novye-v-forumah/?&do=findComment&comment=210870
Share on other sites
1 минуту назад, Silence сказал:

Это работает для любого форума

ок

Link to comment
https://ipbmafia.ru/topic/27893-status-novye-v-forumah/?&do=findComment&comment=210871
Share on other sites

я у себя как то давно на старом стиле делал гифку 24.gif.f8ba1b7101fa23cd07d1a82f327342ec.gif

все руки не доходят на основном стиле переделать)))

Спойлер

2354.thumb.PNG.41d60567d3f96f1ac4202ca8f1b60e4c.PNG

 

Link to comment
https://ipbmafia.ru/topic/27893-status-novye-v-forumah/?&do=findComment&comment=210915
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.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.