AccueilAccueil  Dernières imagesDernières images  RechercherRechercher  S'enregistrerS'enregistrer  ConnexionConnexion  

Partagez
[Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3) Empty
 

 [Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3)

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
SweetGumiho
SweetGumiho
créature mystérieuse et déjantée

Between us depuis : 12/11/2014
Messages : 210
Points : 252
Age : 33
Région/pays : Bordeaux
Emploi/Etudes : Descendante de Mary Poppins, étudiante, webdesigner & rôliste
Humeur : Songeuse
http://www.arcadia-forum.com/
MessageSujet: [Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3)   [Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3) EmptyJeu 26 Fév - 10:16
Astuce

Retirer les colonnes "Sujets" et "Messages"
Cette astuce va vous permettre de changer un détail d'apparence de votre forum, en l'occurrence, retirer les colonnes "Sujets" et "Messages" pour placer les données d'une autre manière. A noter qu'il s'agit d'un phénomène de mode touche les forums, tels que mettre une bannière en fond du forum, ou avoir un sélecteur de thèmes, mais cela n'est en aucun cas obligatoire pour avoir un beau forum.

Voici donc ce qui va se passer.
Au lieu d'avoir l'apparence traditionnelle:

Les sujets et messages apparaîtront ainsi:

1. Suivre ce chemin : Panneau d'administration > Affichage > Templates > Général.

2. Éditer le template index_box (Cliquer sur Modifier [Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3) KdgIUeu).

3. Situer un extrait et le supprimer.

SI VOUS ÊTES EN PHPBB2

Code:
     <th nowrap="nowrap" width="50">{L_TOPICS}</th>
      <th nowrap="nowrap" width="50">{L_POSTS}</th>
ET
Code:
     <td class="row3" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td>

SI VOUS ÊTES EN PHPBB3

Code:
                 <dd class="topics">{L_TOPICS}</dd>
                  <dd class="posts">{L_POSTS}</dd>

4. Situer un extrait et le remplacer par un autre.

SI VOUS ÊTES EN PHPBB2, TROUVER :

Code:
<h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
 
            </span>
         </h{catrow.forumrow.LEVEL}>

ET LE REMPLACER PAR :

Code:
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
 
            </span>
         </h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall">{catrow.forumrow.POSTS} messages dans {catrow.forumrow.TOPICS} sujets.</td></tr></tbody></table>

SI VOUS ÊTES EN PHPBB3, TROUVER :

Code:
                 <dd class="dterm">
                     <div style="display: block; margin : 0 {catrow.forumrow.INC_LEVEL_RIGHT} 0 {catrow.forumrow.INC_LEVEL_LEFT};">
                        <h{catrow.forumrow.LEVEL} class="hierarchy">
                        <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumtitle">{catrow.forumrow.FORUM_NAME}</a>
                        </h{catrow.forumrow.LEVEL}>
                        <br />
                        {catrow.forumrow.FORUM_DESC}
 
                        <!-- BEGIN switch_moderators_links -->
                           {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
                        <!-- END switch_moderators_links -->
                        {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
                        <strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}
                     </div>
                  </dd>
                  <dd class="topics">{catrow.forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
                  <dd class="posts">{catrow.forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>

ET LE REMPLACER PAR :

Code:
                 <dd class="dterm">
                     <div style="display: block; margin : 0 {catrow.forumrow.INC_LEVEL_RIGHT} 0 {catrow.forumrow.INC_LEVEL_LEFT};">
                        <h{catrow.forumrow.LEVEL} class="hierarchy">
                        <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumtitle">{catrow.forumrow.FORUM_NAME}</a>
                        </h{catrow.forumrow.LEVEL}>
                                                                <div class="stat-forum" style="text-align:right;">{catrow.forumrow.POSTS} {L_POSTS} dans {catrow.forumrow.TOPICS} {L_TOPICS}</div>
                        <br />
                        {catrow.forumrow.FORUM_DESC}
 
                        <!-- BEGIN switch_moderators_links -->
                           {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
                        <!-- END switch_moderators_links -->
                        {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
                        <strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}
                     </div>
                  </dd>

5. Vérifier en cliquant sur En attente [Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3) EOiGJun

6. Et si satisfait du résultat, publier [Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3) Sa7fx2R

7. Si sous phpBB3, la feuille de style CSS devra être modifiée. Aller dans Affichage > Couleurs > Feuille de style CSS. Ajouter :
Code:
.forabg .lastpost { width:25% }
.forabg .dterm { width:70% !important }
Valider.

Et voilà !

Si vous avez des questions, je suis à votre disposition !  :3:

Revenir en haut Aller en bas
 

[Astuce n°2] Suppression des colonnes "Sujets" et "Messages" (phpBB2 & phpBB3)

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

 Sujets similaires

-
» [Astuce n°4] Suppression de la boîte de recherche (phpBB3)
» [Astuce n°6] Suppression de la mention du type de sujet (phpBB3)
» [Astuce n°5] Suppression de date/heure /dernière visite (phpBB3)
» Régler la taille des images sur les messages et profils
» Suggestions de sujets d'astuce

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Between us :: Partie Entraide
parce qu'on est une communauté
 :: Conseils & Astuces Rpg :: Astuces Codages
-