Rank automático

3 participantes

Ir para baixo

Tópico resolvido Rank automático

Mensagem por ThiagoM. 10.03.20 14:31

Detalhes da questão


Endereço do fórum: http://pmdsp.forumeiros.com
Versão do fórum: ModernBB

Descrição


Olá, estava procurando como colocar para setar o rank automático e achei alguns códigos, mas não estão funcionado no meu fórum.

Oque utilizo no nome do rank:
Código:
<div class="rank bope"><i class="fa fa-skull-crossbones"></i> BOPE</div>

Em minha CSS:
Código:

jQuery(document).ready(function(){jQuery('.post').each(function(){
var cor = "#800000";
var rank = " BOPE";
 
jQuery('.post span[style="color:'+cor+'"]').closest(".post").find("dl dd:eq(0)").html(rank+''+rank'');});});
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Strilk 10.03.20 17:53

Caso os ranks estiverem ligados a folha de estilo use esse javascript aqui:
Código:
/**
 * Automatic rank.
 *
 * @author   Luiz Felipe F. (luuuiiiz.)
 * @version  1.0.0
 * @license  MIT
 */

(function ($) {
  'use strict';

  var ranks = [
    {
      color: '#0A0A0A',
      rank: {
        name: 'Corregedor',
        className: 'rank cor'
      }
    },
    {
      color: '#629975',
      rank: {
        name: 'Diretor',
        className: 'rank cce'
      }
    },
    {
     color: '#1E6104',
     rank: {
       name: '2° Seção',
       className: 'rank p2'
       }
     },
    {
      color: '#AD1818',
      rank: {
        name: 'BOPE',
        className: 'rank BOPE'
      }
    },
    {
      color: '#00731F',
      rank: {
        name: 'Autoridade Tributária',
        className: 'rank at'
      }
    },
    {
      color: '#00BF9F',
      rank: {
        name: 'S.R.H',
        className: 'rank mai'
      }
    },
    {
      color: '#656A6B8',
      rank: {
        name: 'Academia Policial',
        className: 'rank apol'
      }
    },
    {
      color: '#3BD478',
      rank: {
        name: 'C.P.O.S',
        className: 'rank cpos'
      }
    },
    
    {
      color: '#964B00',
      rank: {
        name: 'Instrutores',
        className: 'rank ins'
      }
    },
    
    {
      color: '#2BCF02',
      rank: {
        name: 'Supervisores',
        className: 'rank sup'
      }
    },
    
    {
      color: '#F21818',
      rank: {
        name: 'Treinadores',
        className: 'rank tre'
      }
    },
    
    {
      color: '#821F82',
      rank: {
        name: 'Professores',
        className: 'rank prof'
      }
    },
    
    {
      color: '#858A8A',
      rank: {
        name: 'Relações Públicas',
        className: 'rank srp'
      }
    },
    
    {
      color: '#0DDEFA',
      rank: {
        name: 'Esc. De Formação de Exe.',
        className: 'rank efe'
      }
    }
  ];

  var exceptions = [
    "rank adm",
    "rank pres",
    "rank emb",
    "rank exo"
  ];

  /**
   * Iterate over the rank array.
   *
   * @param  {string} color
   * @param  {object<jQuery>} $originalRank
   * @return {void}
   */
  function iterate(color, $originalRank) {
    var $except = $originalRank.attr('class');
    var $is_except = false;
    
    $.each(exceptions, function(index, exception) {
      
      if($except == exception) {
        $is_except = true;
        return;
      }
    });
    
    if($is_except) return;

    $.each(ranks, function () {      
      var $dummy = $('<span>')
        .css('color', this.color);

      // If the color is not the same, pass to the next iteration:
      if ($dummy.css('color') !== color) {
        return;
      }

      // Create the rank element:
      var $newRank = $('<div>', {
        'class': 'lf-custom-rank',
      })
        .text(this.rank.name)
        .addClass(this.rank.className);

      $originalRank.replaceWith($newRank);
    });
  }

  $(function () {
    // Topics:
    $('.post .postprofile').each(function () {
      var $this = $(this);
      var $user = $this.find('.postprofile-name > a[href] > span[style]');

      if (!$user.length) {
        $this.css('border-left-color', '#f0f0f0');
        return;
      }
      
      iterate($user.css('color'), $this.find('.postprofile-rank .rank'));
      
      $this.css('border-left-color', $user.css('color'));
    });

    // Profile:
    if (!/^\/u\d+$/.test(location.pathname)) {
      return;
    }

    var $profile = $('#profile-advanced-right');
    var $user = $profile.find('.module > .h3 > span[style]');

      if (!$user.length) {
        return;
      }

    iterate($user.css('color'), $profile.find('.mod-login-rank > br + .rank'));
  });
})(jQuery);

Observação: O revestimento é em todas as páginas, e eu estive olhando seu fórum, e os créditos de desenvolvimento encontram-se errados, esse tema foi desenvolvido por Alexandre Garcia (Zaswes) e Fmdi
Strilk
Strilk
****

Membro desde : 23/01/2018
Mensagens : 265
Pontos : 386

http://portal-grm.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 10.03.20 19:17

Observação: O revestimento é em todas as páginas, e eu estive olhando seu fórum, e os créditos de desenvolvimento encontram-se errados, esse tema foi desenvolvido por Alexandre Garcia (Zaswes) e Fmdi

Acontece que eu peguei aqui no forumeiros e ja estava sem créditos. Positivo
Apenas manti o do forumeiros!
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 10.03.20 19:25

Strilk escreveu:Caso os ranks estiverem ligados a folha de estilo use esse javascript aqui:
Código:
/**
 * Automatic rank.
 *
 * @author   Luiz Felipe F. (luuuiiiz.)
 * @version  1.0.0
 * @license  MIT
 */

(function ($) {
  'use strict';

  var ranks = [
    {
      color: '#0A0A0A',
      rank: {
        name: 'Corregedor',
        className: 'rank cor'
      }
    },
    {
      color: '#629975',
      rank: {
        name: 'Diretor',
        className: 'rank cce'
      }
    },
    {
     color: '#1E6104',
     rank: {
       name: '2° Seção',
       className: 'rank p2'
       }
     },
    {
      color: '#AD1818',
      rank: {
        name: 'BOPE',
        className: 'rank BOPE'
      }
    },
    {
      color: '#00731F',
      rank: {
        name: 'Autoridade Tributária',
        className: 'rank at'
      }
    },
    {
      color: '#00BF9F',
      rank: {
        name: 'S.R.H',
        className: 'rank mai'
      }
    },
    {
      color: '#656A6B8',
      rank: {
        name: 'Academia Policial',
        className: 'rank apol'
      }
    },
    {
      color: '#3BD478',
      rank: {
        name: 'C.P.O.S',
        className: 'rank cpos'
      }
    },
    
    {
      color: '#964B00',
      rank: {
        name: 'Instrutores',
        className: 'rank ins'
      }
    },
    
    {
      color: '#2BCF02',
      rank: {
        name: 'Supervisores',
        className: 'rank sup'
      }
    },
    
    {
      color: '#F21818',
      rank: {
        name: 'Treinadores',
        className: 'rank tre'
      }
    },
    
    {
      color: '#821F82',
      rank: {
        name: 'Professores',
        className: 'rank prof'
      }
    },
    
    {
      color: '#858A8A',
      rank: {
        name: 'Relações Públicas',
        className: 'rank srp'
      }
    },
    
    {
      color: '#0DDEFA',
      rank: {
        name: 'Esc. De Formação de Exe.',
        className: 'rank efe'
      }
    }
  ];

  var exceptions = [
    "rank adm",
    "rank pres",
    "rank emb",
    "rank exo"
  ];

  /**
   * Iterate over the rank array.
   *
   * @param  {string} color
   * @param  {object<jQuery>} $originalRank
   * @return {void}
   */
  function iterate(color, $originalRank) {
    var $except = $originalRank.attr('class');
    var $is_except = false;
    
    $.each(exceptions, function(index, exception) {
      
      if($except == exception) {
        $is_except = true;
        return;
      }
    });
    
    if($is_except) return;

    $.each(ranks, function () {      
      var $dummy = $('<span>')
        .css('color', this.color);

      // If the color is not the same, pass to the next iteration:
      if ($dummy.css('color') !== color) {
        return;
      }

      // Create the rank element:
      var $newRank = $('<div>', {
        'class': 'lf-custom-rank',
      })
        .text(this.rank.name)
        .addClass(this.rank.className);

      $originalRank.replaceWith($newRank);
    });
  }

  $(function () {
    // Topics:
    $('.post .postprofile').each(function () {
      var $this = $(this);
      var $user = $this.find('.postprofile-name > a[href] > span[style]');

      if (!$user.length) {
        $this.css('border-left-color', '#f0f0f0');
        return;
      }
      
      iterate($user.css('color'), $this.find('.postprofile-rank .rank'));
      
      $this.css('border-left-color', $user.css('color'));
    });

    // Profile:
    if (!/^\/u\d+$/.test(location.pathname)) {
      return;
    }

    var $profile = $('#profile-advanced-right');
    var $user = $profile.find('.module > .h3 > span[style]');

      if (!$user.length) {
        return;
      }

    iterate($user.css('color'), $profile.find('.mod-login-rank > br + .rank'));
  });
})(jQuery);

Observação: O revestimento é em todas as páginas, e eu estive olhando seu fórum, e os créditos de desenvolvimento encontram-se errados, esse tema foi desenvolvido por Alexandre Garcia (Zaswes) e Fmdi


Não resultou...
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Strilk 10.03.20 19:34

ThiagoM. escreveu:
Strilk escreveu:Caso os ranks estiverem ligados a folha de estilo use esse javascript aqui:
Código:
/**
 * Automatic rank.
 *
 * @author   Luiz Felipe F. (luuuiiiz.)
 * @version  1.0.0
 * @license  MIT
 */

