Скрыть Welcome Section у зарегистрированных пользователей

Добро пожаловать!

Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.

Зарегистрироваться!
  • Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Пользователь
Регистрация
20 Июн 2025
Сообщения
20
3.1. Заголовок темы должен отражать основную суть темы.
как сделать так, чтобы у уже зарегистрированного пользователя не вылазила менюшка с регистрацией?
 

Вложения

  • Screenshot_2025-06-22-04-18-36-93_9e2bd530339e0e48020bd5cbcfc4854b.jpg
    Screenshot_2025-06-22-04-18-36-93_9e2bd530339e0e48020bd5cbcfc4854b.jpg
    345.3 KB · Просмотры: 3
Команда форума
Модератор
Регистрация
4 Ноя 2024
Сообщения
749
Команда форума
Модератор
Регистрация
4 Ноя 2024
Сообщения
749
Извините конечно, но это пиздец какой-то. Где вы такой стиль нашли? И это все прописано в PAGE_CONTAINER
HTML:
            <div class="uix_welcomeSection">
                                            <style type="text/css">
.uix_welcomeSection {
    position: relative;
    background: #212428 url(styles/uix_dark/images/welcome-banner.png);
    border-radius: 3px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}
.uix_welcomeSection .uix_welcomeSection__inner {
    position: relative;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}  
.uix_welcomeSection .uix_welcomeSection__text {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    padding-top: 4px;
    padding-bottom: 16px;
}
                                .uix_welcomeSection .uix_welcomeSection__title {
    font-size: 26px;
    margin: 0;
  font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif;
}
.button, a.button {
    Display: none;
    display: inline-block;
    border: 1px solid transparent;
    -webkit-transition: background-color .2s ease;
    transition: background-color .2s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 10px;
    text-align: center;
    outline: none;
    line-height: 32px;
    height: 32px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: content-box;
    -webkit-appearance: none;
    text-transform: uppercase;
    will-change: box-shadow;
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
    border: none;
    white-space: nowrap;
    color: #fff;
    background: transparent;
    border-color: rgba(20,20,20,0);
}
</style>
                <div class="uix_welcomeSection__inner">

                    <div class="media__container">

                       

                        <div class="media__body">

                            <div class="uix_welcomeSection__title">Добро пожаловать!</div>

                            <div class="uix_welcomeSection__text">Для того, чтобы начать взаимодействовать с форумом Вам необходимо будет зарегистрировать аккаунт.</div>

                            <a href="/index.php?register/" class="button--cta button rippleButton"><span class="button-text">Зарегистрироваться</span></a>
                        </div>
                    </div>
                </div>
            </div>
 
Команда форума
Модератор
Регистрация
4 Ноя 2024
Сообщения
749
Откройте шаблон uix_welcomeSection вставьте в него этот код
HTML:
<xf:macro name="welcomeSection" arg-location="!" arg-showWelcomeSection="{{ false }}">
    <xf:if is="$showWelcomeSection">
        <xf:if is="$location == property('uix_welcomeSectionLocation')">
            <xf:css src="uix_welcomeSection.less" />

            <div class="uix_welcomeSection">
                <div class="uix_welcomeSection__inner">

                    <div class="media__container">

                        <xf:if is="property('uix_welcomeSection__icon')">
                        <div class="media__object media--left">
                            <span class="uix_welcomeSection__icon"><i class="uix_icon {{ property('uix_welcomeSection__icon')}}"></i></span>
                        </div>
                        </xf:if>

                        <div class="media__body">
                            <xf:if is="property('uix_welcomeSection__title')"><div class="uix_welcomeSection__title">{{ property('uix_welcomeSection__title')}}</div></xf:if>

                            <xf:if is="property('uix_welcomeSection__text')"><div class="uix_welcomeSection__text">{{ property('uix_welcomeSection__text')}}</div></xf:if>

                            <xf:if is="property('uix_welcomeSection__url')"><xf:button href="{{ link(property('uix_welcomeSection__url')) }}" class="button--cta">{{ property('uix_welcomeSection__buttonText')}}</xf:button></xf:if>
                        </div>
                    </div>
                </div>
            </div>
        </xf:if>
    </xf:if>
</xf:macro>
Откройте шаблон PAGE_CONTAINER найдите строки 1487 - 1567 и аккуратно удалите код с этих строк
1750976606806.png
 
Сверху