Collapsible User Extras

Collapsible User Extras 1.0

No permission to download
XF Compatibility
  1. 2.2.x
This template mod will hide the extra user info in messages by default. Stats can be shown by simply clicking the expand arrow.

I will only support default styles, no 3rd party styles will receive support. Along with that if you use a Pixel Exit style this is already built into each style. 😛

Template
post_macros
Find:
Code:
<xf:macro template="message_macros" name="user_info" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-dateHtml="{$dateHtml}" arg-linkHtml="{$linkHtml}" />

Add below:
Code:
<span id="collapse-{$post.post_id}" class="collapseTrigger collapseTrigger--block" data-xf-click="toggle" data-target="#js-post-{$post.post_id} .message-userExtras"></span>

Template
message_macros
Find:
Code:
<div class="message-userExtras">
Replace with:
Code:
<div class="message-userExtras message-userExtras-body message-userExtras--collapsible">
Add to extra.less template:
CSS:
/* User Extras Collapse */
.message-userExtras-body
{
    .m-listPlain();
    &.message-userExtras--collapsible
    {
        .has-no-js & { display: block; }
        .m-transitionFadeDown();
    }
}
.message-cell
{
    .collapseTrigger
    {
        text-align: center;
        &.is-active:before
        {
            transform: rotate(-180deg);
        }
        &:before
        {
            content: "\f13a";
            color: @xf-linkColor;
            transition: ease-in transform .3s;
            width: auto;
        }
        &.collapseTrigger--block:before
        {
            float: none;
        }
    }
}
@media (max-width: @xf-responsiveNarrow)
{
    .message-cell
    {
        .collapseTrigger
        {
            display: none;
        }
    }
}
Author
axtona
Views
439
First release
Last update
Ratings 0.00 star(s) 0 ratings
More resources from axtona
Avanzade Kuponler dla WooCommerce Premium
Avanzade Kuponler dla WooCommerce Premium
Расширите функции купона
Антрац - Провайдер Хостинга и шаблон WHMCS
Антрац - Провайдер Хостинга и шаблон WHMCS
Разработан с использованием последней технологии HTML5 и CSS3, на основе фреймворка Bootstrap.
Using Composer Packages
Using Composer Packages
XenForo v2 uses Composer behind the scenes to include certain packages used by the core software

Similar resources

Добавить PNG ранк к группам пользователей A
Вы должны добавлять их отдельно для каждого пользовательского группирования.
Custom User Post Background A
allow you to add an image to the background of all posts by a given user
Back
Top