logo

NPDS : Gestion de contenu et de communauté


Content & Community Management System (CCMS) robuste, sécurisé, complet, performant, parlant vraiment français, libre (Open-Source) et gratuit.
14 visiteur(s) et 0 membre(s) en ligne.
Activité du Site

Pages vues depuis 25/05/2001 : 108 284 456

  • Nb. de membres 8 693
  • Nb. d'articles 1 695
  • Nb. de forums 26
  • Nb. de sujets 8
  • Nb. de critiques 92

Top 10  Statistiques

Index du forum »»  Bugs, Probs ... »» affichage !banner! !date! et !!!else!

Nouveau sujet
 affichage !banner! !date! et !!!else!#24144Répondre

4Contributeur(s)
wwwcdorgHotfirenetJireckcanasson
3 Modérateur(s)
developpeurjpbJireck
wwwcdorg wwwcdorgicon_post
NPDS Forum Extender
-: Problèmes :-
 
Sujetaffichage !banner! !date! et !!!else! 
Votre Système d'Exploitation-: Autres  
Votre Package Web-: Apache + Php + MySql  
Votre version de PHP-: Je ne sais pas !  
Version NPDS (voir statistiques du site)-: EVOLUTION 
Type de problème-: Autre(s) Erreur(s)  
Votre hébergeur-: Autre(s)  
Votre PrioritéOK, j'attends  
Description du problèmeBonjour, j'ai effectué le passage de sable à évolution mais je rencontre une difficulté, sur le site http://bretagne-en-scenes.org />Je n'ai plus l'affichage des bannières mais !banner!, idem pour la date !date! et entre la fin du bloc principal et le backend j'ai !!!else!
Quels sont les modifications qu'il faut faire pour faire apparaître les !xxx!
Merci de votre concours à la résolution de mon problème.

Christophe Demay 
Inclure la signaturetrue 
notification par Emailtrue 
..::..
Un consultant indépendant au service des Arts Vivants
Hotfirenet Hotfireneticon_post
est ce que les metas mot qui corresponde sont bien present dans ta base ??

voir administration des meta mot
wwwcdorg wwwcdorgicon_post
bonjour, oui les métas mots sont bien dans la base
Hotfirenet Hotfireneticon_post
les meta mot fonctionne dans l'edito, donc tu as un autre problème surement de ton thème ...
wwwcdorg wwwcdorgicon_post
désolé j'ai eu une visite. J'utilise permanent-double-side-dynamic.
Pour le moment j'ai inscrit les bannières dans l'édito mais avant elles étaient
dans le header avec !banner!
Pour la date j'ai recopié l'intégralité du code !javascript! à la place de !date!
mais pour les abnnières j'ai pas trouvé le bon code ;-)
Dans quel header faut-il faire les mofis celui par défautl, le permanent...ou dans thème. Je m'y perds un peu et du coup je sais plus où j'en suis des mofids dans les uns et les autres pour tester.
et inscrire la bonne formule pour que ça fonctionne
Hotfirenet Hotfireneticon_post
j'ai tester dans ton edito quelques meta et donc il fonctionne bien, par contre si tu utlise permanaent-double.... il te sufit de modifier les fichiers html qui se trouve dans le repertoire html
wwwcdorg wwwcdorgicon_post
C'est un peu la-dessus que j'ai bidouillé mais pas moyen de faire apparaître la date ou les bannières avec mes modifs de code. Je dois me planter
wwwcdorg wwwcdorgicon_post
voila le code que j'avais avant et qui fonctionnait sous l'ancienne version si tu vois des erreurs meci de m'en faire part car avec ce code ça affiche !date! et !banner!


<TABLE align=center bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff width=305 vAlign=top><IMG align=left alt="" hspace=0 src="themes/bes/images/corner-top-left.gif"><IMG align=left src="themes/bes/images/bes.gif"></TD>
<TD bgColor=#999999><IMG alt="" border=0 height=1 hspace=0 src="themes/bes/images/pixel.gif" width=1></TD>
<TD align=middle bgColor=#fafafa vAlign=bottom><FONT face=arial><FONT color=#404040 size=2><BR><CENTER>
<div align="right">!search!</div>
<div align="right">!search_topics!</div>
<div align="left"> <B>       !nb_online!</div></B></div><BR>
<CENTER></FONT> </FONT></TD>
<TD bgColor=#fafafa vAlign=top><IMG align=right alt="" hspace=0 src="themes/bes/images/corner-top-right.gif"></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#fafafa border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#000000 colSpan=4><IMG alt="" border=0 height=1 hspace=0 src="themes/bes/images/pixel.gif" width=1></TD></TR>
<TR bgColor=#e0e0e0 vAlign=center>
<TD noWrap width="5%"><FONT color=#404040 size=3><B> <FONT face=arial>!slogan!</FONT></FONT></B></TD>
<TD align=middle height=20 width="70%"><FONT class="HEADER" size=4><B>[ <A href="index.php?">Sommaire</A> ] · !member! · [ <A href="user.php?op=logout">Déconnexion</A> ] · [ <A href="submit.php">Soumettre un article</A> ] </B></FONT>
  <a href="#" !!onmouse!!over="setObj(description[-1],'override','5')"</a>
</TD>
<TD align=middle width="20%"><FONT color=#404040 size=2><B>!date!</B></FONT></TD></TR></TBODY></TABLE>
<CENTER><IMG alt="" border=0 height=2 hspace=0 src="themes/bes/images/pixel.gif" width=1>!banner!<IMG alt="" border=0 height=1 hspace=0 src="themes/bes/images/pixel.gif" width=1></CENTER>




Message édité par : Hotfirenet / 31-01-2009 17:51

wwwcdorg wwwcdorgicon_post
désolé j'ai oublié de désactiver le htlm

<TABLE align=center bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#ffffff width=305 vAlign=top><IMG align=left alt="" hspace=0 src="themes/bes/images/corner-top-left.gif"><IMG align=left src="themes/bes/images/bes.gif"></TD>
<TD bgColor=#999999><IMG alt="" border=0 height=1 hspace=0 src="themes/bes/images/pixel.gif" width=1></TD>
<TD align=middle bgColor=#fafafa vAlign=bottom><FONT face=arial><FONT color=#404040 size=2><BR><CENTER>
<div align="right">!search!</div>
<div align="right">!search_topics!</div>
<div align="left"> <B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;!nb_online!</div></B></div><BR>
<CENTER></FONT> </FONT></TD>
<TD bgColor=#fafafa vAlign=top><IMG align=right alt="" hspace=0 src="themes/bes/images/corner-top-right.gif"></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#fafafa border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#000000 colSpan=4><IMG alt="" border=0 height=1 hspace=0 src="themes/bes/images/pixel.gif" width=1></TD></TR>
<TR bgColor=#e0e0e0 vAlign=center>
<TD noWrap width="5%"><FONT color=#404040 size=3><B>&nbsp;<FONT face=arial>!slogan!</FONT></FONT></B></TD>
<TD align=middle height=20 width="70%"><FONT class="HEADER" size=4><B>[ <A href="index.php?">Sommaire</A> ]&nbsp;&middot;&nbsp;!member!&nbsp;&middot;&nbsp;[ <A href="user.php?op=logout">Déconnexion</A> ]&nbsp;·&nbsp;[ <A href="submit.php">Soumettre un article</A> ] </B></FONT>
&nbsp;&nbsp;<a href="#" !onmouse!over="setObj(description[-1],'override','5')"</a>
</TD>
<TD align=middle width="20%"><FONT color=#404040 size=2><B>!date!</B></FONT></TD></TR></TBODY></TABLE>
<CENTER><IMG alt="" border=0 height=2 hspace=0 src="themes/bes/images/pixel.gif" width=1>!banner!<IMG alt="" border=0 height=1 hspace=0 src="themes/bes/images/pixel.gif" width=1></CENTER>
Hotfirenet Hotfireneticon_post
tu as pas touché a fichier theme.php ou header ???
wwwcdorg wwwcdorgicon_post
si probable au fil de mes test. ceux de Permanent ou d'autres

voila le theme.php de Permanent



<?php

/************************************************************************/

/* Theme for NPDS / Net Portal Dynamic System */

/* =========================== */

/* */

/* Theme : Permanent-Double-Side Copyright (c) 2001 */

/* based on NukeNews and Dummy themes */

/* */

/* this theme use the news NPDS theme-dynamic engine */

/* */

/* This program is free software. You can redistribute it and/or modify */

/* it under the terms of the GNU General Public License as published by */

/* the Free Software Foundation; either version 2 of the License. */

/************************************************************************/

$theme = "Permanent-Double-Side-Dynamic";

$bgcolor1 = "#efefef"; // couleur des fonds de tableau (opentable, opentable2)

$bgcolor2 = "#aac9e7"; // couleur des titres de blocs / bordure des tableaux (opentable, opentable2)

$bgcolor3 = "#f7f7f7"; // couleur de cellule des forums, messagerie ...

$bgcolor4 = "#eaeaea"; // couleur de certains titres de tableaux ou de menus (sdv, download ...)

$bgcolor5 = "#fafbfa"; // couleur du bandeau dhtml, menu de link, stats, poll, le chat Box

$bgcolor6 = "#aac9e7"; // couleur de certaines cellule de tableau (forum ...)

$bargif = "images/stats/bar6.gif"; // gif définissant les BarGraph de stats et poll

$textcolor1 = "#404040";

$textcolor2 = "#000040";

$long_chain = "15"; // Nombre de caractères affiché avant troncature pour certains blocs



// ne pas supprimer cette ligne / Don't remove this line

require_once("themes/themes-dynamic/theme.php");

// ne pas supprimer cette ligne / Don't remove this line

?>



et le header.php



<?php

/************************************************************************/

/* Theme for NPDS / Net Portal Dynamic System */

/* =========================== */

/* */

/* Theme : Permanent-Double-Side Copyright (c) 2001 */

/* based on NukeNews and Dummy themes */

/* */

/* this theme use the news NPDS theme-dynamic engine */

/* */

/* This program is free software. You can redistribute it and/or modify */

/* it under the terms of the GNU General Public License as published by */

/* the Free Software Foundation; either version 2 of the License. */

/************************************************************************/

// ne pas supprimer cette ligne / Don't remove this line

require_once("themes/themes-dynamic/header.php");

// ne pas supprimer cette ligne / Don't remove this line



echo "<table width=\"100%\" cellpadding=0 cellspacing=0 border=0 bgcolor=#ffffff align=center><tr valign=top>";

echo "<td valign=top align=left>";



global $powerpack;

if (!isset($powerpack)) {!include! ("powerpack.php");}

global $pdst;

if (($pdst!= "-1") and ($pdst!= "2")) {

leftblocks();

}

echo "</td><td width=100%>";

if (if_chat()) echo "<fond size=1><b>-: Chat :-</b></font>";

?>

Hotfirenet Hotfireneticon_post
faudrait voir si jireck a déjà eu le problème sinon il faut tester mais a mon avis c une erreur dans ton thème
wwwcdorg wwwcdorgicon_post
et le theme.php dans theme



<?PHP

/************************************************************************/

/* DUNE by NPDS */

/* =========================== */

/* */

/* DYNAMIC THEME engine for NPDS */

/* NPDS Copyright (c) 2002-2007 */

/* */

/* This program is free software. You can redistribute it and/or modify */

/* it under the terms of the GNU General Public License as published by */

/* the Free Software Foundation; either version 2 of the License. */

/************************************************************************/

// intégration dans sable de adv-meta-lang

global $meta_glossaire;

// intégration dans sable de adv-meta-lang

function local_var($Xcontent) {

if (strstr($Xcontent,"!var!")) {

$deb=strpos($Xcontent,"!var!",0)+5;

$fin=strpos($Xcontent," ",$deb);

if ($fin) {$H_var=substr($Xcontent,$deb,$fin-$deb);}

else {$H_var=substr($Xcontent,$deb);}

return ($H_var);

}

}

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext, $id) {

global $tipath, $theme, $nuke_url;

$inclusion=false;

if (file_exists("themes/".$theme."/html/index-news.html")) {$inclusion="themes/".$theme."/html/index-news.html";}

elseif (file_exists("themes/default/html/index-news.html")) {$inclusion="themes/default/html/index-news.html";}

else {

echo "index-news.html manquant / not find !<br />";

die();

}

$H_var=local_var($thetext);

if ($H_var!="") {

${$H_var}=true;

$thetext=str_replace("!var!$H_var","",$thetext);

}

if ($notes!= "") $notes="<div class=\"aide\">".translate("Note")." : \"$notes\"</div>";

ob_start();

!include!($inclusion);

$Xcontent=ob_get_contents();

ob_end_clean();

$npds_METALANG_words=array(

"'!N_publicateur!'i"=>"$aid",

"'!N_emetteur!'i"=>"<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a>",

"'!N_date!'i"=>"$time",

"'!N_titre!'i"=>"$title",

"'!N_texte!'i"=>"$thetext",

"'!N_id!'i"=>"$id",

"'!N_sujet!'i"=>"<a href=\"search.php?query=&amp;topic=$topic\"><img src=\"".$tipath.$topicimage."\" alt=\"".translate("Search in")."&nbsp;".$topictext."\" title=\"".translate("Search in")."&nbsp;".$topictext."\" border=\"0\" /></a>",

"'!N_note!'i"=>"$xnotes",

"'!N_nb_lecture!'i"=>"$counter",

"'!N_suite!'i"=>"$morelink"

);

echo meta_lang(aff_langue(preg_replace(array_keys($npds_METALANG_words),array_values($npds_METALANG_words), $Xcontent)));

}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $id, $previous_sid, $next_sid) {

global $tipath, $theme, $nuke_url, $counter;

$inclusion=false;

if (file_exists("themes/".$theme."/html/detail-news.html")) {$inclusion="themes/".$theme."/html/detail-news.html";}

elseif (file_exists("themes/default/html/detail-news.html")) {$inclusion="themes/default/html/detail-news.html";}

else {

echo "detail-news.html manquant / not find !<br />";

die();

}

$H_var=local_var($thetext);

if ($H_var!="") {

${$H_var}=true;

$thetext=str_replace("!var!$H_var","",$thetext);

}

ob_start();

!include!($inclusion);

$Xcontent=ob_get_contents();

ob_end_clean();

if ($previous_sid) {

$prevArt="<a href=\"article.php?sid=".$previous_sid."\" class=\"noir\">".translate("Previous")."</a>";

if ($next_sid) {$prevArt.="&nbsp;|&nbsp;";}

}

else $prevArt="";

if ($next_sid) {$nextArt="<a href=\"article.php?sid=".$next_sid."\" class=\"noir\">".translate("Next")."</a>";}

else $nextArt="";

$npds_METALANG_words=array(

"'!N_publicateur!'i"=>"$aid",

"'!N_emetteur!'i"=>"<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a>",

"'!N_date!'i"=>"$datetime",

"'!N_titre!'i"=>"$title",

"'!N_id!'i"=>"$id",

"'!N_previous_article!'i"=>"$prevArt",

"'!N_next_article!'i"=>"$nextArt",

"'!N_sujet!'i"=>"<a href=\"search.php?query=&amp;topic=$topic\"><img src=\"".$tipath.$topicimage."\" alt=\"".translate("Search in")."&nbsp;".$topictext."\" title=\"".translate("Search in")."&nbsp;".$topictext."\" border=\"0\" /></a>",

"'!N_texte!'i"=>"$thetext",

"'!N_nb_lecture!'i"=>"$counter",

"'!N_note!'i"=>"$notes"

);

echo meta_lang(aff_langue(preg_replace(array_keys($npds_METALANG_words),array_values($npds_METALANG_words), $Xcontent)));

}

function themesidebox($title, $content) {

global $theme, $B_class_title, $B_class_content, $bloc_side;

$inclusion=false;

if (file_exists("themes/".$theme."/html/bloc-right.html") and ($bloc_side=="RIGHT")) {$inclusion="themes/".$theme."/html/bloc-right.html";}

if (file_exists("themes/".$theme."/html/bloc-left.html") and ($bloc_side=="LEFT")) {$inclusion="themes/".$theme."/html/bloc-left.html";}

if (!$inclusion) {

if (file_exists("themes/".$theme."/html/bloc.html")) {$inclusion="themes/".$theme."/html/bloc.html";}

elseif (file_exists("themes/default/html/footer.html")) {$inclusion="themes/default/html/bloc.html";}

else {

echo "bloc.html manquant / not find !<br />";

die();

}

}

ob_start();

!include!($inclusion);

$Xcontent=ob_get_contents();

ob_end_clean();

$npds_METALANG_words=array(

"'!B_title!'i"=>"$title",

"'!B_class_title!'i"=>"$B_class_title",

"'!B_class_content!'i"=>"$B_class_content",

"'!B_content!'i"=>"$content"

);

echo meta_lang(preg_replace(array_keys($npds_METALANG_words),array_values($npds_METALANG_words), $Xcontent));

}

function themedito($content) {

global $theme;

$inclusion=false;

if (file_exists("themes/".$theme."/html/editorial.html")) {$inclusion="themes/".$theme."/html/editorial.html";}

if ($inclusion) {

ob_start();

!include!($inclusion);

$Xcontent=ob_get_contents();

ob_end_clean();

$npds_METALANG_words=array(

"'!editorial_content!'i"=>"$content"

);

echo meta_lang(aff_langue(preg_replace(array_keys($npds_METALANG_words),array_values($npds_METALANG_words), $Xcontent)));

}

return ($inclusion);

}

?>
wwwcdorg wwwcdorgicon_post
et le header.php dans theme



<?PHP

/************************************************************************/

/* DUNE by NPDS */

/* =========================== */

/* */

/* DYNAMIC THEME engine for NPDS */

/* NPDS Copyright (c) 2002-2008 */

/* */

/* This program is free software. You can redistribute it and/or modify */

/* it under the terms of the GNU General Public License as published by */

/* the Free Software Foundation; either version 2 of the License. */

/************************************************************************/

global $theme; $rep=false;

if (file_exists("themes/".$theme."/html/header.html")) {$rep=$theme;}

elseif (file_exists("themes/default/html/header.html")) {$rep="default";}

else {

echo "header.html manquant / not find !<br />";

die();

}

if ($rep) {

echo "<body !onload!=\"init();\" class=\"body\">\n";

ob_start();

!include!("themes/".$rep."/html/header.html");

$Xcontent=ob_get_contents();

ob_end_clean();

echo meta_lang(aff_langue($Xcontent));

}

?>



Mais je ne crois pas avoir touché à ces fichiers. par contre, mon premier transfert pour passer à Evolution n'était pas en binaire il y a peut-être des fichiers qui ne se sont pas substitués.

Encore merci de ton concours à résoudre mes problèmes
Jireck Jireckicon_post
Citation : Hotfirenet 

faudrait voir si jireck a déjà eu le problème sinon il faut tester mais a mon avis c une erreur dans ton thème  


J'ai pas compris le probleme
canasson canassonicon_post
Le problème semble résolu ??
wwwcdorg wwwcdorgicon_post
Bonjour, mon problème n'est pas résolu j'ai fait une modif en script pour afficher la date et une insertion de !banner! dans l'éditio mais je n'arrive toujours pas à remettre l'affiche des baonnière dans le header. Surement que le code que j'ai mis est erroné mais je ne vois pas où je merde.
merci à tous de votre concours
Hotfirenet Hotfireneticon_post
finalement j'ai le meme probleme impossible de faire fonctionner les metas mots dans le header et footer, pourtant le fichier theme.php est bien renseigné alors je ne comprend pas trop ...
Hotfirenet Hotfireneticon_post
un petit up