Jump to content
4.4.2
Sipsb

[HQ4] Badges

Recommended Posts

Sipsb

[HQ4] Badges


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


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

 

  • Upvote 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
Sipsb

Код верный, межет не весь скопировали?

2018-05-09_22-34-34.png

 

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
Sipsb

Пробуйте, версия актуальна.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...