Organizar template

+2
Shek
Hdesigner
6 participantes

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

Tópico resolvido Organizar template

Mensagem por Hdesigner 18.05.14 0:05


  • Descrição:

Favor organizar esse código de template: topics_list_box.


Código:
<script>
jQuery(document).ready(function(){
      jQuery('#right').css('display','none');
      jQuery('#content').css('margin-right','0px');
});
</script>
<style>
  #content-container div#content {
margin-right: 0px;
}
</style>
<!-- BEGIN topics_list_box -->
<!-- BEGIN row -->
<!-- BEGIN header_table -->
   <!-- BEGIN multi_selection -->
      <script type="text/javascript">
      function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
         var all_checked = true;
         for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
         if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
         }
         }
         document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
      }
      function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
         for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
         if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
         }
         }
      }
      </script>
   <!-- END multi_selection -->

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>

      </thead>
      <tbody class="statused">
<!-- END header_table -->

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->

<!-- BEGIN topic -->
   <!-- BEGIN table_sticky -->
      </tbody>
   </table>
   </div>

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /   >
      <!-- END multi_selection -->
      <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>

      </thead>
      <tbody class="statused">
   <!-- END table_sticky -->
      <tr>
         <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
            <span class="stats">
               <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
            </span>
            <!-- BEGIN single_selection -->
            <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />&nbsp;
            <!-- END single_selection -->
                                {topics_list_box.row.ICON}&nbsp;
            {topics_list_box.row.NEWEST_POST_IMG}
            {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
            {topics_list_box.row.TOPIC_TYPE}&nbsp;
            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>&nbsp;
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}&nbsp;
            {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
            <!-- BEGIN switch_description -->
                                <br />
            &nbsp;{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            <!-- END switch_description -->
         </td>
              <td id="postA" class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->"><span class="ipsBadge ipsBadge_orange" data-id="hot_topic" style="display:none;">CHEIO</span><strong data-id="replies" class="RP">{topics_list_box.row.REPLIES}</strong> respostas<br /><strong class="VW"> {topics_list_box.row.VIEWS}</strong> views</td>
                        <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
         <!-- BEGIN multi_selection -->
         <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
         <!-- END multi_selection -->
      </tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
   <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->

<!-- BEGIN bottom -->
      </tbody>
   </table>
   </div>
   <div class="main-foot clearfix">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
      <p class="options">
         <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>&nbsp;{S_WATCH_FORUM}&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>
      </p>
   </div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->
<script type="text/javascript">
                //<![CDATA[
            /***
            * Copyright (c) 2013 JScript <jscriptbrasil at live.com>
            * This work is free. You can redistribute it and/or modify it
            * under the terms of the WTFPL, Version 2
            *
            * For more information, go to the home page:
            * http://punbb.forumeiros.com/forum
            */
                var replies_value = 7;
                var target = $('td.tc2');
             
                target.each(function(index){
                    var oThis = $(this);
                    var replies = oThis.children('strong[data-id="replies"]').text();

                    if (replies > replies_value) {
                        oThis.children('span[data-id="hot_topic"]').show();
                    }
                });
                //]]>
            </script>
<style>
.ipsBadge {
    display: inline-block;
    height: 15px;
    line-height: 15px;
    padding: 0px 5px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    color: #FFF;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-image: url('http://www.ipbfocus.com/forums/public/style_images/ipbfs34x/highlight.png');
    background-repeat: repeat-x;
    background-position: 0px -1px;
    vertical-align: middle;
}
.ipsBadge_orange {
              background: #ED7710;
  margin-right: 5px;
}
.tcl.tdtopics #ipsBadge strong {
    background:url('http://i56.servimg.com/u/f56/17/97/98/69/highli20.png') repeat scroll 0% 0% #7BA60D;
    vertical-align: middle;
    display: inline-block;
    height: 16px;
    line-height: 16px !important;
    padding: 0px 5px;
    font-size: 9px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    color: rgb(255, 255, 255) !important;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-repeat: repeat-x;
    background-position: 0px -1px;
}
</style>          



Que os tópicos e "Anuncios, Anuncios globais e A ler" fiquem nos seus devidos lugares.



  • Informações:


Fórum:http://yardimci.forumbrasil.net/forumVersão:PUNBB
Tipo:Erros diversosTags:Organizar,template

Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 18.05.14 10:30

up
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Principal Contribuidor

Tópico resolvido Re: Organizar template

Mensagem por Shek 19.05.14 13:30

Olá!

Poderia me informar a URL do subfórum com uma imagem e mais detalhes do problema?

Atenciosamente,
Shek
Shek

Shek
Principal Contribuidor
Principal Contribuidor

Membro desde : 11/04/2009
Mensagens : 18896
Pontos : 22793

https://shiftactive.blogspot.com/ https://www.facebook.com/ShiftActif https://twitter.com/ShiftActif

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 19.05.14 14:40

Eu quero que o efeito funcione em todos os fóruns Feliz
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 20.05.14 12:25

up
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 21.05.14 9:26

up
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 22.05.14 11:22

up
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 23.05.14 14:15

AJUDAAAE PO. ;/

UP
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Membro Entusiasta

Tópico resolvido Re: Organizar template

Mensagem por Roevs 23.05.14 14:21

Olá,

Poderia tirar um print mostrando oque deseja que seja feito ?

Até
Roevs

Roevs
Membro Entusiasta
Membro Entusiasta

Membro desde : 10/02/2012
Mensagens : 6484
Pontos : 8343

https://www.sololevelingrpg.com/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Duel 23.05.14 18:49

Olá!

Crie um novo javascript, com o código informado abaixo:
Painel de Controle Seta Módulos Seta HTML & JAVASCRIPT Seta Gestão dos Códigos JavaScript
Código:
jQuery( function() {
var xari = jQuery('h1.page-title').html();
var tori = jQuery('p.h2').html();
jQuery('p.h2').html(xari);
jQuery('h1.page-title').html(tori);
});
Seta Investimento: Em todas as páginas.

Atenciosamente, Duel.
avatar

Duel
****

Membro desde : 21/05/2014
Mensagens : 323
Pontos : 446

https://ajuda.forumeiros.com/ https://www.facebook.com/Não uso. https://twitter.com/Não tenho

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 23.05.14 22:15

Não resultou. Fechem o tópico, e não ponham resolvido, porquê não foi -,-
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Duel 23.05.14 22:17

Olá! Muito feliz

Talvez se descrevesse o que falta, eu poderia lhe ajudar..

avatar

Duel
****

Membro desde : 21/05/2014
Mensagens : 323
Pontos : 446

https://ajuda.forumeiros.com/ https://www.facebook.com/Não uso. https://twitter.com/Não tenho

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Destruidor(EIC) 27.05.14 1:19

Olá Hdesigner,
Não se exalte.

Explique melhor sua dúvida. Quer que organizemos o código do template. OK. Com o objetivo de que tópicos como "Anúncio global", "Anúncio" e "A ler" fiquem em seu devido lugar.

Portanto explique-nos melhor o que quis dizer com seu devido lugar, pois vendo o fórum que mencionou, estão todos posicionados no lugar correto. Por acaso quer separar estes tipos de tópicos por quadro?

Cumprimentos.
Destruidor(EIC)

Destruidor(EIC)
***

Membro desde : 10/10/2012
Mensagens : 162
Pontos : 279

http://ligado.forum.st

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Kyo Panda 27.05.14 2:02

Nyeh?

Código:
<script>
jQuery(document).ready(function(){
      jQuery('#right').css('display','none');
      jQuery('#content').css('margin-right','0px');
});
</script>
<style>
  #content-container div#content {
margin-right: 0px;
}
</style>
<!-- BEGIN topics_list_box -->
<!-- BEGIN row -->
<!-- BEGIN header_table -->
  <!-- BEGIN multi_selection -->
      <script type="text/javascript">
      function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
        var all_checked = true;
        for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
        if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
        }
        }
        document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
      }
      function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
        for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
        if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
        }
        }
      }
      </script>
  <!-- END multi_selection -->

  <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <h1 class="page-title flip-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
  </div>
  <div class="main-content">
  <table cellspacing="0" class="table">
      <thead>

      </thead>
      <tbody class="statused">
<!-- END header_table -->

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->

<!-- BEGIN topic -->
  <!-- BEGIN table_sticky -->
      </tbody>
  </table>
  </div>

  <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /  >
      <!-- END multi_selection -->
      <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
  </div>
  <div class="main-content">
  <table cellspacing="0" class="table">
      <thead>

      </thead>
      <tbody class="statused">
  <!-- END table_sticky -->
      <tr>
        <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
            <span class="stats">
              <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
            </span>
            <!-- BEGIN single_selection -->
            <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />&nbsp;
            <!-- END single_selection -->
                                {topics_list_box.row.ICON}&nbsp;
            {topics_list_box.row.NEWEST_POST_IMG}
            {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
            {topics_list_box.row.TOPIC_TYPE}&nbsp;
            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>&nbsp;
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}&nbsp;
            {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
            <!-- BEGIN switch_description -->
                                <br />
            &nbsp;{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            <!-- END switch_description -->
        </td>
              <td id="postA" class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->"><span class="ipsBadge ipsBadge_orange" data-id="hot_topic" style="display:none;">CHEIO</span><strong data-id="replies" class="RP">{topics_list_box.row.REPLIES}</strong> respostas<br /><strong class="VW"> {topics_list_box.row.VIEWS}</strong> views</td>
                        <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
        <!-- BEGIN multi_selection -->
        <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
        <!-- END multi_selection -->
      </tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
  <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->

<!-- BEGIN bottom -->
      </tbody>
  </table>
  </div>
  <div class="main-foot clearfix">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <p class="h2 flip-footer">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
      <p class="options">
        <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>&nbsp;{S_WATCH_FORUM}&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>
      </p>
  </div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->
<script type="text/javascript">
                //<![CDATA[
            /***
            * Copyright (c) 2013 JScript <jscriptbrasil at live.com>
            * This work is free. You can redistribute it and/or modify it
            * under the terms of the WTFPL, Version 2
            *
            * For more information, go to the home page:
            * http://punbb.forumeiros.com/forum
            */
                var replies_value = 7;
                var target = $('td.tc2');
           
                target.each(function(index){
                    var oThis = $(this);
                    var replies = oThis.children('strong[data-id="replies"]').text();

                    if (replies > replies_value) {
                        oThis.children('span[data-id="hot_topic"]').show();
                    }
                });
                //]]>
            </script>
<style>
.ipsBadge {
    display: inline-block;
    height: 15px;
    line-height: 15px;
    padding: 0px 5px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    color: #FFF;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-image: url('http://www.ipbfocus.com/forums/public/style_images/ipbfs34x/highlight.png');
    background-repeat: repeat-x;
    background-position: 0px -1px;
    vertical-align: middle;
}
.ipsBadge_orange {
              background: #ED7710;
  margin-right: 5px;
}
.tcl.tdtopics #ipsBadge strong {
    background:url('http://i56.servimg.com/u/f56/17/97/98/69/highli20.png') repeat scroll 0% 0% #7BA60D;
    vertical-align: middle;
    display: inline-block;
    height: 16px;
    line-height: 16px !important;
    padding: 0px 5px;
    font-size: 9px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    color: rgb(255, 255, 255) !important;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background-repeat: repeat-x;
    background-position: 0px -1px;
}
</style>         

<script type="text/javascript">
  var title, footer;
  title = $('.flip-title').text();
  footer = $('.flip-footer').text();
  $('.flip-title').text(footer);
  $('.flip-footer').text(title);
</script>
Kyo Panda

Kyo Panda
Hiper Membro

Membro desde : 08/01/2012
Mensagens : 4641
Pontos : 5939

https://ajuda.forumeiros.com

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 27.05.14 14:18

Olá Destruidor, sim.. quero separa-los nos blocos adequados de cada um.

Os tópicos normais caem no bloco :
ANÚNCIO GLOBAL&ANÚNCIO & A LER 

Sendo que existe um bloco para tópicos normais. Quero que cada um caia em seu lugar.

Kyo Panda, seu código não resultou. já o descartei, estou com o meu primeiro funcionando em meu fórum.
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Duel 28.05.14 16:55

Olá!

Depois de um pequeno estudo, procurando possíveis bugs no seu template. Finalmente consegui, achar a causa de tal erro.
Troque o código por esse:
Código:
    <script>
    jQuery(document).ready(function(){
          jQuery('#right').css('display','none');
          jQuery('#content').css('margin-right','0px');
    });
    </script>
    <style>
      #content-container div#content {
    margin-right: 0px;
    }
    </style>
    <!-- BEGIN topics_list_box -->
    <!-- BEGIN row -->
    <!-- BEGIN header_table -->
      <!-- BEGIN multi_selection -->
          <script type="text/javascript">
          function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
            var all_checked = true;
            for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
            if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
                all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
            }
            }
            document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
          }
          function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
            for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
            if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
                document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
            }
            }
          }
          </script>
      <!-- END multi_selection -->

      <div class="main-head">
          <!-- BEGIN multi_selection -->
          <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
          <!-- END multi_selection -->
          <h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
      </div>
      <div class="main-content">
      <table cellspacing="0" class="table">
          <thead>

          </thead>
          <tbody class="statused">
    <!-- END header_table -->

    <!-- BEGIN header_row -->
    <strong>{topics_list_box.row.L_TITLE}</strong>
    <!-- END header_row -->

    <!-- BEGIN topic -->
      <!-- BEGIN table_sticky -->
          </tbody>
      </table>
      </div>

      <div class="main-head">
          <!-- BEGIN multi_selection -->
          <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /  >
          <!-- END multi_selection -->
          <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
      </div>
      <div class="main-content">
      <table cellspacing="0" class="table">
          <thead>

          </thead>
          <tbody class="statused">
      <!-- END table_sticky -->
          <tr>
            <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
                <span class="stats">
                  <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
                </span>
                <!-- BEGIN single_selection -->
                <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />&nbsp;
                <!-- END single_selection -->
                                    {topics_list_box.row.ICON}&nbsp;
                {topics_list_box.row.NEWEST_POST_IMG}
                {topics_list_box.row.PARTICIPATE_POST_IMG}&nbsp;
                {topics_list_box.row.TOPIC_TYPE}&nbsp;
                <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>&nbsp;
                {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}&nbsp;
                {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
                <!-- BEGIN switch_description -->
                                    <br />
                &nbsp;{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
                <!-- END switch_description -->
            </td>
                  <td id="postA" class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->"><span class="ipsBadge ipsBadge_orange" data-id="hot_topic" style="display:none;">CHEIO</span><strong data-id="replies" class="RP">{topics_list_box.row.REPLIES}</strong> respostas<br /><strong class="VW"> {topics_list_box.row.VIEWS}</strong> views</td>
                            <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
            <!-- BEGIN multi_selection -->
            <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
            <!-- END multi_selection -->
          </tr>
    <!-- END topic -->
    <!-- BEGIN no_topics -->
    <tr>
      <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
    </tr>
    <!-- END no_topics -->

    <!-- BEGIN bottom -->
          </tbody>
      </table>
      </div>
      <div class="main-foot clearfix">
          <!-- BEGIN multi_selection -->
          <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
          <!-- END multi_selection -->
 
          <p class="options">
            <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>&nbsp;{S_WATCH_FORUM}&nbsp;<a href="#top">{L_BACK_TO_TOP}</a>
          </p>
      </div>
    <!-- END bottom -->
    <!-- BEGIN spacer --><br /><!-- END spacer -->
    <!-- END row -->
    <!-- END topics_list_box -->
    <script type="text/javascript">
                    //<![CDATA[
                /***
                * Copyright (c) 2013 JScript <jscriptbrasil at live.com>
                * This work is free. You can redistribute it and/or modify it
                * under the terms of the WTFPL, Version 2
                *
                * For more information, go to the home page:
                * http://punbb.forumeiros.com/forum
                */
                    var replies_value = 7;
                    var target = $('td.tc2');
               
                    target.each(function(index){
                        var oThis = $(this);
                        var replies = oThis.children('strong[data-id="replies"]').text();

                        if (replies > replies_value) {
                            oThis.children('span[data-id="hot_topic"]').show();
                        }
                    });
                    //]]>
                </script>
    <style>
    .ipsBadge {
        display: inline-block;
        height: 15px;
        line-height: 15px;
        padding: 0px 5px;
        font-size: 9px;
        font-weight: bold;
        text-transform: uppercase;
        color: #FFF;
        text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
        border-radius: 3px;
        background-image: url('http://www.ipbfocus.com/forums/public/style_images/ipbfs34x/highlight.png');
        background-repeat: repeat-x;
        background-position: 0px -1px;
        vertical-align: middle;
    }
    .ipsBadge_orange {
                  background: #ED7710;
      margin-right: 5px;
    }
    .tcl.tdtopics #ipsBadge strong {
        background:url('http://i56.servimg.com/u/f56/17/97/98/69/highli20.png') repeat scroll 0% 0% #7BA60D;
        vertical-align: middle;
        display: inline-block;
        height: 16px;
        line-height: 16px !important;
        padding: 0px 5px;
        font-size: 9px !important;
        font-weight: bold !important;
        text-transform: uppercase;
        color: rgb(255, 255, 255) !important;
        text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
        border-radius: 3px;
        background-repeat: repeat-x;
        background-position: 0px -1px;
    }
    </style>         
Painel -> Geral -> Mensagens e e-mails -> Configuração -> Mensagens -> Procure por Separar os anúncios e posts-it em um fórum :

Seta Clique em 'Por Quadros'.

Espero ter lhe ajudado. Sugiro ter mais paciência com quem tenta lhe ajudar. Muito feliz
avatar

Duel
****

Membro desde : 21/05/2014
Mensagens : 323
Pontos : 446

https://ajuda.forumeiros.com/ https://www.facebook.com/Não uso. https://twitter.com/Não tenho

Ir para o topo Ir para baixo

Tópico resolvido Re: Organizar template

Mensagem por Hdesigner 28.05.14 19:09

Duel, funcionou perfeitamente amigo, muito obrigado!!
Hdesigner

Hdesigner
****

Membro desde : 17/07/2012
Mensagens : 309
Pontos : 485

http://hdesign.forumbrasil.net/

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