Смотрите видео ниже, чтобы узнать, как установить наш сайт в качестве веб-приложения на домашнем экране.
Примечание: В настоящее время эта функция требует доступа к сайту с помощью встроенного браузера Safari.
admin.php?template-modifications/add
<xf:if contentcheck="true">
<div class="memberHeader-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('last_seen') }}</dt>
<dd dir="auto">
<xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck>
</dd>
</dl>...
admin.php?template-modifications/add
<xf:if contentcheck="true">
<div class="memberHeader-blurb">
<dl class="pairs pairs--inline">
<dt>{{ phrase('last_seen') }}</dt>
<dd dir="auto">
<xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck>
</dd>
</dl>
</div>
</xf:if>
$0
<xf:if contentcheck="true">
<xf:contentcheck>
<xf:if contentcheck="true">
<dl class="pairs pairs--columns pairs--fixedSmall">
<dt>{{ phrase('birthday') }}</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>
</xf:if>
<xf:if is="$user.Profile.website">
<dl class="pairs pairs--columns pairs--fixedSmall">
<dt>{{ phrase('website') }}</dt>
<dd>
<a href="{$user.Profile.website}" rel="nofollow" target="_blank">{$user.Profile.website}</a>
</dd>
</dl>
</xf:if>
<xf:if is="$user.Profile.location">
<dl class="pairs pairs--columns pairs--fixedSmall">
<dt>{{ phrase('location') }}</dt>
<dd>
<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>
</dd>
</dl>
</xf:if>
<xf:macro template="custom_fields_macros" name="custom_fields_view"
arg-type="users"
arg-group="personal"
arg-set="{$user.Profile.custom_fields}"
arg-additionalFilters="{{ ['profile'] }}" />
<xf:macro template="custom_fields_macros" name="custom_fields_view"
arg-type="users"
arg-group="contact"
arg-set="{$user.Profile.custom_fields}"
arg-additionalFilters="{{ ['profile'] }}" />
</xf:contentcheck>
</xf:if>
.memberHeader-content
{
.pairs--fixedSmall
{
&
{
margin-top: 3px;
}
dt
{
width: min-content !important;
}
}
}
Модификацией шаблона member_viewadmin.php?template-modifications/add
Шаблон: member_view
Ключ: add_customField_memberHeader
Найти:
HTML:<xf:if contentcheck="true"> <div class="memberHeader-blurb"> <dl class="pairs pairs--inline"> <dt>{{ phrase('last_seen') }}</dt> <dd dir="auto"> <xf:contentcheck><xf:useractivity user="$user" class="pairs--plainLabel" /></xf:contentcheck> </dd> </dl> </div> </xf:if>
Заменить:
HTML:$0 <xf:if contentcheck="true"> <xf:contentcheck> <xf:if contentcheck="true"> <dl class="pairs pairs--columns pairs--fixedSmall"> <dt>{{ phrase('birthday') }}</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> </xf:if> <xf:if is="$user.Profile.website"> <dl class="pairs pairs--columns pairs--fixedSmall"> <dt>{{ phrase('website') }}</dt> <dd> <a href="{$user.Profile.website}" rel="nofollow" target="_blank">{$user.Profile.website}</a> </dd> </dl> </xf:if> <xf:if is="$user.Profile.location"> <dl class="pairs pairs--columns pairs--fixedSmall"> <dt>{{ phrase('location') }}</dt> <dd> <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> </dd> </dl> </xf:if> <xf:macro template="custom_fields_macros" name="custom_fields_view" arg-type="users" arg-group="personal" arg-set="{$user.Profile.custom_fields}" arg-additionalFilters="{{ ['profile'] }}" /> <xf:macro template="custom_fields_macros" name="custom_fields_view" arg-type="users" arg-group="contact" arg-set="{$user.Profile.custom_fields}" arg-additionalFilters="{{ ['profile'] }}" /> </xf:contentcheck> </xf:if>
Копировать код кнопкой справа сверху.
Выходит примерно так:
Посмотреть вложение 137956
css:
Код:.memberHeader-content { .pairs--fixedSmall { & { margin-top: 3px; } dt { width: min-content !important; } } }
Копировали так, как я написал?Возможно я тупой, но у меня 0 применений. С чем может быть связанно?
Посмотреть вложение 137960
даКопировали так, как я написал?
Посмотреть вложение 137961
Там css выше был.Как исправить если широко.
Посмотреть вложение 138612
стоит у меня онТам css выше был.
Где? в extra.less надеюсь?стоит у меня он
даГде? в extra.less надеюсь?
Попробуйте заменить min-content на fit-content
поменял. Все так жеПопробуйте заменить min-content на fit-content
Ссылку на форум дайте, пожалуйста.поменял. Все так же
Ссылку на форум дайте, пожалуйста.
У Вас недостаточно прав для просмотра ссылок. Вход или Регистрация
.memberHeader-content
{
.pairs--fixedSmall dt
{
width: min-content !important;
white-space: nowrap;
}
@media (max-width: @xf-responsiveMedium)
{
.pairs--fixedSmall dt
{
width: auto !important;
}
}
}
Без измененийCSS:.memberHeader-content { .pairs--fixedSmall dt { width: min-content !important; white-space: nowrap; } @media (max-width: @xf-responsiveMedium) { .pairs--fixedSmall dt { width: auto !important; } } }
Вы уверены, что меняете именно на вашем стиле?Без изменений
Мы используем основные cookies для обеспечения работы этого сайта, а также дополнительные cookies для обеспечения максимального удобства пользователя.
Посмотрите дополнительную информацию и настройте свои предпочтения