Jump to content
IPS Invision Community
Sign in to follow this  
Sipsb

[HQ4] Badges

Recommended Posts

Sipsb

[HQ4] Badges


Приложение позволит администратору настроить значки для групп и пользователей с учетом больших вариантов настроек.


  • Автор
  • Добавлен
    30.03.2018
  • Категория
  • Разработчик
    InvisionHQ
  • Локализация
    RUS
  • Версия IPS
    4.4
    4.3

 

  • Поддержать 1

Share this post


Link to post
Share on other sites
Black_Yuzia

Простите. А кто делал перевод? 
Значок знака. Сирозли? :d
2018-03-31_200304.thumb.png.4645a791c165692d396bdc5f081c90e4.png
 

  • Смех 3

Share this post


Link to post
Share on other sites
Sipsb
14 часов назад, Black_Yuzia сказал:

Простите. А кто делал перевод? 

Я переводил)) перезалил файл.

  • Нравится 2

Share this post


Link to post
Share on other sites
SkiFteL

@Sipsb Уважаемый Sipsb!
Подскажи как скрыть это на мобильной версии...
Какой файл подправить чтобы скрыть на планшетах и мобилах!
А то там криво смотрится

Edited by SkiFteL

Share this post


Link to post
Share on other sites
Sipsb

@SkiFteL Привет, в стиле через поиск найти badge и заменить всё содержимое.

{{if (isset($comment->badges['type']) && $comment->badges['type'] != 'css')}}
    {{if ($comment->badges['image']) and ($comment->badges['status'] == 1) and (\IPS\Settings::i()->badge_enable) and (in_array( $comment->item()->forum_id, explode( ",", $comment->badges['forums'] ) ) or ($comment->badges['forums'] == '*'))}}
        {{if ($comment->badges['atype'] == 1)}}
            {{if $comment->badges['link_to']}}<a href="{$comment->badges['link_to']}">{{endif}}<img src="{file="$comment->badges['image']" extension="core_Theme"}" class="HQbadges ipsResponsive_hidePhone ipsResponsive_hideTablet" style="{$comment->badges['custom_css']}">{{if $comment->badges['link_to']}}</a>{{endif}}
        {{else}}
            {{if $comment->badges['link_to']}}<a href="{$comment->badges['link_to']}">{{endif}}<img src="{file="$comment->badges['image']" extension="core_Theme"}" class="HQbadges ipsResponsive_hidePhone ipsResponsive_hideTablet" style="{$comment->badges['custom_css']}">{{if $comment->badges['link_to']}}</a>{{endif}}
        {{endif}}
    {{endif}}
{{else}}
{{if isset($comment->badges['css_text'])}}
{{if ($comment->badges['css_text']) && ($comment->badges['status'] == 1) && (\IPS\Settings::i()->badge_enable) && (in_array( $comment->item()->forum_id, explode( ",", $comment->badges['forums'] ) ) || ($comment->badges['forums'] == '*'))}}
    <style type="text/css">
        .ribbon-{$comment->badges['id']} span {
        background: linear-gradient({$comment->badges['css_color1']} 0%, {$comment->badges['css_color2']} 100%) !important;
        }
        .ribbon-{$comment->badges['id']} span::before {
        border-left: 3px solid {$comment->badges['css_color2']} !important;
        border-top: 3px solid {$comment->badges['css_color2']} !important;
        }
        .ribbon-{$comment->badges['id']} span::after {
        border-right: 3px solid {$comment->badges['css_color2']} !important;
        border-top: 3px solid {$comment->badges['css_color2']} !important;
        }
    </style>
    {{if ($comment->badges['atype'] == 1)}}
        <div>{{if $comment->badges['link_to']}}<a href="{$comment->badges['link_to']}">{{endif}}<div class="ribbon ribbon-{$comment->badges['id']}"><span style="{$comment->badges['custom_css']}">{$comment->badges['css_text']}</span></div>{{if $comment->badges['link_to']}}</a>{{endif}}</div>
        {{else}}
             {{if $comment->badges['link_to']}}<a href="{$comment->badges['link_to']}">{{endif}}<div class="ribbon ribbon-{$comment->badges['id']}"><span style="{$comment->badges['custom_css']}">{$comment->badges['css_text']}</span></div>{{if $comment->badges['link_to']}}</a>{{endif}}
        {{endif}}
    {{endif}}
{{endif}}
{{endif}}

 

  • Спасибо 1

Share this post


Link to post
Share on other sites
SkiFteL

@Sipsb А все спасибо все прекрасно))

Edited by SkiFteL

Share this post


Link to post
Share on other sites
MereVezer

а как скачать данный файл?

 

Share this post


Link to post
Share on other sites
marusya

подскажите, пожалуйста, на 4.3.6 версию не подойдет?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...
Вверх