Últimas postagens seguindo sub-fóruns

3 participantes

Ver o tópico anterior Ver o tópico seguinte Ir para baixo

Tópico resolvido Últimas postagens seguindo sub-fóruns

Mensagem por Alcatra 22.12.12 7:14

Qual é minha questão:
Inicialmente editei o estilo da visualização de minhas categorias. Há apenas duas colunas com quadros dentro de si. Uma é para o título do fórum e a outra engloba a quantidade de postagem e o último post feito. Assim como o representado na imagem 01. A dúvida está levemente relacionada a isto.

O que gostaria de fazer é alterar o modo de ver as últimas postagens de acordo com a posição do mouse: se o mouse está livre na área de últimas postagens aparece a última mensagem postada naquele fórum. Entretanto, se o mouse está em cima de algum sub-fórum, na área de últimas postagens é mostrada a última postagem do sub-fórum respectivo.

A intenção está demonstrada na imagem 02. Explicando a sequência, temos três situações que são justamente as que foram citadas no parágrafo anterior. Na primeira, o mouse está livre e aparece, então, a última postagem da área. Já na segunda, está sobre o sub-fórum 01, portanto mostra a última postagem que foi feita dentro dele (no caso, no Tópico 01) O mesmo vale para o sub-fórum 02.

Se alguém puder ajudar, agradeço muito. Espero que tenha ficado claro o que gostaria de fazer e espero também que seja possível. Obrigado pela atenção.

Tentativas para solucionar:
Apenas pesquisei e pensei em meios para fazer isto, entretanto não tenho conhecimento para executar nenhum. Primeiramente acreditei que seria possível criar uma variável (pois não deve haver uma, eu acho, entretanto se houver será mais fácil) que apresenta a última postagem de cada categoria e depois alternar entre suas visualizações de acordo com o valor que seria mudado seguindo a posição do mouse, modificando isto na index_box.

Porém creio que a introdução dessa variável seja muito complicada ou impossível (não entenda mal, se houver um jeito, mesmo difícil, gostaria de saber). Portanto minha esperança real está no javascript (ou até mesmo na página html). Mas, se pouco conhecimento tenho sobre html e mal sei usá-lo, estou longe de fazer algo em javascript xP No caso da solução ser através deste, peço desculpas por ter postado na área de aparência, entretanto talvez não se trate disto.

Imagens:
Imagem 01 - Como está
Imagem 02 - Como desejado

Códigos:
Folha CSS
Código:
/* Início, Categorias */

 .descri {
  background: #E8DBB1;
  font-weight: none;
  height: 50px;
  text-align: center;
  color: black !important; }

 #last-post {
  background-color: #EBE5CD;
  height: 50px;
  font-weight: none;
  color: black !important; }

/* Fim, Categorias */

index_box
Código:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
      <td valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall">{LAST_VISIT_DATE}<br />
        {CURRENT_TIME}<br />
        </span>
        <!-- END switch_user_logged_in -->
        <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
        <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
        <!-- END switch_user_logged_in -->
        <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
  </tr>
</table>
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%">{catrow.tablehead.L_FORUM}</th>
      <th nowrap="nowrap" width="150"><div style="width:150px;"></div></th>
  </tr>
  <!-- END tablehead -->
  <!-- BEGIN cathead -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
        <h{catrow.cathead.LEVEL} class="hierarchy">
            <span class="cattitle">
              <a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
            </span>
        </h{catrow.cathead.LEVEL}>
      </td>
      <td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="righ>t"> </td>
  </tr>
  <!-- END cathead -->
  <!-- BEGIN forumrow -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
      <!-- END inc -->
      <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
        <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="center" width="100%" height="50"><div class="descri">
        <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
              <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
        </h{catrow.forumrow.LEVEL}>
        <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
        <span class="gensmall">
            <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
                  </span><br />
           
                  </div></td>
      <td class="row3 over" align="center" valign="center" height="50"  style="z-index: 9999 !important;">
        <div id="last-post"><span class="gensmall">Tópicos - {catrow.forumrow.TOPICS} Mensagens {catrow.forumrow.POSTS}<br />{catrow.forumrow.LAST_POST}</span></div>
      </td>
  </tr>
  <!-- END forumrow -->
  <!-- BEGIN catfoot -->
  <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
  </tr>
  <!-- END catfoot -->
  <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->

