C'est très clair, à condition de ne pas utiliser Google translate !
Parce que ça traduit (mal) tout y compris le code !!! Ce qui fait que tout devient incompréhensible...
J'ai demandé l'autorisation à koz (sur mybb.com) de publier la traduction de son post. Pour preuve :
koz a écrit :spyto a écrit :Hello,
Do you authorize me to publish a french translation of this tutorial on mybb.fr?
Best regards.
Yes, but please provide credit and a link back to the main topic.
L’auteur de ce sui suit est
koz. Lien sur le post sur mybb.com :
http://community.mybb.com/thread-97828-post-714942.html#pid714942
Tutoriel - Ajouter une barre latérale à votre forum
Je vais vous montrer comment ajouter une barre latérale sur la page d'accueil de votre forum. Ce tutoriel esr réservé aux gens qui maîtrsent le langage HTML et qui pourront le personnaliser sans recours à un plugin.
D'abord, allez au panneau Admin > Templates & Style > Templates > Votre Thème > Page d'index Templates > index.
Lorsque le template est ouvert, recherchez :
Code :
{$header}
{$forums}
{$boardstats}
En dessous de
{$header}, ajoutez le code suivant :
Code :
<div class="sidebar" style="float: left; width: 20%">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
Title Here
</td>
</tr>
<tr>
<td class="trow2">
Text Here
</td>
</tr>
</table>
</div>
Puis ajoutez les balises suivantes autour de votre {$forums} :
Code :
<div class="forums" style="float: right; width: 79%;">
{$forums}
</div>
Lorsque vous avez terminé votre
index devrait ressembler à ceci;
Code :
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<div class="sidebar" style="float: left; width: 20%">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
Title Here
</td>
</tr>
<tr>
<td class="trow2">
Text Here
</td>
</tr>
</table>
</div>
<div class="forums" style="float: right; width: 79%;">
{$forums}
</div>
{$boardstats}
<dl class="forum_legend smalltext">
<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->new_posts}</dd>
<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->no_new_posts}</dd>
<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>
Tout ça me semble très clair !