|
Hotfirenet 1738
| Posté : 20-10-2003 08:56
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&qu ot;
."</tr></table></td></tr></table>&l t;/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>&l t;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"
."&l t;/tr></table></td></tr></table></td></tr&g t;</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&qu ot;
."</tr></table></td></tr></table>&l t;/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>&l t;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"
."&l t;/tr></table></td></tr></table></td></tr&g t;</table>\n";
}
Mais ca buggg
[ Message édité par : Hotfirenet : 20-10-2003 08:56 ] |  Profil E-mail www
|
|
developpeur 24581
| Posté : 20-10-2003 09:58
if ($themeTMP=="1") {
themesideboxgauche();
} else {
themesideboxdroite();
}
Tous simplement
|  Profil E-mail www
|
|
Hotfirenet 1738
| Posté : 20-10-2003 10:44
oki donc fo pas trop ce prendre la tete alors merci dev |  Profil E-mail www
|
|
Hotfirenet 1738
| Posté : 20-10-2003 11:07
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></t d></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></t d></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></t d></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></t d></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) {
[ Message édité par : Hotfirenet : 20-10-2003 12:46 ] |  Profil E-mail www
|
|
developpeur 24581
| Posté : 20-10-2003 12:21
if ($themeTMP=="1") {
themesideboxgauche($title, $content);
} else {
themesideboxdroite($title, $content);
}
Voilu |  Profil E-mail www
|
|
Hotfirenet 1738
| Posté : 20-10-2003 13:04
fo pas que je mette ca dans une fonction dans le theme ???? |  Profil E-mail www
|
|
developpeur 24581
| Posté : 20-10-2003 22:13
il te manquais les $title, $content dans l'appel des fonctions |  Profil E-mail www
|
|