Boucle_sous : tag fermant manquant ...
Le tag fermant est bien là: </Boucle_sous>
donc c'était un probleme temporaire au téléchargement de la page, ou un mauvais
telechargement FTP.
Les codes que je t'ai envoyés sont insuffisants.
Je suis en train de tester ici:
http://membres.lycos.fr/webgeneraction/forumgeneral.php3
il y a un autre fichier: message_spip.html (que j'ai appellé forummessage.html)
http://www.uzine.net/message_spip.html
il faut obligatoirement indiquer {id_rubrique=XX} en réservant la rubrique XX
(qui doit exister)
(moi j'ai réservé la rubrique 24 sur mon test )
http://membres.lycos.fr/webgeneraction/rubrique.php3?id_rubrique=24
(on peut aussi renommer forumgeneral.html en rubrique=24.html, mais il faut
alors mettre 0 dans rubrique.php3 pour afficher immédiatement un nouveau
message, et aussi changer les liens de forumgeneral.php3 en rubrique.php3 dans
les fichiers)
Voici ci-dessous les codes que j'utilise actuellement et qui marchent (ne pas se
fier au fond noir du site de test, il y a des cadres sur les messages).
Là je crois que c'est quasiment ok. Merci de signaler les bugs :o)
a plus
Walk
================= pour forumgeneral.html....
--------------------------------
<html>
<head>
<title>[#NOM_SITE_SPIP] forum de discussion</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Appel du fichier feuille de style spip_style.css pour cette page -->
<link rel="stylesheet" href="spip_style.css" type="text/css" />
</head>
<!-- pas de parametres de liens et fond pour BODY, tout est réglé dans
spip_style.css -->
<BODY TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<!-- Va chercher le haut de page hierarchie.html -->
<INCLURE (hierarchie.php3) {id_rubrique} >
<br>
<CENTER><font size="6">Forum General</font></CENTER>
<br><br>
<center>
<BOUCLE_principale(RUBRIQUES){id_rubrique=24}>
<!-- mettre id_rubrique=XX, XX étant le numéro d'une rubrique-XX.html existante
et sans forum, -->
<!-- ou sinon renommer forumgeneral.html en rubrique-XX.html ou
rubrique=XX.html -->
<!-- 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>
<font face='arial,helvetica,sans-serif' size=1>
<?
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>] ";
}
?>
</font>
</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>
<font face="verdana,arial,helvetica,sans-serif" size=2>
<div style="color: white; padding: 3px; background-color: #111111;">
<b><a href="forummessage.php3?id_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>
</div>
<B_message>
<ul>
<BOUCLE_message(FORUMS){id_parent}{par date}>
<li><a href="forummessage.php3?id_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>
</font>
</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">
<font face="verdana,arial,helvetica,sans-serif" size=2>
<b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Poster un message / lancer une
discussion</a>]</b>
</font>
</div>
</td>
</tr>
</table>
<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>
<!-- Va chercher le bas de page pied.html -->
<INCLURE(pied.php3)>
</center>
</body>
</html>
------------------
================= pour forummessage.html ...
-------------------------------------
<html>
<head>
<title>[#NOM_SITE_SPIP] forum de discussion</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Appel du fichier feuille de style spip_style.css pour cette page -->
<link rel="stylesheet" href="spip_style.css" type="text/css" />
</head>
<!-- pas de parametres de liens et fond pour BODY, tout est réglé dans
spip_style.css -->
<BODY TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<!-- Va chercher le haut de page hierarchie.html -->
<INCLURE (hierarchie.php3) {id_rubrique} >
<br>
<CENTER><font size="6"><a href="forumgeneral.php3">Forum
General</a></font></CENTER>
<br><br>
<center>
<BOUCLE_entrees(FORUMS){id_forum}>
<table width=700 cellpadding=0 cellspacing=0 border=0>
<tr width=700>
<td width=200></td>
<td width=50> </td>
<td width=450>
<font face="verdana,arial,helvetica,sans-serif" size=2>
<BOUCLE_decaler_droite(FORUMS){id_enfant}>
<div style="margin-left: 15px">
<BOUCLE_rec_decaler_droite(boucle_decaler_droite)></BOUCLE_rec_decaler_droite>
</BOUCLE_decaler_droite>
<B_parents>
<div style="margin-left:-15px">
<BOUCLE_parents(FORUMS){id_enfant}>
<BOUCLE_par_parents(boucle_parents)></BOUCLE_par_parents>
<div style="border-left: solid black 1px; border-bottom: solid black 1px;
border-right: solid black 1px; padding: 3px; background-color: #999999;
width:100%">
<h2>#TITRE</h2>
[(#DATE|affdate)][, par <A HREF="mailto:#EMAIL">(#NOM)</A>]
[<BR><A HREF="#URL_SITE">(#NOM_SITE)</A>]
<p>#TEXTE
<p align="right"><b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Répondre
à ce message</a>]</b>
</div>
</BOUCLE_parents>
</div>
</B_parents>
<BOUCLE_niveau(FORUMS){meme_parent}{par date}{age_relatif>0}{exclus}>
<div style="border-left: solid black 1px; border-bottom: solid black 1px;
border-right: solid black 1px; padding: 3px; width:100%">
<h2>#TITRE</h2>
[(#DATE|affdate)][, par <A HREF="mailto:#EMAIL">(#NOM)</A>]
[<BR><A HREF="#URL_SITE">(#NOM_SITE)</A>]
<p>#TEXTE
<p align="right"><b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Répondre
à ce message</a>]</b>
</div>
</BOUCLE_niveau>
<div style="border-left: solid black 1px; border-bottom: solid black 1px;
border-right: solid black 1px; padding: 3px; width:100%">
<h2>#TITRE</h2>
[(#DATE|affdate)][, par <A HREF="mailto:#EMAIL">(#NOM)</A>]
[<BR><A HREF="#URL_SITE">(#NOM_SITE)</A>]
<p>#TEXTE
<p align="right"><b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Répondre
à ce message</a>]</b>
</div>
<div style="border-left: solid black 1px; ">
<B_reponses>
<div style="margin-left: 15px">
<BOUCLE_reponses(FORUMS){id_parent}{par date}>
<div style="border-left: solid black 1px; border-bottom: solid black 1px;
border-right: solid black 1px; padding: 3px; width:100%">
<h2>#TITRE</h2>
[(#DATE|affdate)][, par <A HREF="mailto:#EMAIL">(#NOM)</A>]
[<BR><A HREF="#URL_SITE">(#NOM_SITE)</A>]
<p>#TEXTE
<p align="right"><b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Répondre
à ce message</a>]</b>
</div>
<BOUCLE_rep_messages(boucle_reponses)></BOUCLE_rep_messages>
</BOUCLE_reponses>
</div>
</B_reponses>
</div>
<BOUCLE_niveau_apres(FORUMS){meme_parent}{par date}{age_relatif<=0}{exclus}>
<div style="border-left: solid black 1px; border-bottom: solid black 1px;
border-right: solid black 1px; padding: 3px; width:100%">
<h2>#TITRE</h2>
[(#DATE|affdate)][, par <A HREF="mailto:#EMAIL">(#NOM)</A>]
[<BR><A HREF="#URL_SITE">(#NOM_SITE)</A>]
<p>#TEXTE
<p align="right"><b>[<a href="forum.php3?(#PARAMETRES_FORUM)">Répondre
à ce message</a>]</b>
</div>
</BOUCLE_niveau_apres>
<BOUCLE_decaler_gauche(FORUMS){id_enfant}>
</div>
<BOUCLE_rec_decaler_gauche(boucle_decaler_gauche)></BOUCLE_rec_decaler_gauche>
</BOUCLE_decaler_gauche>
</font>
</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>
</td>
</tr>
</table>
<!-- Va chercher le bas de page pied.html -->
<INCLURE(pied.php3)>
</center>
</body>
</html>
------------------------------------
================= pour forumgeneral.php3 ...
--------
<?php
$fond = "forumgeneral";
$delais = 0;
include ("inc-public.php3");
?>
-------
================= pour forummessage.php3 ...
--------
<?php
$fond = "forummessage";
$delais = 0;
include ("inc-public.php3");
?>
-------