Endereço do meu fórum:
Alcatra Testando

Versão do Fórum:
PhpBB2


Última edição por Alcatra em 23.12.12 19:19, editado 1 vez(es)
Alcatra

Alcatra
*

Membro desde : 19/12/2012
Mensagens : 32
Pontos : 62

http://alcatratestando.forumeiros.com/

Ir para o topo Ir para baixo

Membro Entusiasta

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por BrunoH. 22.12.12 16:41

Olá!
Não pude compreender sua dúvida, poderia ser mais especifico?
Observei as duas imagens, o senhor deseja retirar o sublinhado? Por favor, poderia ser mais claro?

Até mais. Piscada
BrunoH.

BrunoH.
Membro Entusiasta
Membro Entusiasta

Membro desde : 15/06/2012
Mensagens : 7675
Pontos : 10385

http://premiumdesign3d.blogspot.com.br/ https://www.facebook.com/brunohenrique.com.br

Ir para o topo Ir para baixo

Membro Entusiasta

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por MateusV. 22.12.12 17:35

Olá,

Crie um novo código javascript com o investimento marcado "no indice" e com este código:
Código:
jQuery(document).ready(function(){jQuery('.descri a.gensmall[href*="/f"][title]').each(function(){var nome=jQuery(this).text(),link=jQuery(this).attr('href');jQuery.get(link,function(q){localStorage.setItem(nome,'<span class="gensmall"><a href="'+jQuery('a.topictitle:eq(0)',q).attr('href')+'">'+jQuery('a.topictitle:eq(0)',q).text()+'</a><br>'+jQuery('td[align="center"][nowrap="nowrap"] span.postdetails:eq(0)',q).html()+'</span>');});}); jQuery('.descri a.gensmall[href*="/f"][title]').mouseover(function(){var o=jQuery(this).text(),v=jQuery(this).closest('tr').find('a.forumlink').text();localStorage.setItem(v,jQuery(this).closest('tr').find('#last-post span.gensmall span:eq(0)').html());jQuery(this).closest('tr').find('#last-post span.gensmall span:eq(0)').html(localStorage.getItem(o));}); jQuery('.descri a.gensmall[href*="/f"][title]').mouseout(function(){var o=jQuery(this).text(),v=jQuery(this).closest('tr').find('a.forumlink').text();jQuery(this).closest('tr').find('#last-post span.gensmall span:eq(0)').html(localStorage.getItem(v));});});

Atenciosamente.
MateusV.

MateusV.
Membro Entusiasta
Membro Entusiasta

Membro desde : 30/10/2011
Mensagens : 7017
Pontos : 9284

http://mateusv.site11.com/gerador2.html

Ir para o topo Ir para baixo

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por Alcatra 22.12.12 20:49

Olá, BrunoH. De maneira simplificada, gostaria que aparecessem (na área onde aparecem os detalhes da última postagem do fórum) os detalhes das última última postagem apenas do sub-fórum em que o mouse está em cima. A imagem que passei foi uma espécie de sequência, as linhas vermelhas foram apenas para destacar a área que quero modificar.

MateusV, seu código funcionou perfeitamente, nunca pensei que eu seria atendido de maneira tão eficiente, muito obrigado mesmo. Entretanto, se me permite, gostaria de abusar um pouquinho mais. Infelizmente, quando modifico a parte de index_body que altera a área de Quem Está Online, o código falha e simplesmente deixa de funcionar. Não entendo bem o por quê. Será que você podia me dar mais essa mão?

