Boas-vindas ao Power Pixel

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

Avatar nos Últimos Assuntos

+4
Josh
B¹³
[S]herlock H.
Alexandre51
8 participantes

Alexandre51 Alexandre51  • Qui 29 maio 2014 - 19:18

Avatar nos Últimos Assuntos Empty Avatar nos Últimos Assuntos Qui 29 maio 2014 - 19:18

Minha questão:
Ola!!
Segui as dicas deste tópico ( [Tens de ter uma conta e sessão iniciada para poderes visualizar este link] ), e deu quase tudo certo.
O Problema é que Os avatares no ultimos Assuntos não esta aparecendo, no lugar dos Avatares fica um quadradinho branco

Segue imagem para melhor entederem:

[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]


Endereço do meu fórum:
[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Versão:
PunBB

[S]herlock H. [S]herlock H.  • Qui 29 maio 2014 - 19:33

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qui 29 maio 2014 - 19:33

Uma pergunta, você utiliza o Perfil IPB?

Alexandre51 Alexandre51  • Qui 29 maio 2014 - 20:15

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qui 29 maio 2014 - 20:15

Ops!!! uso a PunBB
[S]herlock H. vou ter de criar um novo topico pedindo para minha versao?

B¹³ B¹³  • Qui 29 maio 2014 - 20:32

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qui 29 maio 2014 - 20:32

Alexandre51 escreveu:Ops!!! uso a PunBB
[S]herlock H. vou ter de criar um novo topico pedindo para minha versao?

Olá, repare este tópico. Refere-se ao assunto em questão.

[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Alexandre51 Alexandre51  • Qui 29 maio 2014 - 20:40

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qui 29 maio 2014 - 20:40

B¹³ Foi este topico que eu usei em meu forum e nao funcionou..

Alexandre51 Alexandre51  • Sáb 31 maio 2014 - 12:32

Josh Josh  • Sáb 31 maio 2014 - 19:50

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Sáb 31 maio 2014 - 19:50

Olá, substitua seu Js por este:
Em todas as páginas.

Código:
jQuery(document).on('ready', function() {
jQuery('.avt_recent').prepend('<div class="avt-r"><div>');
jQuery('.avt_recent .avt-r').each(function () {
var profileUserURL = jQuery(this).parent().children('.recent_space').children('a:last').attr('href');
jQuery(this).html('<a href="' + profileUserURL + '" class="avt-r-enlace"><img src="http://r26.imgfast.net/users/2617/31/90/74/avatars/1-40.png" alt="No Avatar" /></a>');
jQuery(this).children('a').load(profileUserURL + ' #profile_tabs p.short')
});
});

Resulta ? Até mais.

Alexandre51 Alexandre51  • Dom 1 Jun 2014 - 11:12

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Dom 1 Jun 2014 - 11:12

Não funcionou..
Antes ficavam os quadradinhos Brancos, agora sumiu..

[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]

Josh Josh  • Seg 2 Jun 2014 - 2:31

Alexandre51 Alexandre51  • Seg 2 Jun 2014 - 6:43

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Seg 2 Jun 2014 - 6:43

Como assim??
Sei que meu forum é Versão:
PunBB

Alexandre51 Alexandre51  • Qua 4 Jun 2014 - 7:03

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qua 4 Jun 2014 - 7:03

UP....................

Alexandre51 Alexandre51  • Seg 9 Jun 2014 - 6:45

DeeW. DeeW.  • Seg 9 Jun 2014 - 8:29

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Seg 9 Jun 2014 - 8:29

Você utiliza este perfil?


[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]


se sim o código não será funcional.

scofield scofield  • Seg 9 Jun 2014 - 15:59

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Seg 9 Jun 2014 - 15:59

Eu estou com o mesmo problema e não uso Perfil IPB.

E eu percebi que usamos o mesmo tema: Bulletin. Será que o problema é ele?

Alexandre51 Alexandre51  • Qua 11 Jun 2014 - 6:37

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qua 11 Jun 2014 - 6:37

Não nao uso este perfil nao :/

DeeW. DeeW.  • Qua 11 Jun 2014 - 18:27

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qua 11 Jun 2014 - 18:27

Poderia liberar o acesso ao perfil no seu fórum? pois visitantes não tem acesso.

Alexandre51 Alexandre51  • Qua 11 Jun 2014 - 19:46

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qua 11 Jun 2014 - 19:46

Claro Amigo,
Não ria.. ( rsrsrs )
Mas como faço isso ?? Smile

B¹³ B¹³  • Qua 11 Jun 2014 - 21:32

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qua 11 Jun 2014 - 21:32

Adiciona este JavaScript: Em todas as páginas

Código:
jQuery(document).on('ready', function() {[size=11][/size]
    jQuery('.avt_recent').prepend('<div class="avt-r"><div>');[size=11][/size]
    jQuery('.avt_recent .avt-r').each(function () {[size=11][/size]
    var profileUserURL = jQuery(this).parent().children('.recent_space').children('a:last').attr('href');[size=11][/size]
    jQuery(this).html('<a href="' + profileUserURL + '" class="avt-r-enlace"><img src="http://r14.imgfast.net/users/1417/27/86/76/avatars/1-19.png" alt="No Avatar" /></a>');[size=11][/size]
    jQuery(this).children('a').load(profileUserURL + ' .module:eq(0) img:eq(0)')[size=11][/size]
    });[size=11][/size]
    });


mod_recent_topics troque por este:



Código:
<!-- BEGIN scrolling_row -->[size=11][/size]
<div class="module main">[size=11][/size]
  <div class="main-head"><div class="h3">{L_RECENT_TOPICS}</div></div>[size=11][/size]
  <div class="main-content" id="comments_scroll_div">[size=11][/size]
      <!-- BEGIN recent_topic_row -->[size=11][/size]
          <div class="avt_recent">[size=11][/size]
              <div class="recent_space">[size=11][/size]
      » <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}" title="{scrolling_row.recent_topic_row.L_TITLE}">{scrolling_row.recent_topic_row.L_TOPIC_TITLE}</a><br />[size=11][/size]
          <img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY} [size=11][/size]
