Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

Lucas_Simoes Lucas_Simoes  • Ter 7 Abr 2015 - 20:32

Ranks na visualização do tópico bugando Empty Ranks na visualização do tópico bugando Ter 7 Abr 2015 - 20:32

  • Descrição:
Ta acontecendo isso com os ranks na hora que visualiza o tópico

[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
  • Informações:
Fórum:[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]Versão:PUNBB
Tipo:Pedido de códigoTags:Ranks,visualização,tópico,bugando

Júnior Duarte Júnior Duarte  • Ter 7 Abr 2015 - 20:59

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Ter 7 Abr 2015 - 20:59

Olá amigo, já foi criado uma dúvida com essa mesma questão do mesmo Fórum por um outro usuário. Acredito que você devam entrar em um consenso sobre quem tem que pedir suporte, dois pedindo suporte sobre a mesma coisa é complicado.

Lucas_Simoes Lucas_Simoes  • Ter 7 Abr 2015 - 21:23

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Ter 7 Abr 2015 - 21:23

Então amigo se está se referindo a este tópico: http://www.bestskins.net/t5949-visualizar-topico-bugado realmente me ajudou mas os ranks continuam bugados, conforme mostra minha Screenshot

Júnior Duarte Júnior Duarte  • Ter 7 Abr 2015 - 21:40

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Ter 7 Abr 2015 - 21:40

o Fórum não é o mesmo?  ou você usa dois nicks? Ao que parece o tópico foi dado como resolvido.

Lucas_Simoes Lucas_Simoes  • Ter 7 Abr 2015 - 23:08

Fox Fox  • Ter 7 Abr 2015 - 23:47

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Ter 7 Abr 2015 - 23:47

Cole isso em seu CSS:

Código:
.pun fieldset, .pun img {
  border: none;
  margin-left: -3px!important;
  width: 130px!important;
  height: 67px!important;
}

Lucas_Simoes Lucas_Simoes  • Qua 8 Abr 2015 - 0:58

Cepheus Cepheus  • Qua 8 Abr 2015 - 14:35

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Qua 8 Abr 2015 - 14:35

Reputação da mensagem: 100% (1 votos)
As imagens dos ranks são grande para a estrutura, você precisa definir uma tamanho para os ranks.
Adicione isso no seu css:
Código:
h3.userText img, .extraUserInfo div:nth-child(1) img {width:140px;margin-left:-10px}

Lucas_Simoes Lucas_Simoes  • Qua 8 Abr 2015 - 15:43

Cepheus Cepheus  • Qua 8 Abr 2015 - 17:10

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Qua 8 Abr 2015 - 17:10

Reputação da mensagem: 100% (2 votos)
troque o código que lhe passei acima por esse:
Código:
h3.userText img:nth-child(3), .extraUserInfo div:nth-child(1) img {width:140px;margin-left:-10px}


Última edição por Cepheus em Qua 8 Abr 2015 - 17:20, editado 1 vez(es)

Lucas_Simoes Lucas_Simoes  • Qua 8 Abr 2015 - 17:19

Cepheus Cepheus  • Qua 8 Abr 2015 - 17:21

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Qua 8 Abr 2015 - 17:21

Reputação da mensagem: 100% (1 votos)
Desculpe na hora de enviar deu um erro só trocar pelo código acima

Lucas_Simoes Lucas_Simoes  • Qua 8 Abr 2015 - 17:38

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Qua 8 Abr 2015 - 17:38

Agora sim amigo obrigado pelo suporte! Voce pode me fornecer seu widget ultimos assuntos que tem avatar ? quero por na skin

Júnior Duarte Júnior Duarte  • Qua 8 Abr 2015 - 18:07

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Qua 8 Abr 2015 - 18:07

Reputação da mensagem: 100% (1 votos)
Com investimento no índice adicione esse JS:
Código:
/***
* Application: Avatar in Recent Topics Widget!
* Description: This application can displays the members avatar.
* Version: 1.03172014-jq1.9.1 - Narmer (Menés, Meni)
* Made and Optimizations by JScript - 2014/03/17
* View more in: http://ajuda.forumeiros.com
* Copyright (c) 2013 JScript <jscriptbrasil at live dot com>
* This work is free. You can redistribute it and/or modify it
* under the terms of the WTFPL, Version 2
*/
jQuery(function () {
  /***
  * User Definition Variables
  ***/
  /* Put here the widget title for your native language!!! */
  var sWidgetTitle = 'Últimos assuntos'; 
  /***
  * System Defined Variables - Do not edit if you don't know!
  ***/
  var oConfig = {
      sInfo:
          '<!--' +
          '* Application: Avatar in Recent Topics Widget!' +
          '* Description: This application can displays the members avatar.' +
          '* Version: 1.03172014-jq1.9.1 - Narmer (Menés, Meni)' +
          '* Made and Optimizations by JScript - 2014/03/17' +
          '* View more in: http://jscript.forumeiros.com/forum & http://ajuda.forumeiros.com' +
          '* Copyright (c) 2014 JScript <jscriptbrasil at live dot com>' +
          '* This work is free. You can redistribute it and/or modify it' +
          '* under the terms of the WTFPL, Version 2' +
          '-->',
      sDefaultAvatar: 'http://i78.servimg.com/u/f78/18/17/62/92/defaul10.png',
      sWidgetTitle: sWidgetTitle,
      sCSS:
          '<style>' +
          '.ipsUserPhoto.widget {' +
              'float: left;' +
              'margin-top: 3px;' +
              'margin-right: 10px;' +
          '}' +
          '.ipsUserPhoto {' +
              'background: none repeat scroll 0 0 #FFFFFF;' +
              'border: 1px solid #D5D5D5 !important;' +
              'box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);' +
              'padding: 1px;' +
          '}' +
          '.ipsUserPhoto_mini {' +
              'height: 30px !important;' +
              'width: 30px !important;' +
          '}' +
          '</style>',
      sTarget: '',
      sCommon: 'a[href^="/t"]',
      sGetIMG: ''
  };

  // Add CSS
  jQuery(oConfig.sCSS).insertBefore('body');

  /* Forum versions! */
  var phpBB2 = jQuery('.bodyline');
  var phpBB3 = jQuery('#wrap');
  var punbb = jQuery('#pun-intro');
  var invision = jQuery('#ipbwrapper');
 
  if (phpBB2.length) {
      oConfig.sTarget = '.forumline:contains("' + oConfig.sWidgetTitle + '") tr td.row1 ' + oConfig.sCommon;
      oConfig.sGetIMG = ' #emptyidcc .row1.gensmall img:eq(0)';
      jQuery('.forumline tr td span:contains("' + oConfig.sWidgetTitle + '")').attr('id', 'last-topics');
  } else if(phpBB3.length) {
      oConfig.sTarget = '.module .inner:contains("' + oConfig.sWidgetTitle + '") ' + oConfig.sCommon;
      oConfig.sGetIMG = ' #profile-advanced-right .module:first .inner img:eq(0)';
      jQuery('.module .inner:contains("' + oConfig.sWidgetTitle + '")').attr('id', 'last-topics');
  } else if(punbb.length) {
      oConfig.sTarget = '.module.main:contains("' + oConfig.sWidgetTitle + '") .main-content ' + oConfig.sCommon;
      oConfig.sGetIMG = ' #profile-advanced-right .main-content img:first';
      jQuery('.module.main:contains("' + oConfig.sWidgetTitle + '")').attr('id', 'last-topics');
  } else if(invision.length) {
      oConfig.sTarget = '.module.borderwrap:contains("' + oConfig.sWidgetTitle + '") .box-content ' + oConfig.sCommon;
      oConfig.sGetIMG = ' #profile-advanced-right .box-content.profile.center img:first';
      jQuery('.module.borderwrap:contains("' + oConfig.sWidgetTitle + '")').attr('id', 'last-topics');
  };
 
  var oTarget = jQuery('#right, #left').find(oConfig.sTarget);
  oTarget.prepend('<a class="ipsUserPhoto widget" href="#" title="No avatar!"><img class="ipsUserPhoto_mini" src="' + oConfig.sDefaultAvatar + '" alt="" /></a>');

  // Fire event for 'scroll' to show the content only if is visible in view port...
  var elem = document.getElementById("last-topics");
  if (isInViewPort(elem)) {
      LastTopics(oTarget, oConfig.sExpression0, oConfig.sGetIMG);
  } else {
      jQuery(window).on('scroll.lasttopics', callFunction(elem, oTarget, oConfig.sExpression0, oConfig.sGetIMG));
  }
});
// Function to check if an element is visible in view port
function isInViewPort(elem) {
var rect = elem.getBoundingClientRect();
console.log(rect);
return (
rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */
rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ );
}
// Start function to show the content...
function callFunction(elem, oTarget, sExpression0, sGetIMG) {
return function() {
      // Chech if the element is visible in view port!
if (isInViewPort(elem)) {
          // If visible, stop event!!!
jQuery(window).off('scroll.lasttopics');
         
          LastTopics(oTarget, sExpression0, sGetIMG);
}
}
}
// Show member avatar in Recent Topics Widget!
function LastTopics(oTarget, sExpression0, sGetIMG) {
oTarget.each(function () {
      var oThis = jQuery(this); // DOM chached for fast execution!
      var temp = oThis.next().next();
      var UserURL = temp.attr('href');
      if (!UserURL) {
          temp = temp.next();
          UserURL = temp.attr('href');
      }
      var UserTitle = temp.text();
      var oImgTag = oThis.find('.ipsUserPhoto_mini');
      var UserIMG = 0;//sessionStorage.getItem(UserURL); // Gets the avatar saved in local storage (Fastest!)

      oThis.find('a.ipsUserPhoto.widget').attr('href', UserURL).attr('title', UserTitle);

      // If avatar alread saved, then no request member profile!
      if(UserIMG) {
          oImgTag.attr('src', UserIMG);
      } else {
          // if not, then only request per session!!!
          jQuery.get(UserURL, function(data){
              var profile_img = jQuery(sGetIMG, data).attr('src');

              if (profile_img !== undefined) {
                  oImgTag.attr('src', profile_img);
                  // Saves the member avatar in local storage
                  sessionStorage.setItem(UserURL, profile_img);
              }
          });
      }       
});   
}

Lucas_Simoes Lucas_Simoes  • Qua 8 Abr 2015 - 18:13

Júnior Duarte Júnior Duarte  • Qua 8 Abr 2015 - 18:16

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando Qua 8 Abr 2015 - 18:16

Ok amigo.

Só uma observação não seja sanguessuga, nossa amigo Cepheus te ajudou e você não deu um Like sequer nos posts.

Lucas_Simoes Lucas_Simoes  • Qua 8 Abr 2015 - 18:36

Conteúdo patrocinado  • 

Ranks na visualização do tópico bugando Empty Re: Ranks na visualização do tópico bugando

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