problema na scroll do last topics on ndex

Suporte aos MODs/Hacks para phpBB.
neo louco
Novato
Novato
Mensagens: 10
Registrado em: 08 Dez 2004, 13:21
Localização: brasilia-df
Contato:

Re: problema na scroll do last topics on ndex

Mensagem por neo louco »

robra ai eu ja nao tenho tanta experiencia assim pra fazer essas alteraçoes....voce poderia ajudar? se nao for muito incomodo...
Avatar do usuário
robra
Membro Sênior
Membro Sênior
Mensagens: 6065
Registrado em: 02 Dez 2010, 22:29

Re: problema na scroll do last topics on ndex

Mensagem por robra »

Use o "inspecionar elemento" do Google Chrome na página principal do Fórum, com o estilo Subsilver2, para identificar as linhas que abrem e fecham o bloco da lista dos fóruns. Aí é só copiá-las e substituir as que estiverem no arquivo /styles/subsilver2/template/viewlast_post_slide.html.
Veja o artigo Identificar e interagir com elementos da página para entender como fazer.
O procedimento é igual ao descrito na mensagem viewtopic.php?f=148&t=47853#p285304, sendo que lá foi para colocar a abertura e fechamento do bloco da lista dos fóruns no Portal, e o seu é para colocar na MOD.

Abraço. Imagem
[DICA] Antes de abrir um Novo Tópico, procure saber se a sua dúvida já foi respondida. Pesquise no Google por palavras(em inglês também) relacionadas à ela, somado à palavra "phpbb".
Micael
Novato
Novato
Mensagens: 69
Registrado em: 28 Jan 2005, 03:35
Localização: Rio Preto - SP

Re: problema na scroll do last topics on ndex

Mensagem por Micael »

neo louco,

Faça o seguinte, abre o arquivo: styles/subsilver2/template/viewlast_post_slide.html , apague tudo e cole o código abaixo:

Código: Selecionar todos

<table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><span class="nav">{L_LP_TITLE}</span></td>
   </tr>

        <tr><td colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->">
   <marquee id="recent_topics" behavior="scroll" direction="up" height="200" scrolldelay="50" scrollamount="2">
   <table width="100%">
   

   <!-- BEGIN latest_topics -->

      <tr>
         <td class="row1" width="25" align="center"><img src="<!-- IF latest_topics.S_UNREAD_TOPIC -->./styles/subsilver2/imageset/forum_unread.gif<!-- ELSE -->./styles/subsilver2/imageset/forum_read.gif<!-- ENDIF -->" /></td>
         <td class="row1">
            <a title="{L_POSTED}: {latest_topics.LP_TOPIC_POSTTIME}" href="{latest_topics.LP_U_VIEW_TOPIC}" class="topictitle"  onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{latest_topics.LP_FULL_TITLE}</a>
            </td>
            <td class="row2" width="130" align="center"><p class="topicauthor">{latest_topics.LP_TOPIC_STARTER}</td>
         <td class="row1" width="50" align="center"><p class="topicdetails">{latest_topics.LP_T_REPLIES}</p></td>
         <td class="row2" width="50" align="center"><p class="topicdetails">{latest_topics.LP_T_VIEWS}</p></td>
         <td class="row1" width="140" align="center">
            <p class="topicdetails" style="white-space: nowrap;">{latest_topics.LP_TOPIC_LASTPOSTTIME}</p>
            <p class="topicdetails">{latest_topics.LP_TOPIC_LASTPOSTBY}
               <a href="{latest_topics.LP_U_VIEW_TOPIC}">{LAST_POST_IMG}</a>
            </p>
         </td>
      </tr>
       
     <!-- END latest_topics -->

   </table>
   </marquee>
   </td>
   </tr>
     
   <tr align="center">
    <td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->">&nbsp;</td>
   </tr>
</table>
Salve o arquivo, envie para o seu fórum e limpe o cache.

Caso não de certo, tente esse código:

Código: Selecionar todos

<table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><span class="nav">{L_LP_TITLE}</span></td>
   </tr>

        <tr><td colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->">
   <marquee id="recent_topics" onmouseover=this.stop() onmouseout=this.start() behavior="scroll" direction="up" height="125" scrolldelay="50" scrollamount="2">
   <table width="100%">
   

   <!-- BEGIN latest_topics -->

      <tr>
         <td class="row1" width="25" align="center"><img src="<!-- IF latest_topics.S_UNREAD_TOPIC -->./styles/subsilver2/imageset/forum_unread.gif<!-- ELSE -->./styles/subsilver2/imageset/forum_read.gif<!-- ENDIF -->" /></td>
         <td class="row1">
            <a title="{L_POSTED}: {latest_topics.LP_TOPIC_POSTTIME}" href="{latest_topics.LP_U_VIEW_TOPIC}" class="topictitle"  onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{latest_topics.LP_FULL_TITLE}</a>
            </td>
            <td class="row2" width="130" align="center"><p class="topicauthor">{latest_topics.LP_TOPIC_STARTER}</td>
         <td class="row1" width="50" align="center"><p class="topicdetails">{latest_topics.LP_T_REPLIES}</p></td>
         <td class="row2" width="50" align="center"><p class="topicdetails">{latest_topics.LP_T_VIEWS}</p></td>
         <td class="row1" width="140" align="center">
            <p class="topicdetails" style="white-space: nowrap;">{latest_topics.LP_TOPIC_LASTPOSTTIME}</p>
            <p class="topicdetails">{latest_topics.LP_TOPIC_LASTPOSTBY}
               <a href="{latest_topics.LP_U_VIEW_TOPIC}">{LAST_POST_IMG}</a>
            </p>
         </td>
      </tr>
       
     <!-- END latest_topics -->

   </table>
   </marquee>
   </td>
   </tr>
     
   <tr align="center">
    <td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->">&nbsp;</td>
   </tr>
</table>
Abraços,
Micael
Trancado