Boas-vindas ao Power Pixel

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

Je4n Je4n  • Qua 1 Out 2014 - 20:44

Novos membros registrados Empty Novos membros registrados Qua 1 Out 2014 - 20:44

Minha questão:
Gostaria de um código que mostre os últimos 6 membros registrados, se possível. Ah, com o avatar do mesmo.


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

Versão:
PunBB

iConnect iConnect  • Qui 2 Out 2014 - 14:04

Novos membros registrados Empty Re: Novos membros registrados Qui 2 Out 2014 - 14:04

Reputação da mensagem: 100% (2 votos)
Olá,
Crie um novo widget:
Código:
<script>
jQuery(document).ready(function() {
 var joined = sessionStorage.getItem('joined');
 if(joined) {
  jQuery('#joined').html(joined);
 } else {
 jQuery.get('/memberlist?mode=joined&order=DESC&submit=Ok&username', function(j) {
  jQuery('#joined').html(jQuery('.table a[href^="/u"]:lt(5)', j));
  jQuery('#joined').find('a[href^="/u"]').each(function() {
    jQuery(this).wrap('<div class="m_b_j"></div>');
    var join = jQuery(this).attr('href');
    jQuery(this).after('<span class="date"></span>');
    jQuery(this).next().load(join+' .main #field_id-4 dd div', function() {
    jQuery(this).text(jQuery(this).text());
    sessionStorage.setItem('joined', jQuery('#joined').html());
    });
  });
 });
 }
});
</script>
<div id="joined"></div>
<style>
#joined .m_b_j {
margin: 4px 0;
}
#joined .m_b_j:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#joined a span {text-decoration: none;}
#joined .m_b_j img {
-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
background: #fff;
border: 1px solid #D5D5D5!important;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
float: left;
height: 32px;
margin: 0 3px;
padding: 1px;
width: 32px;
}
#joined .m_b_j img:hover {
-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.5);
border-color: #666;
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
}
#joined .date {
display: block;
margin-top: 5px;
margin-left: 45px;
font: 11px helvetica, arial, sans-serif;
color: #777777;
}
#joined .date:before {
content: 'Cadastro: ';
}
</style>
Clique no botão curtir e obrigado.

Até Mais...

Je4n Je4n  • Sex 3 Out 2014 - 3:35

Novos membros registrados Empty Re: Novos membros registrados Sex 3 Out 2014 - 3:35

Muito obrigado. Very Happy Pode fechar o tópico.

Daemon Daemon  • Sáb 4 Out 2014 - 16:17

Novos membros registrados Empty Re: Novos membros registrados Sáb 4 Out 2014 - 16:17

[sucesso=Tópico Resolvido; e Bloqueado][/sucesso]Movido para: Arquivo - Pedido de código

Conteúdo patrocinado  • 

Novos membros registrados Empty Re: Novos membros registrados

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