Ah... Um pequeno problema que notei agora, e de minha parte, é o seguinte. Quando o mouse está fora de qualquer sub-fórum, por default aparecem as últimas postagens da área em questão. Poderia arrumar para aparecer as últimas postagens do último sub-fórum em que o mouse esteve? Por exemplo, se o mouse está no sub-fórum 01 e depois sai, ao invés de voltar à mensagem atual de todas as áreas, permanece mostrando a última postagem do sub-fórum 01 até quando o mouse passar sobre outro (nesse caso, apareceria a do outro). Desculpe não ter pedido isso antes.

Acredito que esta não seja uma dúvida diferente e necessite de um novo tópico, porém peço desculpas se for o caso (refiro-me à regra de uma dúvida por tópico).

Folha CSS editada (não interfere)
Código:
/* Início, Categorias */

 .descri {
  background: #E8DBB1;
  font-weight: none;
  height: 50px;
  text-align: center;
  color: black !important; }

 #last-post {
  background-color: #EBE5CD;
  height: 50px;
  font-weight: none;
  color: black !important; }

/* Fim, Categorias */

/* Início - Quem Está Online */

div * {
  margin: 0;
  padding: 0;
}

li {
  display: list-item;
  text-align: -webkit-match-parent;
}

.conteneur-menu .onglets li {
  float: left;
  list-style: none;
}

.conteneur-menu .onglets li a.active {
  background: #D9AC59!Important;
  border:transparent;
  color: #333333!Important;
  text-shadow:0px 0ox 1px grey!Important;
}

.conteneur-menu .onglets li a:hover {
  background: #E8DBB1;
  color: black;
  border-color: white;
  transition: background, color 0.5s;
  -webkit-moz-transition: background, color 0.5s;
  -moz-transition: background, color 0.5s;
}

.conteneur-menu .onglets li a {
  transition: background, color 0.5s;
  -webkit-moz-transition: background, color 0.5s;
  -moz-transition: background, color 0.5s;
  border: 1px solid grey;
  box-shadow: 0px 0px 2px black;
  -moz-text-shadow: 1px 1px 1px #fff;
  -webkit-text-shadow: 1px 1px 1px #fff;
  background: #DFD7B3;
  text-align: center;
  margin-left: 7px;
  float: center;
  border: 1px solid #D9AC59;
  color: black;
  display: block;
  font-family: Arial;
  font-size: 12px;
  font-weight: 700;
  padding: 7px;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 1px white;
  width: 150px;
}

/* Fim - Quem Está Online */

index_body editada (interfere)
Código:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <!-- BEGIN message_admin_titre -->
  <tr>
      <td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
  </tr>
  <!-- END message_admin_titre -->
  <!-- BEGIN message_admin_txt -->
  <tr>
      <td class="row1" rowspan="3" align="center" valign="middle">
      <div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
      </td>
  </tr>
  <!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  <!-- BEGIN switch_fb_connect_no -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td class="row1" align="center">
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td><span class="genmed">{L_USERNAME}:</span> </td>
                  <td><input class="post" type="text" size="10" name="username"/> </td>
                  <td>
                    <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                    <span class="gensmall">{L_AUTO_LOGIN}</span>
                  </td>
              </tr>

              <tr>
                  <td><span class="genmed">{L_PASSWORD}:</span> </td>
                  <td><input class="post" type="password" size="10" name="password"/> </td>
                  <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect_no -->

  <!-- BEGIN switch_fb_connect -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td valign="top" width="100%" class="row1" align="center">
            <table width="100%">
              <tr>
                  <td width="55%" valign="middle" align="right">
                    <table class="right">
                        <tr>
                          <td><span class="genmed">{L_USERNAME}:</span> </td>
                          <td><input class="post" type="text" size="10" name="username"/> </td>
                          <td>
                              <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                              <span class="gensmall">{L_AUTO_LOGIN}</span>
                          </td>
                        </tr>

                        <tr>
                          <td><span class="genmed">{L_PASSWORD}:</span> </td>
                          <td><input class="post" type="password" size="10" name="password"/> </td>
                          <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                        </tr>
                    </table>
                  </td>
                  <td width="10%" align="center" valign="middle">
                    <span class="genmed fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
                  </td>
                  <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td width="50%" valign="top">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
        <!-- END switch_user_logged_in -->
        <!-- BEGIN switch_delete_cookies -->
        <br /><a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_delete_cookies.L_DELETE_COOKIES}</a>
        <!-- END switch_delete_cookies -->
        </span>
      </td>
      <td width="50%" align="right">
        <span class="gensmall">
            <a href="{U_TODAY_ACTIVE}" class="gensmall">{L_TODAY_ACTIVE}</a><br />
            <a href="{U_TODAY_POSTERS}" class="gensmall">{L_TODAY_POSTERS}</a><br />
            <a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a>
            <!-- BEGIN switch_on_index -->
              <!-- BEGIN switch_delete_cookies -->
              <br /><a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
              <!-- END switch_delete_cookies -->
            <!-- END switch_on_index -->
        </span>
      </td>
  </tr>
