Saudações!
Veja se lhe agrada:
- Código:
$(document).ready(function() {
//Reputação
$(".postprofile .postprofile-details.postdetails").each(function(){
$(this).html($(this).html().replace(/<span class="label/g,'<dd><div class="post_field"><span class="label'));
});
$('.postprofile .postprofile-details.postdetails .post_field:contains("Reputação")').each(function() {
var rep = $(this).text().match(/\d+/g);
$(this).attr('style','background-color: rgb(141, 177, 62)!important;background-image: url(http://i38.servimg.com/u/f38/17/31/71/58/highli10.png);border-top-left-radius: 3px;border-top-right-radius: 3px;border-bottom-right-radius: 3px;border-bottom-left-radius: 3px;color: rgb(255, 255, 255);font-weight: bold;display: block;margin: 0 auto;margin-bottom: 3px;padding: 3px 7px;max-width: 125px;text-align: center;text-shadow: rgba(0, 0, 0, 0.298039) 0px -1px 0px;background-position: 0px 1px;background-repeat: repeat no-repeat;margin-left: -30px;');
$(this).append('<span class="title" style="font-weight:normal"></span>');
if(rep == 0) {
$(this).find('.title').text('Neutro');
$(this).attr('style','background-color: rgb(16, 16, 16)!important;background-image: url(http://i38.servimg.com/u/f38/17/31/71/58/highli10.png);border-top-left-radius: 3px;border-top-right-radius: 3px;border-bottom-right-radius: 3px;border-bottom-left-radius: 3px;color: rgb(255, 255, 255);font-weight: bold;display: block;margin: 0 auto;margin-bottom: 3px;padding: 3px 7px;max-width: 125px;text-align: center;text-shadow: rgba(0,0,0,0.3) 0px -1px 0px;background-position: 0px 1px;background-repeat: repeat no-repeat;margin-left: -30px;');
}
if(rep >= 1 && rep < 5) {
$(this).find('.title').text('A 1ª Ninguém Esquece');
}
if(rep >= 5 && rep < 10) {
$(this).find('.title').text('Sou um BOM Membro');
}
if(rep >= 10 && rep < 20) {
$(this).find('.title').text('Sou um ÓTIMO Membro');
}
if(rep >= 20 && rep < 40) {
$(this).find('.title').text('Sou um EXCELENTE Membro');
}
if(rep >= 40 && rep < 60) {
$(this).find('.title').text('Sou quase uma Lenda no IBT');
}
if(rep >= 60 && rep < 100) {
$(this).find('.title').text('Inviter Mestre');
}
if(rep >= 100) {
$(this).find('.title').text('IBT Lendário');
}
});
});
Por seu fórum está em manutenção, fica meio difícil de ver aonde fica bom para a esquerda, caso não tenha gostado, procure no código a linha
"margin-left: -30px", sem os ". Caso queira mais para a esquerda aumente o valor, caso queira mais para a direita, diminua o valor.
Até mais.