MyBB.support, le portail francophone de MyBB
[Demande] Modification ! - Version imprimable

+- MyBB.support, le portail francophone de MyBB (http://mybb.fr)
+-- Forum : Plug-ins et modules pour MyBB (http://mybb.fr/forum-32.html)
+--- Forum : Support (http://mybb.fr/forum-15.html)
+--- Sujet : [Demande] Modification ! (/thread-3410.html)



[Demande] Modification ! - Maars - 04-12-2010

Hello !

Je voudrais savoir comment ce nomme et où sont stocké les catégorie suivante !

- Qui est en ligne
-Statistique du forum



Car je voudrais modifier certaine chose !


Merci de votre aide et bonne continuation !


RE: [Demande] Mofdification ! - spyto - 04-12-2010

Dans les templates évidemment !
- Qui est en ligne : index_whosonline
- Statistiques du forum : index_boardstats


RE: [Demande] Mofdification ! - Maars - 05-12-2010

Très bien merci Smile


RE: [Demande] Mofdification ! - Maars - 05-12-2010

Mais en faite je voudrais modifier les couleur de ces 2 titres mais je ne trouve pas et il ne sont pas dans les template que tu m'indique


RE: [Demande] Mofdification ! - spyto - 05-12-2010

Si, mais il faut un peu "bricoler", ça ne se fait pas automatiquement !

Par exemple pour index_whosonline, là :
Code :
<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
tu rajoutes un peu de CSS et le tour est joué.
si tu mets mets 'style="color: #ff0000":' à la balise <span> comme ça :
Code :
<tr>
<td class="tcat"><span class="smalltext" style="color: #ff0000"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
le titre sera en rouge.

Et tu adaptes ainsi les parties que tu veux modifier.
Bien entendu, il faut appliquer tout ça sur le thème actif !


RE: [Demande] Mofdification ! - Maars - 05-12-2010

Sa fonctionne sauf pour les statistiques du forum en dessou de "Qui est en ligne" le titre reste pareille :s



Merci de ton aide


RE: [Demande] Mofdification ! - exdiogene - 05-12-2010

As-tu suivi les instructions données par spyto pour le template "index_boardstats", de la même façon qu'avec celui de "index_whosonline"?

Si oui, alors copie le code du template modifié par toi "index_boardstats" ici.


RE: [Demande] Modification ! - Maars - 05-12-2010

ok le voici :


<table border="0" cellspacing="0" cellpadding="0" class="tborder2">
<thead>
<tr>
<td class="thead" style="color: white">
<div class="theadleft"></div>
<div class="theadright"></div>
<div class="theadmain">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</div>
</td>
</tr>
</thead>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
<tr>
<td class="tfoot" style="text-align: right">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread">{$lang->markread}</a> |
<a href="showteam.php">{$lang->forumteam}</a> |
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />

Et il reste toujours normal :

[Image: dfcsdf.th.jpg]


RE: [Demande] Mofdification ! - exdiogene - 05-12-2010

Il y a une autre section pour ce titre dans le template "index_stats".

Remplacer
Code PHP :
<tr><td class="tcat"><span class="smalltext"><strong>{$lang->boardstats}</strong></span></td></tr

Par
Code PHP :
<tr><td class="tcat"><span class="smalltext" style="color: white"><strong>{$lang->boardstats}</strong></span></td></tr

Wink


RE: [Demande] Mofdification ! - spyto - 05-12-2010

Remplace :
Code :
<div><strong>{$lang->boardstats}</strong></div>
par
Code :
<div style="color: white"><strong>{$lang->boardstats}</strong></div>
Tu n'as pas mis d'indication de couleur...

Mais réflexion faite, je crois qu'il faut aussi apporter cette modification au template "index_stats".
A tester...

Edit : exdiogene a été plus rapide.


RE: [Demande] Mofdification ! - Maars - 05-12-2010

Merci Grâce a vous 2 sa fonctionne merci !


 Utilitaire de traduction fourni par Regentronique