Sujet : [0.8.1] Hack - Affichage cats / forums
Ajouté le : 16/03/2005 20:06
Message :
Ce hack est très simple à installer. Il permet la catégorie pour laquelle on veut afficher les forums ou de masquer tous les forums. Deux boutons permettent de masquer ou d'afficher tous les forums, et un simple click sur une catégorie permet d'afficher les forums de celle-ci.
Fichier index.php lignes 179 à 191
$tpl->box['affforumcontent'] .= $tpl->gettemplate("index","affcategorie");
if (isset($_GET['viewcat']) && $_GET['viewcat']!=0)
{
$zcat = intval($_GET['viewcat']);
if ($zcat==$Cats['catid'])
{
$tpl->box['affforumcontent'] .= $tpl->box['forumlist'];
}
}
else
$tpl->box['affforumcontent'] .= $tpl->box['forumlist'];
Fichier tpl_index.html - bloc affcategorie - Ligne 160 à 165
<tr height="20">
<td class="corp" bgcolor="{%::_SKIN[bgtable3]%}" style="padding-left:4;" colspan=6>
<a href="index.php?viewcat=-1"><img src="{%::_SKIN[repimg]%}/bottompage.gif" border="0"></a> <a href="index.php?viewcat=0"><img src="{%::_SKIN[repimg]%}/toppage.gif" border="0"></a> <font size={%::_SKIN[middlefont]%}><b><a href="index.php?viewcat={%::Cats[catid]%}" class="men">{%::Cats[cattitle]%}</a></b></font><br>
{%box[catcoment]%}
</td>
</tr>
Fichier tpl_index.html - bloc catcoment - Ligne 169
<font size={%::_SKIN[smallfont]%}> {%::Cats[catcoment]%}</font><br>
Et le tour est joué
Avant de poster : La documentation - Les FAQ