Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

2 participants

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

Résolu Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Lucy Akaya Jeu 13 Oct 2022 - 23:03

Détails techniques


Version du forum : phpBB2
Poste occupé : Administrateur
Navigateur(s) concerné(s) : Google Chrome
Capture d'écran du problème :
Voir l'image:

Personnes concernées par le problème : Tous les utilisateurs
Problème apparu depuis : 13/10/2022
Lien du forum : https://forumtestgardien.forumactif.com/f11-fiches-costumes

Description du problème

Bonjour, bonsoir !

Je reviens vers vous car j'ai une petite question / problématique que je n'arrive pas à résoudre.
Sur de nombreux forum, lorsqu'on navigue sur le forum, en cliquant sur l'une des sous-catégorie, on arrive sur la liste des sujets. Au dessus de cette liste, on a le titre du sous-forum afficher (comme sur l'exemple donné)

J'aimerais savoir comment faire pour faire apparaitre le titre de la sous-catégorie dans l'espace orange. J'ai essayée tellement de variable différente que je commence à être désespérée.

Pour avoir une vision plus belle de ce dont je parle, j'ai fais une petite capture d'écran d'un forum pour montrer l'exemple Smile
Petit exemple

Est-ce que quelqu'un aurait une idée pour que cela fonctionne ? Une variable ou alors un indice sur le javascript a utiliser ?

Voilà un morceau de mon template topic-list-box (la partie en question se situe juste après le javascript, c'est le "cate-title"):
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 -->
<div class="cate_title">
      {catrow.forumrow.LINKS}
    </div>
<table class="forumline listsuj" width="100%" border="0" cellspacing="0" cellpadding="0">
    <!-- END header_table --><!-- BEGIN header_row -->
    <tr>
        <td  class="visionsuj" 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 -->
        <div class="modSBJ"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></div>
    <!-- END single_selection -->
        <div class="LSBJ">
            <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" class="sujeticone" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" />
            <div class="boxSBJ">
                <div class="titresujet">
                    <div style="display:inline-block; vertical-align:middle; width:1px; height:45px;"></div>
                    <div style="display:inline-block; vertical-align:middle; width:96%; padding-left: 13px;">{topics_list_box.row.TOPIC_TYPE}
                        <a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
                        <br/><!-- BEGIN switch_description -->
                        <div class="descSBJ">{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}</div>
                        <!-- END switch_description -->
                        <div class="gotoSBJ">{topics_list_box.row.GOTO_PAGE}
                            <!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE}<!-- END nav_tree -->
                        </div>
                    </div>
                </div>
                <div class="testsoussujet">
                    <div class="teststrong"><strong>rédigé par {topics_list_box.row.TOPIC_AUTHOR}</strong></div>
                    <div class="vuesSBJ">{topics_list_box.row.VIEWS} V.</div>
                    <div class="repSBJ">{topics_list_box.row.REPLIES} R.</div>
                </div>
            </div>
            <!-- BEGIN avatar -->
            <div class="avatarsujet">
                {topics_list_box.row.topic.avatar.LAST_POST_AVATAR}
            </div>
            <!-- END avatar -->
            <div class="nameSBJ">
                <div style="display:inline-block; vertical-align:middle; width:99%; margin-top: 19px;" class="testcouleur">
                    <div class="dernierposteur">{topics_list_box.row.LAST_POST_TIME}<br> par {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</div>
                </div>
            </div>
        </div>
            
        <!-- BEGIN multi_selection -->
        <td class="quevoistesyeuxdelf" 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 colspan="{topics_list_box.row.COLSPAN}" valign="middle">
            <table width="800px" style="margin:auto;" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <span class="gensmall" id="testpagi">{PAGINATION}</span>
                    </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 -->

Je vous remercie pour le temps que vous prendrez pour lire ma requête (qui est peut-être incompréhensible, je m'en excuse çç)

Je vous souhaites une agréable journée/soirée,
Akaya Smile


Dernière édition par Lucy Akaya le Ven 14 Oct 2022 - 19:35, édité 1 fois
avatar

Lucy Akaya
Nouveau membre

Messages : 14
Inscrit(e) le : 02/07/2015

https://miraculousquest.forumactif.com/
Lucy Akaya a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Fallen Leaves Ven 14 Oct 2022 - 13:09

Bonjour Very Happy

Ca se passe plutôt dans le template viewforum_body, est-ce que tu pourrais fournir les codes de ce template ? Like a Star @ heaven
Fallen Leaves

Fallen Leaves
***

Féminin
Messages : 138
Inscrit(e) le : 16/08/2015

https://kissmenow.forumactif.com/
Fallen Leaves a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Lucy Akaya Ven 14 Oct 2022 - 13:42

Oh Fallen ! Bonjour <3

Oui bien sure, je te fourni le code !

Code:
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
   
   <tr class="topsuj">
      <td align="left" valign="middle" width="50">
         <!-- BEGIN switch_user_authpost -->
         <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}" alt="{L_POST_NEW_TOPIC}" border="0" /></a>
         <!-- END switch_user_authpost -->
      </td>
      <td class="nav" valign="middle" width="100%">
            <div class="nav" id="navisuj">
                <a class="nav" href="{U_INDEX}"><span>{L_INDEX}</span></a>{NAV_CAT_DESC}
            </div>
        </td>
   </tr>
</table>
{TOPICS_LIST_BOX}

<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
   <tr>
      <td align="left" valign="middle" width="50">
         <!-- BEGIN switch_user_authpost -->
         <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}1" alt="{L_POST_NEW_TOPIC}" border="0" /></a>
         <!-- END switch_user_authpost -->
      </td>
      <td align="right" nowrap="nowrap">
         <!-- BEGIN switch_sort_options -->
         <span id="sort-box" class="gensmall">
            <form method="post" class="sort-form">
               {switch_sort_options.L_SORT_BY}:&nbsp;
               <select name="sort_method">
                  {switch_sort_options.S_OPTIONS}
               </select>
               &nbsp;<input class="liteoption" type="submit" value="{switch_sort_options.L_SORT}" />
            </form>
         </span>
         <!-- END switch_sort_options -->
         <form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}"><span class="gensmall">{L_JUMP_TO}:&nbsp;{S_JUMPBOX_SELECT}&nbsp;<input class="liteoption" type="submit" value="{L_GO}" /></span></form>
      </td>
   </tr>
   <!-- BEGIN switch_legend -->
   <tr>
      <td colspan="2">
         <table border="0" cellpadding="6" cellspacing="2" align="center">
            <tr>
               <td>
                  <img src="{FOLDER_NEW_IMG}" alt="{L_FOLDER_NEW_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_NEW_IMG}</span><br />
                  <img src="{FOLDER_HOT_NEW_IMG}" alt="{L_FOLDER_HOT_NEW_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_HOT_NEW_IMG}</span><br />
                  <img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_FOLDER_LOCKED_NEW_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_LOCKED_NEW_IMG}</span>
               </td>
               <td>
                  <img src="{FOLDER_IMG}" alt="{L_FOLDER_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_IMG}</span><br />
                  <img src="{FOLDER_HOT_IMG}" alt="{L_FOLDER_HOT_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_HOT_IMG}</span><br />
                  <img src="{FOLDER_LOCKED_IMG}" alt="{L_FOLDER_LOCKED_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_LOCKED_IMG}</span>
               </td>
               <td valign="top">
                  <img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_FOLDER_ANNOUNCE_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_ANNOUNCE_IMG}</span><br />
                  <img src="{FOLDER_GLOBAL_ANNOUNCE_IMG}" alt="{L_FOLDER_GLOBAL_ANNOUNCE_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_GLOBAL_ANNOUNCE_IMG}</span><br />
                  <img src="{FOLDER_STICKY_IMG}" alt="{L_FOLDER_STICKY_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_STICKY_IMG}</span><br />
               </td>
            </tr>
         </table>
      </td>
   </tr>
   <!-- END switch_legend -->
