Ben voilà, je suis occupée à créer un forum général lié à une rubrique (n°2)
. Voici le code du fichier rubrique-2.html, j'ai bidouillé beaucoup pour
avoir le même style que mes autres pages et finalement je me suis perdue et
j'ai le message suivant:
BOUCLE_Principale: tag fermant manquant
Quelqu'un peut m'aider? Où dois-je mettre </BOUCLE_principale>?
Voici le code du fichier:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<BOUCLE_Principale(RUBRIQUES){id_rubrique}>
<html>
<head>
<meta http-equiv="Content-Type" content="text/HTML; charset=iso-8859-1"
/>
<title>[#NOM_SITE_SPIP] [(#TITRE|supprimer_numero|textebrut)]</title>
<meta name="Description" content="[(#DESCRIPTIF|textebrut|attribut_html) -
sur SPIP CONTRIB]">
<meta name=" robot" content="follow, index, all" />
<meta name="revisit-after" content="1 days" />
<!-- feuille de style de spip-contrib -->
<link rel="stylesheet" type="text/css" href="contrib_style.css" />
</head>
<body>
<div id="page">
<div id="enteteDePage">
<INCLURE(entete.php3){id_rubrique}{id_article}>
</div> <!-- /entete page -->
<div id="sousPageGauche">
<div id="colonneGauche">
<!-- Sommaire -->
<div id="cadre">
<div id="titre">Sommaire</div>
<INCLURE(menu.php3){id_rubrique}>
</div>
<div id="cadre"></div>
</div>
<!-- Colonne centrale -->
<div id="colonneCentrale" >
<!-- Les dernieres contribs -->
<div id="cadre">
<CENTER><font size="6">Forum General</font></CENTER>
<br><br>
<!-- ////////////////////// -->
<BOUCLE_principale(RUBRIQUES){id_rubrique=2}>
<!-- mettre id_rubrique=XX, XX étant le numéro d'une
rubrique-XX.html existante, et sans forum de préférence -->
<!-- ou sinon renommer forumgeneral.html en rubrique-XX.html ou
rubrique=XX.html et mettez rubrique.php3 à 0 seconde -->
<!-- NUMEROS DE PAGES -->
<table width=700 cellpadding=0 cellspacing=0 border=0>
<tr width=700>
<td width=200>
</td>
<td width=50> </td>
<td width=450>
<BOUCLE_nombre(FORUMS){id_rubrique}{age < 180}>
</BOUCLE_nombre>
<?
global $debut_forum;
$total="#TOTAL_BOUCLE";
for ($numero = 0; $numero < $total; $numero = $numero + 20){
$num_fin = $numero + 20;
if ($num_fin > $total) $num_fin = $total;
if ($numero == $debut_forum)
echo "<b>[".($numero+1)."-$num_fin]</b> ";
else
echo "[<A
HREF='forumgeneral.php3?debut_forum=$numero'>".($numero+1)."-$num_fin</A>]
";
}
?>
</B_nombre>
</td>
</tr>
</table>
<!-- FORUM -->
<BOUCLE_entrees(FORUMS){id_rubrique}{par date}{inverse}{debut_forum,20}>
<p>
<table width=700 cellpadding=0 cellspacing=0 border=0>
<tr width=700>
<td width=200>
</td>
<td width=50> </td>
<td width=450>
<A NAME="forum#ID_FORUM">
<b><a href="forummessage.php3?id_forum=#ID_FORUM#forum#ID_FORUM"><font
color="white">#TITRE</font></a></b>
[((#NOM))] [(#DATE|affdate)]
<BOUCLE_new(FORUMS){id_forum}{age < 3}>
<font color="red" size=1 face="arial,helvetica,sans-serif">NOUVEAU</font>
</BOUCLE_new>
<B_message>
<ul>
<BOUCLE_message(FORUMS){id_parent}{par date}>
<A NAME="forum#ID_FORUM">
<li><a
href="forummessage.php3?id_forum=#ID_FORUM#forum#ID_FORUM"><b>#TITRE</b></a>
[((#NOM))] [(#DATE|affdate)]
<BOUCLE_new2(FORUMS){id_forum}{age < 3}>
<font color="red" size=1 face="arial,helvetica,sans-serif">NOUVEAU</font>
</BOUCLE_new2>
<BOUCLE_sous(BOUCLE_message)></BOUCLE_sous>
</BOUCLE_message>
</B_message>
</ul>
</td>
</tr>
</table>
</BOUCLE_entrees>
<table width=700 cellpadding=0 cellspacing=0 border=0>
<tr width=700>
<td width=200>
</td>
<td width=50> </td>
<td width=450>
<p> </p><p> </p>
<div style="padding: 5px; border: 1px solid #111111; text-align:
center">
<b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Poster un
message
/ lancer une discussion</a>]</b>
</div>
</td>
</tr>
</table>
</BOUCLE_principale>
<table width=700 cellpadding=0 cellspacing=0 border=0>
<tr width=700>
<td width=200>
</td>
<td width=50> </td>
<td width=450>
</td>
</tr>
</table>
</BOUCLE_principale>
</div>
</div>
<!-- Fin colonne centrale -->
</div>
</div>
<div id="piedDePage">
<INCLURE(pied.php3){id_rubrique}{id_article}>
</div>
</body>
</html>
Merci merci