08-11-2010, 16:40
Slt a tous ,
Je veux vous présentez aujourd'hui un tutoriel pour avoir une Résultat comme ceci .
[attachment=731]
Édit après : ce Post
Comment Ajouter un icône pour chaque forum c'est déjà traiter sur ce sujet : http://www.mybb.fr/showthread.php?tid=2689
Maintenant comment faire pour une résultat comme l'image ci-dessus ??
il vous faut Changement de Continue de quelques templetes de votre Thème utiliser et voilà les changemet :
Replacez tout le contenu de ces templates par cel qui a poster ici.
****Affichage forum Templates==>forumdisplay_subforums par:
****Forum Bit Templates==>forumbit_depth1_cat par:
****Forum Bit Templates==>forumbit_depth2_cat par:
****Forum Bit Templates==>forumbit_depth2_forum par:
Demo enligne :
* http://www.mybbsos.co.cc
* http://www.bahi-education.com
NB: Tutoriel est traduit .
i voila bonne chance a tous .
Je veux vous présentez aujourd'hui un tutoriel pour avoir une Résultat comme ceci .
[attachment=731]
Édit après : ce Post
exdiogene a écrit :le tutoriel de Haytoch est pour ajouter une colonne supplémentaire contenant une icône personnelle à tous les forums, ceci en préservant l'indicateur de nouveaux messages déjà existant...
Les utilisateurs doivent créer au préalable leurs icônes personnelles dans un répertoire "icon" à l'intérieur du répertoire de leur thème. Les icônes doivent aussi être nommées en fonction du numéro d'identification du forum, par exemple pour le forum avec un ID de 18, l'icône se nommera "18.png".
Comment Ajouter un icône pour chaque forum c'est déjà traiter sur ce sujet : http://www.mybb.fr/showthread.php?tid=2689
Maintenant comment faire pour une résultat comme l'image ci-dessus ??
il vous faut Changement de Continue de quelques templetes de votre Thème utiliser et voilà les changemet :
Replacez tout le contenu de ces templates par cel qui a poster ici.
****Affichage forum Templates==>forumdisplay_subforums par:
Code PHP :
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="6" align="center"><strong>{$lang->sub_forums_in}</strong></td>
</tr>
<tr>
<td class="tcat"></td>
<td class="tcat" width="2%"> </td>
<td class="tcat" width="59%"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$forums}
</table>
<br />
****Forum Bit Templates==>forumbit_depth1_cat par:
Code PHP :
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="6">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat"></td>
<td class="tcat"></td>
<td class="tcat"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
****Forum Bit Templates==>forumbit_depth2_cat par:
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="center">
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.png" />
</td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="center">
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.png" />
</td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
Demo enligne :
* http://www.mybbsos.co.cc
* http://www.bahi-education.com
NB: Tutoriel est traduit .
i voila bonne chance a tous .
Source : http://community.mybb.com/thread-53881.html par : Ooka