</table>

C'est un peu le KO dans le code xD je m'en excuse çxç

Merci beaucoup pour ton aide ! Tu me sauve !!
Des bisouuuuuuuuuuus <3
avatar

Lucy Akaya
Nouveau membre

Messages : 14
Inscrit(e) le : 02/07/2015

https://miraculousquest.forumactif.com/
Lucy Akaya a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Fallen Leaves Ven 14 Oct 2022 - 14:15

Recoucou Very Happy

Alors c'est étrange parce que ce lien se trouve chez moi dans le template viewforum_body et chez toi, il se trouverait dans le template topic-list-box scratch
Est-ce que c'est toi qui as rajouté ce code dans le template topic-list-box ?

Code:
<div class="cate_title">
      {catrow.forumrow.LINKS}
    </div>

Bon en tout cas, on va tenter de corriger tout ça pour que tu puisses enfin avoir ton lien qui s'affiche I love you
Essaye de remplacer ton template viewforum_body par ceci :

Code:
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
  
   <tr class="topsuj">
      <td align="left" valign="middle" width="50">
         <!-- BEGIN switch_user_authpost -->
         <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}" alt="{L_POST_NEW_TOPIC}" border="0" /></a>
         <!-- END switch_user_authpost -->
      </td>
      <td class="nav" valign="middle" width="100%">
            <div class="nav" id="navisuj">
                <a class="nav" href="{U_INDEX}"><span>{L_INDEX}</span></a>{NAV_CAT_DESC}
            </div>
