O que está errado neste código Seg 12 Ago 2013 - 22:21
Qual é minha questão:
Qual é o problema com este código que você acha?
Endereço do meu fórum:
Nenhum'
Versão:
PunBB
Qual é o problema com este código que você acha?
- Código:
$(function(){
$('.posthead[style="background-color:#eaf8e2;"]').append('<div id="best-res" class="answerBadgeInPost">✓ Best Answer</div>').attr('style','background-image: -moz-linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.3)), color-stop(100%,rgba(255,255,255,0)));
background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.3) 0%,rgba(255,255,255,0) 100%);background-image: -o-linear-gradient(top, rgba(255,255,255,0.3) 0%,rgba(255,255,255,0) 100%);background-image: -ms-linear-gradient(top, rgba(255,255,255,0.3) 0%,rgba(255,255,255,0) 100%);background-image: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%,rgba(255,255,255,0) 100%);-webkit-box-shadow: inset rgba(255,255,255,0.35) 0px 1px 0px;-moz-box-shadow: inset rgba(255,255,255,0.35) 0px 1px 0px;box-shadow: inset rgba(255,255,255,0.35) 0px 1px 0px;background: #dfedd1;text-shadow: rgba(255,255,255,0.8) 0px 1px 0px;border: 1px solid #accf8b;');
var topicauthor = $('.posthead #best-res').parents('.posthead').find('.creator').html();
var topicavatar = $('.post #best-res').parents('.post').find('.postmain .postbody .user .user-ident .user-basic-info a img').attr('src');
var urlavt= $('.post best-res').parents('.post').find('.postmain .postbody .user .user-ident .user-basic-info a').attr('href');
var topicpost = $('.posthead #best-res').parents('.posthead').find('a.post-number').attr('href');
var topicdata = $('.post #best-res').parents('.post').find('.data-post').html();
var bestTopic = $('.post #best-res').parents('.post').find('.entry-content').html();
if($('#best-res').length){
$('.main.paged').before('<div class="post_feature_box">
<span class="ipsUserPhoto"><img src="'+topicavatar+'" /></span>
<span class="ipsBadge">Best Answer</span> '+topicauthor+'
- '+topicdata+'<div style="border: 1px solid #ddd; border-bottom: 1px solid #ececec; margin: 3px;"></div><div style="display: inline-block;">'+bestTopic+'</div> <a href="'+topicpost+'">
<span class="ipsBadge" style="background: #B3B3B3;font-weight: normal !important;">View full post <img class="icon" src="http://i.imgur.com/omzqZnf.png"></span></a>
</div>');}
});
Endereço do meu fórum:
Nenhum'
Versão:
PunBB