[size=11][/size]
      <!-- BEGIN switch_poster -->[size=11][/size]
      <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.switch_poster.U_POSTER}">{scrolling_row.recent_topic_row.switch_poster.S_POSTER}</a><br /><br />[size=11][/size]
      <!-- END switch_poster -->[size=11][/size]
[size=11][/size]
      <!-- BEGIN switch_poster_guest -->[size=11][/size]
      {scrolling_row.recent_topic_row.switch_poster_guest.S_POSTER}<br /><br />[size=11][/size]
      <!-- END switch_poster_guest -->[size=11][/size]
[size=11][/size]
      <!--[size=11][/size]
      <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_POSTER}">{scrolling_row.recent_topic_row.S_POSTER}</a><br /><br />[size=11][/size]
      -->[size=11][/size]
            </div>[size=11][/size]
          </div>[size=11][/size]
      <!-- END recent_topic_row -->[size=11][/size]
  </div>[size=11][/size]
</div>[size=11][/size]
[size=11][/size]
<script type="text/javascript">[size=11][/size]
//<![CDATA[[size=11][/size]
$(function(){[size=11][/size]
  div_marquee('comments_scroll_div', 'comments_scroll_container', '{SCROLL_WAY}', '{SCROLL_STEP}', '{SCROLL_DELAY}', '{SCROLL_HEIGHT}');[size=11][/size]
});[size=11][/size]
//]]>[size=11][/size]
</script>[size=11][/size]
<!-- END scrolling_row -->[size=11][/size]
[size=11][/size]
<!-- BEGIN classical_row -->[size=11][/size]
<div class="module main">[size=11][/size]
  <div class="main-head"><h3>{L_RECENT_TOPICS}</h3></div>[size=11][/size]
  <div class="main-content">[size=11][/size]
      <!-- BEGIN recent_topic_row -->[size=11][/size]
          <div class="avt_recent">[size=11][/size]
              <div class="recent_space">[size=11][/size]
            » <a href="{classical_row.recent_topic_row.U_TITLE}">{classical_row.recent_topic_row.L_TITLE}</a><br /> {BY}&nbsp;[size=11][/size]
                <!-- BEGIN switch_poster -->[size=11][/size]
      <a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>[size=11][/size]
      <!-- END switch_poster -->[size=11][/size]
