[Tutorial] ID do membro no perfil
Página 1 de 1 • Compartilhe
Informações:
Autor: Daemon
Versões: Todas as versões
Instalação:
Acesse:
Então crie um novo javascript com investimento nos topicos com esse código:Painel de controle ->> Modulos ->> HTML & Javascripts ->> Gestão dos códigos Javascripts
PunBB:
- Código:
$(function() {
$('.user-info').prepend('<span class="label">ID do Membro: </span><br>');
$('.user-info .label:contains("ID do Membro")').each(function() {
var id = $(this).parents('.post').find('.username a').first().attr('href').match(/\d+/g);
$(this).after(''+id+'');
});
});
PhpBB3:
- Código:
$(function() {
$('.postprofile .label').first().before('<span class="label">ID do Membro: </span><br>');
$('.postprofile .label:contains("ID do Membro")').each(function() {
var id = $(this).parents('.post').find('.postprofile a').first().attr('href').match(/\d+/g);
$(this).after(''+id+'');
});
});
Invision:
- Código:
$(function() {
$('.postprofile .label').first().before('<span class="label">ID do Membro: </span><br>');
$('.postprofile .label:contains("ID do Membro")').each(function() {
var id = $(this).parents('.post').find('.postprofile-details a').first().attr('href').match(/\d+/g);
$(this).after(''+id+'');
});
});
PhpBB2:
- Código:
$(function() {
$('.row1 .label').first().before('<span class="label">ID do Membro: </span><br>');
$('.row1 .label:contains("ID do Membro")').each(function() {
var id = $(this).parents('.post').find('.name a[href^="/u"]').first().attr('href').match(/\d+/g);
$(this).after(''+id+'');
});
});
Resultado:
Tópicos semelhantes
Cria uma conta ou logue para postar uma mensagem.
Você precisa ser um membro, para poder postar uma resposta.
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|