1 Templates : Combiner Messages et Sujets sur l'index 22/2/2009, 17:52
Ce tutoriel a été publié par ze_chaofan sur SOS-Forum. Afin que les tutoriels de SOS-Forum restent en libre accès, ainsi que par respect du travail accompli, tout tutoriel copié ou s'en inspirant publié ailleurs qu'ici, devra en citer le ou les auteurs ainsi que la provenance via un lien vers ce sujet sur le SOS-Forum. |
Hello...
Avant tout, rappelez-vous que pour accéder aux templates, il est nécessaire d'être fondateur du forum, et que ce forum soit en phpbb2.
Petit tutoriel pratique qui vous permettra, sur votre forum phpbb2, de transformer ceci :
En ceci (la colonne prenant automatiquement la couleur de fond 2) :
Le principal intérêt étant un affichage plus pratique et plus esthétique.
Alors commençons. Allez dans la gestion des templates, ouvrez le template "index_box" et cherchez ces lignes :
- Code:
<th nowrap="nowrap" width="50">{L_TOPICS}</th>
<th nowrap="nowrap" width="50">{L_POSTS}</th>
- Code:
<th nowrap="nowrap" width="120"><div style="width:120px;">Messages Postés</div></th>
Puis, cherchez ces lignes :
- Code:
<!-- BEGIN forum_link_no -->
<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>
- Code:
<!-- BEGIN forum_link_no -->
<td class="row2" align="center" valign="middle" height="50">
<i><span class="gensmall">{catrow.forumrow.POSTS} Messages</span><br /><span class="gensmall">dans {catrow.forumrow.TOPICS} Sujets</span></i>
</td>
Validez et re-confirmez, et voilà !
C'est pas beau ça ?