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

Pages vues depuis 25/05/2001 : 109 406 444

  • 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 »»  Le coin des codeurs »» Bug help variable ....

Bug help variable ....#8120

2Contributeur(s)
Hotfirenetdeveloppeur
3 Modérateur(s)
developpeurjpbJireck
Hotfirenet Hotfireneticon_post
Voila mon prob suite a une publication qu'il ya eu par dans la parti theme dynamic ....
pour que la colonne de bloc gauche soit differente de celle de droite .....

Voila ....

function themesidebox($title, $content) {
global $theme;

if ($themeTMP=="1")
{ function themesideboxgauche();
}else{
if ($themeTMP=="2")
{ function themesideboxdroite();
}
}
function themesideboxgauche($title, $content) {
global $theme;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" width=\"100%\" bgcolor=\"#3E4D37\" background=\"themes/$theme/images/grbackmenu.gif\">\n"
."<tr><td width=\"15\"><p align=\"center\">\n"
."<img border=\"0\" src=\"themes/$theme/images/cross.gif\" align=\"left\" width=\"15\" height=\"15\"></td>\n"
."<td width=\"135\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\"><font size=\"2\"><b> $title</b></font></td>\n"
."</tr></table></td></tr></table></td></tr><tr><td width=\"100%\" background=\"themes/$theme/images/lines.gif\">\n"
."<img border=\"0\" src=\"themes/$theme/images/lines.gif\" width=\"150\" height=\"8\"></td></tr>"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td width=\"100%\"><font size=\"2\">$content</font></td>\n"
."</tr></table></td></tr></table></td></tr></table>\n";

}
function themesideboxdroite($title, $content) {
global $theme;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#c0c0c0\">\n"
."<tr><td width=\"100%\" bgcolor=\"#c0c0c0\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" width=\"100%\" bgcolor=\"#c0c0c0c\" background=\"themes/$theme/images/grbackmenu.gif\">\n"
."<tr><td width=\"15\"><p align=\"center\">\n"
."<img border=\"0\" src=\"themes/$theme/images/cross.gif\" align=\"left\" width=\"15\" height=\"15\"></td>\n"
."<td width=\"135\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\"><font size=\"2\"><b> $title</b></font></td>\n"
."</tr></table></td></tr></table></td></tr><tr><td width=\"100%\" background=\"themes/$theme/images/lines.gif\">\n"
."<img border=\"0\" src=\"themes/$theme/images/lines.gif\" width=\"150\" height=\"8\"></td></tr>"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td width=\"100%\"><font size=\"2\">$content</font></td>\n"
."</tr></table></td></tr></table></td></tr></table>\n";

}


Mais ca buggg :paf :paf :paf

[ Message édité par : Hotfirenet : 20-10-2003 08:56 ]
developpeur developpeuricon_post
if ($themeTMP=="1") {
themesideboxgauche();
} else {
themesideboxdroite();
}

Tous simplement
Hotfirenet Hotfireneticon_post
oki donc fo pas trop ce prendre la tete alors :-D :-D merci dev :=!
Hotfirenet Hotfireneticon_post
Voila ce que g fait

dans le theme.php

if ($themeTMP=="1") {
themesideboxgauche();
} else {
themesideboxdroite();
}



function themesideboxgauche($title, $content) {
global $theme;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" width=\"100%\" bgcolor=\"#3E4D37\" background=\"themes/$theme/images/grbackmenu.gif\">\n"
."<tr><td width=\"15\"><p align=\"center\">\n"
."<img border=\"0\" src=\"themes/$theme/images/cross.gif\" align=\"left\" width=\"15\" height=\"15\"></td>\n"
."<td width=\"135\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\"><font size=\"2\"><b> $title</b></font></td>\n"
."</tr></table></td></tr></table></td></tr><tr><td width=\"100%\" background=\"themes/$theme/images/lines.gif\">\n"
."<img border=\"0\" src=\"themes/$theme/images/lines.gif\" width=\"150\" height=\"8\"></td></tr>"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td width=\"100%\"><font size=\"2\">$content</font></td>\n"
."</tr></table></td></tr></table></td></tr></table>\n";

}

function themesideboxdroite($title, $content) {
global $theme;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#c0c0c0\">\n"
."<tr><td width=\"100%\" bgcolor=\"#c0c0c0\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" width=\"100%\" bgcolor=\"#c0c0c0c\" background=\"themes/$theme/images/grbackmenu.gif\">\n"
."<tr><td width=\"15\"><p align=\"center\">\n"
."<img border=\"0\" src=\"themes/$theme/images/cross.gif\" align=\"left\" width=\"15\" height=\"15\"></td>\n"
."<td width=\"135\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\"><font size=\"2\"><b> $title</b></font></td>\n"
."</tr></table></td></tr></table></td></tr><tr><td width=\"100%\" background=\"themes/$theme/images/lines.gif\">\n"
."<img border=\"0\" src=\"themes/$theme/images/lines.gif\" width=\"150\" height=\"8\"></td></tr>"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td width=\"100%\"><font size=\"2\">$content</font></td>\n"
."</tr></table></td></tr></table></td></tr></table>\n";

}

et dans le header g mis
$themeTMP=1

voila ce que ca me repond

Warning: Missing argument 1 for themesideboxdroite() in c:\program files\easyphp\www\5.0-iz-xinstall\themes\Concours\theme.php on line 147

Warning: Missing argument 2 for themesideboxdroite() in c:\program files\easyphp\www\5.0-iz-xinstall\themes\Concours\theme.php on line 147


et ligne 147 du theme y a

function themesideboxdroite($title, $content) {
:paf :paf :paf :paf :paf :paf :paf

[ Message édité par : Hotfirenet : 20-10-2003 12:46 ]
developpeur developpeuricon_post
if ($themeTMP=="1") {
themesideboxgauche($title, $content);
} else {
themesideboxdroite($title, $content);
}

Voilu
Hotfirenet Hotfireneticon_post
fo pas que je mette ca dans une fonction dans le theme ????
developpeur developpeuricon_post
il te manquais les $title, $content dans l'appel des fonctions