(function ($) {
  'use strict';

  var ranks = [
    {
      color: '#0A0A0A',
      rank: {
        name: 'Corregedor',
        className: 'rank cor'
      }
    },
    {
      color: '#629975',
      rank: {
        name: 'Diretor',
        className: 'rank cce'
      }
    },
    {
     color: '#1E6104',
     rank: {
       name: '2° Seção',
       className: 'rank p2'
       }
     },
    {
      color: '#AD1818',
      rank: {
        name: 'BOPE',
        className: 'rank BOPE'
      }
    },
    {
      color: '#00731F',
      rank: {
        name: 'Autoridade Tributária',
        className: 'rank at'
      }
    },
    {
      color: '#00BF9F',
      rank: {
        name: 'S.R.H',
        className: 'rank mai'
      }
    },
    {
      color: '#656A6B8',
      rank: {
        name: 'Academia Policial',
        className: 'rank apol'
      }
    },
    {
      color: '#3BD478',
      rank: {
        name: 'C.P.O.S',
        className: 'rank cpos'
      }
    },
    
    {
      color: '#964B00',
      rank: {
        name: 'Instrutores',
        className: 'rank ins'
      }
    },
    
    {
      color: '#2BCF02',
      rank: {
        name: 'Supervisores',
        className: 'rank sup'
      }
    },
    
    {
      color: '#F21818',
      rank: {
        name: 'Treinadores',
        className: 'rank tre'
      }
    },
    
    {
      color: '#821F82',
      rank: {
        name: 'Professores',
        className: 'rank prof'
      }
    },
    
    {
      color: '#858A8A',
      rank: {
        name: 'Relações Públicas',
        className: 'rank srp'
      }
    },
    
    {
      color: '#0DDEFA',
      rank: {
        name: 'Esc. De Formação de Exe.',
        className: 'rank efe'
      }
    }
  ];

  var exceptions = [
    "rank adm",
    "rank pres",
    "rank emb",
    "rank exo"
  ];

  /**
   * Iterate over the rank array.
   *
   * @param  {string} color
   * @param  {object<jQuery>} $originalRank
   * @return {void}
   */
  function iterate(color, $originalRank) {
    var $except = $originalRank.attr('class');
    var $is_except = false;
    
    $.each(exceptions, function(index, exception) {
      
      if($except == exception) {
        $is_except = true;
        return;
      }
    });
    
    if($is_except) return;

    $.each(ranks, function () {      
      var $dummy = $('<span>')
        .css('color', this.color);

      // If the color is not the same, pass to the next iteration:
      if ($dummy.css('color') !== color) {
        return;
      }

      // Create the rank element:
      var $newRank = $('<div>', {
        'class': 'lf-custom-rank',
      })
        .text(this.rank.name)
        .addClass(this.rank.className);

      $originalRank.replaceWith($newRank);
    });
  }

  $(function () {
    // Topics:
    $('.post .postprofile').each(function () {
      var $this = $(this);
      var $user = $this.find('.postprofile-name > a[href] > span[style]');

      if (!$user.length) {
        $this.css('border-left-color', '#f0f0f0');
        return;
      }
      
      iterate($user.css('color'), $this.find('.postprofile-rank .rank'));
      
      $this.css('border-left-color', $user.css('color'));
    });

    // Profile:
    if (!/^\/u\d+$/.test(location.pathname)) {
      return;
    }

    var $profile = $('#profile-advanced-right');
    var $user = $profile.find('.module > .h3 > span[style]');

      if (!$user.length) {
        return;
      }

    iterate($user.css('color'), $profile.find('.mod-login-rank > br + .rank'));
  });
})(jQuery);

Observação: O revestimento é em todas as páginas, e eu estive olhando seu fórum, e os créditos de desenvolvimento encontram-se errados, esse tema foi desenvolvido por Alexandre Garcia (Zaswes) e Fmdi


Não resultou...

Você precisa configurar de acordo com a cor do grupo e o rank, exemplo: rank ''nome que colocou'', exemplos: rank supr, gate, cor, at e etc. Eu tenho acesso ao tema da RCC e eu mesmo testei esse código js, você ativou a gestão de java no seu fórum? verifique se está marcado como sim
Strilk
Strilk
****

Membro desde : 23/01/2018
Mensagens : 265
Pontos : 386

http://portal-grm.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 10.03.20 19:59

Eu configurei, e sim está marcado como sim!
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Strilk 11.03.20 16:58

Entendi, tem como me passar sua folha de css e as cores dos grupos que você deseja que fique automático? eu farei a edição para você
Strilk
Strilk
****

Membro desde : 23/01/2018
Mensagens : 265
Pontos : 386

http://portal-grm.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 11.03.20 21:31

Código:
#preview .postbody table, #preview .postbody td, div[class*="post--"] .postbody table, div[class*="post--"] .postbody td {    border: none!important; }


body{
background: url('https://i.servimg.com/u/f85/20/07/01/09/istock10.jpg') no-repeat top center;
backdround-size: 100% auto;
background-attachment: fixed;
}

#logo-desc img {
    width: 100% !important;
}

/*Supremacia*/
a[style="color: #18AB86"].gensmall[href^="/g"]::before,
a[href^="/u"] span[style="color:#18AB86"]::before {
  content: '\f3ed';
  font-family: 'fontawesome';
  padding-right: 3px;
}

/*COR*/
a[style="color: #000000"].gensmall[href^="/g"]::before,
a[href^="/u"] span[style="color:#000000"]::before {
  content: '\f0e3';
  font-family: 'fontawesome';
  padding-right: 3px;
}

/*BOPE*/
a[style="color: #800000"].gensmall[href^="/g"]::before,
a[href^="/u"] span[style="color:#800000"]::before {
  content: '\f714';
  font-family: 'fontawesome';
  padding-right: 3px;
}

/*CRH*/
a[style="color: #733417"].gensmall[href^="/g"]::before,
a[href^="/u"] span[style="color:#733417"]::before {
  content: '\f2bb';
  font-family: 'fontawesome';
  padding-right: 3px;
}

/*INS*/
a[style="color: #FF2929"].gensmall[href^="/g"]::before,
a[href^="/u"] span[style="color:#FF2929"]::before {
  content: '\f02d';
  font-family: 'fontawesome';
  padding-right: 3px;
}


/*Online/online topicos*/

