Séparer les forums dans les catégories

3 participants

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

Résolu Séparer les forums dans les catégories

Message par IzumiRK Mer 25 Fév 2015 - 19:19

Détails techniques


Version du forum : phpBB2
Poste occupé : Fondateur
Navigateur(s) concerné(s) : Google Chrome
Personnes concernées par le problème : Tous les utilisateurs
Lien du forum : http://dead-everyday.forums-actifs.com/

Description du problème

Bonjour,

J'ai récemment séparé les catégories de mon forum en onglets et je rencontre un autre problème dans mes tentatives de codage.

Je précise d'avance : c'est bien séparer les forums que je cherche, et non séparer les catégories, et les seules réponses que j'ai trouvé en cherchant étaient celles consistant à modifier la hiérarchie du forum, ce qui n'est pas exactement ce que je cherche à faire.

En gros : j'ai fait un cadre autour du titre des forums, mais j'aimerais qu'ils soient séparés et chacun dans des cadres différents (comme on peut le faire d'ordinaire avec les catégories). Je sais que c'est possible car c'est le cas sur un forum ou je suis inscrite, mais je ne sais pas trop comment faire.

En clair, au lieu de ça :
Séparer les forums dans les catégories Sans_t10
Je cherche à faire ça :
Séparer les forums dans les catégories Sans_t11

Je prépare un nouveau thème pour un forum et ça fait déjà pas mal de temps que les membres attendent, donc je me résous à demander de l'aide parce que je suis visiblement incapable de le faire toute seule.
Bon je sais pas trop si c'est là que ça va, c'est une histoire de script mais ça concerne l'apparence du forum. Si c'est mal placé, je m'excuse ._.

Merci d'avance.


Dernière édition par IzumiRK le Mar 3 Mar 2015 - 0:42, édité 1 fois
IzumiRK

IzumiRK
****

Messages : 206
Inscrit(e) le : 25/02/2015

http://indare.forumactif.com/
IzumiRK a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Séparer les forums dans les catégories

Message par IzumiRK Ven 27 Fév 2015 - 3:49

Up
IzumiRK

IzumiRK
****

Messages : 206
Inscrit(e) le : 25/02/2015

http://indare.forumactif.com/
IzumiRK a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Séparer les forums dans les catégories

Message par [Nihil] Ven 27 Fév 2015 - 10:41

Coucou IzumiRK Smile

Pourrais-t-on avoir le code de ton template index_box s'il te plait ?
[Nihil]

[Nihil]
Membre habitué

Messages : 1215
Inscrit(e) le : 10/12/2009

https://forum.forumactif.com
[Nihil] a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Séparer les forums dans les catégories

Message par IzumiRK Ven 27 Fév 2015 - 17:22

Bien sûr :

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
   <tr>
   <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
                  <center><span class="gensmall">{LAST_VISIT_DATE} ▬ {CURRENT_TIME}
                    </span></center>
        <center><a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> ▬ <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> ▬ <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></center>
  <!-- END switch_user_logged_in --> 
    </td>
</tr>
</table>
<div id="conteneur_onglets_cate">
  <div class="onglet_cate">↕Préambule</div>
  <div class="onglet_cate">Gestion des personnages</div>
  <div class="onglet_cate">Extérieur</div>
  <div class="onglet_cate">Bâtiment principal</div>
  <div class="onglet_cate">Bâtiments annexes↕</div><br/>
  <div class="onglet_cate">↕Kochi</div>
  <div class="onglet_cate">Périphérie et ailleurs</div>
  <div class="onglet_cate">Hors RPG↕</div>
</div><br/><br/>
<div id="conteneur_categories">
<!-- BEGIN catrow --><!-- BEGIN tablehead -->
<div class="categorie"><table class="forumline" id="categories" width="100%" border="0" cellspacing="0" cellpadding="0" valign="top">
   <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"></th>
      <th nowrap="nowrap" width="90"></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" valign="top"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%" valign="top">
         <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="right">&nbsp;</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="top">
         
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
         <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
                                </span>
                         
                                  <span class="gensmall" style="color:#71AFD1; float:right;">Messages : {catrow.forumrow.POSTS} || Sujets : {catrow.forumrow.TOPICS}</span><br />
         </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 -->
            
         </span>
      </td>
      <td class="row3" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
      </td>
      
      <td class="row3 over" align="center" valign="middle" height="50">
            <!-- BEGIN avatar -->
            <div style="width: 200px;"></div>
            <span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
            <!-- END avatar -->
                  <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /><br/>
         <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
      </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" /></div>
<!-- END tablefoot --><!-- END catrow -->
</div>
IzumiRK

IzumiRK
****

Messages : 206
Inscrit(e) le : 25/02/2015

http://indare.forumactif.com/
IzumiRK a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Séparer les forums dans les catégories

Message par IzumiRK Dim 1 Mar 2015 - 15:51

Up
IzumiRK

IzumiRK
****

Messages : 206
Inscrit(e) le : 25/02/2015

http://indare.forumactif.com/
IzumiRK a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Séparer les forums dans les catégories

Message par Ange Tuteur Lun 2 Mar 2015 - 7:00

Bonjour IzumiRK,

Remplacer votre template index_box par :
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
  <td class="gensmall" align="right" valign="bottom">
        <!-- BEGIN switch_user_logged_in -->
                  <center><span class="gensmall">{LAST_VISIT_DATE} ▬ {CURRENT_TIME}
                    </span></center>
        <center><a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> ▬ <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> ▬ <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></center>
  <!-- END switch_user_logged_in -->
    </td>
</tr>
</table>
<div id="conteneur_onglets_cate">
  <div class="onglet_cate">↕Préambule</div>
  <div class="onglet_cate">Gestion des personnages</div>
  <div class="onglet_cate">Extérieur</div>
  <div class="onglet_cate">Bâtiment principal</div>
  <div class="onglet_cate">Bâtiments annexes↕</div><br/>
  <div class="onglet_cate">↕Kochi</div>
  <div class="onglet_cate">Périphérie et ailleurs</div>
  <div class="onglet_cate">Hors RPG↕</div>
</div><br/><br/>
<div id="conteneur_categories">
<!-- BEGIN catrow -->
  <!-- BEGIN forumrow -->
  <div class="categorie"><table class="forumline" id="categories" width="100%" border="0" cellspacing="0" cellpadding="0" valign="top">
  <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="top">
       
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
        <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
              <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
                                </span>
                       
                                  <span class="gensmall" style="color:#71AFD1; float:right;">Messages : {catrow.forumrow.POSTS} || Sujets : {catrow.forumrow.TOPICS}</span><br />
        </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 -->
           
        </span>
      </td>
      <td class="row3" align="center" valign="middle" height="50">
        <span class="gensmall">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
      </td>
     
      <td class="row3 over" align="center" valign="middle" height="50">
            <!-- BEGIN avatar -->
            <div style="width: 200px;"></div>
            <span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
            <!-- END avatar -->
                  <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /><br/>
        <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
      </td>
  </tr>
</table><img src="{SPACER}" alt="" height="5" width="1" /></div>
  <!-- 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 -->
<!-- END tablefoot --><!-- END catrow -->
</div>
Ange Tuteur

Ange Tuteur
****

Masculin
Messages : 482
Inscrit(e) le : 16/11/2013

https://fmdesign.forumotion.com
Ange Tuteur a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Séparer les forums dans les catégories

Message par IzumiRK Mar 3 Mar 2015 - 0:42

Ça marche =) Merci beaucoup
IzumiRK

IzumiRK
****

Messages : 206
Inscrit(e) le : 25/02/2015

http://indare.forumactif.com/
IzumiRK 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