Les folders permettent de savoir a l'aide d'une petite image, si il y a un nouveau message, une annonce, un post it ou encore un sujet verrouillé. Ils sont visibles sur l'index et viewforum avec un texte qui sert de légende. Ce tuto est basé sur le template de Subsilver, ce qui est la même chose pour la plupart des templates.
- Installation:
- Code: Tout sélectionner
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>- Code: Tout sélectionner
width="XXX" height="XXX"- Code: Tout sélectionner
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/subSilver/images/folder_new_big.gif" alt="{L_NEW_POSTS}" width="46" height="25" /></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" width="46" height="25" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/subSilver/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" width="46" height="25" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>- Code: Tout sélectionner
width="XXX" height="XXX"- Code: Tout sélectionner
<!-- BEGIN topicrow -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>- Code: Tout sélectionner
width="19" height="18"- Code: Tout sélectionner
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
<tr>
<td width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" width="19" height="18" /></td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td> </td>
<td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" width="19" height="18" /></td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td> </td>
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" width="19" height="18" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td> </td>
<td width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" width="19" height="18" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td> </td>
<td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="19" height="18" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" width="19" height="18" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td> </td>
<td class="gensmall"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" width="19" height="18" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
</tr>
</table></td>
<td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>- Code: Tout sélectionner
width="XXX" height="XXX"- Code: Tout sélectionner
$folder_iw = '26';
$folder_ih = '26';
$folderbig_iw = '30';
$folderbig_ih = '30';
- » Vous avez envie de changer de folders, c'est très simple, choisissez vos nouveaux folders ,télécharger les et déziper le tout, sélectionner toutes les images et les copier dans templates/subSilver/images sur votre ftp, afin de remplacer les anciens folders.
» Si votre template n'est pas subSilver, faite de même pour le template que vous souhaitez changer ses folders.
» Ensuite ouvrez templates/subSilver/index_body.tpl:
» Rechercher:
Le template subSilver ne possède pas la ligne width="46" height="25" (pour la version phpBB 2.0.11 et +), dans le fichier index_body.tpl, mais certains templates peuvent avoir ce rajout, qui permet de définir la taille des folders.Dans ce cas, changer les valeurs: » Pour finir l'installation, ouvrez templates/subSilver/viewforum_body.tpl
» Rechercher:
» Changer les valeurs par celles de vos nouveaux folders:
Si le template n'est pas subSilver, les valeurs peuvent être différentes.» Rechercher:
» changer les valeurs:
Autres templates:
- » Certains templates n'ont pas besoin de ces modifes et ces lignes peuvent ne pas exister, pas de panique, la taille des folders se trouve sur un et seul fichier, le fichier NOM_TEMPLATE.CFG (exemple d'un template dans ce cas: Hardware, il y en a d'autres).
» Lignes des valeurs des folders:
Conclusion:
- » Il n'est pas difficile de changer de folder, comme vous l'avez pu le constatez, le plus dur est de savoir quels fichiers a modifiers, d'ou ce tuto, ce qui permet de changer l'aspect de vos forum sans difficultées.
Article by Dav.bo
mis à jour le 12/01/2007 par Abble