</table>

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  <!-- BEGIN switch_fb_connect_no -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td class="row1" align="center">
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td><span class="genmed">{L_USERNAME}:</span> </td>
                  <td><input class="post" type="text" size="10" name="username"/> </td>
                  <td>
                    <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                    <span class="gensmall">{L_AUTO_LOGIN}</span>
                  </td>
              </tr>

              <tr>
                  <td><span class="genmed">{L_PASSWORD}:</span> </td>
                  <td><input class="post" type="password" size="10" name="password"/> </td>
                  <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect_no -->

  <!-- BEGIN switch_fb_connect -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td valign="top" width="100%" class="row1" align="center">
            <table width="100%">
              <tr>
                  <td width="55%" valign="middle">
                    <table class="right">
                        <tr>
                          <td><span class="genmed">{L_USERNAME}:</span> </td>
                          <td><input class="post" type="text" size="10" name="username"/> </td>
                          <td>
                              <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                              <span class="gensmall">{L_AUTO_LOGIN}</span>
                          </td>
                        </tr>

                        <tr>
                          <td><span class="genmed">{L_PASSWORD}:</span> </td>
                          <td><input class="post" type="password" size="10" name="password"/> </td>
                          <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                        </tr>
                    </table>
                  </td>
                  <td width="10%" align="center" valign="middle">
                    <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
                  </td>
                  <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_footer -->

<!-- BEGIN disable_viewonline -->






    <div *="">
<div id="menu_onglet">
      <div class="conteneur-menu">

  <div>
    <table width="100%" cellspacing="4" cellspanding="0" style="border: 1px solid #D9AC59 !important; background-color: #EBE5CD; box-shadow: 0 0 2px grey; background-position: 1px;">
      <tr>
        <td>
         
 

<ul class="onglets">
          <li>
            <a href="#" class="active">Geral</a>
          </li>
          <li>
            <a href="#" class="">Estatísticas</a>
          </li>
          <li>
            <a href="#" class="">Aniversariantes</a>
          </li>
          <li>
            <a href="#" class="">Grupos</a>
          </li>
          <li>
            <a href="#" class="">Creditos</a>
          </li>
        </ul>


  </td>
      </tr>
      <tr>
      <td align="left" style="background: url(http://hitskin.com/themes/10/42/65/i_folder_big.png) 0.15em 1.5em no-repeat; height: 100px;">
        <table class="table1" border="0" cellspacing="0" cellspanding="0">
          <tr>
            <td class="main-content" style="padding-left:50px;">


