Impossible de fusionner les sujets

2 participants

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

Résolu Impossible de fusionner les sujets

Message par Pierre43 Mer 23 Mai 2018 - 15:16

Détails techniques

Version du forum : phpBB2
Poste occupé : Fondateur
Navigateur(s) concerné(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari, Autre
Capture d'écran du problème :
Voir l'image:

Personnes concernées par le problème : Plusieurs utilisateurs
Problème apparu depuis : Depuis la modification du template topics_list_box
Lien du forum : http://horde-orugaron.forumactif.com/

Description du problème

Bonjour

Comme le titre l'indique, depuis la modification de la template topics_list_box il m'est totalement impossible de fusionner les sujets vu que l'encoche pour le faire n’apparaît pas (cf : screen).

Voici le template en question :
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">
 <!-- BEGIN pagination -->
 <tr>
 <td colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
 </tr>
 <!-- END pagination -->
 <!-- END header_table -->
  <!-- BEGIN header_row -->
 <tr>
 <td 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>
<td valign="top" width="100%">
 <div class="corp_sujet">
  
  <img class="img_old_new_sujet" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" />
    <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}</span>
  
  <div class="corp_desc_sujet">
    <div class="titre_sujet">{topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE} <a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
      <div class="auteur_sujet">Auteur : {topics_list_box.row.TOPIC_AUTHOR}</div>
      <!-- BEGIN switch_description -->
      <div class="desc_sujet">{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}</div>
      <!-- END switch_description -->
      <div class="go_to_page_sujet">{topics_list_box.row.GOTO_PAGE}
        <!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree -->
      </div>
    </div>  
  </div>
  <!-- BEGIN avatar -->
  <div class="avatar_sujet">
    <div>{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</div>
  </div>
  <!-- END avatar -->
  
  <div class="corp_stat_sujet">
    <div class="vu_rep_sujet">
    Vu {topics_list_box.row.VIEWS} fois - {topics_list_box.row.REPLIES} Réponses
  </div>
    
    <div class="stats_sujet">
      {topics_list_box.row.LAST_POST_TIME} <br />
      {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</div>
 
    </div>
  </td>
<!-- BEGIN multi_selection -->
 <td 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 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>&nbsp;</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 -->

Merci par avance pour votre aide. ^^


Dernière édition par Pierre43 le Mer 23 Mai 2018 - 20:23, édité 1 fois
Pierre43

Pierre43
**

Masculin
Messages : 51
Inscrit(e) le : 24/04/2012

http://horde-orugaron.forumactif.com/
Pierre43 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Impossible de fusionner les sujets

Message par w00tw00t Mer 23 Mai 2018 - 20:07

Bonjour Pierre43,

Est-ce mieux avec cette version ?

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">
    <!-- BEGIN pagination -->
    <tr>
        <td colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
    </tr>
    <!-- END pagination -->
    <!-- END header_table -->
    <!-- BEGIN header_row -->
    <tr>
        <td 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>
        <td valign="top" width="100%">
            <div class="corp_sujet">

                <img class="img_old_new_sujet" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" />
                <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}</span>

                <div class="corp_desc_sujet">
                    <div class="titre_sujet">
                         <!-- BEGIN single_selection -->
         Sélectionnez <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
         <!-- END single_selection -->
                         {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE} <a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
                        <div class="auteur_sujet">Auteur : {topics_list_box.row.TOPIC_AUTHOR}</div>
                        <!-- BEGIN switch_description -->
                        <div class="desc_sujet">{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}</div>
                        <!-- END switch_description -->
                        <div class="go_to_page_sujet">{topics_list_box.row.GOTO_PAGE}
                            <!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree -->
                        </div>
                    </div>
                </div>
                <!-- BEGIN avatar -->
                <div class="avatar_sujet">
                    <div>{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</div>
                </div>
                <!-- END avatar -->

                <div class="corp_stat_sujet">
                    <div class="vu_rep_sujet">
                        Vu {topics_list_box.row.VIEWS} fois - {topics_list_box.row.REPLIES} Réponses
                    </div>

                    <div class="stats_sujet">
                        {topics_list_box.row.LAST_POST_TIME} <br />
                        {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</div>

                </div>
        </td>
        <!-- BEGIN multi_selection -->
        <td 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 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>&nbsp;</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 -->

Cordialement,
w00tw00t
w00tw00t

w00tw00t
***

Messages : 118
Inscrit(e) le : 09/05/2018

http://forum.forumactif.org
w00tw00t a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Impossible de fusionner les sujets

Message par Pierre43 Mer 23 Mai 2018 - 20:24

Merci beaucoup, ça a fonctionné ^^
Il manquait quoi dans le template du coup?
Pierre43

Pierre43
**

Masculin
Messages : 51
Inscrit(e) le : 24/04/2012

http://horde-orugaron.forumactif.com/
Pierre43 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Impossible de fusionner les sujets

Message par w00tw00t Mer 23 Mai 2018 - 20:27

Bonjour Pierre43,

J'ai ajouté ces quelques lignes relatives à la sélection exclusive :

Code:
<!-- BEGIN single_selection -->
Sélectionnez <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
<!-- END single_selection -->

Je reste à votre disposition pour plus de détails,

Cordialement,
w00tw00t
w00tw00t

w00tw00t
***

Messages : 118
Inscrit(e) le : 09/05/2018

http://forum.forumactif.org
w00tw00t a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Impossible de fusionner les sujets

Message par Pierre43 Mer 23 Mai 2018 - 20:33

Ça ira, vous m'avez déjà bien dépanné Smile
Merci beaucoup ^^

Mis en résolu
Pierre43

Pierre43
**

Masculin
Messages : 51
Inscrit(e) le : 24/04/2012

http://horde-orugaron.forumactif.com/
Pierre43 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