Problème suppression de colonnes

2 participants

Voir le sujet précédent Voir le sujet suivant Aller en bas

Résolu Problème suppression de colonnes

Message par MlleAlys Jeu 25 Oct 2012 - 21:58

Bonjour,

Voilà j'ai un souci et je demande votre aide : j'ai supprimé le template "topics_list_box" les cellules correspondant aux colonnes "vues" et "messages" des topics concernés (dans l'en tête et dans le tableau), et cela ne m'a posé aucun problème jusqu'à ce que je poste une annonce :
J'ai alors remarqué que lorsque les annonces et Note sont séparés par un tableau, les colonnes normalement effacées réapparaissent dans l'en tête (alors que lorsque les annonces et Note ne sont pas séparés des topics ou n'en sont séparés que par une ligne, elles sont bien supprimées)...

Captures :

- séparation par une ligne Problème suppression de colonnes  Captur10

- séparation par un tableau Problème suppression de colonnes  Captur11

Comment corriger ce problème ?
(si vous avez besoin du code du template, pas de souci dites le)

Merci d'avance pour vos réponses, quelles qu'elles soient ! Very Happy


Dernière édition par MlleAlys le Dim 28 Oct 2012 - 15:31, édité 1 fois
MlleAlys

MlleAlys
Membre actif

Messages : 5767
Inscrit(e) le : 12/09/2012

MlleAlys a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème suppression de colonnes

Message par Syonah Ven 26 Oct 2012 - 18:02

A priori, il faut que tu supprimes les entêtes des Note aussi... (ils doivent avoir le leur, qui leur est propre, je pense)

Je veux bien ton code au cas où, stp Smile
Syonah

Syonah
****

Féminin
Messages : 411
Inscrit(e) le : 24/03/2009

http://unebouteillealamer.pro-forum.fr/
Syonah a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème suppression de colonnes

Message par MlleAlys Ven 26 Oct 2012 - 18:39

d'abord, merci pour la réponse ! =D

je suppose aussi qu'il doit y avoir un autre tableau à modifier, mais je ne sais pas où...
voilà le code de mon template "topics_list_box" :

Code:
<!-- 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 -->

<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap"> {topics_list_box.row.L_TITLE} </th>
      <th align="center" nowrap="nowrap" width="100"> {topics_list_box.row.L_AUTHOR} </th>
      <th align="center" nowrap="nowrap" width="150"> {topics_list_box.row.L_LASTPOST} </th>
      <!-- BEGIN multi_selection -->
      <th align="center" nowrap="nowrap" width="20"><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" /></th>
   <!-- END multi_selection -->
   </tr>
   <!-- BEGIN pagination -->
   <tr>
      <td class="row1" colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
   </tr>
   <!-- END pagination -->
   <!-- END header_table --><!-- BEGIN header_row -->
   <tr>
      <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
   </tr>
<!-- END header_row -->

<!-- BEGIN topic -->
{topics_list_box.row.END_TABLE_STICKY}
   <tr>
      <!-- BEGIN single_selection -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
      <!-- END single_selection -->
      <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><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}" /></td>
      <!-- BEGIN icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
      <!-- END icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
         <div class="topictitle">
            {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE}
            <h2 class="topic-title">
               <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
            </h2>
         </div>
         <!-- BEGIN switch_description -->
         <span class="genmed">
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
         </span>
         <!-- END switch_description -->
         <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> 
         <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
      </td>

      <td class="row1" align="center" valign="middle"><span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span></td>
      <td class="row1" onmouseover='this.className="row2"' onmouseout='this.className="row1"' align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
      <td class="row2" align="center" valign="middle"><span class="postdetails"><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} /></span></td>
   <!-- END multi_selection -->
   </tr>
   <!-- END topic --><!-- BEGIN no_topics -->
   <tr>
      <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
   </tr>
   <!-- END no_topics --><!-- BEGIN bottom -->
   <tr>
      <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td> <span class="gensmall">{PAGINATION}</span></td>
               <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td>
            </tr>
         </table>
      </td>
   </tr>
<!-- END bottom --><!-- BEGIN footer_table -->
</table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->
MlleAlys

MlleAlys
Membre actif

Messages : 5767
Inscrit(e) le : 12/09/2012

MlleAlys a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème suppression de colonnes

Message par Syonah Sam 27 Oct 2012 - 12:28

Alors première solution pour régler ton problème :
PA > Général > Messages et Emails > Configuration > Séparer les annonces et posts-it des messages
Et tu coches "Par une ligne".

Je continue à regarder le code au cas où tu voudrais laisser comme ça.
Syonah

Syonah
****

Féminin
Messages : 411
Inscrit(e) le : 24/03/2009

http://unebouteillealamer.pro-forum.fr/
Syonah a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème suppression de colonnes

Message par MlleAlys Sam 27 Oct 2012 - 12:51

oui c'est ce que j'ai fait en attendant,
mais effectivement si trouve comment faire je préfère le tableau ^^"
MlleAlys

MlleAlys
Membre actif

Messages : 5767
Inscrit(e) le : 12/09/2012

MlleAlys a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème suppression de colonnes

Message par Syonah Sam 27 Oct 2012 - 13:18

Bon, après avoir bien regardé le code, je pense que ces colonnes sont dans la fonction {topics_list_box.row.header_table.BOX_ID}
Et.. on a pas la main dessus, désolée...
Syonah

Syonah
****

Féminin
Messages : 411
Inscrit(e) le : 24/03/2009

http://unebouteillealamer.pro-forum.fr/
Syonah a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème suppression de colonnes

Message par MlleAlys Sam 27 Oct 2012 - 13:48

ok, merci beaucoup pour ton aide !
(on restera en séparation par une ligne alors T-T)
MlleAlys

MlleAlys
Membre actif

Messages : 5767
Inscrit(e) le : 12/09/2012

MlleAlys a été remercié(e) par l'auteur de ce sujet.

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum