Tirar efeito do nick de cima do avatar.

2 participantes

Ver o tópico anterior Ver o tópico seguinte Ir para baixo

Tópico resolvido Tirar efeito do nick de cima do avatar.

Mensagem por Bruno_Michael 19.10.18 17:46

Detalhes da questão


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

Descrição


Bom conseguir ajusta como queria agora esse efeito em cima do avatar ta feio na estética.
Teria como deixar apenas no nick dessa parte, pois esta no avatar e no nick

http://prntscr.com/l8140v
Bruno_Michael

Bruno_Michael
****

Membro desde : 05/09/2013
Mensagens : 202
Pontos : 314

http://hassborn.forumeiros.com/forum

Ir para o topo Ir para baixo

Admineiro

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por tikky 19.10.18 17:54

Olá @Bruno_Michael,
Adicione na sua folha de estilo, o seguinte código:
Código:
a[href*="/u"] img {
    background: none!important;
}


Cordialmente,
pedxz.
tikky

tikky
Admineiro
Admineiro

Membro desde : 13/01/2017
Mensagens : 7806
Pontos : 9049

Ir para o topo Ir para baixo

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por Bruno_Michael 19.10.18 17:55

Não resultou.
Eu quero que o efeito fique, apenas não apareça no avatar.
Bruno_Michael

Bruno_Michael
****

Membro desde : 05/09/2013
Mensagens : 202
Pontos : 314

http://hassborn.forumeiros.com/forum

Ir para o topo Ir para baixo

Admineiro
  • 0

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por tikky 19.10.18 18:26

Sim, Sim eu percebi,
Olhe pensava que o Senhor estava a usar outro código; Poderia passa-me o código em uso Esportes
tikky

tikky
Admineiro
Admineiro

Membro desde : 13/01/2017
Mensagens : 7806
Pontos : 9049

Ir para o topo Ir para baixo

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por Bruno_Michael 19.10.18 18:31

últimos assuntos

