VIP Posted April 28, 2018 Share Posted April 28, 2018 Интересуюсь есть ли по стандарту код который выводит автора темы?Не хотел бы прибегать к установке плагина а просто добавить в postContainer код Использую IPS 4.2 Link to comment Share on other sites More sharing options...
newbie Posted April 29, 2018 Share Posted April 29, 2018 Автор темы$item->author()Автор поста$comment->author()Сравнивайте первое со вторым 1 Link to comment Share on other sites More sharing options...
VIP Posted April 29, 2018 Author Share Posted April 29, 2018 Надо попробовать Тут копался в старом стиле и нашел как было но думаю не будет работать{{if \IPS\Settings::i()->euip_ShowTStarter == 1 AND \IPS\Settings::i()->euip_TStarterPanel == 0 AND $comment->author()->member_id == $TopicStarter}} <li class="{{if \IPS\Settings::i()->euip_TStarterHidePhone == 1}}ipsResponsive_hidePhone{{endif}}"><span style="background: #2b8cdb;margin-bottom: 3px;width: 100%;" class="ipsBadge ipsBadge_large ipsBadge_positive euip_TStarterBadge"><i class='fa {setting="euip_FaFaTStarter"}'></i> Автор темы</span></li> {{endif}} Link to comment Share on other sites More sharing options...
VIP Posted April 29, 2018 Author Share Posted April 29, 2018 Можете подсказать как правильней вывести.По типу как выше код добавил Link to comment Share on other sites More sharing options...
newbie Posted April 29, 2018 Share Posted April 29, 2018 {{if $comment->author()->member_id and $item->author()->member_id == $comment->author()->member_id}} Код {{endif}} 1 Link to comment Share on other sites More sharing options...
VIP Posted April 29, 2018 Author Share Posted April 29, 2018 {{if $comment->author()->member_id and $item->author()->member_id == $comment->author()->member_id}}Код{{endif}} Спасибо тебе добрейший человек, цены тебе нет! Link to comment Share on other sites More sharing options...
VIP Posted April 29, 2018 Author Share Posted April 29, 2018 Что то не такПопробовал{{if $comment->author()->member_id == and $item->author()->member_id == $comment->author()->member_id}} <span style="background: #2b8cdb;margin-bottom: 3px;width: 100%;" class="ipsBadge ipsBadge_large ipsBadge_positive"> Автор темы</span> {{endif}} Link to comment Share on other sites More sharing options...
newbie Posted April 29, 2018 Share Posted April 29, 2018 Что то не так Мой косяк. Поправил код. 1 Link to comment Share on other sites More sharing options...
VIP Posted April 29, 2018 Author Share Posted April 29, 2018 Всё работает спасибо огромное. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now