- Совместимость с XenForo
- 1.3
- 1.4
Плагин добавит поддержку BB-кодов в комментарии к профилям пользователей.
После установки дополнения открываем шаблон member_card, в нём находим:
И заменяем на:
Открываем шаблон member_view, в нём находим:
И заменяем на:
Открываем шаблон message_simple, в нём находим:
И заменяем на:
Открываем шаблон profile_post_comment, в нём находим:
И заменяем на:
Код:
<blockquote class="status">{xen:helper bodytext, $user.status}</blockquote>
И заменяем на:
Код:
<blockquote class="status baseHtml">{xen:helper profileBbCode, $bbCodeParser, 'member_card', $user.status}</blockquote>
Открываем шаблон member_view, в нём находим:
Код:
<xen:if is="{$user.status}"><p class="userStatus" id="UserStatus">{xen:helper bodyText, $user.status} <xen:datetime time="$user.status_date" /></p></xen:if>
И заменяем на:
Код:
<xen:if is="{$user.status}"><p class="userStatus" id="UserStatus"><span class="baseHtml">{xen:helper profileBbCode, $bbCodeParser, 'member_view', $user.status}</span> <xen:datetime time="$user.status_date" /></p></xen:if>
Открываем шаблон message_simple, в нём находим:
Код:
<article><blockquote class="ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">{xen:helper bodyText, $message.message}</blockquote></article>
И заменяем на:
Код:
<article><blockquote class="ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">{xen:helper profileBbCode, $bbCodeParser, 'message_simple', $message.message}</blockquote></article>
Открываем шаблон profile_post_comment, в нём находим:
Код:
<article><blockquote>{xen:helper bodytext, $comment.message}</blockquote></article>
И заменяем на:
Код:
<article><blockquote class="baseHtml">{xen:helper profileBbCode, $bbCodeParser, 'profile_post_comment', $comment.message}</blockquote></article>