.online:before { content: none; }
.postprofile:before {
  content: url(http://habboemotion.com/resources/images/icons/offline.gif);
  left: 170px;
  position: absolute;
  top: 5px;
}
.online .postprofile:before { content: url(http://habboemotion.com/resources/images/icons/online.gif); }

/*foto quadrada*/

.postprofile-avatar img {
  min-width: 150px!important;
  min-height: 150px!important;
  border-radius: 0px!important;
  border: 0px solid #000000!important;
  width: 150px!important;
  height: 150px!important;
}

/* tópico separador */


.post-head {
    border: none;
}

.postprofile .postprofile-name {
    margin-bottom: 5px;
}

.postprofile {
    background-color: #fff;
    border: none;
    border-radius: 1px;
    border-left: solid 1px #d6d6d6;
    height: 100%!important;
}
 
.post {
    background-color: #fff;
    border-top: solid 1px #d6d6d6!important;
    border: none;
    border-radius: 0px;
}


/* grupos e quem está conectado */
 

.block-footer {
  background: #F5F5F5;
  border-radius: 5px;
  font-size: 0;
}
.block-footer b,
.block-footer:before {
  font-size: 11px;
  font-style: normal;
}
.block-footer:before {
  content: '';
}
.block-footer b:after {
  content: ', ';
  font-weight: 400;
}
.block-footer b:last-child:after {
  content: '';
}

/* teste */

.sub-header .sub-header-path a,
.sub-header .sub-header-path:before {
  background-color: #2e3131!important;
  margin-left: 0!important;
  color: white!important;
  box-shadow: inset 0 0 1px 1px rgba(0,0,0,.1);
  box-sizing: border-box;
}
.sub-header .sub-header-path a {
  padding-right: .7rem;
}
.sub-header .sub-header-path a:first-child {
  border-radius: .2rem 0 0 .2rem;
  padding-left: 1em;
}
.sub-header .sub-header-path a:last-child {
  border-radius: 0 .2rem .2rem 0;
  padding-right: 1em;
}

/**
 * Definições Iniciais:
 */
 
.fa-footer,
.fa-footer * {
  box-sizing: border-box;
}
 
.fa-footer {
  background-color: #212529;
  font-family: "Segoe UI", "Open Sans", "Helvetica Neue", "Ubuntu", "Helvetica", "Arial", "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: #a0a8b0;
  line-height: 1.5;
}
 
/**
 * Tags Genéricas:
 */
 
.fa-footer a {
  text-decoration: none;
  border-bottom: solid 1px #FFFFFF;
  color: #FFFFFF;
  transition: all 200ms linear;
}
 
.fa-footer a:hover {
  box-shadow: inset 0 -25px #FFFFFF;
  color: #fff;
}
 
/**
 * Sistema de Grid e ajustes das colunas genéricas:
 */
 
.fa-footer .fa-footer-row {
  display: flex;
  flex-direction: row;
  padding: 0 15px;
}
 
.fa-footer .fa-footer-row .fa-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
  padding: 15px 0;
}
 
.fa-footer .fa-footer-row .fa-footer-col:last-child {
  margin-right: 10px;
}
 
.fa-footer .fa-footer-row .fa-footer-col .lead {
  text-transform: uppercase;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 10px;
}
 
.fa-footer .fa-footer-row .fa-footer-col p {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
 
/**
 * Ajustes para a a coluna primária:
 */
 
.fa-footer .fa-footer-row .fa-primary-footer-col {
  border-right: solid 1px #2a2e32;
  position: relative;
  flex-grow: 1;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo img {
  width: 205px;
  margin: 0 30px;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-social {
  margin: 18px 0 5px 0;
  display: flex;
  width: 100%;
  justify-content: space-around;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 37px;
  height: 37px;
  border-bottom: none;
  border-radius: 100px;
  box-shadow: none;
  border: solid 1px #FFFFFF;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-social a:hover {
  color: #fff;
  background-color: #FFFFFF;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #212529;
  border: solid 1px #2a2e32;
  color: #FFFFFF;
  font-size: 23px;
  border-radius: 20px;
  z-index: 3;
  box-shadow: 1px 1px 2px rgba(11, 13, 15, 0.84);
  cursor: pointer;
  transition: all 100ms linear;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top .fa {
  margin-top: -3px;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top:hover {
  background-color: #FFFFFF;
  color: #fff;
}
 
/**
 * Atribuição final:
 */
 
.fa-footer .fa-footer-attr {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  border-top: solid 1px #2a2e32;
  background-color: #24282b;
}
 
/**
 * Ajustes para o footer do FA:
 */
 
#page-footer {
  background-color: #212529;
  border-top: solid 1px #2a2e32;
  border-bottom: solid 1px #2a2e32;
}
 
.statistics {
  box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.37);
}
 
/**
 * Responsive:
 */
 
@media screen and (max-width: 1000px) {
  .fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo img {
    margin: 0px;
  }
}
 
@media screen and (max-width: 850px) {
  .fa-footer .fa-footer-row {
    flex-wrap: wrap;
  }
 
  .fa-footer .fa-footer-row .fa-primary-footer-col {
    border-right: none;
  }
}




/* categorias */

ul.topiclist li.header dl dd {
    height: 30px
    text-align: justify;
    border-size: 8px;
}

.table-title h2 {
    line-height: 1px!important;
}

/*  HEADER
**===================*/
 
/*--- MENU ---*/
.menu {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: rgb(20,20,20);
    box-shadow: inset rgba(0, 0, 0, 0.20) 0px -2px 0px;
    height: 70px;
    z-index: 999;
}
 
.menu .menu-container {
    width: 95%;
    margin: 0 auto;
}
 
/*-- Links do menu --*/
.menu .menu-container .menu-link-wrapper {
    width: 40%;
    float: left;
}
 
.menu-link-wrapper .menu-link {
    background-color: rgba(190, 190, 190, 0.05);
    position: relative;
    display: inline-block;
    margin-right: 6px;
    width: 70px;
    height: 70px;
    cursor: pointer;
}
 
.menu-link-wrapper .menu-link .icon {
    width: 100%;
    filter: grayscale(100%);
    height: 70px;
    background-position: center;
    background-repeat: no-repeat;
}
 
.menu-link-wrapper .menu-link:hover .icon { filter: grayscale(0%); }
 
.menu-link-wrapper .menu-link .icon.forum { background-image: url(https://i.imgur.com/1vk5dmt.png); }
.menu-link-wrapper .menu-link .icon.list { background-image: url(https://i.imgur.com/F79yYII.gif); }
.menu-link-wrapper .menu-link .icon.membros { background-image: url(https://i.imgur.com/hQY1CAY.png); }
.menu-link-wrapper .menu-link .icon.grupos { background-image: url(https://i.imgur.com/lgRVYtz.png); }
.menu-link-wrapper .menu-link .icon.estatuto { background-image: url(https://i.imgur.com/CkKU0y0.png); }
 
.menu-link-wrapper .menu-link .text {
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    background-color: #212121;
    box-shadow: 0 0 2px 1px rgba(255,255,255,.3) inset, 0 3px 9px rgba(0,0,0,.18);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 25px;
    color: #fff;
    position: absolute;
    bottom: -30px;
    left: -5px;
    z-index: 2;
    width: calc(100% + 5px + 5px);
    height: 28px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,.18);
    opacity: 0;
    -webkit-transition: .3s opacity;
    -moz-transition: .3s opacity;
    transition: .3s opacity;
}
 
.menu-link-wrapper .menu-link:hover .text {
    opacity: 1;
    -webkit-transition: .3s opacity;
    -moz-transition: .3s opacity;
    transition: .3s opacity;
}
 
.menu-link-wrapper .menu-link .text:after {
    position: absolute;
    top: -8px;
    left: calc(50% - 7px);
    content: '';
    -webkit-filter: drop-shadow(0 3px 9px rgba(0,0,0,0.18));
    filter: drop-shadow(0 3px 9px rgba(0,0,0,0.18));
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #464646;
}
 
/*-- Logo da RCC --*/
.menu .menu-container .menu-logo {
    background: url(https://i.imgur.com/r3DdjCS.gif) no-repeat center center;
    float: left;
    width: 30%;
    height: 70px;
}
 
/*-- Links das redes sociais --*/
.menu .menu-container .menu-social {
    position: absolute;
    top: 15px;
    right: 10px;
}
 
.menu-social .social-btn {
    box-shadow: inset 0 3px rgba(255,255,255,0.15), inset 0 -3px rgba(0,0,0,0.15), 0 3px rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 20px;
    margin-top: 0px;
    text-align: center;
    color: #FFF;
    text-shadow: 0 4px rgba(0,0,0,0.2);
    font-size: 18px;
    float: left;
    padding: 5%;
    margin-right: 10px;
}
 
.menu-social .social-btn.social-twitter {
    background-color: rgb(114,137,218);
    background-image: linear-gradient(to bottom, rgb(114,137,218), rgb(134,154,223));
}
.menu-social .social-btn.social-twitter:active { background-image: linear-gradient(to top, rgb(114,137,218), rgb(134,154,223)); }
 
.menu-social .social-btn.social-youtube {
    background-color: rgb(26, 171, 19);
    background-image: linear-gradient(to bottom, rgb(26,171,19), rgb(13,194,17));
}
.menu-social .social-btn.social-youtube:active { background-image: linear-gradient(to top, rgb(26,171,19), rgb(13,194,17)); }
 

/* topico ajustes */

.pun .post .sig-content {
    clear: none;
}


/* ranks */

.rank {
 color: #fff;
 font-size: 13px;
 font-weight: 600;
 height: 36px;
 width: 160px;
 margin: 5px auto;
 border-radius: 12px;
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14), inset 0 0 1px 1px rgba(0, 0, 0, .1);
 text-align: center;
 line-height: 33px;
 text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
 
.rank.admin {
 background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
 background-size: 1800% 1800%;
 -webkit-animation: rainbow 18s ease infinite;
 -z-animation: rainbow 18s ease infinite;
 -o-animation: rainbow 18s ease infinite;
 animation: rainbow 18s ease infinite;
}
 
@-webkit-keyframes rainbow {
 0% {
 background-position: 0% 82%
 }
 50% {
 background-position: 100% 19%
 }
 100% {
 background-position: 0% 82%
 }
}
 
@-moz-keyframes rainbow {
 0% {
 background-position: 0% 82%
 }
 50% {
 background-position: 100% 19%
 }
 100% {
 background-position: 0% 82%
 }
}
 
@-o-keyframes rainbow {
 0% {
 background-position: 0% 82%
 }
 50% {
 background-position: 100% 19%
 }
 100% {
 background-position: 0% 82%
 }
}
 
@keyframes rainbow {
 0% {
 background-position: 0% 82%
 }
 50% {
 background-position: 100% 19%
 }
 100% {
 background-position: 0% 82%
 }
}


.rank.setor {
 background: linear-gradient(124deg, #121241,#2e2efe);
 background-size: 1800% 1800%;
 -webkit-animation: rainbow 18s ease infinite;
 -z-animation: rainbow 10s ease infinite;
 -o-animation: rainbow 10s ease infinite;
 animation: rainbow 10s ease infinite;
}

.rank.bope {
  background: linear-gradient(124deg, #b31900, #4e0000);
  background-size: 1800% 1800%;
  -webkit-animation: rainbow 18s ease infinite;
 -z-animation: rainbow 18s ease infinite;
 -o-animation: rainbow 18s ease infinite;
 animation: rainbow 18s ease infinite;
}

.rank.cor {
  background: linear-gradient(124deg, #000000, #5a5a5b);
  background-size: 1800% 1800%;
  -webkit-animation: rainbow 8s ease infinite;
  -z-animation: rainbow 8s ease infinite;
  -o-animation: rainbow 8s ease infinite;
  animation: rainbow 8s ease infinite;
}

.rank.crh {
  background: linear-gradient(124deg, #672b0f, #FFFFFF);
  background-size: 1800% 1800%;
}

a[href^="/g17-equipe-tecnica"], a[href^="/u"] span[style$="#18AB86"] {
    background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 1800% 1800%;
    -webkit-animation: rainbow 18s ease infinite;
    -z-animation: rainbow 18s ease infinite;
    -o-animation: rainbow 18s ease infinite;
    animation: rainbow 18s ease infinite;
}


 
/*--- FÓRUNS E SUB-FÓRUNS ---*/
.forabg, .forumbg {
    background-color: transparent;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
 
.forabg .header, .forumbg .header {
    background-color: #2E2E2E;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1), 0 0 2px rgba(0,0,0,0.1);
    color: #FFF;
    display: block;
    font-weight: 400;
    position: relative;
}
 
.btn-collapse i { font-size: 2.7rem!important; }
 
.forabg.hidden, .forumbg.hidden { background-color: transparent; }
 
.forabg.hidden .forums, .forumbg.hidden .forums { margin-top: 0; }
 
ul.forums, ul.topics {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1), 0 0 2px rgba(0,0,0,0.1);
    display: block;
    line-height: 22px;
    margin-top: 6px;
}
 
.topiclist .row {
    border-color: #f0f0f0;
    border-style: solid;
    border-width: 1px 0 0;
}
 
ul.topiclist.topics dd { padding: 8px 0; }
 
ul.topics .row dd.dterm, ul.topics .row dt { padding: 9px 18px 9px 30px; }
 
ul.forums dl.icon dd.dterm > div {
    margin-left: 3px!important;
    color: #777;
}
 
dd.dterm > div br { display: none; }
 
a.forumtitle:link,
a.forumtitle:visited,
a.topictitle:link,
a.topictitle:visited {
    color: #263238;
    margin-bottom: 1%;
}
 
dd.posts, dd.topics, dd.views { font-size: 12px; }
 
dd.posts span, dd.topics span, dd.views span {
    clear: both;
    color: #797979;
    display: block;
    font-size: 12px;
}
 
dd.lastpost span br:nth-child(3) { display: none!important; }
 
dd.lastpost span.color-groups { float: none!important; }
 
.lastpost-avatar { padding: 0 5px 0 0; }
 
.lastpost-avatar:after { top: 0; }
 
dd.lastpost > span > strong:before {
    content: "por";
    font-weight: 300;
    margin: 0 5px;
}
 
/*-- Forum Header --*/
.sub-header-info { width: 100%; }
 
h1.page-title {
    display: block;
    font-size: 30px;
    font-weight: 400;
    margin: 0 0 16px;
}
 
.sub-header-path {
    background-color: #2E2E2E;
    border-radius: 3px;
    clear: both;
    color: #fff;
    display: inline-block;
    font-size: 0;
    margin-bottom: 22px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}
 
.sub-header-path a {
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    padding: 9px 16px;
    position: relative;
}
 
.sub-header-path a:first-child { padding: 9px 16px!important; }
 
.sub-header-path a + a { margin-left: 0; }
 
.sub-header-path a + a:before {
    font-size: 16px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate3d(-50%,-50%,0);
}
 
.sub-header-path a:hover { background-color: rgba(0,0,0,0.44); }
 
.sub-header-path a:last-child:after {
    bottom: 0;
    box-shadow: 0 0 11px 16px #2E2E2E;
    content: "";
    display: block;
    position: absolute;
    right: -5px;
    top: 0;
    transition: all .16s ease;
    width: 5px;
}
 
.sub-header-path a:hover:after {
    -ms-filter: brightness(50%);
    -webkit-filter: brightness(50%);
    filter: brightness(50%);
}
 
.topic-actions-buttons > a, .topic-actions-buttons > span { margin: 0 0 0 18px; }
 
.plus-menu-wrap { float: left; }
 
.topic-actions-buttons #plus_menu {
    left: auto!important;
    right: auto!important;
}


/* quote */
blockquote {
  margin: 1em 1px 1em 25px;
  padding: 5px;
  background: #FFFFFF 6px 8px no-repeat;
  border: 1px solid #DBDBCE;
  border-left: 5px solid #DBDBCE;
  font-size: 0.95em;
  margin: 1em 1px 1em 25px;
  overflow: hidden;
}

/* spoiler */
.codebox.spoiler > dt[style="cursor: pointer;"],
.codebox.spoiler dd > .spoiler_content {
  width: max-content;
  padding: 1em;
  font-size: 1.25rem;
  border: 1px solid #e1e1e1;
  color: #666;
}
.codebox.spoiler > dt[style="cursor: pointer;"] {
  font-weight: 900;
}
.codebox.spoiler dd > .spoiler_content {
  min-width: 100%;
  word-wrap: break-word;
  width: 100%;
}
.codebox.spoiler {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: transparent!important;
  border: 0!important;
}
.codebox.spoiler::before { content: none; }

/* widgets */
.module .h3 {
    background-color: #2E2E2E!important;
}

Aqui está, cores dos grupos está no começo do CSS
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Strilk 11.03.20 22:10

Sua folha de estilo CSS está muito embaraçoso e os ranks foram feitos de maneira errada, veja se esse aqui serve:

Código:
@font-face {
    font-family: 'Volter Goldfish';
    src: url("https://mundogoph.github.io/fonts/Volter.ttf") format('ttf'),
        url("https://mundogoph.github.io/fonts/Volter.woff2") format('woff2'),
        url("https://mundogoph.github.io/fonts/Volter.woff") format('woff'),
        url("https://mundogoph.github.io/fonts/Volter.svg") format('svg');
    font-weight: normal;
    font-style: normal;
}

/** Correção :: Transição exagerada */
html * {
    transition: none;
    transition-duration: 0ms;
}

html a,
html button,
html input,
html [role="button"],
html .trans {
    transition: all 180ms linear;
    transition-duration: 180ms;
}
/** End :: Correção :: Transição exagerada */

input:focus { outline: transparent; }

/*  HEADER
**===================*/

/*--- MENU ---*/
.menu {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: rgb(20,20,20);
    box-shadow: inset rgba(0, 0, 0, 0.20) 0px -2px 0px;
    height: 70px;
    z-index: 999;
}

.menu .menu-container {
    width: 95%;
    margin: 0 auto;
}

/*-- Links do menu --*/
.menu .menu-container .menu-link-wrapper {
    width: 40%;
    float: left;
}

.menu-link-wrapper .menu-link {
    background-color: rgba(190, 190, 190, 0.05);
    position: relative;
    display: inline-block;
    margin-right: 6px;
    width: 70px;
    height: 70px;
    cursor: pointer;
}

.menu-link-wrapper .menu-link .icon {
    width: 100%;
    filter: grayscale(100%);
    height: 70px;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-link-wrapper .menu-link:hover .icon { filter: grayscale(0%); }

.menu-link-wrapper .menu-link .icon.forum { background-image: url(https://1.bp.blogspot.com/-8A4uHKnI428/Waow4RdDtlI/AAAAAAAA8vE/6Jc-grPJWds5GK9nKKLEwOJFsEF5wdTdQCKgBGAs/s1600/ARM24.gif); }
.menu-link-wrapper .menu-link .icon.portal { background-image: url(https://4.bp.blogspot.com/-Gilkz4TaSBU/Wc13EYUEyWI/AAAAAAAA-hc/9cPgN7U-2SEkOiJpfWGiRnvUXD87iU73QCKgBGAs/s1600/IT434.gif); }
.menu-link-wrapper .menu-link .icon.membros { background-image: url(https://4.bp.blogspot.com/-T1JjPkQC7cY/WjLnvvP6qaI/AAAAAAABBzA/eWe9D1XMiBYUWdndhuMTqHhiOcK60EvTACKgBGAs/s1600/FR525.gif); }
.menu-link-wrapper .menu-link .icon.grupos { background-image: url(https://1.bp.blogspot.com/-kk9WItDUaU8/XIGVKZBNSkI/AAAAAAABMc8/VRaNDpHEonsctrsQY8kcun9Wcl4h468dQCKgBGAs/s1600/FR91A.gif); }
.menu-link-wrapper .menu-link .icon.medalha { background-image: url(https://1.bp.blogspot.com/-gKZfDlSdwa8/XMtSF8Li2_I/AAAAAAABPYo/HXnbK8fBkFwbWDkl2W18a9bTwP8Y8IkWACKgBGAs/s1600/CH011.gif); }

.menu-link-wrapper .menu-link .text {
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    background-color: #212121;
    box-shadow: 0 0 2px 1px rgba(255,255,255,.3) inset, 0 3px 9px rgba(0,0,0,.18);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 25px;
    color: #fff;
    position: absolute;
    bottom: -30px;
    left: -5px;
    z-index: 2;
    width: calc(100% + 5px + 5px);
    height: 28px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,.18);
    opacity: 0;
    -webkit-transition: .3s opacity;
    -moz-transition: .3s opacity;
    transition: .3s opacity;
}

.menu-link-wrapper .menu-link:hover .text {
    opacity: 1;
    -webkit-transition: .3s opacity;
    -moz-transition: .3s opacity;
    transition: .3s opacity;
}

.menu-link-wrapper .menu-link .text:after {
    position: absolute;
    top: -8px;
    left: calc(50% - 7px);
    content: '';
    -webkit-filter: drop-shadow(0 3px 9px rgba(0,0,0,0.18));
    filter: drop-shadow(0 3px 9px rgba(0,0,0,0.18));
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #464646;
}

/*-- Logo da RCC --*/
.menu .menu-container .menu-logo {
    background: url(https://i.imgur.com/gsyrWFw.png) no-repeat center center;
    float: left;
    width: 28%;
    height: 70px;
}


/*-- Links das redes sociais --*/
.menu .menu-container .menu-social {
    position: absolute;
    top: 15px;
    right: 10px;
}

.menu-social .social-btn {
    box-shadow: inset 0 3px rgba(255,255,255,0.15), inset 0 -3px rgba(0,0,0,0.15), 0 3px rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 20px;
    margin-top: 0px;
    text-align: center;
    color: #FFF;
    text-shadow: 0 4px rgba(0,0,0,0.2);
    font-size: 18px;
    float: left;
    padding: 5%;
    margin-right: 10px;
}

.menu-social .social-btn.social-facebook {
    background-color: rgb(80,113,156);
    background-image: linear-gradient(to bottom, rgb(80,113,156), rgb(55,80,115)); 
}
.menu-social .social-btn.social-facebook:active { background-image: linear-gradient(to top, rgb(80,113,156), rgb(55,80,115)); }

.menu-social .social-btn.social-twitter {
    background-color: rgb(56,161,243);
    background-image: linear-gradient(to bottom, rgb(56,161,243), rgb(13,123,210)); 
}
.menu-social .social-btn.social-twitter:active { background-image: linear-gradient(to top, rgb(56,161,243), rgb(13,123,210)); }

.menu-social .social-btn.social-youtube {
    background-color: rgb(237,56,51);
    background-image: linear-gradient(to bottom, rgb(237,56,51), rgb(194,22,17)); 
}
.menu-social .social-btn.social-youtube:active { background-image: linear-gradient(to top, rgb(237,56,51), rgb(194,22,17)); }

/*--- HEADER BOX ---*/
.header-box {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    width: 260px;
    height: 190px;
    border-radius: 10px;
    box-shadow: 0 3px rgba(0,0,0,0.15), 0 0 10px rgba(0,0,0,0.1), inset 0 -3px rgba(0,0,0,0.15);
    font-size: 13px;
    padding: 5px;
    color: #fff;
    text-shadow: 0 2px rgba(0,0,0,0.5);
    position: absolute;
    bottom: 5%;
    right: 5%;
}

.header-box .box-title {
    text-align: center;
    font-size: 20px;
}

.header-box .box-content {
    float: left;
    margin: 5px;
}

.box-content a {
    display: block;
    color: #fff;
}
.box-content a:hover { text-shadow: 0 0 5px; }

.header-box .box-avatar {
    float: right;
    margin-top: -5%;
}

.box-logout {
    float: left;
    width: 100%;
}

.login-inputbox {
    background-image: linear-gradient(to bottom, rgb(255,255,255), rgb(235,235,235));
    width: 240px;
    height: 40px;
    border: none;
    border-radius: 8px;
    margin: 5px;
    padding: 0 15px!important;
    font-size: 1em!important;
    cursor: auto!important;
    box-shadow: inset 0 -3px rgba(0,0,0,0.1), 0 0 4px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.1);
}
.login-inputbox:hover, .login-inputbox:focus { border-bottom: none!important; }

.login-btn {
    height: 40px;
    border-radius: 8px!important;
    margin: 2px;
    box-shadow: 0 3px rgba(0,0,0,0.15), inset 0 -3px rgba(0,0,0,0.1), inset 0 1px rgba(255,255,255,0.3), 0 0 4px rgba(0,0,0,0.15)!important;
    color: #FFF;
    text-shadow: 0 2px rgba(0,0,0,0.2);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 1px 10px!important;
    cursor: pointer!important;
}

.login-btn.login {
    background-image: linear-gradient(to bottom, rgb(80,113,156), rgb(55,80,115));
    border: 1px solid rgb(46,65,93);
    width: 140px!important;
}
.login-btn.login:active { background-image: linear-gradient(to top, rgb(80,113,156), rgb(55,80,115)); }

.login-btn.register {
    background-image: linear-gradient(to bottom, rgb(113,208,43), rgb(77,141,29));
    border: 1px solid rgb(48,88,18);
    width: 100px;
}
.login-btn.register:active { background-image: linear-gradient(to top, rgb(113,208,43), rgb(77,141,29)); }

.login-btn.logout {
    background-image: linear-gradient(to bottom, rgb(207,72,46), rgb(144,50,32));
    border: 1px solid rgb(102,36,23);
    width: 140px;
    margin-top: 0;
}
.login-btn.logout:active { background-image: linear-gradient(to top, rgb(207,72,46), rgb(144,50,32)); }

.login-btn.mp, .login-btn.notif {
    width: 48px;
    outline: none;
    font-size: 15px;
}

.login-btn.mp {
    background-image: linear-gradient(to bottom, rgb(255,165,0), rgb(179,116,0));
    border: 1px solid rgb(103,66,0);
}
.login-btn.mp:active { background-image: linear-gradient(to top, rgb(255,165,0), rgb(179,116,0)); }
.login-btn.mp:before {
    content: '\f0e0';
    font-family: 'Font Awesome 5 Free';
}

a[data-status*="Nova"] .login-btn.mp:after {
    content: '';
    width: 7px;
    height: 7px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    margin-left: -1%;
    margin-top: -.3%;
}


.login-btn.notif {
    background-image: linear-gradient(to bottom, rgb(113,208,43), rgb(77,141,29));
    border: 1px solid rgb(48,88,18);
}
.login-btn.notif:active { background-image: linear-gradient(to top, rgb(113,208,43), rgb(77,141,29)); }
.login-btn.notif:before {
    content: '\f0f3';
    font-family: 'Font Awesome 5 Free';
}


/*  CONTENT
**===================*/
.row1, .row2 { background-color: #fff; }

/*---- ANÚNCIOS ----*/
#fa_ticker_block .module { background-color: transparent; }

/*---- BOTÕES ----*/
.button1[title*="não pode"] { background-color: #db4928!important; }

.button1[title*="Este Fórum está Bloqueado."]:after { content: "Fórum Bloqueado"; }

.button1[title*="Este Tópico está bloqueado."]:after { content: "Tópico Bloqueado"; }

.button1[title*="não pode"] span { display: none; }

.button1:hover,
.button2:hover,
.button:hover,
input[type="submit"]:hover,
.button-round:hover { background-color: #242424; }

/*--- FÓRUNS E SUB-FÓRUNS ---*/
.forabg, .forumbg {
    background-color: transparent;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.forabg .header, .forumbg .header {
    background-color: #0a5f8c;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1), 0 0 2px rgba(0,0,0,0.1);
    color: #FFF;
    display: block;
    font-weight: 400;
    position: relative;
}

.btn-collapse i { font-size: 2.7rem!important; }

.forabg.hidden, .forumbg.hidden { background-color: transparent; }

.forabg.hidden .forums, .forumbg.hidden .forums { margin-top: 0; }

ul.forums, ul.topics {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1), 0 0 2px rgba(0,0,0,0.1);
    display: block;
    line-height: 22px;
    margin-top: 6px;
}

.topiclist .row {
    border-color: #f0f0f0;
    border-style: solid;
    border-width: 1px 0 0;
}

ul.topiclist.topics dd { padding: 8px 0; }

ul.topics .row dd.dterm, ul.topics .row dt { padding: 9px 18px 9px 30px; }

ul.forums dl.icon dd.dterm > div {
    margin-left: 30px!important;
    color: #777;
}

dd.dterm > div br { display: none; }

a.forumtitle:link,
a.forumtitle:visited,
a.topictitle:link,
a.topictitle:visited {
    color: #263238;
    margin-bottom: 1%;
}

dd.posts, dd.topics, dd.views { font-size: 16px; }

dd.posts span, dd.topics span, dd.views span {
    clear: both;
    color: #797979;
    display: block;
    font-size: 13px;
}

dd.lastpost span br:nth-child(3) { display: none!important; }

dd.lastpost span.color-groups { float: none!important; }

.lastpost-avatar { padding: 0 18px 0 0; }

.lastpost-avatar:after { top: 0; }

dd.lastpost > span > strong:before {
    content: "por";
    font-weight: 300;
    margin: 0 5px;
}

/*-- Forum Header --*/
.sub-header-info { width: 100%; }

h1.page-title {
    display: block;
    font-size: 30px;
    font-weight: 400;
    margin: 0 0 16px;
}

.sub-header-path {
    background-color: #263238;
    border-radius: 3px;
    clear: both;
    color: #fff;
    display: inline-block;
    font-size: 0;
    margin-bottom: 22px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.sub-header-path a {
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    padding: 9px 16px;
    position: relative;
}

.sub-header-path a:first-child { padding: 9px 16px!important; }

.sub-header-path a + a { margin-left: 0; }

.sub-header-path a + a:before {
    font-size: 16px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate3d(-50%,-50%,0);
}

.sub-header-path a:hover { background-color: rgba(0,0,0,0.44); }

.sub-header-path a:last-child:after {
    bottom: 0;
    box-shadow: 0 0 11px 16px #263238;
    content: "";
    display: block;
    position: absolute;
    right: -5px;
    top: 0;
    transition: all .16s ease;
    width: 5px;
}

.sub-header-path a:hover:after {
    -ms-filter: brightness(50%);
    -webkit-filter: brightness(50%);
    filter: brightness(50%);
}

.topic-actions-buttons > a, .topic-actions-buttons > span { margin: 0 0 0 18px; }

.plus-menu-wrap { float: left; }

.topic-actions-buttons #plus_menu {
    left: auto!important;
    right: auto!important;
}

/*--- TÓPICOS ---*/
.online:before { display: none; }

.profile-icons { padding-top: 5px!important; }

.profile-icons a {
    background-color: rgba(0,0,0,.7);
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 14px;
    height: auto;
    transition: .2s ease;
}

.profile-icons a:hover { background-color: #3793ff; }

.postprofile {
    border: 1px solid #f0f0f0;
    border-top: 0;
    border-left-width: 7px;
    border-radius: 3px 0 0 3px;
    width: 250px;
}

.postprofile:before {
    content: url(http://habboemotion.com/resources/images/icons/offline.gif);
    left: 5px;
    position: absolute;
    top: 5px;
}

.online .postprofile:before { content: url(http://habboemotion.com/resources/images/icons/online.gif); }

.postprofile-name {
    font-size: 16px;
    margin-top: 5%;
}

.postprofile-avatar { margin: 10px 0; }

.postprofile-avatar img {
    border-radius: 0;
    height: auto;
    width: 160px;
}

.postprofile-rank {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.postprofile-info {
    border-top: 1px solid #ddd;
    padding-top: 5%;
}

.postbody {
    margin-left: 250px;
    position: relative;
}

.postbody .content { margin-top: 5%; }

.topic-date {
    background-color: #f5f5f5;
    border-radius: 0 3px 0 0;
    overflow: hidden;
    padding: 8px 25px!important;
    opacity: 1!important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.topic-date span {
    color: rgba(0,0,0,.44);
    display: block;
    float: left;
    font-size: 13px;
    padding-top: 5px;
}

.topic-actions .right a img:hover { opacity: .8; }

.quickreply .h3 { display: none; }

/*--- CITAR, CODEBOX E SPOILER ---*/
blockquote {
    padding: 8px 16px 8px 10px;
    border-radius: 3px;
    border-style: solid;
    border-width: 0 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
    background-color: transparent;
    border-width: 1px 1px 1px 6px;
}

blockquote:before, .codebox:before { display: none!important; }

blockquote cite {
    color: rgba(0,0,0,0.44);
    margin-bottom: 3px;
}

.codebox {
    background-color: #354147!important;
    border-color: rgba(0,0,0,0.44)!important;
    border-radius: 3px!important;
    color: #FFF;
    font-size: 14px!important;
    line-height: 1.5!important;
    padding: 8px 16px 8px 10px!important;
}

.codebox .fa-code-copy-button {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #fff;
}

.codebox:not(.spoiler) dt {
    font-size: 1.3rem!important;
    text-align: left!important;
}

.codebox dt {
    color: rgba(255,255,255,0.44)!important;
    margin-bottom: 3px!important;
    border-bottom: none!important;
}

.spoiler_content .codebox:not(.spoiler) dt {
    color: rgba(255,255,255,0.44)!important;
    background-color: transparent;
}

.spoiler_content .codebox dt:after { display: none; }

.codebox code {
    max-height: 400px!important;
    white-space: nowrap!important;
    color: #e6e1dc!important;
    margin: 0!important;
    font-size: 15px!important;
}

.hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute, .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote,
.hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-keyword, .hljs-selector-tag, .hljs-type {
    color: #fff!important;
}

.spoiler {
    border: none!important;
    background-color: transparent!important;
    padding: 0!important;
    color: #212121;
}

.spoiler dt {
    background-color: rgba(0,0,0,0.22);
    border-radius: 3px;
    padding: 6px 11px;
    position: relative;
    color: #263238!important;
    font-size: 15px!important;
}

.spoiler dt:after, .spoiler_content .spoiler dt:after {
    content: "\f104";
    font-family: "IonIcons";
    line-height: 36px;
    pointer-events: none;
    position: absolute;
    right: 11px;
    top: 0;
}

.spoiler_content {
    border-left: 3px solid rgba(0,0,0,0.22);
    display: none;
    margin-top: 6px;
    padding-left: 22px!important;
    padding-bottom: 20px;
    padding: 2px;
}

/*--- OUTROS ELEMENTOS BBCODES ---*/
#preview .postbody table:not(.info-table),
#preview .postbody td,
div[class*='post--'] .postbody table:not(.info-table),
div[class*='post--'] .postbody td { border: solid 1px #c2c2c2!important; }

#preview .postbody .info-table,
#preview .postbody .info-table td,
div[class*='post--'] .postbody .info-table,
div[class*='post--'] .postbody .info-table td { border: none!important; }

hr { border-top-color: #444; }

.postbody .content table {
    border-collapse: collapse;
    border: solid 1px #c2c2c2;
    text-align: center;
    width: -webkit-fill-available;
}
.postbody .content table tr {
    border-bottom: solid 1px #d0d0d0;
}
.postbody .content table td, .postbody .content table th {
    padding: 15px 15px;
    border: none;
}

/*--- BLOCOS DE INFORMAÇÕES ---*/
.block {
    background-color: #FFF;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1), 0 0 2px rgba(0,0,0,0.1);
    font-size: 13px;
    margin: 22px 0;
    padding: 16px;
    font-family: Open Sans, Arial, sans-serif;
}

.block.user-in-forum br { display: none; }

.block .h3 {
    display: block;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
    margin-top: 0;
    border: none;
}

.block .h3 i {
    display: block;
    float: left;
    height: 28px;
    line-height: 28px;
    margin-right: 8px;
    color: #3F51B5;
}

/*-- Legenda --*/
.block .legend { font-size: 0px; }

.block .legend b a {
    font-size: 13px;
    font-weight: 600;
}

.block .legend b a::after {
    content: ", ";
    font-weight: 400;
    color: #000;
}

.block .legend b:last-child a::after { content: ""; }


/*  FOOTER
**===================*/
.statistics-item strong a span, .statistics-item a:link, .statistics-item a:visited { color: #fff!important; }

.footerbar-system { padding: 20px 0; }

/**
 * Definições Iniciais:
 */
 
.fa-footer,
.fa-footer * { box-sizing: border-box; }
 
.fa-footer {
    background-color: #212529;
    font-family: "Segoe UI", "Open Sans", "Helvetica Neue", "Ubuntu", "Helvetica", "Arial", "Trebuchet MS", sans-serif;
    font-size: 14px;
    color: #a0a8b0;
    line-height: 1.5;
}
 
/**
 * Tags Genêricas:
 */
 
.fa-footer a {
    text-decoration: none;
    color: #0786e7;
    transition: all 200ms linear;
}
 
.fa-footer a:hover {
    border-bottom: solid 1px #0786e7;
    color: #fff;
}
 
/**
 * Sistema de Grid e ajustes das colunas genêricas:
 */
 
.fa-footer .fa-footer-row {
    display: flex;
    flex-direction: row;
    padding: 0 15px;
}
 
.fa-footer .fa-footer-row .fa-footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    padding: 15px 0;
    min-width: 200px;
}
 
.fa-footer .fa-footer-row .fa-footer-col:last-child { margin-right: 10px; }
 
.fa-footer .fa-footer-row .fa-footer-col .lead {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 300;
    color: #00fb42;
    margin-bottom: 10px;
}
 
.fa-footer .fa-footer-row .fa-footer-col p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}
 
/**
 * Ajustes para a a coluna primária:
 */
 
.fa-footer .fa-footer-row .fa-primary-footer-col {
    border-right: solid 1px #2a2e32;
    position: relative;
    flex-grow: 1;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo img {
    width: auto;
    margin: 0 30px;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top {
    position: absolute;
    right: -20px;
    bottom: -20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #212529;
    border: solid 1px #2a2e32;
    color: #00fb42;
    font-size: 23px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 1px 1px 2px rgba(11, 13, 15, 0.84);
    cursor: pointer;
    transition: all 100ms linear;
}
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top .fa { margin-top: -3px; }
 
.fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top:hover {
    background-color: #0786e7;
    color: #fff;
}
 
/**
 * Atribuição final:
 */
 
.fa-footer .fa-footer-attr {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    border-top: solid 1px #2a2e32;
    background-color: #24282b;
}
 
/**
 * Ajustes para o footer do FA:
 */
 
#page-footer {
    background-color: #212529;
    border-top: solid 1px #2a2e32;
    border-bottom: solid 1px #2a2e32;
}
 
.statistics {
    box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.37);
}
 
/**
 * Responsive:
 */
 
@media screen and (max-width: 1000px) {
  .fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo img {
    margin: 0px;
  }
}
 
@media screen and (max-width: 850px) {
  .fa-footer .fa-footer-row {
    flex-wrap: wrap;
  }
 
  .fa-footer .fa-footer-row .fa-primary-footer-col {
    border-right: none;
  }
 
  .fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-logo {
    margin-bottom: 2%;
  }
 
  .fa-footer .fa-footer-row .fa-primary-footer-col .fa-footer-back-to-top {
    right: auto;
  }
 
  .fa-footer .fa-footer-row .fa-footer-col:nth-child(2) {
    margin-top: 2%;
  }
}

.admin-link {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 999;
}

.admin-link a {
    padding: 10px;
    background-color: #0a5f8c;
    border-radius: 3px;
    transition: .2s ease;
    color: #fff;
    font-size: 13px;
}

.admin-link a:hover { background-color: #182a38; }

.admin-link br { display: none; }


/*  PÁGINAS
**===================*/

/*---- MEMBROS ----*/
.forumbg-table table thead tr { background-color: #387852; }

/*---- REGISTRO ----*/
.instruction {
    width: 80%;
    height: 160px;
    position: relative;
    background-color: #8D6CAB;
    background-image: url(https://i.imgur.com/axuzFM4.png);
    border-radius: 5px;
    margin: auto;
}
.instruction:before {
    width: 170px;
    height: 160px;
    position: absolute;
    right: 0;
    top: 0;
    background-image: url(https://i.imgur.com/mC9g8Wg.png);
    border-radius: 0 5px 5px 0;
    content: '';
}
.instruction .frank {
    width: 110px;
    height: 143px;
    margin: 17px 0 0 17px;
    background-image: url(https://i.imgur.com/smFt8fk.png);
    float: left;
}
.instruction .cont {
    width: 540px;
    height: 110px;
    margin: 20px 0 0 11px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-size: 12px;
    color: #FFF;
    float: left;
}
.instruction .cont p:first-of-type {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}


/*  USERS & GRUPOS
**===================*/
.rank{
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: 36px;
    width: 160px;
    margin: 5px auto;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.14),inset 0 0 1px 1px rgba(0,0,0,.1);
    text-align: center;
    line-height: 33px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
/* Ranks Administrativos*/
.rank.Supr{background-image: linear-gradient(124deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000ff, #4b0082, #8f00ff);background-size: 1800% 1800%;animation: rainbow 5s linear infinite;}
.rank.Supr:before{content: "\f521";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.adm{background-image: radial-gradient(circle, #ff0000, #db0a10, #b71317, #941719, #711919);background-size: 1800% 1800%;animation: rainbow 6s ease infinite;}
.rank.adm:before{content: "\f085";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.cor{background-image: linear-gradient(to right, #666666, #5c5c5c, #525252, #484848, #3f3f3f, #373737, #2f2f2f, #282828, #202020, #181818, #0e0e0e, #000000);}
.rank.cor:before{content: "\f0e3";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.bope{background: linear-gradient(to right, #000000 0%, #4b0303 100%); color:#9e0000;}
.rank.bope:before{content: "\f714";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.dsn{background: linear-gradient(to right, #000000, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #c0c0c0, #FFFFFF);background-size: 1800% 1800%;animation: rainbow 10s ease infinite;}
.rank.dsn:before{content: "\f121";margin-right: 5px;font-family: "Font Awesome 5 Free";}
@keyframes rainbow {0% {background-position: 0% 82%;} 50% {background-position: 100% 19%;} 100% {background-position: 0% 82%;}}
.rank.mai{background: linear-gradient(to left, #1D399e 0%, #02a5ee 100%);}
.rank.mai:before{content: "\f2c2";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.p2{background-image: linear-gradient(to right, #000000, #004002, #040038, #a98a01, #115000);color: #fff09c;background-size: 1800% 1800%;animation: rainbow 6s linear infinite;}
.rank.p2:before {content: "\f21b";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ap{background-image: linear-gradient(to left, #a0b8b5, #879a97, #6f7d7a, #57615f, #414645);}
.rank.ap:before {content: "\f274";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.cce{background: linear-gradient(to left ,#000000 25%, #32a808 55%);}
.rank.cce:before {content: "\f24e";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.cpos{background: linear-gradient(to right, #858A8A 0%, #858A8A 74%);}
.rank.cpos:before {content: "\f02d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.jr{background-image: linear-gradient(to right, #5c23be, #5139cb, #00731F, #3059e2, #1267eb);}
.rank.jr:before{content: "\f1ea";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.exo{background-color: #000000; color: #e20303}
.rank.exo:before{content: "\f714";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.exo:after{content: "\f714";margin-left: 5px;font-family: "Font Awesome 5 Free";}
.rank.at{background-image: radial-gradient(circle, #00731F, #00731F, #00C735, #00731F, #00731F);}
.rank.at:before {content: "\f201";margin-right: 5px;font-family: "Font Awesome 5 Free";}

/*Ranks dos Usuários*/
.rank.mbr{background-color:#78866b}
.rank.mbr:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ins{background-color:#964B00;}
.rank.ins:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.sup{background-color:#2BCF02;}
.rank.sup:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.tre{background-color:#F21818;}
.rank.tre:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.prof{background-color:#821F82;}
.rank.prof:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.rond{background-color:#FF8400;}
.rank.rond:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.efe{background-color:#0DDEFA;}
.rank.efe:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ldr{background: linear-gradient(to right, #009688 0%, #7986CB 100%);}
.rank.ldr:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ref{background: linear-gradient(to right, #ccab04 0%, #904e00 100%);}
.rank.ref:before{content: "\f5a2";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.com{background-color:#78866b}
.rank.com:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.trg{background-color:#78866b}
.rank.trg:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.lde{background-color:#78866b}
.rank.lde:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}

a[style*="#4C0082"], span[style*="#4C0082"] {
    background: repeating-linear-gradient(to right, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000ff, #4b0082, #8f00ff);
    -webkit-background-clip: text;
    background-size: 1800% 1800%;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s ease infinite;
}
div [style*="#4C0082"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f3ed';
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}


a[style*="#0A0A0A"], span[style*="#0A0A0A"] {
    font-weight: bold;
}
div [style*="#0A0A0A"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f24e';
  color: #0A0A0A;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}

a[style*="#629975"], span[style*="#629975"] {
    background: linear-gradient(to left ,#000000 25%, #32a808 55%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
div [style*="#629975"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f24e';
  color: #629975;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}
a[style*="#1E6104"], span[style*="#1E6104"] {
    font-weight: bold;
}
div [style*="#1E6104"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f21b';
  color: #1E6104;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}
a[style*="#AD1818"], span[style*="#AD1818"] {
    font-weight: bold;
}
div [style*="#AD1818"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f714';
  color:#AD1818;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}
a[style*="#00BF9F"], span[style*="#00BF9F"] {
    font-weight: bold;
}
div [style*="#00BF9F"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f2c2';
  color:#00BF9F;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}
a[style*="#858A8A"], span[style*="#858A8A"] {
    font-weight: bold;
}
div [style*="#858A8A"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f187';
  color:#858A8A;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 12px;
}

a[style*="#00731F"], span[style*="#00731F"] {
    font-weight: bold;
}
div [style*="#00731F"]::before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f201';
  color: #00731F;
  margin-right: 3px;
  font-weight: 1000;
  font-size: 13px;
}


/** Personalização de Usuários **/

a[href="/u13708"] {
 font-weight: bold;
 color: #196B04!important;
}
a[href="/u13053"] {
 font-weight: bold;
 color: #0b46c9!important;
}
a[href="/u13053"]:not(.profile-icon):before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f1ea';
  color:#0b46c9;
  margin-right: 2px;
  font-weight: 1000;
}
.postprofile-avatar a[href="/u13053"]:before { display: none; }

a[href="/u13520"] {
 font-weight: bold;
  background: linear-gradient(to right, #009688 0%, #7986CB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
a[href="/u13520"]:not(.profile-icon):before {
  font-family: "Font Awesome 5 Free"; 
  content:'\f075';
  margin-right: 2px;
  font-weight: 1000;
}
.postprofile-avatar a[href="/u13520"]:before { display: none; }

a[href="/u12594"] {
 font-weight: bold;
 color: #F011AD!important;
}

/*Mod Tools*/
.success a, .information a, .warn a, .alert a, .custom a, .dev a, .jrevo a, .admin a, .aud a{color: #ecf0f1!important;text-decoration: underline!important;}
.success {/*color: #270;*/background-color: #00a300;}
.success tr:first-child::before {content: '\F058 ';font-family: "FontAwesome";}
.alert {/*color: #9F6000;*/background-color: #ffc40d;}
.alert tr::before {content: '\F071 ';font-family: FontAwesome;}
.warn {/*color: #D8000C;*/background-color: #e54d42;}
.warn tr::before {content: '\F057 ';font-family: FontAwesome;}
.information {/*color: #059;*/background-color: #3a99d9;}
.information tr::before {content: '\F05a ';font-family: FontAwesome;}
.custom {background-color: #2C3E50;}
.custom tr::before {content: '\F069 ';font-family: FontAwesome;}
.dev {background-color: #3296FA;}
.dev tr::before {content: '\F121 ';font-family: FontAwesome;}
.jrevo {background-color: #00468c;}
.jrevo tr::before {content: '\F1ea ';font-family: FontAwesome;}
.admin {background-color: #00468c;}
.admin tr::before {content: '\f013 ';font-family: FontAwesome;}
.audi {background-color: #005C03;}
.audi tr::before {content: '\F201 ';font-family: FontAwesome;}
.info-table.dev {background: linear-gradient(to right, #000000, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #c0c0c0, #FFFFFF);background-size: 1800% 1800%;animation: rainbow 10s ease infinite;}
.info-table.admin {background-image: radial-gradient(circle, #ff0000, #db0a10, #b71317, #941719, #711919);background-size: 1800% 1800%;animation: rainbow 6s ease infinite;}

.mod_groups {
    line-height: 1.5;
    font-size: 11px;
    font-weight: 400;
}
.mod_editor_section {
    background: #eceff1;
    padding: 5px;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
}
.copyright_e {
    font-size: 9px;
    color: black;
}
.mod_editor_message {
    padding: 2px 5px;
    text-align: left;
}
.mod_groups {
    height: 150px;
    overflow-y: scroll;
}
.mod_groups li {
    list-style-type: none;
}

/*SCEDITOR*/

.sceditor-button-staff { position: relative;}
.mod_box {
    top: 73px;
    -moz-background-clip: padding;
    background: #fafafa;
    background-clip: padding-box;
    border: 1px solid #eee;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    color: #666;
    width: 200px;
    line-height: 1;
    position: absolute;
}
#quick_reply .mod_box {
    top: 35px;
}
.sceditor-button-staff.disabled div {
    opacity: 1.0 !important;
    filter: alpha(opacity=100) !important;
}

.sceditor-button, .sceditor-button div {
    -webkit-box-sizing: content-box!important;
    -moz-box-sizing: content-box!important;
    box-sizing: content-box!important;
}
.sceditor-button {position: relative;}
a.sceditor-button {padding: .7em;}
.sceditor-button * {
  text-indent: initial!important;
  color: #333!important;
  line-height: 15px!important;
}
.sceditor-button div {
  font-size: 0px!important;
  background-image: none!important;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sceditor-button div:before {
  font-size: 15px!important;
  font-family: FontAwesome;
  text-indent: initial!important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 500!important;
}
.sceditor-button-bold div:before {content: "\f032";}
.sceditor-button-italic div:before {content: "\f033";}
.sceditor-button-underline div:before {content: "\f0cd";}
.sceditor-button-strike div:before {content: "\f0cc";}
.sceditor-button-left div:before {content: "\f036";}
.sceditor-button-center div:before {content: "\f037";}
.sceditor-button-right div:before {content: "\f038";}
.sceditor-button-justify div:before {content: "\f039";}
.sceditor-button-bulletlist div:before {content: "\f0ca";}
.sceditor-button-orderedlist div:before {content: "\f0cb";}
.sceditor-button-horizontalrule div:before {content: "\f068";}
.sceditor-button-quote div:before {content: "\f10d";}
.sceditor-button-code div:before {content: "\f1c9";}
.sceditor-button-faspoiler div:before {content: "\f146";}
.sceditor-button-fahide div:before {content: "\f070";}
.sceditor-button-table div:before {content: "\f0ce";}
.sceditor-button-servimg div:before {content: "\f03e";}
.sceditor-button-image div:before {content: "\f1c5";}
.sceditor-button-link div:before {content: "\f0c1";}
.sceditor-button-youtube div:before {content: "\f166";}
.sceditor-button-dailymotion {display: none;}
.sceditor-button-flash div:before {content: "\f008";}
.sceditor-button-headers div:before {content: "\f1dc";}
.sceditor-button-size div:before {content: "\f034";}
.sceditor-button-color div:before {content: "\f1fc";}
.sceditor-button-font div:before {content: "\f031";}
.sceditor-button-removeformat div:before {content: "\f12d";}
.sceditor-button-more div:before {content: "\f067";}
.sceditor-button-subscript div:before {content: "\f12c";}
.sceditor-button-superscript div:before {content: "\f12b";}
.sceditor-button-fascroll div:before {content: "\f060";}
.sceditor-button-faupdown div:before {content: "\f062";}
.sceditor-button-farand div:before {content: "\f074";}
.sceditor-button-date div:before {content: "\f133";}
.sceditor-button-time div:before {content: "\f017";}
.sceditor-button-pastetext div:before {content: "\f0ea";}
.sceditor-button-source div:before {content: "\f016";}
.sceditor-button-dailymotion div:before {content: "\f03d";}
.sceditor-button-staff div:before {content: "\f132"; color: #C0392B;}
.success, .information, .warn, .alert, .custom, .dev, .jrevo, .admin, .audi {
  width: 95%;
    height: auto;
    padding: 1.4em;
    margin: 1em;
    /*border: 2px solid;*/
    text-align: left;
    border-radius: 2px;
    font-weight: 300;
    color: white;
}

/*USUARIOS SCRIPT */
#user-hoverbox:before {
border-bottom: 5px solid #363636;
border-left: 5px solid rgba(0, 0, 0, 0);
border-right: 5px solid rgba(0, 0, 0, 0);
content: "";
height: 0;
left: 12px;
position: absolute;
top: -4px;
width: 0;
}
#user-hoverbox {
display: initial !important;
margin-left: 5px;
min-width: 160px;
padding-top: 1px;
position: absolute;
z-index: 999;
}
#user-hoverbox-inner {
border: 1px solid #000000;
border-radius: 2px 2px 2px 2px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.31);
width: 210px;
}
#user-hoverbox #user-hoverbox-inner a {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.87);
color: #DADADA;
border-bottom: 1px solid #AAAAAA;
display: block;
font-size: 11px;
padding: 8px;
text-align: left;
text-shadow: none !important;
z-index: 999;
}
.pun #page-body #user-hoverbox #user-hoverbox-inner a {
font-style: normal;
font-weight: 400;
}
#user-hoverbox #user-hoverbox-inner a:hover {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.93);
color: #FCFCFC;
}

/*---- Emblemas ----*/
#field_id2 br { display:none; }
 
#field_id2 div[alt], .postprofile-info div[alt] {
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    border-radius: 3px;
    display: inline-block;
    height: 45px;
    margin-top: 5px;
    margin-right: 6px;
    position: relative;
    width: 45px;
}
 
#field_id2 div[alt]:before, .postprofile-info div[alt]:before {
    content: attr(alt);
    position: absolute;
    top: -60%;
    left: 50%;
    white-space: nowrap;
    transform: translate(-50%);
    background-color: rgba(0,0,0,0.9);
    color: #fff;
    padding: 0 10px;
    border-radius: 3px;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    line-height: 24px;
    transition: 250ms opacity;
    z-index:998!important;
}

#field_id2 div[alt]:after, .postprofile-info div[alt]:after {
    position: absolute;
    top: -8px;
    left: calc(50% - 7px);
    content: '';
    -webkit-filter: drop-shadow(0 3px 9px rgba(0,0,0,0.18));
    filter: drop-shadow(0 3px 9px rgba(0,0,0,0.18));
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0,0,0,0.9);
    opacity: 0;
    transition: 250ms opacity;
    z-index:998!important;
}
 
#field_id2 div[alt]:hover:before,
.postprofile-info div[alt]:hover:before,
#field_id2 div[alt]:hover:after,
.postprofile-info div[alt]:hover:after { opacity: 1; }

.postprofile-info div[alt] + br { display: none; }

.postprofile-info .label { margin-bottom: 10px; }

.show-more-em {
    padding: 9px 16px;
    background-color: #263238;
    border-radius: 3px;
    font-size: 14px;
    color: #fff!important;
    font-weight: 600;
}
.show-more-em:hover { background-color: rgba(0,0,0,0.44); }
        .fade {
            display:inline-block;
            background: -moz-linear-gradient(left, rgb(235,234,221) 0%, rgba(235,234,221,0) 100%);
            background-image: -webkit-gradient(linear, left top, right top, color-stop(0.00, rgb(235,234,221)), color-stop(1.00, rgba(235,234,221,0)));
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ebeadd, endColorstr=#00ebeadd, GradientType=1);
            -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ebeadd, endColorstr=#00ebeadd, GradientType=1)";
        }
        .blur {
            display:inline-block;
            color:#ddd;
            text-shadow: 0 0 2px #aaaaaa;
            text-shadow: 0 0 4px #aaaaaa;
            text-shadow: 0 0 6px #aaaaaa;
            -ms-filter: "progid:DXImageTransform.Microsoft.Blur(pixelradius=2)";
            filter:
                progid:DXImageTransform.Microsoft.MotionBlur(strength=1,direction=310)
                progid:DXImageTransform.Microsoft.Blur(pixelradius=2);
        }
        .flipH {
            display:inline-block;
            -moz-transform:scale(-1,1);
            -o-transform:scale(-1,1);
            -webkit-transform:scale(-1,1);
            transform:scale(-1,1);
            -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=-1, M12=0, M21=0, M22=1, SizingMethod='auto expand')";
            filter: progid:DXImageTransform.Microsoft.Matrix(
                M11=-1,
                M12=0,
                M21=0,
                M22=1,
                SizingMethod="auto expand");
        }
        .flipV {
            display:inline-block;
            -moz-transform:scale(1,-1);
            -o-transform:scale(1,-1);
            -webkit-transform:scale(1,-1);
            transform:scale(1,-1);
            -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22=-1, SizingMethod='auto expand')";
            filter: progid:DXImageTransform.Microsoft.Matrix(
                M11=1,
                M12=0,
                M21=0,
                M22=-1,
                SizingMethod="auto expand");
}
Strilk
Strilk
****

Membro desde : 23/01/2018
Mensagens : 265
Pontos : 386

http://portal-grm.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 11.03.20 22:48

Este ai bugou a maioria das coisas..
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Chagas 11.03.20 23:11

Saudações,

Vamos fazer o seguinte? Reverta tudo que foi dito nesse tópico e comece a seguir essas instruções:

Crie um jQuery no investimento em todas páginas:

Código:
/**
 * Automatic rank.
 *
 * @author  Luiz Felipe F. (luuuiiiz.)
 * @version  1.0.0
 * @license  MIT
 */

(function ($) {
  'use strict';

  var ranks = [
    {
      color: '#3798FA',
      rank: {
        name: 'Desenvolvedor',
        className: 'rank dsn'
      }
    },
    {
      color: '#990000',
      rank: {
        name: 'Administrador',
        className: 'rank adm'
      }
    },
    {
      color: '#0A0A0A',
      rank: {
        name: 'Corregedor',
        className: 'rank cor'
      }
    },
    {
      color: '#629975',
      rank: {
        name: 'Diretor',
        className: 'rank dire'
      }
    },
    {
    color: '#1E6104',
    rank: {
      name: 'Serviço Secreto - P2',
      className: 'rank p2'
      }
    },
    {
      color: '#a62323',
      rank: {
        name: 'G A T E',
        className: 'rank gate'
      }
    },
    {
      color: '#662020',
      rank: {
        name: 'Esquadrão',
        className: 'rank ece'
      }
    },
    {
      color: '#1D399E',
      rank: {
        name: 'Setor Administrativo',
        className: 'rank crh'
      }
    },
    {
      color: '#A0B8B5',
      rank: {
        name: 'Relações Públicas',
        className: 'rank srp'
      }
    },
    {
      color: '#3BD478',
      rank: {
        name: 'C.F.O',
        className: 'rank cfo'
      }
    },
   
    {
      color: '#964B00',
      rank: {
        name: 'Instrutores',
        className: 'rank ins'
      }
    },
   
    {
      color: '#2BCF02',
      rank: {
        name: 'Supervisores',
        className: 'rank sup'
      }
    },
   
    {
      color: '#F21818',
      rank: {
        name: 'Treinadores',
        className: 'rank tre'
      }
    },
   
    {
      color: '#821F82',
      rank: {
        name: 'Professores',
        className: 'rank prof'
      }
    },
   
    {
      color: '#FF8400',
      rank: {
        name: 'Org. Rondas',
        className: 'rank rond'
      }
    },
   
    {
      color: '#0DDEFA',
      rank: {
        name: 'Esc. Form. Exec.',
        className: 'rank efe'
      }
    }
  ];

  var exceptions = [
    "rank adm",
    "rank supr",
    "rank p2",
    "rank gate"
  ];

  /**
  * Iterate over the rank array.
  *
  * @param  {string} color
  * @param  {object<jQuery>} $originalRank
  * @return {void}
  */
  function iterate(color, $originalRank) {
    var $except = $originalRank.attr('class');
    var $is_except = false;
   
    $.each(exceptions, function(index, exception) {
     
      if($except == exception) {
        $is_except = true;
        return;
      }
    });
   
    if($is_except) return;

    $.each(ranks, function () {     
      var $dummy = $('<span>')
        .css('color', this.color);

      // If the color is not the same, pass to the next iteration:
      if ($dummy.css('color') !== color) {
        return;
      }

      // Create the rank element:
      var $newRank = $('<div>', {
        'class': 'lf-custom-rank',
      })
        .text(this.rank.name)
        .addClass(this.rank.className);

      $originalRank.replaceWith($newRank);
    });
  }

  $(function () {
    // Topics:
    $('.post .postprofile').each(function () {
      var $this = $(this);
      var $user = $this.find('.postprofile-name > a[href] > span[style]');

      if (!$user.length) {
        $this.css('border-left-color', '#f0f0f0');
        return;
      }
     
      iterate($user.css('color'), $this.find('.postprofile-rank .rank'));
     
      $this.css('border-left-color', $user.css('color'));
    });

    // Profile:
    if (!/^\/u\d+$/.test(location.pathname)) {
      return;
    }

    var $profile = $('#profile-advanced-right');
    var $user = $profile.find('.module > .h3 > span[style]');

      if (!$user.length) {
        return;
      }

    iterate($user.css('color'), $profile.find('.mod-login-rank > br + .rank'));
  });
})(jQuery);

Adicione esse código na folha de estilo CSS:

Código:

/*  USERS & GRUPOS
**===================*/
.rank{
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: 36px;
    width: 160px;
    margin: 5px auto;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.14),inset 0 0 1px 1px rgba(0,0,0,.1);
    text-align: center;
    line-height: 33px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
/* Ranks Administrativos*/
.rank.supr{background-image: linear-gradient(124deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000ff, #4b0082, #8f00ff);background-size: 1800% 1800%;animation: rainbow 5s linear infinite;}
.rank.supr:before{content: "\f521";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.adm{background-image: radial-gradient(circle, #ff0000, #db0a10, #b71317, #941719, #711919);background-size: 1800% 1800%;animation: rainbow 6s ease infinite;}
.rank.adm:before{content: "\f085";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.cor{background-image: linear-gradient(to right, #666666, #5c5c5c, #525252, #484848, #3f3f3f, #373737, #2f2f2f, #282828, #202020, #181818, #0e0e0e, #000000);}
.rank.cor:before{content: "\f0e3";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.gate{background: linear-gradient(to right, #000000 0%, #4b0303 100%); color:#9e0000;}
.rank.gate:before{content: "\f714";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.dsn{background: linear-gradient(to right, #000000, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #c0c0c0, #FFFFFF);background-size: 1800% 1800%;animation: rainbow 10s ease infinite;}
.rank.dsn:before{content: "\f121";margin-right: 5px;font-family: "Font Awesome 5 Free";}
@keyframes rainbow {0% {background-position: 0% 82%;} 50% {background-position: 100% 19%;} 100% {background-position: 0% 82%;}}
.rank.crh{background: linear-gradient(to right, #1D399e 0%, #02a5ee 100%);}
.rank.crh:before{content: "\f2c2";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.p2{background-image: linear-gradient(to right, #000000, #004002, #040038, #a98a01, #115000);color: #fff09c;background-size: 1800% 1800%;animation: rainbow 6s linear infinite;}
.rank.p2:before {content: "\f21b";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.srp{background-image: linear-gradient(to left, #a0b8b5, #879a97, #6f7d7a, #57615f, #414645);}
.rank.srp:before {content: "\f274";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.dire{background: linear-gradient(to left ,#000000 25%, #32a808 55%);}
.rank.dire:before {content: "\f24e";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.cfo{background: linear-gradient(to right, #3BD478 0%, #01baef 74%);}
.rank.cfo:before {content: "\f02d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.jr{background-image: linear-gradient(to right, #5c23be, #5139cb, #424ad7, #3059e2, #1267eb);}
.rank.jr:before{content: "\f1ea";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.exo{background-color: #000000; color: #e20303}
.rank.exo:before{content: "\f714";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.exo:after{content: "\f714";margin-left: 5px;font-family: "Font Awesome 5 Free";}
.rank.aud{background-image: radial-gradient(circle, #00c400, #0ea200, #118100, #106200, #0c4400); color:#fdd050}
.rank.aud:before {content: "\f201";margin-right: 5px;font-family: "Font Awesome 5 Free";}

/*Ranks dos Usuários*/
.rank.mbr{background-color:#78866b}
.rank.mbr:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ins{background-color:#964B00;}
.rank.ins:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.sup{background-color:#2BCF02;}
.rank.sup:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.tre{background-color:#F21818;}
.rank.tre:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.prof{background-color:#821F82;}
.rank.prof:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.rond{background-color:#FF8400;}
.rank.rond:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.efe{background-color:#0DDEFA;}
.rank.efe:before{content: "\f19d";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ldr{background: linear-gradient(to right, #009688 0%, #7986CB 100%);}
.rank.ldr:before{content: "\f4ad";margin-right: 5px;font-family: "Font Awesome 5 Free";}
.rank.ref{background: linear-gradient(to right, #ccab04 0%, #904e00 100%);}
.rank.ref:before{content: "\f5a2";margin-right: 5px;font-family: "Font Awesome 5 Free";}

Agora vou explicar como funciona:


color: '#821F82',
rank: {
name: 'Professores',
className: 'rank prof'
}
},

"color" = cor do grupo respectivo que será setado automaticamente o rank;
"name" = nome do rank
"className" = nome da classe que dará estilo e estética ao rank;

é importante salientar que faça corretamente e tenha classnames em conexão,
por exemplo,

se for um cor preta e é do grupo da Corregedoria, será assim o código abaixo:


color: '#000',
rank: {
name: 'Corregedoria',
className: 'rank cor'
}
},

Assim ao código abaixo:


var exceptions = [
"rank adm",
"rank supr",
"rank p2",
"rank gate"
];

serve para fazer exceções de que não podem ser setados de jeito nenhum o rank automático, pois reforça que já tá configurado no painel de controle e caso tenha uma cor diferente.

Atenciosamente,
Wamki Rosa
Chagas
Chagas
Membro

Membro desde : 22/10/2015
Mensagens : 895
Pontos : 1102

https://pelotao.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 11.03.20 23:29

Fiz as alterações e não resultou em nada.
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Chagas 11.03.20 23:35

ThiagoM. escreveu:Fiz as alterações e não resultou em nada.

Saudações,

O senhor tem certeza que seguiu minhas instruções? Ativou a gestão de jQuerys? Pois é funcional.

Atenciosamente,
Wamki
Chagas
Chagas
Membro

Membro desde : 22/10/2015
Mensagens : 895
Pontos : 1102

https://pelotao.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 11.03.20 23:39

Sim, segui as instruções, e está ativado.
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Chagas 12.03.20 0:36

ThiagoM. escreveu:Sim, segui as instruções, e está ativado.

Saudações,

Se você tiver com um rank setado pelo painel de controle, não funcionará, pois deve estar em uma das exceções que supracitei. Verifique isso e vê se editou corretamente a cor do grupo, bem como tem que tomar cuidado para mexer com um jQuery, pois qualquer falta de vírgula estraga o código-fonte inteiro.

Se quiser facilidade, passe-me as cores de cada grupo, nomes e seus ranks respectivos, e desde que tenha classname na folha de estilo CSS.

Atenciosamente,
Wamki
Chagas
Chagas
Membro

Membro desde : 22/10/2015
Mensagens : 895
Pontos : 1102

https://pelotao.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 12.03.20 1:52

Se quiser facilidade, passe-me as cores de cada grupo, nomes e seus ranks respectivos, e desde que tenha classname na folha de estilo CSS.

Melhor você fazer então.

Nome: Corregedoria / Cor: #000000 / Rank: Corregedor
Nome: Batalhão de Operações Policiais Esp. / Cor: #800000 / Rank: BOPE
Nome: Recursos Humanos / Cor: #733417 / Rank: Recursos Humanos
Nome: Instrutores / Cor: #FF2929 / Rank: Instrutor

Somente estes.
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 13.03.20 2:14

@UP
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Chagas 13.03.20 22:05

Saudações,

Perdão pela demora, vamos continuar com o tópico! Crie um jQuery em investimento em todas páginas:

Código:
/**
 * Automatic rank.
 *
 * @author  Luiz Felipe F. (luuuiiiz.)
 * @version  1.0.0
 * @license  MIT
 */
 
(function ($) {
  'use strict';
 
  var ranks = [
    {
      color: '#000000',
      rank: {
        name: 'Corregedor',
        className: 'rank cor'
      }
    },
    {
      color: '#800000',
      rank: {
        name: 'B.O.P.E.',
        className: 'rank gate'
      }
    },
    {
      color: '#733417',
      rank: {
        name: 'Recursos Humanos',
        className: 'rank crh'
      }
    },
    {
      color: '#629975',
      rank: {
        name: 'Diretor',
        className: 'rank dire'
      }
    },
    {
    color: '#FF2929',
    rank: {
      name: 'Instrutores',
      className: 'rank ins'
      }
    }
  ];
 
  var exceptions = [
  ];
 
  /**
  * Iterate over the rank array.
  *
  * @param  {string} color
  * @param  {object<jQuery>} $originalRank
  * @return {void}
  */
  function iterate(color, $originalRank) {
    var $except = $originalRank.attr('class');
    var $is_except = false;
 
    $.each(exceptions, function(index, exception) {
   
      if($except == exception) {
        $is_except = true;
        return;
      }
    });
 
    if($is_except) return;
 
    $.each(ranks, function () {   
      var $dummy = $('<span>')
        .css('color', this.color);
 
      // If the color is not the same, pass to the next iteration:
      if ($dummy.css('color') !== color) {
        return;
      }
 
      // Create the rank element:
      var $newRank = $('<div>', {
        'class': 'lf-custom-rank',
      })
        .text(this.rank.name)
        .addClass(this.rank.className);
 
      $originalRank.replaceWith($newRank);
    });
  }
 
  $(function () {
    // Topics:
    $('.post .postprofile').each(function () {
      var $this = $(this);
      var $user = $this.find('.postprofile-name > a[href] > span[style]');
 
      if (!$user.length) {
        $this.css('border-left-color', '#f0f0f0');
        return;
      }
   
      iterate($user.css('color'), $this.find('.postprofile-rank .rank'));
   
      $this.css('border-left-color', $user.css('color'));
    });
 
    // Profile:
    if (!/^\/u\d+$/.test(location.pathname)) {
      return;
    }
 
    var $profile = $('#profile-advanced-right');
    var $user = $profile.find('.module > .h3 > span[style]');
 
      if (!$user.length) {
        return;
      }
 
    iterate($user.css('color'), $profile.find('.mod-login-rank > br + .rank'));
  });
})(jQuery);

Agora vá ao Painel de Controle seta1 Usuários & Grupos seta1 Ranks seta1 Administração de ranks

- caso tiver ranks, exclua tudo, (recomendado, preferencialmente);
- crie um novo rank que estará com o título:
Código:
<div class="rank mbr">Usuário</div>
com as configurações de não ser um rank especial e o número mínimo de mensagens: 0 e sem imagens, depois clique em Salvar.

- Mantenha a folha de estilo CSS que eu mandei;
- Caso não funcione, me mande uma conta teste que estarei vendo qual o conflito que estará causando com o JavaScript.

Atenciosamente,
Wamki
Chagas
Chagas
Membro

Membro desde : 22/10/2015
Mensagens : 895
Pontos : 1102

https://pelotao.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por ThiagoM. 14.03.20 0:53

Muito obrigado!
Pode fechar. Eu amo você
ThiagoM.
ThiagoM.
**

Membro desde : 03/05/2019
Mensagens : 59
Pontos : 89

https://temaforum.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Rank automático

Mensagem por Chagas 14.03.20 0:59

Questão resolvida

Esta questão foi dada como resolvida pelo seu autor, e por esse motivo será marcada como resolvida e movida para o arquivo de questões resolvidas desta área.
Chagas
Chagas
Membro

Membro desde : 22/10/2015
Mensagens : 895
Pontos : 1102

https://pelotao.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos