help

Bonjour,

Je suis en train de construire un site pour une radio indépendante au maroc.

Je rencontre un problème sur ma page sommaire.
Il ya à l'interieur un fichier flash et ma page sommaire charge un fichier xml.

Quand je passe par http://www.radioapartment22.com/ le fichier xml ne charge pas
et quand je passe par l'url : http://radioapartment22.com/spip.php?page=sommaire tout fonctione.

Donc est-il possible de renvoyer http://www.radioapartment22.com vers http://radioapartment22.com/spip.php?page=sommaire

ou alors je vous joint mon code si c'est un probleme de code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<INCLURE{fond=inc-head}>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<title>[(#TITRE|textebrut) - ][(#NOM_SITE_SPIP|textebrut)]</title></title>

      <style type="text/css">
      @import url("http://radioapartment22.com/squelettes/radio.css");
      </style>
</head>

<body>

      <div class="conteneur">
      <div class="header">
      #LOGO_SITE
         <div class="boitemenu">
      <table width="800" border="0" cellspacing="0">
         <tr>
         <td width="156" class="texte">#FORMULAIRE_RECHERCHE</td>
         <td width="640" valign="top">
          <BOUCLE_menu(RUBRIQUES){id_rubrique!=2}>
                 <a href="#URL_RUBRIQUE" title=" #DESCRIPTIF" >
                 <span class="menu">#TITRE </a>
                 </BOUCLE_menu>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 </span>
               <span class="random" a><a href="http://radioapartment22.com/spip.php?page=article-random&var_mode=calcul"># Random </a> </span>
  </td>
  </tr>
  </table>
       </div><!-- fin boite menu -->

      </div><!-- fin header-->

      <div class="droite">

      <div class="textehasard"># (R&Eacute;) &Eacute;COUTER : </div>
            <BOUCLE_auhasard(ARTICLES){par hasard} {0,3}{origine_traduction}{id_rubrique!=2}>
              <a href="#URL_ARTICLE">[(#LOGO_ARTICLE||image_reduire{100})]</a>
            <div class="textehasard"> <img src="http://radioapartment22.com/squelettes/img/hp.png" width="15" height="13" /> [(#TITRE|couper{17})]</div>
             </BOUCLE_auhasard>
</div>

<div class="centre">

<BOUCLE_dernierarticle(ARTICLES){0,1}{par date}{inverse}>
<div class="titre">

              #TITRE
</div>
    
    <div class="boitemedia">
              <div align="center">[(#LOGO_ARTICLE||image_reduire{250})]
              
                        </div>
  
<!-- Boucle insérée dans un article si mot-clé mp3 attribué à un article -->

<BOUCLE_player(MOTS){id_article}{titre = mp3}>
<object data="#URL_SITE_SPIP/mp3player.swf" type="application/x-shockwave-flash" width="280" height="320" align="right" bgcolor="#ffffff">
   <param name="movie" value="#URL_SITE_SPIP/mp3player.swf" />
   <param name="bgcolor" value="#ffffff" />
</object><br>
<!-- Construction du fichier xml contenant liste des mp3 associés à l'article -->
<?php $chemin1 = "./mp3player.xml";
$fp = fopen ($chemin1, "w+");
$fp2="\n\n<player showDisplay=\"yes\" showPlaylist=\"yes\" autoStart=\"yes\">\n"; ?>
<BOUCLE_mp3(DOCUMENTS) {id_article=12} {mode=document} {par titre}>
<?php $urlDocPlayer='[(#URL_DOCUMENT|texte_script)]';
$titreDocPlayer='[(#TITRE|supprimer_numero|no_accent|texte_script)]';
$DescriptifDocPlayer='[- (#DESCRIPTIF|no_accent|texte_script)]';
$typeDocPlayer='[(#TYPE_DOCUMENT|texte_script)]';
if ($titreDocPlayer=="") $titreDocPlayer=$typeDocPlayer;
if ($typeDocPlayer=="MP3")
    $fp2.=" <song path=\"$urlDocPlayer\" title=\"$titreDocPlayer $DescriptifDocPlayer\" />\n";
?>
</BOUCLE_mp3>
<?php
$fp2.="</player>";
$fp3 = fwrite ($fp, $fp2);
$p3 = fclose ($fp);
?>
<!-- Fin construction xml liste mp3 -->

</BOUCLE_player>

<!-- Fin insertion boucle mot-clé mp3 -->
</div>

  <div class="boitetexte">
  <div class="chapo">#CHAPO</div>
              <div class="texte">[(#TEXTE|liens_ouvrants)]</div>
              <div class="texte">#LESAUTEURS le [(#DATE|jour)] [(#DATE|nom_mois)] [(#DATE|annee)]</div>
              <div class="notes">#NOTES</div>
              
    <div class="texte" >
  [(#REM) Inclure le modele des liens de traductions ]
        #MODELE{article_traductions}</div>
  </BOUCLE_dernierarticle>
</div>
  
</div>

<div class="pub">
<div class="texte">
<p>Partenaires :</p>
<BOUCLE_pub(ARTICLES) {id_rubrique=2}>
<a href="#URL_ARTICLE">[(#LOGO_ARTICLE||image_reduire{50,0})]</a>
</BOUCLE_pub></div>
</div>
<div class="pied"><INCLURE{fond=inc-pied}></div>
</div>

</body>
</html>

Merci d'avance.

Deux questions :
- L'URL de base dans la configuration de ton SPIP, c'est avec les "www"?
- T'as une page de test ?

-----Message d'origine-----
De : spip-bounces@rezo.net [mailto:spip-bounces@rezo.net] De la part de
Pascal Sémur
Envoyé : mercredi 16 janvier 2008 09:56
À : spip@rezo.net
Objet : [Spip] help

Bonjour,

Je suis en train de construire un site pour une radio indépendante au
maroc.

Je rencontre un problème sur ma page sommaire.
Il ya à l'interieur un fichier flash et ma page sommaire charge un
fichier xml.

Quand je passe par http://www.radioapartment22.com/ le fichier xml ne
charge pas
et quand je passe par l'url : http://radioapartment22.com/spip.php?
page=sommaire tout fonctione.

Donc est-il possible de renvoyer http://www.radioapartment22.com vers
http://radioapartment22.com/spip.php?page=sommaire

ou alors je vous joint mon code si c'est un probleme de code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<INCLURE{fond=inc-head}>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />

<title>[(#TITRE|textebrut) - ][(#NOM_SITE_SPIP|textebrut)]</title></
title>

      <style type="text/css">
      @import
url("http://radioapartment22.com/squelettes/radio.css");
      </style>
</head>

<body>

      <div class="conteneur">
      <div class="header">
      #LOGO_SITE
         <div class="boitemenu">
      <table width="800" border="0" cellspacing="0">
         <tr>
         <td width="156" class="texte">#FORMULAIRE_RECHERCHE</td>
         <td width="640" valign="top">
  
<BOUCLE_menu(RUBRIQUES){id_rubrique!=2}>
                 <a
href="#URL_RUBRIQUE" title=" #DESCRIPTIF" >
                 <span
class="menu">#TITRE </a>
                 </BOUCLE_menu>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 </span>
               <span
class="random" a><a href="http://radioapartment22.com/
spip.php?page=article-random&amp;var_mode=calcul"># Random </a>

</span>
  </td>
  </tr>
  </table>
       </div><!-- fin boite menu -->

      </div><!-- fin header-->

      <div class="droite">

      <div class="textehasard"># (R&Eacute;)
&Eacute;COUTER : </div>
            <BOUCLE_auhasard(ARTICLES){par
hasard} {0,3}
{origine_traduction}{id_rubrique!=2}>
              <a
href="#URL_ARTICLE">[(#LOGO_ARTICLE||image_reduire{100})]</a>
            <div class="textehasard">
<img src="http://radioapartment22.com/
squelettes/img/hp.png" width="15" height="13" /> [(#TITRE|couper{17})]
</div>
             </BOUCLE_auhasard>
</div>

<div class="centre">

<BOUCLE_dernierarticle(ARTICLES){0,1}{par date}{inverse}>
<div class="titre">

              #TITRE
</div>
    
    <div class="boitemedia">
              <div
align="center">[(#LOGO_ARTICLE||image_reduire{250})]
              
                        </div>
  
<!-- Boucle insérée dans un article si mot-clé mp3 attribué à un
article -->

<BOUCLE_player(MOTS){id_article}{titre = mp3}>
<object data="#URL_SITE_SPIP/mp3player.swf" type="application/x-
shockwave-flash" width="280" height="320" align="right"
bgcolor="#ffffff">
   <param name="movie" value="#URL_SITE_SPIP/mp3player.swf" />
   <param name="bgcolor" value="#ffffff" />
</object><br>
<!-- Construction du fichier xml contenant liste des mp3 associés à
l'article -->
<?php $chemin1 = "./mp3player.xml";
$fp = fopen ($chemin1, "w+");
$fp2="\n\n<player showDisplay=\"yes\" showPlaylist=\"yes\" autoStart=
\"yes\">\n"; ?>
<BOUCLE_mp3(DOCUMENTS) {id_article=12} {mode=document} {par titre}>
<?php $urlDocPlayer='[(#URL_DOCUMENT|texte_script)]';
$titreDocPlayer='[(#TITRE|supprimer_numero|no_accent|texte_script)]';
$DescriptifDocPlayer='[- (#DESCRIPTIF|no_accent|texte_script)]';
$typeDocPlayer='[(#TYPE_DOCUMENT|texte_script)]';
if ($titreDocPlayer=="") $titreDocPlayer=$typeDocPlayer;
if ($typeDocPlayer=="MP3")
    $fp2.=" <song path=\"$urlDocPlayer\" title=\"$titreDocPlayer
$DescriptifDocPlayer\" />\n";
?>
</BOUCLE_mp3>
<?php
$fp2.="</player>";
$fp3 = fwrite ($fp, $fp2);
$p3 = fclose ($fp);
?>
<!-- Fin construction xml liste mp3 -->

</BOUCLE_player>

<!-- Fin insertion boucle mot-clé mp3 -->
</div>

  <div class="boitetexte">
  <div class="chapo">#CHAPO</div>
              <div
class="texte">[(#TEXTE|liens_ouvrants)]</div>
              <div
class="texte">#LESAUTEURS le [(#DATE|jour)] [(#DATE|
nom_mois)] [(#DATE|annee)]</div>
              <div
class="notes">#NOTES</div>
              
    <div class="texte" >
  [(#REM) Inclure le modele des liens de traductions ]
        #MODELE{article_traductions}</div>
  </BOUCLE_dernierarticle>
</div>
  
</div>

<div class="pub">
<div class="texte">
<p>Partenaires :</p>
<BOUCLE_pub(ARTICLES) {id_rubrique=2}>
<a href="#URL_ARTICLE">[(#LOGO_ARTICLE||image_reduire{50,0})]</a>
</BOUCLE_pub></div>
</div>
<div class="pied"><INCLURE{fond=inc-pied}></div>
</div>

</body>
</html>

Merci d'avance.

_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.spip.net/
irc://irc.freenode.net/spip
FAQ : http://www.spip.net/fr_article1054.html