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.
22 visiteur(s) et 0 membre(s) en ligne.
Activité du Site

Pages vues depuis 25/05/2001 : 110 634 262

  • Nb. de membres 8 696
  • 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!

Modérateur(s)developpeurjpbJireck

Poster une réponse dans le sujet

A propos des messages publiés :
Les utilisateurs anonymes peuvent poster de nouveaux sujets et des réponses dans ce forum.

 

Aperçu des sujets :

Hotfirenet Hotfirenet
Posté : 8 févr. 2009 à 14:04
un petit up
Hotfirenet Hotfirenet
Posté : 3 févr. 2009 à 19:22
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 ...
wwwcdorg wwwcdorg
Posté : 2 févr. 2009 à 16:25
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
canasson canasson
Posté : 1 févr. 2009 à 18:01
Le problème semble résolu ??
Jireck Jireck
Posté : 31 janv. 2009 à 22:24
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
wwwcdorg wwwcdorg
Posté : 31 janv. 2009 à 18:05
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
wwwcdorg wwwcdorg
Posté : 31 janv. 2009 à 18:02
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);

}

?>
Hotfirenet Hotfirenet
Posté : 31 janv. 2009 à 17:59
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 wwwcdorg
Posté : 31 janv. 2009 à 17:55
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 Hotfirenet
Posté : 31 janv. 2009 à 17:52
tu as pas touché a fichier theme.php ou header ???