Salut mes amis (utilisateur de Mybb)
Voila aprés je post un sujet sur la Commuty Anglais de Mybb a propos de
l'icone a chaque forum.
ils ont bien me répondu (Merci : Winford F et Texasli )
et Voila la solution qui me donne :
Dans APC=> templates (votre theme)>> forum bit templates >> forumbit_depth2_forum
Chercher :
Code PHP :
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
Remplacer par :
Code PHP :
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.gif" />
Puis dans le dossier images de votre theme Crié un dossier du nom "icon"
puis mettre les images "xxxx.gif" Avec "xxxx" = ID de chaque forum.
C vous voulez mettre des images format "png" il vous faux seulement de changer ce ci dans le code précèdent :
par ceci :
pour supprimer ces icones seulement mettre le template "forumbit_depth2_forum" avec le défaut de Mybb.
Pour un Forum exemple visite : BAHI-EDUCATION
Bonne chance a tous
yen a deux de ca
img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
c'est lequel
il y a un seule dans forumbit_depth2_forum
Code PHP :
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
ok corrige ca mdr "Puis dans le dossier images de votre theme Crié un dossier du nom "icon"" c'est Cree
regarde dans mon templates j'en es deux comme te le disait :
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><if $mybb->settings['enable_pl9ForumIcons'] then><if $forum['forum_icon'] then><img src="{$forum['forum_icon']}" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /><else /><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></if><else /><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></if></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>
lequel je doit modifier
ok le problème que vous avez utiliser le mode "PL9 Forum Icons"
disactiver lui et Changer le code de votre templete par ceci:
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="middle" width="1">
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.png" />
</td>
<td class="{$bgcolor}" valign="middle">
<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="middle" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="middle" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>
moi j'utilse format "PNG"
moi aussi donc je desactive le module es apres j en aurrai qu un seul si j'ai compris c ca
Pas de quoi
C vous avez besoin de aide vous êtes le bienvenue
juste une question ce code la
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="middle" width="1">
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.png" />
</td>
<td class="{$bgcolor}" valign="middle">
<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="middle" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="middle" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>
je le remplace en entier ou juste a la place de cette ligne :
Code PHP :
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
pas bien compris pouvez vous bien expliquer SVP
haytoch a écrit :ok le problème que vous avez utiliser le mode "PL9 Forum Icons"
disactiver lui et Changer le code de votre templete par ceci:
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="middle" width="1">
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.png" />
</td>
<td class="{$bgcolor}" valign="middle">
<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="middle" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="middle" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>
ce que vous m'avez dit pour ce code en haut je le remplace a la place de la ligne que vous demander de remplacer ou c'est tous le code que je doit mettre a la place
Mais dans ce code j'ai tout régler pour vous seulement le mettre dans votre template
ok je fait un copie coller que je met a la place de l'autre c'est ca
Wé fait voir c ca marche o non !!
c non SVP MP pour moi le lien de votre forum
Désoler mais sa ne m'affiche pas l'image :s
avez vous mettre les images dans la bonne place?, Ansi leur nom = ID de chaque forum
C possible un lien a votre forum SVP