dav.bo VIP


Inscrit le: 18 Oct 2004 Messages: 372
|
Posté le: 19 Fév 2005 22:42 Sujet du message: [phpBB] Comment installer des folders? |
|
|
Comment installer des nouveaux folders sur votre forum ?
Introduction:
-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 (pour preuve, les images sont de l'un de mes thèmes).
Installation :
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 ouvrer templates/subSilver/index_body.tpl:
Rechercher:
| Code: | <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> |
Note:
-Le template subSilver ne possède pas la ligne width="46" height="25" (pour la version phpBB 2.0.11) , 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:
| Code: | | width="XXX" height="XXX" |
par les nouvelles valeurs (valeur= taille) des nouveaux folders.
-Pour finir l'installation ouvrer templates/subSilver/viewforum_body.tpl[/b]
Rechercher:
| Code: | <!-- 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> |
Changer les valeurs par celles de vos nouveaux folders:
| Code: | | width="19" height="18" |
Note:
-Si le template n'est pas subSilver, les valeurs peuvent être différentes.
Rechercher:
| Code: | <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>
|
changer les valeurs:
| Code: | | width="XXX" height="XXX" |
Par les valeurs de vos folders ou selon vos gôuts.
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'en template dans ce cas: Hardware).
Lignes des valeurs des folders :
| Code: | $folder_iw = '26';
$folder_ih = '26';
$folderbig_iw = '30';
$folderbig_ih = '30';
|
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.
Tuto by dav.bo for phpBB-Graph _________________
 |
|