[size=11][/size]
      <!-- BEGIN switch_poster_guest -->[size=11][/size]
      {classical_row.recent_topic_row.switch_poster_guest.S_POSTER}[size=11][/size]
      <!-- END switch_poster_guest -->[size=11][/size]
[size=11][/size]
      {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />[size=11][/size]
[size=11][/size]
      <!--[size=11][/size]
      <a href="{classical_row.recent_topic_row.U_POSTER}">{classical_row.recent_topic_row.S_POSTER}</a> {ON} {classical_row.recent_topic_row.S_POSTTIME}<br /><br />[size=11][/size]
      -->[size=11][/size]
            </div>[size=11][/size]
          </div>[size=11][/size]
      <!-- END recent_topic_row -->[size=11][/size]
  </div>[size=11][/size]
</div>[size=11][/size]
<!-- END classical_row -->

E adicione este CSS:



Código:
[size=11][/size]
    .avt-r img{[size=11][/size]
    background: none repeat scroll 0% 0% #FFF;[size=11][/size]
    border: 1px solid #D5D5D5 !important;[size=11][/size]
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);[size=11][/size]
    float: left;[size=11][/size]
    height: 28px;[size=11][/size]
    margin: 3px;[size=11][/size]
    padding: 1px;[size=11][/size]
    width: 28px;[size=11][/size]
    }

Testei os códigos e está funcionando.

Alexandre51 Alexandre51  • Qui 12 Jun 2014 - 0:15

Daemon Daemon  • Qui 12 Jun 2014 - 10:04

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Qui 12 Jun 2014 - 10:04

Crie um novo JS com investimento em todas as páginas:
Código:
$(function() {
var sAvatar = sessionStorage.getItem('avt-wid');


if(sAvatar) {
       $('.avt-wid').html(sAvatar);
} else {
var x = $('#left')[0]; // widget da esquerda;
var y = $('#right')[0]; // widget da direita;
$(y).find('.module .main-content a[href^="/t"]').each(function() {
var linkavt = $(this).next().next().attr('href');
var titleavt = $(this).next().next().text();
$(this).prepend('<a href="'+linkavt+'" title="'+titleavt+'"></a>');
$(this).children('a').load(linkavt +'.profile-view dl dd img:eq(0)', function() {
$(this).children('img').attr('class','avt-wid');
});
$(this).find('a[href^="/u"]').insertBefore($(this));
});
sessionStorage.setItem('sAvatar', $('.avt-wid').html());
}
});
Depois, em seu css, adicione o seguinte conteúdo:
Código:
.avt-wid {
float: left;
margin-right: 5px;
height: 28px;
width: 28px;
margin: 3px;
padding: 1px;
border: 1px solid #D5D5D5 !important;
background: white;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.1);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.avt-wid:hover {
border-color: #A1A1A1 !important;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}
Até mais!

Alexandre51 Alexandre51  • Sex 13 Jun 2014 - 6:47

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Sex 13 Jun 2014 - 6:47

@[Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Ficou assim:
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]

Se quiser eu lhe passo por mp os dados da conta de admin para verificar se estou fazendo algo de errado

RafaelS. RafaelS.  • Sex 13 Jun 2014 - 8:48

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Sex 13 Jun 2014 - 8:48

Olá amigo, você usa o perfil avançado? ???????

Até.

Alexandre51 Alexandre51  • Sáb 14 Jun 2014 - 7:20

DeeW. DeeW.  • Dom 15 Jun 2014 - 11:12

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Dom 15 Jun 2014 - 11:12

Poderia ativar o perfil avançado?

Alexandre51 Alexandre51  • Seg 16 Jun 2014 - 6:12

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos Seg 16 Jun 2014 - 6:12

Claro..
Acabei de ativar Smile

Conteúdo patrocinado  • 

Avatar nos Últimos Assuntos Empty Re: Avatar nos Últimos Assuntos

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