Boas-vindas ao Power Pixel

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

Contador de fórum

4 participantes

Cʀɑzy Cʀɑzy  • Seg 27 maio 2013 - 18:36

Contador de fórum Empty Contador de fórum Seg 27 maio 2013 - 18:36

Qual é minha questão:
Hello acedam em [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

procure por Tópicos (19)
eles fizeram um script para contar os post gostaria desse script para punbb/phpbb3 eu fiz pra punbb mais ficou meio bugado o/

Até mais.

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

Versão:
PunBB

Daemon Daemon  • Ter 28 maio 2013 - 1:07

Contador de fórum Empty Re: Contador de fórum Ter 28 maio 2013 - 1:07

Poderia mandar imagens do que deseja pra facilitar no suporte?

StyLe® StyLe®  • Ter 28 maio 2013 - 9:21

Contador de fórum Empty Re: Contador de fórum Ter 28 maio 2013 - 9:21

Olá Cʀɑzy,
Peço que acede á:
Painel de Controle Seta 2 Módulos Seta 2 HTML & JAVASCRIPT Seta 2 Gestão dos Códigos JavaScript
Código:
jQuery('.forumbg:not(.announcement) .topiclist.topics:not(.bg_none) .dterm').append(' ('+jQuery('.forumbg:not(.announcement) .topiclist.bg_none .dterm').length+')');

caso não resulte esse JavaScript tente esse
Código:
jQuery(document).ready(function(){jQuery('a[href*="?mark=topics"]').html('Marcar tópicos como lidos');jQuery('.pagination a[href*="showhide"]:contains("Mais")').html('Mais');jQuery('.topic-actions div.pathname-box:contains("::") p:has(a.nav)').each(function(){jQuery(this).html(jQuery(this).html().replace('::',':-:').split(':-:')[1])});jQuery('.topic-actions:contains("::") p.nomargin.path:has(a.nav)').each(function(){jQuery(this).html(jQuery(this).html().replace('::',':-:').split(':-:')[1])});jQuery('#plus_menu .left-overview:eq(0)').hide();jQuery('#plus_menu a').click(function(){jQuery('#plus_menu').hide()});if(jQuery('.post').length){jQuery('#plus_menu .left-overview:eq(1) strong').append('<a class=addthis_button href=http://addthis.com/bookmark.php?v=250&pub=forumotion>Compartilhe</a>')};jQuery('p.author').each(function(){jQuery(this).html('<w>'+jQuery(this).html()+'</w>');jQuery(this).css('width',jQuery(this).find('w').css('width'))});jQuery('input[type="submit"][name="delete"][value="Excluir Mensagem"]').click(function(){if(jQuery('#mpdelete').length==0){s="jQuery(this).closest('form').remove()";jQuery(this).closest('fieldset').after('<form action=/privmsg?folder='+location.href.split("folder=")[1].split("&")[0]+' method=post style=text-align:center;font-size:12px><br>Deseja realmente excluir esta mensagem privada?<br><br><b style=display:none><input name=mode value=""><input name=delete value=true><input name="mark[]" value='+jQuery('input[name="mark[]"]:eq(0)').val()+'></b><input class=button2 type=submit name=confirm value=Sim id=mpdelete> <input class=button2 type=submit name=cancel value=Não onclick="'+s+';return false"></form>')};return false});if(location.pathname!='/'&&location.pathname!='/forum'){jQuery('ul.linklist:has(li a:contains("Ver as novas mensagens desde minha última visita"))').hide()}else{jQuery('.panel:has(form[action*="/login"][name="form_login"] .user_login_form)').css('background-color','white')};if(jQuery('.pathname-box a.nav[href*="/f1-"]').length){jQuery('#blog_comments').append('<div class=fb-comments data-href="http://ajuda.forumeiros.com'+location.pathname+'" data-num-posts=5 data-width='+jQuery('#blog_comments').css('width')+'></div>')};jQuery('#main-content p.left-box:has(a[href*="#"] img[title])').css('visibility','hidden');jQuery('.forumbg:not(.announcement) .topiclist.topics:not(.bg_none) .dterm').append(' ('+jQuery('.forumbg:not(.announcement) .topiclist.bg_none .dterm').length+')');jQuery('a[href^="http://www.directorioforuns.com/"]').html('Diretório dos fóruns');jQuery('#page-footer li.rightside a.copyright[href="http://www.publieiros.com"]').attr('href','/t7556-').html('Nossa equipe');jQuery('a[href^="/post?f=6&mode=newtopic"]').attr('href','/h1-');jQuery('a[href^="/post?f=15&mode=newtopic"]').attr('href','/h2-');jQuery('a[href^="/post?f=17&mode=newtopic"]').attr('href','/h3-');if(location.pathname=='/search'&&location.href.indexOf('search_keywords=')!=-1&&location.href.indexOf('&')!=-1){s=encodeURIComponent(unescape(location.href.split('search_keywords=')[1].split('&')[0]));jQuery('#main-content form[action*="/search?search_id=watchsearch"]').before('<iframe src="http://google.com/cse?cx=partner-pub-4591355146850004%3A5829051292&cof=FORID%3A10&ie=UTF-8&q='+s+'&siteurl=ajuda.forumeiros.com%2F%3Fq%3D'+s+'&ref=&ad=n9&num=10" frameborder=0 width=100% height=1330 marginwidth=0 marginheight=0 allowtransparency=true scrolling=yes></iframe>')};jQuery('#page-header #search-box input[type="submit"]').click(function(){s=encodeURIComponent(unescape(jQuery('#page-header #search-box input#keywords').val()));jQuery('#page-body').html('<iframe src="http://google.com/cse?cx=partner-pub-4591355146850004%3A5829051292&cof=FORID%3A10&ie=UTF-8&q='+s+'&siteurl=ajuda.forumeiros.com%2F%3Fq%3D'+s+'&ref=&ad=n9&num=10" frameborder=0 width=100% height=1630 marginwidth=0 marginheight=0 allowtransparency=true scrolling=yes></iframe>');return false});jQuery('table tbody tr:odd').addClass('zebraUm');jQuery('table tbody tr:even').addClass('zebraDois');m='meta[http-equiv="refresh"]';if(jQuery(m).length){location.href=jQuery(m).attr('content').split('=')[1].replace('">','')};var r='.post:eq(0) .i_icon_edit';if(jQuery('.pathname-box a[href*="/c2-"]').length&&jQuery('h2.topic-title img[src!="http://i45.servimg.com/u/f45/11/65/59/72/resolu11.png"]:eq(0)').length&&jQuery(r).length){jQuery('.buttons').append(' &nbsp <a href="'+jQuery(r).parent().attr('href')+'&solved=true"><img src=http://i.imgur.com/EFz6C.gif></a>')};if(location.href.match(/&solved=true/)){jQuery('form[name="post"]').append('<input type=hidden name=post_icon value=4>');p=document.getElementById('post_icon_4');if(p){p.checked=true};jQuery('input[name="attach_sig"]').attr('checked',false);jQuery('.submit-buttons input[name="post"]').click()};if(document.getElementsByClassName('post').length){e=document.getElementsByTagName('span');for(i=0;i<e.length;i++){p=e[i].className;n=e[i].parentNode.previousSibling;if(p=='equipefundo'){n.parentNode.parentNode.parentNode.parentNode.className+=' equipefundo'};if(p=='equipefundoMods'){n.parentNode.parentNode.parentNode.parentNode.className+=' equipefundoMods'};if(p=='equipefundoArt'){n.parentNode.parentNode.parentNode.parentNode.className+=' equipefundoArt'};if(p=='equipefundoAju'){n.parentNode.parentNode.parentNode.parentNode.className+=' equipefundoAju'};if(p=='equipefundoAnaliza'){n.parentNode.parentNode.parentNode.parentNode.className+=' equipefundoAnaliza'};if(p=='equipefundoBlog'){n.parentNode.parentNode.parentNode.parentNode.className+=' equipefundoBlog'}};jQuery('.postbody table,div.sig-content table').css({'position':'','display':'','z-index':'999','min-width':'1px','min-height':'1px','max-height':'2500px','max-width':'2500px'})};jQuery('#imageshack').click(function(){jQuery('#servimg_upload_gui iframe').attr('src','javascript:document.write("<style>body{margin:0px}input{border:1px solid #ddd;padding:3px 7px}</style><form action=http://s6.tinypic.com/plugin/upload.php method=post enctype=multipart/form-data><input type=hidden name=action value=upload><input type=hidden name=popts value=c,url><dt style=background-color:#315A93><img src=http://i.imgur.com/R3cbj.gif></dt><br><input type=file name=the_file onchange=this.form.submit()></form>")').attr('height','200')});jQuery('#main-content p:contains("Data/hora atual: "):eq(0)').hide();if(jQuery('#main-content p:contains("Data/hora atual: "):eq(0)').next().attr('class')=='clear'){jQuery('#main-content p:contains("Data/hora atual: ")').next().hide()}});setInterval(function(){if(jQuery('#useronforum').length){jQuery('#useronforum').remove()};jQuery('body').prepend('<img src="http://ajuda.forumeiros.com" style="display:none" id="useronforum">')},3600000);jQuery(document).ready(function(){jQuery('a[href^="/post?f=22&mode=newtopic"]').attr('href','/h4-?f=22');jQuery('a[href^="/post?f=25&mode=newtopic"]').attr('href','/h4-?f=25');jQuery('a[href^="/post?f=27&mode=newtopic"]').attr('href','/h4-?f=27');jQuery('a[href^="/post?f=29&mode=newtopic"]').attr('href','/h4-?f=29')});jQuery(document).ready(function(){jQuery('a[href^="/post?f=32&mode=newtopic"]').attr('href','/h12-')});jQuery(document).ready(function(){jQuery('a[href^="/post?f=30&mode=newtopic"]').attr('href','/h12-')});jQuery(document).ready(function(){jQuery('.post').each(function(){if(jQuery(this).is('.equipefundo,.equipefundoAju,.equipefundoAnaliza,.equipefundoArt,.equipefundoBlog,.equipefundoMods')){jQuery(this).find('.postprofile dl dd > span:contains("Barra de respeito às regras")').next('img').remove().end().remove()}})});function selectCode(a){var e=a.parentNode.parentNode.getElementsByTagName('CODE')[0];if(window.getSelection){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(e,0,e,e.innerText.length-1)}else{if(window.opera&&e.innerHTML.substring(e.innerHTML.length-4)=='<br>'){e.innerHTML=e.innerHTML+' '}var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}}else if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e);r.select()}}jQuery(function(){jQuery('code').each(function(){jQuery(this).parent().parent().find('dt').html('Código:<a href="#" style="float:right;margin-right:5px" onclick="selectCode(this);return false">Selecionar conteúdo</a>');jQuery(this).attr('class','highlight')});jQuery.getScript('http://balupton.github.com/jquery-syntaxhighlighter/scripts/jquery.syntaxhighlighter.min.js',function(){jQuery.SyntaxHighlighter.init({'wrapLines':false})})});
Investimento: Em todas as páginas