Código:
$(function () {
    $('.module.main:contains("Últimos assuntos")').attr('style', 'height: 280px;overflow: scroll;overflow-x: hidden;');
});
$(function() {
 $('head').append(
 '<style type="text/css">' +
 '.recentTopics {' +
 '  font-family: helvetica, arial, sans-serif !important;' +
 '  line-height: 15px;' +
 '  padding: 0;' +
 '}' +
 '.recentTopics div.h3 {' +
  'background-color: rgb(72, 115, 29, 1);' +
 'color: rgb(255, 255, 255);' +
 'font-size: 1.3rem;' +
 'font-weight: 400;' +
 'text-transform: none;' +
 'border-bottom: none;' +
 'border-radius: 3px 3px 0px 0px;' +
 'padding: 23px 18px;' +
 'border-bottom: solid 3px #1f1f1f!important;' +
 '}' +
 '.recentTopics ul {' +
 '  padding-left: 0 !important;' +
 '}' +
 '.mini_photo {' +
 '  margin-right: 5px;' +
 '}' +
 'li.recentPost {' +
 '  min-height: 70px;' +
 '  padding: 1em 1em 0.5em 1em;' +
 '  list-style-type: none;' +
 '  border-bottom: 1px solid rgba(38, 49, 55, 0.08);' +
 '}' +
 '.recentPost a[href^="/t"] {' +
 '  font-size: 13.8px;' +
 '  text-decoration: none;' +
 '  font-weight: bold;' +
 '}' +
 '.recentInline {' +
 '  min-width: 30%;' +
 '  font-size: 12px;' +
 '  float: right;' +
 '}' +
 '.small_links {' +
 '  display: table;' +
 '  margin-top: 10px;' +
 '}' +
 '.local {' +
 '  font-size: 0;' +
 '}' +
 '.local a:after {' +
 '  content: " → ";' +
 '}' +
 '.local a:last-child:after {' +
 '  content: "";' +
 '}' +
 '.small_links, .small_links a {' +
 '  color: #a4a4a4 !important;' +
 '  font-size: 12px !important;' +
 '  text-decoration: none !important;' +
 '}' +
 '.creator_post:before {' +
 '  content: "Tópico iniciado por ";' +
 '}' +
  'span.mod-recent-info {' +
 'clear: both;' +
 'display: block;' +
 'float: right;' +
 'line-height: 20px;' +
 'width: 30%;' +
 '}' +
 '.creator_post:after {' +
 '  content: ", Em: ";' +
 '}' +
 '.recentTopics {' +
 '  margin: 15px 0;' +
 '}' +
    ' #right {' +
    ' position: relative;' +
    ' top: -354px;' +
'}' +
    '</style>'
    );
 
    var jModuleRecentPosts = $('.module:contains("Últimos assuntos")');
 
    jModuleRecentPosts
    .remove() // Clonando widget de últimos assuntos
    .prependTo('#wrapper') // Inserindo no main-content
    .addClass('recentTopics') // Adicionando nova classe
    .removeClass('module'); // Removendo classe existente
 
    $('.recentTopics').each(function() {
          $(this).html(
                  $(this).html()
                    .replace(/\»/g, '')
                    .replace(/\<a href="\/t(.*?)\-/g,'<li class="recentPost"><a href="/t$1-')
                    .replace(/\<\/a\><br\>/g, '</a><div class="recentInline">')
                    .replace(/\<a href="\/u([0-9])"\>(.*?)<\/a\>/g, '<a href="/u$1">$2</a><br>')
          ).find('li').wrapAll('<ul></ul>');
        $('a[href^="/u"]', this).each(function() {
          var jLinkUser = $(this).attr('href');
          $(this).before(
          '<a href="' + jLinkUser + '" class="user_photo lastpost-avatar">' +
          '    <img src="https://2img.net/u/2617/31/90/74/avatars/1-40.png" alt="no_photo" class="mini_photo" />' +
          '</a>'
          );
          var jImg = $(this).prev().find('img'),
                jUser = sessionStorage.getItem(jLinkUser);
          if(jUser) {
              jImg.attr('src', jUser);
          } else {
          $.ajax({
                  url: jLinkUser + "?change_version=punbb",
                  type: 'GET',
                  success: function(data) {
                    var jImage = $('#profile-advanced-right .module:first img:first', data).attr('src');
                          jImg.attr('src', jImage);
                          sessionStorage.setItem(jLinkUser, jImage);
                  },
                  error: function(err)
                  {
                    console.log("AJAX error in request (Last posts)");
                  }
          });
          }
      });
          $('a[href^="/t"]', this).each(function() {
              var jThis = $(this),
                    jLinkTpc = jThis.attr('href').split('#')[0];
              $.ajax({
                  url: jLinkTpc + "?change_version=punbb",
                  type: 'GET',
                  success: function(recent) {
                  var jCreator = '',
                        jLocal = $('.crumbs:first a.nav', recent).wrapAll('<div></div>').parent().html(),
                        jPaging = $('.paging', recent)[0];
                  jThis.parents('.recentPost').append(
                  '<div class="small_links">' +
                  '    <span class="creator_post">Carregando...</span>' +
                  '    <span class="local">' + jLocal + '</span>' +
                  '</div>'
                  ).find('a[href*="change_version"]').each(function() {
                    var jHref = $(this).attr('href').split('?')[0];
                    $(this).attr('href', jHref);
                  });
                  if(jPaging) {
                      jCreator = $('a:contains("1")', jPaging).attr('href');
                      jThis.parents('.recentPost').find('.creator_post').load(jCreator + ' .username:first', function() {
                            $(this).text($(this).text());
                      });
                  } else {
                      jCreator = $('.username:first', recent).text();
                      jThis.parents('.recentPost').find('.creator_post').text(jCreator);
                  }
                  },
                  error: function(err)
                  {
                    console.log("AJAX error in request (Last posts)");
                  }
          });
      });
 });
});

Efeito do nick

Código:
a[href="/u1"] {
  text-shadow: 0px 0px 5px #ED8E3B;
    background: url(https://i.imgur.com/DO8DCHP.gif);
}

É isso que queria?
Bruno_Michael

Bruno_Michael
****

Membro desde : 05/09/2013
Mensagens : 202
Pontos : 314

http://hassborn.forumeiros.com/forum

Ir para o topo Ir para baixo

Admineiro

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por tikky 19.10.18 18:46

Mude o seu código, script, para:
Código:
$(function () {
    $('.module.main:contains("Últimos assuntos")').attr('style', 'height: 280px;overflow: scroll;overflow-x: hidden;');
});
$(function() {
 $('head').append(
 '<style type="text/css">' +
 '.recentTopics {' +
 '  font-family: helvetica, arial, sans-serif !important;' +
 '  line-height: 15px;' +
 '  padding: 0;' +
 '}' +
 '.recentTopics div.h3 {' +
  'background-color: rgb(72, 115, 29, 1);' +
 'color: rgb(255, 255, 255);' +
 'font-size: 1.3rem;' +
 'font-weight: 400;' +
 'text-transform: none;' +
 'border-bottom: none;' +
 'border-radius: 3px 3px 0px 0px;' +
 'padding: 23px 18px;' +
 'border-bottom: solid 3px #1f1f1f!important;' +
 '}' +
 '.recentTopics ul {' +
 '  padding-left: 0 !important;' +
 '}' +
 '.mini_photo {' +
 '  margin-right: 5px;' +
 '}' +
 'li.recentPost {' +
 '  min-height: 70px;' +
 '  padding: 1em 1em 0.5em 1em;' +
 '  list-style-type: none;' +
 '  border-bottom: 1px solid rgba(38, 49, 55, 0.08);' +
 '}' +
 '.recentPost a[href^="/t"] {' +
 '  font-size: 13.8px;' +
 '  text-decoration: none;' +
 '  font-weight: bold;' +
 '}' +
 '.recentInline {' +
 '  min-width: 30%;' +
 '  font-size: 12px;' +
 '  float: right;' +
 '}' +
 '.small_links {' +
 '  display: table;' +
 '  margin-top: 10px;' +
 '}' +
 '.local {' +
 '  font-size: 0;' +
 '}' +
 '.local a:after {' +
 '  content: " → ";' +
 '}' +
 '.local a:last-child:after {' +
 '  content: "";' +
 '}' +
 '.small_links, .small_links a {' +
 '  color: #a4a4a4 !important;' +
 '  font-size: 12px !important;' +
 '  text-decoration: none !important;' +
 '}' +
 '.creator_post:before {' +
 '  content: "Tópico iniciado por ";' +
 '}' +
  'span.mod-recent-info {' +
 'clear: both;' +
 'display: block;' +
 'float: right;' +
 'line-height: 20px;' +
 'width: 30%;' +
 '}' +
 '.creator_post:after {' +
 '  content: ", Em: ";' +
 '}' +
 '.recentTopics {' +
 '  margin: 15px 0;' +
 '}' +
    ' #right {' +
    ' position: relative;' +
    ' top: -354px;' +
'}' +
    '</style>'
    );
 
    var jModuleRecentPosts = $('.module:contains("Últimos assuntos")');
 
    jModuleRecentPosts
    .remove() // Clonando widget de últimos assuntos
    .prependTo('#wrapper') // Inserindo no main-content
    .addClass('recentTopics') // Adicionando nova classe
    .removeClass('module'); // Removendo classe existente
 
    $('.recentTopics').each(function() {
          $(this).html(
                  $(this).html()
                    .replace(/\»/g, '')
                    .replace(/\<a href="\/t(.*?)\-/g,'<li class="recentPost"><a href="/t$1-')
                    .replace(/\<\/a\><br\>/g, '</a><div class="recentInline">')
                    .replace(/\<a href="\/u([0-9])"\>(.*?)<\/a\>/g, '<a href="/u$1">$2</a><br>')
          ).find('li').wrapAll('<ul></ul>');
        $('a[href^="/u"]', this).each(function() {
          var jLinkUser = $(this).attr('href');
          $(this).before(
          '<a href="' + jLinkUser + '" class="user_photo lastpost-avatar" style="background: none!important">' +
          '    <img src="https://2img.net/u/2617/31/90/74/avatars/1-40.png" alt="no_photo" class="mini_photo" />' +
          '</a>'
          );
          var jImg = $(this).prev().find('img'),
                jUser = sessionStorage.getItem(jLinkUser);
          if(jUser) {
              jImg.attr('src', jUser);
          } else {
          $.ajax({
                  url: jLinkUser + "?change_version=punbb",
                  type: 'GET',
                  success: function(data) {
                    var jImage = $('#profile-advanced-right .module:first img:first', data).attr('src');
                          jImg.attr('src', jImage);
                          sessionStorage.setItem(jLinkUser, jImage);
                  },
                  error: function(err)
                  {
                    console.log("AJAX error in request (Last posts)");
                  }
          });
          }
      });
          $('a[href^="/t"]', this).each(function() {
              var jThis = $(this),
                    jLinkTpc = jThis.attr('href').split('#')[0];
              $.ajax({
                  url: jLinkTpc + "?change_version=punbb",
                  type: 'GET',
                  success: function(recent) {
                  var jCreator = '',
                        jLocal = $('.crumbs:first a.nav', recent).wrapAll('<div></div>').parent().html(),
                        jPaging = $('.paging', recent)[0];
                  jThis.parents('.recentPost').append(
                  '<div class="small_links">' +
                  '    <span class="creator_post">Carregando...</span>' +
                  '    <span class="local">' + jLocal + '</span>' +
                  '</div>'
                  ).find('a[href*="change_version"]').each(function() {
                    var jHref = $(this).attr('href').split('?')[0];
                    $(this).attr('href', jHref);
                  });
                  if(jPaging) {
                      jCreator = $('a:contains("1")', jPaging).attr('href');
                      jThis.parents('.recentPost').find('.creator_post').load(jCreator + ' .username:first', function() {
                            $(this).text($(this).text());
                      });
                  } else {
                      jCreator = $('.username:first', recent).text();
                      jThis.parents('.recentPost').find('.creator_post').text(jCreator);
                  }
                  },
                  error: function(err)
                  {
                    console.log("AJAX error in request (Last posts)");
                  }
          });
      });
 });
});
tikky

tikky
Admineiro
Admineiro

Membro desde : 13/01/2017
Mensagens : 7806
Pontos : 9049

Ir para o topo Ir para baixo

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por Bruno_Michael 19.10.18 20:39

Agora sim, vlw
Bruno_Michael

Bruno_Michael
****

Membro desde : 05/09/2013
Mensagens : 202
Pontos : 314

http://hassborn.forumeiros.com/forum

Ir para o topo Ir para baixo

Admineiro

Tópico resolvido Re: Tirar efeito do nick de cima do avatar.

Mensagem por tikky 19.10.18 20:40

Tópico resolvido


Movido para "Questões resolvidas".
tikky

tikky
Admineiro
Admineiro

Membro desde : 13/01/2017
Mensagens : 7806
Pontos : 9049

Ir para o topo Ir para baixo

Ver o tópico anterior Ver o tópico seguinte Ir para o topo

- Tópicos semelhantes

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