Смотрите видео ниже, чтобы узнать, как установить наш сайт в качестве веб-приложения на домашнем экране.
Примечание: В настоящее время эта функция требует доступа к сайту с помощью встроенного браузера Safari.
<xf:if contentcheck="true">
<div class="memberTooltip-blurb">
<xf:contentcheck>
<xf:userblurb user="$user" tag="div" />
</xf:contentcheck>
</div>
</xf:if>
<div class="memberTooltip-blurb">
<xf:usertitle user="$user" />
<xf:if is="$user.Profile.location">
<span role="presentation" aria-hidden="true">·</span>...
Через модификатор можно добавить фразу предварительно создав ее в языкахПри реге есть графа указывать свой год рождения, соответственно показывается возраст, но тупо цифра.
Можно как то добавить перед цифрой возраста надпись, типа Возраст:
Посмотреть вложение 152996
member_tooltip
<xf:if contentcheck="true">
<div class="memberTooltip-blurb">
<xf:contentcheck>
<xf:userblurb user="$user" tag="div" />
</xf:contentcheck>
</div>
</xf:if>
<div class="memberTooltip-blurb">
<xf:usertitle user="$user" />
<xf:if is="$user.Profile.location">
<span role="presentation" aria-hidden="true">·</span>
<xf:if is="$xf.options.geoLocationUrl">
<a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
<xf:else />
{$user.Profile.location}
</xf:if>
</xf:if>
</div>
<xf:if is="$user.Profile.birthday.age">
<div class="memberTooltip-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('age') }}</dt>
<dd>{$user.Profile.birthday.age}</dd>
</dl>
</div>
</xf:if>
В модификации шаблонаДень рождения, и была полной , типа 16 Май 1966 (Возраст: 58)
member_tooltip
, в поле найти, измените код возраста на этот<xf:if contentcheck="true">
<div class="memberTooltip-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('age') }}</dt>
<dd>
<xf:contentcheck>
<xf:if is="$user.Profile.birthday.timeStamp">
{{ date($user.Profile.birthday.timeStamp, $user.Profile.birthday.format) }}
<xf:if is="$user.Profile.birthday.age">
{{ parens(phrase('age:') . ' ' . {$user.Profile.birthday.age}) }}
</xf:if>
</xf:if>
</xf:contentcheck>
</dd>
</dl>
</div>
</xf:if>
Модификация шаблонав всплывающем профиле счас цифра возраста есть, а прит просмотре полного профиля все равно одна цифра
member_view
<xf:userblurb user="$user" tag="div" class="memberHeader-blurb" />
<div class="memberHeader-blurb">
<xf:usertitle user="$user" />
<xf:if is="$user.Profile.location">
<span role="presentation" aria-hidden="true">·</span>
<xf:if is="$xf.options.geoLocationUrl">
<a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
<xf:else />
{$user.Profile.location}
</xf:if>
</xf:if>
</div>
<xf:if contentcheck="true">
<div class="memberHeader-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('age') }}</dt>
<dd>
<xf:contentcheck>
<xf:if is="$user.Profile.birthday.timeStamp">
{{ date($user.Profile.birthday.timeStamp, $user.Profile.birthday.format) }}
<xf:if is="$user.Profile.birthday.age">
{{ parens(phrase('age:') . ' ' . {$user.Profile.birthday.age}) }}
</xf:if>
</xf:if>
</xf:contentcheck>
</dd>
</dl>
</div>
</xf:if>
То есть я в поле Найти ввожу ваш код, а замену оставляю как в предыдущем сообщении ?В модификации шаблонаmember_tooltip
, в поле найти, измените код возраста на этот
<xf:if contentcheck="true">
<div class="memberTooltip-blurb">
<xf:contentcheck>
<xf:userblurb user="$user" tag="div" />
</xf:contentcheck>
</div>
</xf:if>
<div class="memberTooltip-blurb">
<xf:usertitle user="$user" />
<xf:if is="$user.Profile.location">
<span role="presentation" aria-hidden="true">·</span>
<xf:if is="$xf.options.geoLocationUrl">
<a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
<xf:else />
{$user.Profile.location}
</xf:if>
</xf:if>
</div>
<xf:if contentcheck="true">
<div class="memberTooltip-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('age') }}</dt>
<dd>
<xf:contentcheck>
<xf:if is="$user.Profile.birthday.timeStamp">
{{ date($user.Profile.birthday.timeStamp, $user.Profile.birthday.format) }}
<xf:if is="$user.Profile.birthday.age">
{{ parens(phrase('age:') . ' ' . {$user.Profile.birthday.age}) }}
</xf:if>
</xf:if>
</xf:contentcheck>
</dd>
</dl>
</div>
</xf:if>
<xf:userblurb user="$user" tag="div" class="memberHeader-blurb" />
<div class="memberHeader-blurb">
<xf:usertitle user="$user" />
<xf:if is="$user.Profile.location">
<span role="presentation" aria-hidden="true">·</span>
<xf:if is="$xf.options.geoLocationUrl">
<a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
<xf:else />
{$user.Profile.location}
</xf:if>
</xf:if>
</div>
<xf:if contentcheck="true">
<div class="memberHeader-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('age') }}</dt>
<dd>
<xf:contentcheck>
<xf:if is="$user.Profile.birthday.timeStamp">
{{ date($user.Profile.birthday.timeStamp, $user.Profile.birthday.format) }}
<xf:if is="$user.Profile.birthday.age">
{{ parens(phrase('age:') . ' ' . {$user.Profile.birthday.age}) }}
</xf:if>
</xf:if>
</xf:contentcheck>
</dd>
</dl>
</div>
</xf:if>
Мы используем основные cookies для обеспечения работы этого сайта, а также дополнительные cookies для обеспечения максимального удобства пользователя.
Посмотрите дополнительную информацию и настройте свои предпочтения