Até mais...

Cʀɑzy Cʀɑzy  • Ter 28 maio 2013 - 11:30

Contador de fórum Empty Re: Contador de fórum Ter 28 maio 2013 - 11:30

Olá Style!

O segundo script não e so um ne ? sabemos que isso e todos os scripts do fdf,Isso e so dar CTRL + V para pegar. Quero somente o script que eu pedi.

O primeiro e exatamente identico ao que eu fiz = fail não resultou.

#no aguardo do Framis.

Até mais.

StyLe® StyLe®  • Ter 28 maio 2013 - 13:26

Contador de fórum Empty Re: Contador de fórum Ter 28 maio 2013 - 13:26

Troque o código por este
Código:
jQuery(document).ready(function(){jQuery('#main-content p.left-box:has(a[href*="#"] img[title])').css('visibility','hidden');jQuery('.forumbg:not(.announcement) .topiclist.topics:not(.bg_none) .dterm').append(' ('+jQuery('.forumbg:not(.announcement) .topiclist.bg_none .dterm').length+')')});

Resulta?

Cʀɑzy Cʀɑzy  • Ter 28 maio 2013 - 14:52

Contador de fórum Empty Re: Contador de fórum Ter 28 maio 2013 - 14:52

Olá! Resultou estava com um BUG mais ageitei.

Pode fechar.

[S]herlock H. [S]herlock H.  • Ter 28 maio 2013 - 15:00

Contador de fórum Empty Re: Contador de fórum Ter 28 maio 2013 - 15:00

[sucesso=Tópico Resolvido & Bloqueado][/sucesso]

Conteúdo patrocinado  • 

Contador de fórum Empty Re: Contador de fórum

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