MyBB.support, le portail francophone de MyBB

Version complète : icone pour chaque forum + Nouveaux sujet ...
Vous consultez actuellement la version basse qualité d’un document. Voir la version complète avec le bon formatage.
Pages : 1 2
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
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%">&nbsp;</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
****Forum Bit Templates==>forumbit_depth2_forum 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']}{$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
Merci pour ton tutoriel Haytoch, pour que les autres comprennent bien, ce tutoriel vous montre comment faire pour savoir si un forum contient de nouveau messages a l'aide des flèches que vous voyez a coté des images pour chaque forum ! Bonne chance a vous et merci encore Haytoch beau travail
A très bientôt et bonne chance a tous !
Merci a vous aussi pour l'explication Smile

Post Edit.
C'est rien Smile
@One :

Ta description n'est pas juste, 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".

Wink
Merci Bcp a vous Smile

Le sujet est modifier une autre fois.

Merci encours Smile
j'ai creer le dossier icon dans mon fichier de theme et jai mis une image qui sappelle 1.png mais elle naparait pas
Euh !... Pour information, le dernier message de ce sujet datait du
08-11-2010 soit deux ans et demi !!!
L'adresse URL de votre site n'est toujours pas valide, nous ne pourrons donc pas vous aider...
Bonjours j'ai tout copié les texte la ou il fallait sans problème !
Mais j'ai un souci !

(Voir les pièces jointes)

Comment remédier a celas ?


Mon site : http://aero-creators.nhost.me/index.php
(Il se peut qu'il beug par moment parce que c'est un sous domaine !)

[attachment=1307]

[attachment=1308]
Curieux, car moi je vois tout bien sur FireFox...
Ah donc sa doit être chrome Sad
(J'utilise chrome moi car je le trouve très performant comparer a mozilla)
Non, il y a un os dans l'onglet "Graphisme"... En bas, le pot de peinture n'est pas aligné et le texte :
Code :
Forum     Sujets     Messages     Dernier message
est répété !

L'onglet "Général" est OK.

PS : je n'aime pas beaucoup l'intitulé de ce forum :
Warez
Posté vos logiciel ici ! (Si un logiciel illégal est posté merci de le signalé !)

Le titre et le sous-titre se contredisent ! Par définition du warez c'est illégal... Donc si quelqu'un y poste un logiciel, il ne pourra qu'être signalé.
Shy A quoi sert-il exactement ? Shy
Ah! Je n'avais pas regardé les autres onglets...

C'est le code au ,ilieu des deux lignes qui est ajouté par erreur, probablement par le plugin MyTabs :
Code :
<br>
<!-- end: forumbit_subforums --></div>
===============================================
</td>
<td class="trow2" style="white-space: nowrap" align="center" valign="top">0</td>
<td class="trow2" style="white-space: nowrap" align="center" valign="top">0</td>
<td class="trow2" style="white-space: nowrap" align="right" valign="top"><div style="text-align: center;">Jamais</div></td>
</tr>
<!-- end: forumbit_depth2_forum -->
</tbody>
</table>
===============================================
<br>
<!-- end: forumbit_depth1_cat -->
</div>
<!-- mytabs_full_end --></div>
<!-- mytabs: end --><!-- mytabs: ajax version end -->
@ Spyto, merci de cette information je ne savez pas du tout :S Je corrige sa !

@ Exidogene, Que dois-je faire précisément ? J'utilise mybb depuis 5 jours c'est dur tout sa ! :')
Je pense qu'il parle de ça précisément :
Code :
</td>
<td class="trow2" style="white-space: nowrap" align="center" valign="top">0</td>
<td class="trow2" style="white-space: nowrap" align="center" valign="top">0</td>
<td class="trow2" style="white-space: nowrap" align="right" valign="top"><div style="text-align: center;">Jamais</div></td>
</tr>
&lt;!-- end: forumbit_depth2_forum --&gt;
</tbody>
</table>
Essaye de le supprimer voir ce que sa donne Cool
D'acc je vous dit sa dans 5 minute ! Smile
Non sa ne change rien malheureusement :/
Je vais posté les code de chaque template du tuto Wink (Pour vous montré comment son les miens Wink )
****Affichage forum Templates==>forumdisplay_subforums :

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%">&nbsp;</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 :

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 :

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

****Forum Bit Templates==>forumbit_depth2_forum :

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

Voici donc les codes de mes templates qu'il faut modifié comme dit plus haut !

Mon site : http://aero-creators.nhost.me/index.php
Je viens de vérifier en profondeur et j'ai découvert que le problème venais du template "forumbit_subforums" qui s'imbrique mal dans le template du forum.

Le vôtre contient ceci :
Code :
<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%">&nbsp;</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 />

Quand normalement il ne devrait contenir que cela :
Code :
<br />{$lang->subforums} {$sub_forums}
D'accord je test, je vous tien au courant Wink
MERCI !
Tout est résolu plus un seul bug ! Big Grin
Merci beaucoup je commencé a paniqué ! :')
Bonjour / bonsoir

je remonte un vieux poste (dernier message de mai 2013)

mais voila j'ai un petit soucis avec le tutos il fonctionne très bien sur mon forum aucun soucis sauf sous Firefox quand on passe notre sourit sur n'importe quelle texte il deviens gras et souligné comment y remédier ?

deuxiéme soucis

les images que j'ajoute on un espace sur le coter droit voir capture d'écrans

[Image: Sans titre.png]

Merci de vos futur aides
Pages : 1 2
 Utilitaire de traduction fourni par Regentronique