<div class="cate_title">
     <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
    </div>
        </td>
   </tr>
</table>
{TOPICS_LIST_BOX}
 
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
   <tr>
      <td align="left" valign="middle" width="50">
         <!-- BEGIN switch_user_authpost -->
         <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}1" alt="{L_POST_NEW_TOPIC}" border="0" /></a>
         <!-- END switch_user_authpost -->
      </td>
      <td align="right" nowrap="nowrap">
         <!-- BEGIN switch_sort_options -->
         <span id="sort-box" class="gensmall">
            <form method="post" class="sort-form">
               {switch_sort_options.L_SORT_BY}:&nbsp;
               <select name="sort_method">
                  {switch_sort_options.S_OPTIONS}
               </select>
               &nbsp;<input class="liteoption" type="submit" value="{switch_sort_options.L_SORT}" />
            </form>
         </span>
         <!-- END switch_sort_options -->
         <form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}"><span class="gensmall">{L_JUMP_TO}:&nbsp;{S_JUMPBOX_SELECT}&nbsp;<input class="liteoption" type="submit" value="{L_GO}" /></span></form>
      </td>
   </tr>
   <!-- BEGIN switch_legend -->
   <tr>
      <td colspan="2">
         <table border="0" cellpadding="6" cellspacing="2" align="center">
            <tr>
               <td>
                  <img src="{FOLDER_NEW_IMG}" alt="{L_FOLDER_NEW_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_NEW_IMG}</span><br />
                  <img src="{FOLDER_HOT_NEW_IMG}" alt="{L_FOLDER_HOT_NEW_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_HOT_NEW_IMG}</span><br />
                  <img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_FOLDER_LOCKED_NEW_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_LOCKED_NEW_IMG}</span>
               </td>
               <td>
                  <img src="{FOLDER_IMG}" alt="{L_FOLDER_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_IMG}</span><br />
                  <img src="{FOLDER_HOT_IMG}" alt="{L_FOLDER_HOT_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_HOT_IMG}</span><br />
                  <img src="{FOLDER_LOCKED_IMG}" alt="{L_FOLDER_LOCKED_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_LOCKED_IMG}</span>
               </td>
               <td valign="top">
                  <img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_FOLDER_ANNOUNCE_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_ANNOUNCE_IMG}</span><br />
                  <img src="{FOLDER_GLOBAL_ANNOUNCE_IMG}" alt="{L_FOLDER_GLOBAL_ANNOUNCE_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_GLOBAL_ANNOUNCE_IMG}</span><br />
                  <img src="{FOLDER_STICKY_IMG}" alt="{L_FOLDER_STICKY_IMG}" border="0" loading="lazy" /> <span class="gensmall">{L_FOLDER_STICKY_IMG}</span><br />
               </td>
            </tr>
         </table>
      </td>
   </tr>
   <!-- END switch_legend -->
</table>

Valide et va voir si ça fonctionne. Si cela fonctionne, tu devrais normalement avoir une double boîte avec ton fond coloré : une où il y aura le titre du forum et une où il n'y aura rien.
Si c'est le cas, il te suffira d'enlever ta div cate-title dans le template topic-list-box, ce qui te donnera ça comme code :

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 listsuj" width="100%" border="0" cellspacing="0" cellpadding="0">
    <!-- END header_table --><!-- BEGIN header_row -->
    <tr>
        <td  class="visionsuj" 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 -->
        <div class="modSBJ"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></div>
    <!-- END single_selection -->
        <div class="LSBJ">
            <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" class="sujeticone" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" />
            <div class="boxSBJ">
                <div class="titresujet">
                    <div style="display:inline-block; vertical-align:middle; width:1px; height:45px;"></div>
                    <div style="display:inline-block; vertical-align:middle; width:96%; padding-left: 13px;">{topics_list_box.row.TOPIC_TYPE}
                        <a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
                        <br/><!-- BEGIN switch_description -->
                        <div class="descSBJ">{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}</div>
                        <!-- END switch_description -->
                        <div class="gotoSBJ">{topics_list_box.row.GOTO_PAGE}
                            <!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE}<!-- END nav_tree -->
                        </div>
                    </div>
                </div>
                <div class="testsoussujet">
                    <div class="teststrong"><strong>rédigé par {topics_list_box.row.TOPIC_AUTHOR}</strong></div>
                    <div class="vuesSBJ">{topics_list_box.row.VIEWS} V.</div>
                    <div class="repSBJ">{topics_list_box.row.REPLIES} R.</div>
                </div>
            </div>
            <!-- BEGIN avatar -->
            <div class="avatarsujet">
                {topics_list_box.row.topic.avatar.LAST_POST_AVATAR}
            </div>
            <!-- END avatar -->
            <div class="nameSBJ">
                <div style="display:inline-block; vertical-align:middle; width:99%; margin-top: 19px;" class="testcouleur">
                    <div class="dernierposteur">{topics_list_box.row.LAST_POST_TIME}<br> par {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</div>
                </div>
            </div>
        </div>
            
        <!-- BEGIN multi_selection -->
        <td class="quevoistesyeuxdelf" 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 colspan="{topics_list_box.row.COLSPAN}" valign="middle">
            <table width="800px" style="margin:auto;" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <span class="gensmall" id="testpagi">{PAGINATION}</span>
                    </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 -->

Voili voilou, dis-moi si tout s'est passé comme il faut Very Happy
Fallen Leaves

Fallen Leaves
***

Féminin
Messages : 138
Inscrit(e) le : 16/08/2015

https://kissmenow.forumactif.com/
Fallen Leaves a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Lucy Akaya Ven 14 Oct 2022 - 14:46

Merci beaucoup pour ton aide ! ça fonctionne parfaitement !

Du coup j'ai par la suite remarqué quelques choses, je pense que c'est normal mais je demande au cas ou Very Happy
Quand j'installe le code que tu as mit, il y a bien le cadre qui apparait, mais dans le cas ou on a des catégories dans le forum, il affiche deux fois le cadre avec le sous forum D: (je te montre un exemple juste en dessous !)

https://zupimages.net/up/22/41/vx32.png (comme tu peux le voir, le cadre avec le sous forum apparait deux fois. Le premier en haut de la categ et ensuite juste avant la partie sujet)

Est ce qu'il y aurait un moyen de palier à cela ?

Je te remercie <3
Bisouuuuuuuuuuuuuu coeur sur toi !!
avatar

Lucy Akaya
Nouveau membre

Messages : 14
Inscrit(e) le : 02/07/2015

https://miraculousquest.forumactif.com/
Lucy Akaya a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Fallen Leaves Ven 14 Oct 2022 - 17:16

Reuuuh Like a Star @ heaven Very Happy

Alors oui, c'est le fonctionnement normal (voilà un screen de mon forum et tu verras que c'est similaire, ça apparaît en haut et en bas : https://data.nimages.fr/aptureweb14102022162355kissmenowforumactifcoma2s.jpeg )
En haut ça reprend le lien de mon sous-forum "L'Etat Civil" qui contient 2 sous forums (fiches validées et fiches archivées) et ensuite, en dessous, ça reprend le lien du sous-forum avec la liste de topics qui peuvent être postés là (modèle de fiche, les bottins, etc...)
Du coup, je pense que ça serait gênant de modifier ça, ça permet de bien délimiter la partie où il y a les sous forums de la catégorie et la liste de sujets.


Mais si jamais tu veux vraiment en enlever un (je suppose que tu voudras garder celui tout en haut et enlever le deuxième), il faudrait que j'aille voir en live sur ton forum de test ce que tu m'as envoyé juste au dessus (la catégorie "second forum") Peux-tu me donner le lien direct ?
Je ne sais pas si c'est à cause de mon navigateur ou quoi mais je n'arrive pas à scroller sur ton forum de test, ça reste bloqué en haut, impossible de descendre (et peu importe la page) Shocked
Fallen Leaves

Fallen Leaves
***

Féminin
Messages : 138
Inscrit(e) le : 16/08/2015

https://kissmenow.forumactif.com/
Fallen Leaves a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Lucy Akaya Ven 14 Oct 2022 - 17:45

Reuuuuuuuuh Very Happy

J'ai bien lu ta réponse et en vrai, cela ne me semble pas si mal de laisser les deux, je pense que ça peut donner quelques choses de bien. Tu as raison c'est plus structuré !

Mais dans la possibilité possible que le fondateur demande de modifier cela, je veux bien qu'on voit ensemble pour enlever le deuxième si besoin !

https://forumtestgardien.forumactif.com/f3-second-forum

En effet, j'ai remarquée qu'il y avait un problème de scroll et en effet, j'avais fais une grosse boulette dans mon CSS affraid ! Heureusement, j'ai régler le soucis et normalement tout fonctionne correctement ! Si jamais tu as encore le soucis, il suffit juste de vider le cache Very Happy

Merci beaucouuuuup <3
avatar

Lucy Akaya
Nouveau membre

Messages : 14
Inscrit(e) le : 02/07/2015

https://miraculousquest.forumactif.com/
Lucy Akaya a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Fallen Leaves Ven 14 Oct 2022 - 17:55

Ah oui ça fonctionne mieux comme ça Wink

Par contre, en attendant ta réponse, je me suis permise d'aller sur le forum principal et on dirait que ce que tu veux est déjà en place : https://miraculousquest.forumactif.com/f3-l-office-du-tourisme
Le lien du sous-forum n'est visible qu'en haut I love you
Du coup ta demande est-elle toujours d'actualité ou c'est bon ? ^^
Fallen Leaves

Fallen Leaves
***

Féminin
Messages : 138
Inscrit(e) le : 16/08/2015

https://kissmenow.forumactif.com/
Fallen Leaves a été remercié(e) par l'auteur de ce sujet.
  • 0

Résolu Re: Récupérer le nom du sous-forum pour l'afficher dans la liste des sujets

Message par Lucy Akaya Ven 14 Oct 2022 - 18:10

Je viens d'aller voir et effectivement, il n'y ai qu'une fois D:
Mais je pense que cela est mieux avec les deux indications, cela rend plus propre et plus jolie je trouve ! Je suis fan de l'idée final <3

Je met en résolu alors et je te remercie pour ton aide <3

Passe une agréable fin de journée !
avatar

Lucy Akaya
Nouveau membre

Messages : 14
Inscrit(e) le : 02/07/2015

https://miraculousquest.forumactif.com/
Lucy Akaya 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