<div style="align: center">
  <script language="javascript" type="text/javascript" src="http://s3.archive-host.com/membres/up/1696114791/java/jquery-re_142.js"></script>
  <script language="javascript" type="text/javascript" src="http://s3.archive-host.com/membres/up/1696114791/menu_libre_service_1/a.js"></script>
 


      <!--menu original-->




        <div class="conteneur-ouvrir" style="display: block; ">
          <div class="ton_contenu">
         

            <!--Estatisticas-->

                  <span class="gensmall">
                   
                    <p>{TOTAL_POSTS}</p>                   
                    <p>{RECORD_USERS}</p>
                    <p>{TOTAL_USERS}</p>
                  </span>
                  <br />
            <!--Online-->
     
                      <font style="font-size: 10px !important;"> <!-- BEGIN switch_viewonline_link -->
                        <b><a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></b>
                          <br />
            <!-- END switch_viewonline_link -->
                          {LOGGED_IN_USER_LIST}
                 
            <!-- BEGIN switch_viewonline_nolink -->
                          {L_WHO_IS_ONLINE}
            <!-- END switch_viewonline_nolink --> 
                        {TOTAL_USERS_ONLINE}</font>

            <!--Ultimo Usuario-->   
                    <span class="gensmall" style"color:#2f2f2f !important;">{NEWEST_USER}</span>
          </div>
        </div>
                     
        <div class="conteneur-ouvrir" style="display: none; ">
          <div class="ton_contenu">
            <table width="100%" border="0" cellspacing="2" cellpadding="2">
              <tbody>
                <tr>
                  <td class="cellule_1">                 
                                               
        <!--24 horas-->
            <span class="gensmall">
                    {L_ONLINE_USERS}
                      {L_CONNECTED_MEMBERS}<br />
                    <div class="clear"></div>
                  </span> 
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
                     
        <div class="conteneur-ouvrir" style="display: none; ">
          <div class="ton_contenu">
            <table class="table_1" width="100%" border="0" cellspacing="2" cellpadding="2">
              <tbody>
                <tr>
                  <td class="cellule_1">
                                         

        <!--Aniversariantes-->
            <span class="gensmall">
                    {L_WHOSBIRTHDAY_TODAY}
                    {L_WHOSBIRTHDAY_WEEK}
                </span>               
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
          </div>
                     
          <div class="conteneur-ouvrir" style="display: none; ">
            <div class="ton_contenu">
             
      <!--Grupos-->
                <span class="gensmall">
              <font color="#fff">{GROUP_LEGEND}</font>
          </span>
                   

            </div>
          </div>
           
          <div class="conteneur-ouvrir" style="display: none; ">
            <div class="ton_contenu">
              <table width="100%" border="0">
                <tbody>
                  <tr>
                    <td>
             
                    <!--Créditos--> 
                     
                      Em manutenção
                         
                    </td>
                    </tr>
                  </tbody>
                  </table>
                </div>
                </div>

 </td></tr></table></td></tr></table>
</div>

            </div>
  </div>
</div>     
         
      <!-- BEGIN switch_chatbox_activate -->
      <div id="onlinechat" style="font-size: 10px !important;">
        <p class="page-bottom">
        {TOTAL_CHATTERS_ONLINE} :
        {CHATTERS_LIST}<br />
        <!-- BEGIN switch_chatbox_popup -->
            <div id="chatbox_popup"></div>
            <script type="text/javascript">
              insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
            </script>
        <!-- END switch_chatbox_popup -->
        </p>
      </div>
      <!-- END switch_chatbox_activate -->

<!-- END disable_viewonline -->

{CHATBOX_BOTTOM}
<br clear="all" />
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
  <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td>  </td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
<!-- END switch_legend -->

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
  appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
    status: true,
    cookie: true,
    xfbml: true,
  oauth: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->
Alcatra

Alcatra
*

Membro desde : 19/12/2012
Mensagens : 32
Pontos : 62

http://alcatratestando.forumeiros.com/

Ir para o topo Ir para baixo

Membro Entusiasta

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por MateusV. 23.12.12 1:34

Olá,

Deixe-me ver se compreendi direito, quando o senhor modifica o template index_body o código deixa de funcionar? É isto? Quanto a personalização do código, sim, é possível.

Aguardo resposta, até mais.
MateusV.

MateusV.
Membro Entusiasta
Membro Entusiasta

Membro desde : 30/10/2011
Mensagens : 7017
Pontos : 9284

http://mateusv.site11.com/gerador2.html

Ir para o topo Ir para baixo

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por Alcatra 23.12.12 2:08

Sim, é exatamente isto. Mas não é qualquer modificação no index_body que provoca a ineficiência do código. É apenas quando modifico o conteúdo da área "BEGIN disable_viewonline", para personalizar a parte de Quem Está Online. E também não é qualquer modificação nesta área, é especificamente a que está sendo utilizada atualmente (fiz alguns testes fazendo modificações diferentes nesta área e a maioria não teve efeito negativo).

O conteúdo da index_body que está causando este problema está no post anterior, se necessitar. Há a possibilidade de que os dois códigos alterados (a template e o java) serem realmente incompatíveis em conjunto? Se sim, não há nenhuma maneira de alterar algum detalhe de um ou ambos para fazê-los funcionar? Obrigado pela paciência e atenção.
Alcatra

Alcatra
*

Membro desde : 19/12/2012
Mensagens : 32
Pontos : 62

http://alcatratestando.forumeiros.com/

Ir para o topo Ir para baixo

Membro Entusiasta

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por MateusV. 23.12.12 17:32

Olá,

Compreendo e já encontrei o erro, substitua seu template index_body por este:
Código:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <!-- BEGIN message_admin_titre -->
  <tr>
      <td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
  </tr>
  <!-- END message_admin_titre -->
  <!-- BEGIN message_admin_txt -->
  <tr>
      <td class="row1" rowspan="3" align="center" valign="middle">
      <div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
      </td>
  </tr>
  <!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  <!-- BEGIN switch_fb_connect_no -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td class="row1" align="center">
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td><span class="genmed">{L_USERNAME}:</span> </td>
                  <td><input class="post" type="text" size="10" name="username"/> </td>
                  <td>
                    <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                    <span class="gensmall">{L_AUTO_LOGIN}</span>
                  </td>
              </tr>

              <tr>
                  <td><span class="genmed">{L_PASSWORD}:</span> </td>
                  <td><input class="post" type="password" size="10" name="password"/> </td>
                  <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect_no -->

  <!-- BEGIN switch_fb_connect -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td valign="top" width="100%" class="row1" align="center">
            <table width="100%">
              <tr>
                  <td width="55%" valign="middle" align="right">
                    <table class="right">
                        <tr>
                          <td><span class="genmed">{L_USERNAME}:</span> </td>
                          <td><input class="post" type="text" size="10" name="username"/> </td>
                          <td>
                              <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                              <span class="gensmall">{L_AUTO_LOGIN}</span>
                          </td>
                        </tr>

                        <tr>
                          <td><span class="genmed">{L_PASSWORD}:</span> </td>
                          <td><input class="post" type="password" size="10" name="password"/> </td>
                          <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                        </tr>
                    </table>
                  </td>
                  <td width="10%" align="center" valign="middle">
                    <span class="genmed fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
                  </td>
                  <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td width="50%" valign="top">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
        <!-- END switch_user_logged_in -->
        <!-- BEGIN switch_delete_cookies -->
        <br /><a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_delete_cookies.L_DELETE_COOKIES}</a>
        <!-- END switch_delete_cookies -->
        </span>
      </td>
      <td width="50%" align="right">
        <span class="gensmall">
            <a href="{U_TODAY_ACTIVE}" class="gensmall">{L_TODAY_ACTIVE}</a><br />
            <a href="{U_TODAY_POSTERS}" class="gensmall">{L_TODAY_POSTERS}</a><br />
            <a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a>
            <!-- BEGIN switch_on_index -->
              <!-- BEGIN switch_delete_cookies -->
              <br /><a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
              <!-- END switch_delete_cookies -->
            <!-- END switch_on_index -->
        </span>
      </td>
  </tr>
