VIP Posted April 26, 2018 Share Posted April 26, 2018 Всем привет, знаю тут сидят люди знающие практически всё. Версия движка 4.2.8 и 4.3.1Может кто и сможет помочь в вопросе про дополнительное поле "Обо мне". Поле хотелось бы вывести в темах.Я сделал это поле на кнопку при нажатии которая открывает всплывающее окно где раскрывается текст Обо мне.Делал я это таким способом{{$site = preg_replace('/<wbr>/', '', $comment->author()->contentProfileFields()['core_pfieldgroups_1'][1]);}} {{if $comment->author()->contentProfileFields()['core_pfieldgroups_1'][1]}} <a href='#dialogContent' data-ipsDialog data-ipsDialog-content='#dialogContent' class="button5" data-info1 target="_blank" data-ipsTooltip title="Обо мне">Launch dialog</a> <div id="dialogContent" class='ipsHide'> {$site} </div> Проблему вроде с выводом решил а вот с отображение не додумался ещё, дополнительное поле его я вообще не трогал всё как в стандартном варианте.Но какой бы я текст там не писал всё равно выводится вместе с тегами <_p><p>Доброго времени суток! Извините, но наш проект еще в стадии разработки! Ты можешь вступить в нашу группу вконтакте или же перейти на форум! </p> Надеюсь на вашу помощь Link to comment Share on other sites More sharing options...
newbie Posted April 27, 2018 Share Posted April 27, 2018 {{if $comment->author()->member_id and $authorFieldAbout = $comment->author()->contentProfileFields()['core_pfieldgroups_1'][1]}} <a href='#' data-ipsDialog data-ipsDialog-content="#elAuthorFieldAbout_{$comment->author()->member_id}" class="button5" data-info1 title="Обо мне">Launch dialog</a> <div id="elAuthorFieldAbout_{$comment->author()->member_id}" class='ipsHide'> {$authorFieldAbout|raw} </div> {{endif}} 1 Link to comment Share on other sites More sharing options...
VIP Posted April 27, 2018 Author Share Posted April 27, 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