Смотрите видео ниже, чтобы узнать, как установить наш сайт в качестве веб-приложения на домашнем экране.
Примечание: В настоящее время эта функция требует доступа к сайту с помощью встроенного браузера Safari.
<xf:if is="{$xf.visitor.user_id} != $user.user_id">
<xf:if is="$xf.visitor.canStartConversationWith($user)">
<a href="{{ link('conversations/add', null, {'to': $user.username}) }}" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}" target="_blank">Попросить личный</a>
</xf:if>
</xf:if>
postroot, А куда вставить?
А где эта кнопка должна быть расположена? Справа сверху (там, где обычно "Создать тему") или под сообщениями пользователей (там, где "Мне нравится")?Подскажите как сделать кнопку в темах, "Попросить личный"?
post_macros. Ищем блок:<footer class="message-footer">
<xf:if contentcheck="true">
<div class="message-actionBar actionBar">
<xf:contentcheck>
<xf:if contentcheck="true">
<div class="actionBar-set actionBar-set--external">
<xf:contentcheck>
<xf:if is="{$xf.visitor.user_id} != $post.User.user_id">
<xf:if is="$xf.visitor.canStartConversationWith($post.User)">
<a href="{{ link('conversations/add', null, {'to': $post.User.username}) }}" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}" target="_blank">Попросить личный</a>
</xf:if>
</xf:if>
{{ link('conversations/add', null, {'to': $post.User.username, 'title':$thread.title}) }}<xf:if is="{$xf.visitor.user_id} != $post.User.user_id">
<xf:if is="$xf.visitor.canStartConversationWith($post.User)">
<a href="{{ link('conversations/add', null, {'to': $post.User.username, 'title':$thread.title}) }}" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}" target="_blank">Попросить личный</a>
</xf:if>
</xf:if>
Spark108, Это хорошо, и ещё немного, вот такой вывод чтобы был
В заголовке переписки, когда нажимали "Попросить личный"
Посмотреть вложение 79416
{{ link('conversations/add', null, {'to': $post.User.username, 'title':'Личный (' . $thread.title . ')'}) }}<xf:if is="$xf.visitor.canStartConversationWith($post.User)">
<a href="{{ link('conversations/add', null, {'to': $post.User.username, 'title':'Личный (' . $thread.title . ')'}) }}" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}" class="item control lich" target="_blank">Попросить личный</a>
</xf:if>
</xf:if>
.item.control.lich:before {
font-family: FontAwesome; margin-right: 5px; content: "\f070";
}

<xf:if is="{$xf.visitor.user_id} != $post.User.user_id">
<xf:if is="{$xf.visitor.user_id} != $post.User.user_id && $post.isFirstPost()">
Мы используем основные cookies для обеспечения работы этого сайта, а также дополнительные cookies для обеспечения максимального удобства пользователя.
Посмотрите дополнительную информацию и настройте свои предпочтения