</table>

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
  <!-- BEGIN switch_fb_connect_no -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td class="row1" align="center">
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td><span class="genmed">{L_USERNAME}:</span> </td>
                  <td><input class="post" type="text" size="10" name="username"/> </td>
                  <td>
                    <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                    <span class="gensmall">{L_AUTO_LOGIN}</span>
                  </td>
              </tr>

              <tr>
                  <td><span class="genmed">{L_PASSWORD}:</span> </td>
                  <td><input class="post" type="password" size="10" name="password"/> </td>
                  <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect_no -->

  <!-- BEGIN switch_fb_connect -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
        <td valign="top" width="100%" class="row1" align="center">
            <table width="100%">
              <tr>
                  <td width="55%" valign="middle">
                    <table class="right">
                        <tr>
                          <td><span class="genmed">{L_USERNAME}:</span> </td>
                          <td><input class="post" type="text" size="10" name="username"/> </td>
                          <td>
                              <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                              <span class="gensmall">{L_AUTO_LOGIN}</span>
                          </td>
                        </tr>

                        <tr>
                          <td><span class="genmed">{L_PASSWORD}:</span> </td>
                          <td><input class="post" type="password" size="10" name="password"/> </td>
                          <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                        </tr>
                    </table>
                  </td>
                  <td width="10%" align="center" valign="middle">
                    <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
                  </td>
                  <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" scope="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
              </tr>
            </table>
        </td>
      </tr>
  </table>
  <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_footer -->

<!-- BEGIN disable_viewonline -->






    <div *="">
<div id="menu_onglet">
      <div class="conteneur-menu">

  <div>
    <table width="100%" cellspacing="4" cellspanding="0" style="border: 1px solid #D9AC59 !important; background-color: #EBE5CD; box-shadow: 0 0 2px grey; background-position: 1px;">
      <tr>
        <td>
         
 

<ul class="onglets">
          <li>
            <a href="#" class="active">Geral</a>
          </li>
          <li>
            <a href="#" class="">Estatísticas</a>
          </li>
          <li>
            <a href="#" class="">Aniversariantes</a>
          </li>
          <li>
            <a href="#" class="">Grupos</a>
          </li>
          <li>
            <a href="#" class="">Creditos</a>
          </li>
        </ul>


  </td>
      </tr>
      <tr>
      <td align="left" style="background: url(http://hitskin.com/themes/10/42/65/i_folder_big.png) 0.15em 1.5em no-repeat; height: 100px;">
        <table class="table1" border="0" cellspacing="0" cellspanding="0">
          <tr>
            <td class="main-content" style="padding-left:50px;">


<div style="align: center">
  <script language="javascript" type="text/javascript" src="http://s3.archive-host.com/membres/up/1696114791/menu_libre_service_1/a.js"></script>
 


      <!--menu original-->




        <div class="conteneur-ouvrir" style="display: block; ">
          <div class="ton_contenu">
         

            <!--Estatisticas-->

                  <span class="gensmall">
                   
                    <p>{TOTAL_POSTS}</p>                   
                    <p>{RECORD_USERS}</p>
                    <p>{TOTAL_USERS}</p>
                  </span>
                  <br />
            <!--Online-->
     
                      <font style="font-size: 10px !important;"> <!-- BEGIN switch_viewonline_link -->
                        <b><a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></b>
                          <br />
            <!-- END switch_viewonline_link -->
                          {LOGGED_IN_USER_LIST}
                 
            <!-- BEGIN switch_viewonline_nolink -->
                          {L_WHO_IS_ONLINE}
            <!-- END switch_viewonline_nolink --> 
                        {TOTAL_USERS_ONLINE}</font>

            <!--Ultimo Usuario-->   
                    <span class="gensmall" style"color:#2f2f2f !important;">{NEWEST_USER}</span>
          </div>
        </div>
                     
        <div class="conteneur-ouvrir" style="display: none; ">
          <div class="ton_contenu">
            <table width="100%" border="0" cellspacing="2" cellpadding="2">
              <tbody>
                <tr>
                  <td class="cellule_1">                 
                                               
        <!--24 horas-->
            <span class="gensmall">
                    {L_ONLINE_USERS}
                      {L_CONNECTED_MEMBERS}<br />
                    <div class="clear"></div>
                  </span> 
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
                     
        <div class="conteneur-ouvrir" style="display: none; ">
          <div class="ton_contenu">
            <table class="table_1" width="100%" border="0" cellspacing="2" cellpadding="2">
              <tbody>
                <tr>
                  <td class="cellule_1">
                                         

        <!--Aniversariantes-->
            <span class="gensmall">
                    {L_WHOSBIRTHDAY_TODAY}
                    {L_WHOSBIRTHDAY_WEEK}
                </span>               
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
          </div>
                     
          <div class="conteneur-ouvrir" style="display: none; ">
            <div class="ton_contenu">
             
      <!--Grupos-->
                <span class="gensmall">
              <font color="#fff">{GROUP_LEGEND}</font>
          </span>
                   

            </div>
          </div>
           
          <div class="conteneur-ouvrir" style="display: none; ">
            <div class="ton_contenu">
              <table width="100%" border="0">
                <tbody>
                  <tr>
                    <td>
             
                    <!--Créditos--> 
                     
                      Em manutenção
                         
                    </td>
                    </tr>
                  </tbody>
                  </table>
                </div>
                </div>

 </td></tr></table></td></tr></table>
