Probleme xhtml
Dernière réponse : dans Programmation
Voila , j"'ai installé un chatbox de nuked clan , cependant l'ecriture et en blanc comme le fond de ma chatbox , du coup on voit pas ... j'ai beau essayer des choses , cherché d'autre chatbox , rien n'y fait , on voit pas .. quelqu'un serait commenc changé la couleur du block.php ?
Autres pages sur : probleme xhtml
Lassé par la pub ? Créez un compte
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\"><tr><td>\n"
. "<div id=\"textboxT\" style=\"position:relative;height: " . $height . ";overflow:hidden;\">\n"
. "<div id=\"textbox\" style=\"position:relative;\">\n"
. "<table style=\"border: 1px solid " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\n";
voila , j'ai changé bgcolor3 , jai mis 1 et 2 mais aucun effet ... ca se met vert --' et ca se met sur tous l'ecran donc je sais pas si c'est le bon code a changer ..
Bah jpe tous envoyer mais bon :s
voila
<?php // -------------------------------------------------------------------------// // Nuked-KlaN - PHP Portal // // <a href="http://www.nuked-klan.org" target="_blank">http://www.nuked-klan.org</a> // // -------------------------------------------------------------------------// // 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 $nuked, $theme, $language, $bgcolor1, $bgcolor2, $bgcolor3, $user; translate("modules/Textbox/lang/" . $language . ".lang.php"); include("modules/Textbox/config.php"); echo "<script type=\"text/javascript\" src=\"modules/Textbox/Textbox.js\"></script>"; echo "<script type=\"text/javascript\" src=\"bbcode.js\"></script>"; if ($user) { $visiteur = $user[1]; } else { $visiteur = 0; } $sql2 = mysql_query("SELECT active FROM " . BLOCK_TABLE . " WHERE bid = '" . $bid . "'"); list($active) = mysql_fetch_array($sql2); if ($active == 3 || $active == 4) { $width = $mbox_width; $height = $mbox_height; $max_chars = $max_mstring; $mess_max = $max_mtexte; $pseudo_max = $max_mpseudo; } else { $width = $box_width; $height = $box_height; $max_chars = $max_string; $mess_max = $max_texte; $pseudo_max = $max_pseudo; } echo "<script type=\"text/javascript\">\n" . "<!--\n" . "\n" . "function trim(string)\n" . "{" . "return string.replace(/(^\s*)|(\s*$)/g,'');" . "}\n" . "\n" . "function eff(){\n" . "if (document.getElementById('textbox_texte').value == '" . _YOURMESS . "')\n" . "{\n" . "document.getElementById('textbox_texte').value='';\n" . "}\n" . "}\n" . "\n" . "function verifchampstexte()\n" . "{\n" . "if (trim(document.getElementById('textbox_auteur').value) == \"\")\n" . "{\n" . "alert('" . _NONICKNAME . "');\n" . "return false;\n" . "}\n" . "if (document.getElementById('textbox_auteur').value == '" . _NICKNAME . "')\n" . "{\n" . "alert('" . _NONICKNAME . "');\n" . "return false;\n" . "}\n" . "if (trim(document.getElementById('textbox_texte').value) == \"\")\n" . "{\n" . "alert('" . _NOTEXT . "');\n" . "return false;\n" . "}\n" . "if (document.getElementById('textbox_texte').value == '" . _YOURMESS . "')\n" . "{\n" . "alert('" . _NOTEXT . "');\n" . "return false;\n" . "}\n" . "return true;\n" . "}\n" . "\n" . "// -->\n" . "</script>\n"; function smiley_box($textarea, $active, $max_smiley) { $i = 0; $sql = mysql_query("SELECT code, url, name FROM " . SMILIES_TABLE . " ORDER BY id LIMIT 0, 15"); while (list($code, $url, $name) = mysql_fetch_array($sql)) { $name = stripslashes($name); $name = htmlentities($name); echo "<a href=\"javascript:eff();insertAtCaret('" . $textarea ."', '$code');\"><img style=\";border: 0;\" src=\"images/icones/" . $url . "\" alt=\"\" title=\"" . $name . "\" /></a> "; if($active == 1 || $active == 2) { $i++; if($i == $max_smiley) { echo "<br />\n"; $i = 0; } } } echo "<br />[ <a href=\"#\" onclick=\"javascript:window.open('index.php?file=Textbox&nuked_nude=index&op=smilies&textarea=" . $textarea . "','smilies','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=200,height=350,top=100,left=470');return(false)\">" . _MORESMILIES . "</a> ]\n"; } if ($defil == "on") echo "<script type=\"text/javascript\">transfertDefil(" . $speed . ");</script>\n"; echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\"><tr><td>\n" . "<div id=\"textboxT\" style=\"position:relative;height: " . $height . ";overflow:hidden;\">\n" . "<div id=\"textbox\" style=\"position:relative;\">\n" . "<table style=\"border: 1px solid " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\n"; $sql = mysql_query("SELECT id,auteur, ip, texte, date FROM " . TEXTBOX_TABLE . " ORDER BY id DESC LIMIT 0, 20"); while (list($mid,$auteur, $ip, $texte, $date) = mysql_fetch_array($sql)) { $texte = stripslashes($texte); if (strlen($texte) > $mess_max) $texte = substr($texte, 0, $mess_max) . "..."; $sql_aut = mysql_query("SELECT id FROM " . USER_TABLE . " WHERE pseudo = '" . $auteur . "'"); $test_aut = mysql_num_rows($sql_aut); if($test_aut == 1) $url_auteur = "<a href=\"index.php?file=Members&op=detail&autor=" . urlencode($auteur) . "\">" . $auteur . "</a>"; else $url_auteur = $auteur; $level_admin = admin_mod("Textbox"); $level_mod = nivo_mod("Textbox"); if ($visiteur >= $level_admin && $level_admin > -1) { echo " <script type=\"text/javascript\">\n" . "<!--\n" . "\n" . "function del_shout(pseudo, id)\n" . "{\n" . "if (confirm('" . _DELETETEXT . " '+pseudo+' ! " . _CONFIRM . "'))\n" . "{document.location.href = 'index.php?file=Textbox&page=admin&op=del_shout&mid='+id;}\n" . "}\n" . "\n" . "// -->\n" . "</script>\n"; $del = " <a href=\"javascript:del_shout('" . addslashes($auteur) . "', '" . $mid . "');\"><img style=\"border: 0;\" src=\"modules/Textbox/images/del.gif\" alt=\"\" title=\"" . _DELTHISMESS . "\"></a>"; } else { $del = ""; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if ($language == "french") { $date = strftime("%d/%m/%y à %H:%M", $date); } else { $date = strftime("%m/%d/%y at %H:%M", $date); } $block_text = ""; $text = explode(' ', $texte); for($i = 0;$i < count($text);$i++) { $text[$i] = " " . $text[$i]; if (strlen($text[$i]) > $max_chars && !eregi("http:", $text[$i]) && !eregi("www\.", $text[$i]) && !eregi("@", $text[$i]) && !eregi("ftp\.", $text[$i])) $text[$i] = "<span title=\"" . $text[$i] . "\">" . substr($text[$i], 0, $max_chars) . "...</span>"; $block_text .= $text[$i]; } if (strlen($auteur) > $pseudo_max) $auteur = "<span title=\"" . nk_CSS($auteur) . "\">" . nk_CSS(substr($auteur, 0, $pseudo_max)) . "...</span>"; $block_text = htmlentities($block_text, ENT_NOQUOTES); $block_text = eregi_replace("<", "<", $block_text); $block_text = eregi_replace(">", ">", $block_text); $block_text = nk_CSS($block_text); $block_text = ' ' . $block_text; $block_text = preg_replace("#([\t\r\n ])([a-z0-9]+?){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*)?)#i", '\1[<a href="\2://\3" onclick="window.open(this.href); return false;" title="\2://\3">' . _TLINK . '</a>]', $block_text); $block_text = preg_replace("#([\t\r\n ])(www|ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^ \"\n\r\t<]*)?)#i", '\1[<a href="http://\2.\3" onclick="window.open(this.href); return false;" title="http://\2.\3">' . _TLINK . '</a>]', $block_text); $block_text = preg_replace("#([\n ])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1[<a href=\"mailto:\\2@\\3\" title=\"\\2@\\3\">" . _TMAIL . "</a>]", $block_text); $block_text = icon($block_text); if ($active == 3 || $active == 4) { if ($defil == "on") { echo "<tr><td onmouseover=\"arretDefil()\" onmouseout=\"arretDefil();transfertDefil(" . $speed . ")\"><div style=\"background:". $bgcolor3 .";width:100%;\"><b>" . $url_auteur . "</b>, \n" . _THE ." ". $date . " " . $del . "</div><div style=\"background:". $bgcolor1 .";padding: 3px;\">" . $block_text . "</div></td></tr>\n"; } else { echo "<tr><td><div style=\"background:". $bgcolor3 .";width:100%;\"><b>" . $url_auteur . "</b>, \n" . _THE ." ". $date . " " . $del . "</div><div style=\"background:". $bgcolor1 .";padding: 3px;\">" . $block_text . "</div></td></tr>\n"; } } else { if ($defil == "on") { echo "<tr><td onmouseover=\"arretDefil()\" onmouseout=\"arretDefil();transfertDefil(" . $speed . ")\"><div style=\"background:". $bgcolor3 .";width:100%;\"><b>" . $url_auteur . " " . $del . "</b><br />". _THE ." ". $date . "</div><div style=\"background:". $bgcolor1 .";padding: 3px;\">" . $block_text . "</div></td></tr>\n"; } else { echo "<tr><td><div style=\"background:". $bgcolor3 .";width:100%;\"><b>" . $url_auteur . " " . $del . "</b><br />". _THE ." ". $date . "</div><div style=\"background:". $bgcolor1 .";padding: 3px;\">" . $block_text . "</div></td></tr>\n"; } } } echo "</table></div></div></td></tr><tr><td align=\"center\">\n"; if ($visiteur >= $level_mod) echo "<a href=\"index.php?file=Textbox\">" . _THEARCHIVE . "</a> \n"; if ($defil == "on") { echo "<img id=\"down\" src=\"modules/Textbox/images/down.gif\" style=\"cursor: pointer;cursor: hand;border:0px;\" onmouseover=\"arretDefil();transfertArriere(" . $speed . ")\" onmouseout=\"arretDefil();transfertDefil(" . $speed . ")\" alt=\"\" title=\"". _DOWN ."\" />\n" . "<img id=\"pause\" src=\"modules/Textbox/images/pause.gif\" style=\"cursor: pointer;cursor: hand;border:0px;\" onmouseover=\"arretDefil()\" onmouseout=\"arretDefil();transfertDefil(" . $speed . ")\" alt=\"\" title=\"". _PAUSE ."\" />\n" . "<img id=\"up\" src=\"modules/Textbox/images/up.gif\" style=\"cursor: pointer;cursor: hand;border:0px;\" onmouseover=\"arretDefil();transfertPlus(" . $speed . ")\" onmouseout=\"arretDefil();transfertDefil(" . $speed . ")\" alt=\"\" title=\"". _UP ."\" />\n" . "</td></tr></table>\n"; } else { echo "<img id=\"up\" src=\"modules/Textbox/images/up.gif\" style=\"cursor: pointer;cursor: hand;border:0px;\" onmouseover=\"arretDefil();transfertPlus(" . $speed . ")\" onmouseout=\"arretDefil();\" alt=\"\" title=\"". _UP ."\" />\n" . "<img id=\"down\" src=\"modules/Textbox/images/down.gif\" style=\"cursor: pointer;cursor: hand;border:0px;\" onmouseover=\"arretDefil();transfertArriere(" . $speed . ")\" onmouseout=\"arretDefil();\" alt=\"\" title=\"". _DOWN ."\" />\n" . "</td></tr></table>\n"; } if ($active == 3 || $active == 4) { if ($visiteur >= $level_mod) { echo "<form action=\"index.php?file=Textbox&page=submit\" method=\"post\" onsubmit=\"return verifchampstexte();\"><div style=\"text-align: center;\">\n"; if (!$user) { echo "<input id=\"textbox_auteur\" type=\"text\" name=\"auteur\" size=\"40\" maxlength=\"40\" value=\"" . _NICKNAME . "\" onclick=\"this.value=''\" /><br />\n"; } else { echo "<input id=\"textbox_auteur\" type=\"hidden\" name=\"auteur\" value=\"" . $user[2] . "\" />\n"; } echo "<input id=\"textbox_texte\" type=\"text\" name=\"texte\" size=\"30\" maxlength=\"180\" value=\"" . _YOURMESS . "\" onclick=\"eff();\" />\n" . "<input type=\"submit\" value=\"" . _SEND . "\" /> <input type=\"button\" value=\"" . _SMILEY . "\" title=\"". _SMIL ."\" onclick=\"javascript:changeDisplay('smilies');\" /><br />\n" . "<div id=\"smilies\" style=\"text-align:center;visibility:hidden;position:absolute;\">\n"; smiley_box("textbox_texte", $active, $max_smiley); echo "</div></form><br />\n"; } } else { if ($visiteur >= $level_mod) { echo"<form action=\"index.php?file=Textbox&page=submit\" method=\"post\" onsubmit=\"return verifchampstexte();\"><div style=\"text-align: center;\">\n"; if (!$user) { echo "<input id=\"textbox_auteur\" type=\"text\" name=\"auteur\" size=\"20\" maxlength=\"180\" value=\"" . _NICKNAME . "\" onclick=\"this.value=''\" /><br />\n"; } else { echo "<input id=\"textbox_auteur\" type=\"hidden\" name=\"auteur\" value=\"" . $user[2] . "\" />\n"; } echo "<input id=\"textbox_texte\" type=\"text\" name=\"texte\" size=\"25\" maxlength=\"180\" value=\"" . _YOURMESS . "\" onclick=\"eff()\" /><br />\n" . "<input type=\"submit\" value=\"" . _SEND . "\" /> <input type=\"button\" value=\"" . _SMILEY . "\" title=\"". _SMIL ."\" onclick=\"javascript:changeDisplay('smilies');\" />\n" . "<br /></div><div id=\"smilies\" style=\"text-align:center;visibility:hidden;position:absolute;\">\n"; smiley_box("textbox_texte", $active, $max_smiley); echo "</div></form><br />\n"; } } ?>
voila
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumProbleme d'input type button xhtml
- downloadProbleme avec templata xhtml css telecharger
- ForumProbleme logo xhtml et css
- ForumProbleme de validation xhtml 1.0 transitional
- ForumXhtml css probleme affichage resolution
- ForumProbleme pour centrer une div en xhtml
- solutionsProbleme validation xhtml
- ForumXhtml css probleme avec opera 9.50
- ForumProbleme css sur page xhtml
- ForumXhtml php mysql probleme de tableau
- Voir plus
).