</div>

            </div>
  </div>
</div>     
         
      <!-- BEGIN switch_chatbox_activate -->
      <div id="onlinechat" style="font-size: 10px !important;">
        <p class="page-bottom">
        {TOTAL_CHATTERS_ONLINE} :
        {CHATTERS_LIST}<br />
        <!-- BEGIN switch_chatbox_popup -->
            <div id="chatbox_popup"></div>
            <script type="text/javascript">
              insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
            </script>
        <!-- END switch_chatbox_popup -->
        </p>
      </div>
      <!-- END switch_chatbox_activate -->

<!-- END disable_viewonline -->

{CHATBOX_BOTTOM}
<br clear="all" />
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
  <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td>  </td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
<!-- END switch_legend -->

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
  appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
    status: true,
    cookie: true,
    xfbml: true,
  oauth: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->

Quanto ao código javascript, substitua-o por este:
Código:
jQuery(document).ready(function(){var q='.descri a[href*="/f"]';jQuery(q).each(function(){var nome=jQuery(this).text(),link=jQuery(this).attr('href');jQuery.get(link,function(q){localStorage.setItem(nome,'<span class="gensmall"><a href="'+jQuery('a.topictitle:eq(0)',q).attr('href')+'">'+jQuery('a.topictitle:eq(0)',q).text()+'</a><br>'+jQuery('td[align="center"][nowrap="nowrap"] span.postdetails:eq(0)',q).html()+'</span>');});}); jQuery(q).mouseover(function(){var o=jQuery(this).text(),v=jQuery(this).closest('tr').find('a.forumlink').text();localStorage.setItem(v,jQuery(this).closest('tr').find('#last-post span.gensmall span:eq(0)').html());jQuery(this).closest('tr').find('#last-post span.gensmall span:eq(0)').html(localStorage.getItem(o));}); /*jQuery(q).mouseout(function(){var o=jQuery(this).text(),v=jQuery(this).closest('tr').find('a.forumlink').text();jQuery(this).closest('tr').find('#last-post span.gensmall span:eq(0)').html(localStorage.getItem(v));});*/});

Atenciosamente.
MateusV.

MateusV.
Membro Entusiasta
Membro Entusiasta

Membro desde : 30/10/2011
Mensagens : 7017
Pontos : 9284

http://mateusv.site11.com/gerador2.html

Ir para o topo Ir para baixo

Tópico resolvido Re: Últimas postagens seguindo sub-fóruns

Mensagem por Alcatra 23.12.12 19:19

Olá, funcionou perfeitamente como o esperado. Muito obrigado, MateusV, isso me ajudou bastante.
Alcatra

Alcatra
*

Membro desde : 19/12/2012
Mensagens : 32
Pontos : 62

http://alcatratestando.forumeiros.com/

Ir para o topo Ir para baixo

Ver o tópico anterior Ver o tópico seguinte Ir para o topo

- Tópicos semelhantes

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