Se connecter / S'enregistrer
Votre question

Probleme xhtml

Tags :
  • Xhtml
  • Programmation
Dernière réponse : dans Programmation
8 Juillet 2010 22:00:00

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

9 Juillet 2010 00:10:40

On peut avoir le code ?
m
0
l
9 Juillet 2010 09:57:47


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 ..
m
0
l
Contenus similaires
9 Juillet 2010 14:52:56

C'est tout ce qui a dans le code ?
m
0
l
9 Juillet 2010 19:03:10

Bah jpe tous envoyer mais bon :s

  1. <?php
  2. // -------------------------------------------------------------------------//
  3. // Nuked-KlaN - PHP Portal //
  4. // http://www.nuked-klan.org //
  5. // -------------------------------------------------------------------------//
  6. // This program is free software. you can redistribute it and/or modify //
  7. // it under the terms of the GNU General Public License as published by //
  8. // the Free Software Foundation; either version 2 of the License. //
  9. // -------------------------------------------------------------------------//
  10.  
  11. global $nuked, $theme, $language, $bgcolor1, $bgcolor2, $bgcolor3, $user;
  12.  
  13. translate("modules/Textbox/lang/" . $language . ".lang.php");
  14. include("modules/Textbox/config.php");
  15.  
  16. echo "<script type=\"text/javascript\" src=\"modules/Textbox/Textbox.js\"></script>";
  17. echo "<script type=\"text/javascript\" src=\"bbcode.js\"></script>";
  18.  
  19. if ($user)
  20. {
  21. $visiteur = $user[1];
  22. }
  23. else
  24. {
  25. $visiteur = 0;
  26. }
  27.  
  28. $sql2 = mysql_query("SELECT active FROM " . BLOCK_TABLE . " WHERE bid = '" . $bid . "'");
  29. list($active) = mysql_fetch_array($sql2);
  30.  
  31. if ($active == 3 || $active == 4)
  32. {
  33. $width = $mbox_width;
  34. $height = $mbox_height;
  35. $max_chars = $max_mstring;
  36. $mess_max = $max_mtexte;
  37. $pseudo_max = $max_mpseudo;
  38. }
  39. else
  40. {
  41. $width = $box_width;
  42. $height = $box_height;
  43. $max_chars = $max_string;
  44. $mess_max = $max_texte;
  45. $pseudo_max = $max_pseudo;
  46. }
  47.  
  48. echo "<script type=\"text/javascript\">\n"
  49. . "<!--\n"
  50. . "\n"
  51. . "function trim(string)\n"
  52. . "{"
  53. . "return string.replace(/(^\s*)|(\s*$)/g,'');"
  54. . "}\n"
  55. . "\n"
  56. . "function eff(){\n"
  57. . "if (document.getElementById('textbox_texte').value == '" . _YOURMESS . "')\n"
  58. . "{\n"
  59. . "document.getElementById('textbox_texte').value='';\n"
  60. . "}\n"
  61. . "}\n"
  62. . "\n"
  63. . "function verifchampstexte()\n"
  64. . "{\n"
  65. . "if (trim(document.getElementById('textbox_auteur').value) == \"\")\n"
  66. . "{\n"
  67. . "alert('" . _NONICKNAME . "');\n"
  68. . "return false;\n"
  69. . "}\n"
  70. . "if (document.getElementById('textbox_auteur').value == '" . _NICKNAME . "')\n"
  71. . "{\n"
  72. . "alert('" . _NONICKNAME . "');\n"
  73. . "return false;\n"
  74. . "}\n"
  75. . "if (trim(document.getElementById('textbox_texte').value) == \"\")\n"
  76. . "{\n"
  77. . "alert('" . _NOTEXT . "');\n"
  78. . "return false;\n"
  79. . "}\n"
  80. . "if (document.getElementById('textbox_texte').value == '" . _YOURMESS . "')\n"
  81. . "{\n"
  82. . "alert('" . _NOTEXT . "');\n"
  83. . "return false;\n"
  84. . "}\n"
  85. . "return true;\n"
  86. . "}\n"
  87. . "\n"
  88. . "// -->\n"
  89. . "</script>\n";
  90.  
  91. function smiley_box($textarea, $active, $max_smiley)
  92. {
  93. $i = 0;
  94. $sql = mysql_query("SELECT code, url, name FROM " . SMILIES_TABLE . " ORDER BY id LIMIT 0, 15");
  95. while (list($code, $url, $name) = mysql_fetch_array($sql))
  96. {
  97. $name = stripslashes($name);
  98. $name = htmlentities($name);
  99.  
  100. echo "<a href=\"javascript:eff();insertAtCaret('" . $textarea ."', '$code');\"><img style=\";border: 0;\" src=\"images/icones/" . $url . "\" alt=\"\" title=\"" . $name . "\" /></a> ";
  101.  
  102. if($active == 1 || $active == 2)
  103. {
  104. $i++;
  105. if($i == $max_smiley)
  106. {
  107. echo "<br />\n";
  108. $i = 0;
  109. }
  110. }
  111. }
  112. 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";
  113. }
  114.  
  115. if ($defil == "on") echo "<script type=\"text/javascript\">transfertDefil(" . $speed . ");</script>\n";
  116.  
  117. echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\"><tr><td>\n"
  118. . "<div id=\"textboxT\" style=\"position:relative;height: " . $height . ";overflow:hidden;\">\n"
  119. . "<div id=\"textbox\" style=\"position:relative;\">\n"
  120. . "<table style=\"border: 1px solid " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\n";
  121.  
  122. $sql = mysql_query("SELECT id,auteur, ip, texte, date FROM " . TEXTBOX_TABLE . " ORDER BY id DESC LIMIT 0, 20");
  123. while (list($mid,$auteur, $ip, $texte, $date) = mysql_fetch_array($sql))
  124. {
  125. $texte = stripslashes($texte);
  126. if (strlen($texte) > $mess_max) $texte = substr($texte, 0, $mess_max) . "...";
  127.  
  128. $sql_aut = mysql_query("SELECT id FROM " . USER_TABLE . " WHERE pseudo = '" . $auteur . "'");
  129. $test_aut = mysql_num_rows($sql_aut);
  130.  
  131. if($test_aut == 1) $url_auteur = "<a href=\"index.php?file=Members&op=detail&autor=" . urlencode($auteur) . "\">" . $auteur . "</a>";
  132. else $url_auteur = $auteur;
  133.  
  134. $level_admin = admin_mod("Textbox");
  135. $level_mod = nivo_mod("Textbox");
  136.  
  137. if ($visiteur >= $level_admin && $level_admin > -1)
  138. {
  139. echo " <script type=\"text/javascript\">\n"
  140. . "<!--\n"
  141. . "\n"
  142. . "function del_shout(pseudo, id)\n"
  143. . "{\n"
  144. . "if (confirm('" . _DELETETEXT . " '+pseudo+' ! " . _CONFIRM . "'))\n"
  145. . "{document.location.href = 'index.php?file=Textbox&page=admin&op=del_shout&mid='+id;}\n"
  146. . "}\n"
  147. . "\n"
  148. . "// -->\n"
  149. . "</script>\n";
  150.  
  151. $del = " <a href=\"javascript:del_shout('" . addslashes($auteur) . "', '" . $mid . "');\"><img style=\"border: 0;\" src=\"modules/Textbox/images/del.gif\" alt=\"\" title=\"" . _DELTHISMESS . "\"></a>";
  152. }
  153. else
  154. {
  155. $del = "";
  156. }
  157. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  158.  
  159. if ($language == "french")
  160. {
  161. $date = strftime("%d/%m/%y à %H:%M", $date);
  162. }
  163. else
  164. {
  165. $date = strftime("%m/%d/%y at %H:%M", $date);
  166. }
  167.  
  168. $block_text = "";
  169.  
  170. $text = explode(' ', $texte);
  171. for($i = 0;$i < count($text);$i++)
  172. {
  173. $text[$i] = " " . $text[$i];
  174. 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>";
  175. $block_text .= $text[$i];
  176. }
  177.  
  178. if (strlen($auteur) > $pseudo_max) $auteur = "<span title=\"" . nk_CSS($auteur) . "\">" . nk_CSS(substr($auteur, 0, $pseudo_max)) . "...</span>";
  179.  
  180. $block_text = htmlentities($block_text, ENT_NOQUOTES);
  181. $block_text = eregi_replace("<", "<", $block_text);
  182. $block_text = eregi_replace(">", ">", $block_text);
  183.  
  184. $block_text = nk_CSS($block_text);
  185.  
  186. $block_text = ' ' . $block_text;
  187. $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);
  188. $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);
  189. $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);
  190. $block_text = icon($block_text);
  191.  
  192. if ($active == 3 || $active == 4)
  193. {
  194. if ($defil == "on")
  195. {
  196. echo "<tr><td onmouseover=\"arretDefil()\" onmouseout=\"arretDefil();transfertDefil(" . $speed . ")\"><div style=\"background:". $bgcolor3 .";width:100%;\"><b>" . $url_auteur . "</b>, \n"
  197. . _THE ." ". $date . " " . $del . "</div><div style=\"background:". $bgcolor1 .";padding: 3px;\">" . $block_text . "</div></td></tr>\n";
  198. }
  199. else
  200. {
  201. echo "<tr><td><div style=\"background:". $bgcolor3 .";width:100%;\"><b>" . $url_auteur . "</b>, \n"
  202. . _THE ." ". $date . " " . $del . "</div><div style=\"background:". $bgcolor1 .";padding: 3px;\">" . $block_text . "</div></td></tr>\n";
  203. }
  204. }
  205. else
  206. {
  207. if ($defil == "on")
  208. {
  209. 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";
  210. }
  211. else
  212. {
  213. 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";
  214. }
  215. }
  216. }
  217. echo "</table></div></div></td></tr><tr><td align=\"center\">\n";
  218.  
  219. if ($visiteur >= $level_mod) echo "<a href=\"index.php?file=Textbox\">" . _THEARCHIVE . "</a> \n";
  220.  
  221. if ($defil == "on")
  222. {
  223. 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"
  224. . "<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"
  225. . "<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"
  226. . "</td></tr></table>\n";
  227. }
  228. else
  229. {
  230. 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"
  231. . "<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"
  232. . "</td></tr></table>\n";
  233. }
  234.  
  235. if ($active == 3 || $active == 4)
  236. {
  237. if ($visiteur >= $level_mod)
  238. {
  239. echo "<form action=\"index.php?file=Textbox&page=submit\" method=\"post\" onsubmit=\"return verifchampstexte();\"><div style=\"text-align: center;\">\n";
  240.  
  241. if (!$user)
  242. {
  243. echo "<input id=\"textbox_auteur\" type=\"text\" name=\"auteur\" size=\"40\" maxlength=\"40\" value=\"" . _NICKNAME . "\" onclick=\"this.value=''\" /><br />\n";
  244. }
  245. else
  246. {
  247. echo "<input id=\"textbox_auteur\" type=\"hidden\" name=\"auteur\" value=\"" . $user[2] . "\" />\n";
  248. }
  249.  
  250. echo "<input id=\"textbox_texte\" type=\"text\" name=\"texte\" size=\"30\" maxlength=\"180\" value=\"" . _YOURMESS . "\" onclick=\"eff();\" />\n"
  251. . "<input type=\"submit\" value=\"" . _SEND . "\" /> <input type=\"button\" value=\"" . _SMILEY . "\" title=\"". _SMIL ."\" onclick=\"javascript:changeDisplay('smilies');\" /><br />\n"
  252. . "<div id=\"smilies\" style=\"text-align:center;visibility:hidden;position:absolute;\">\n";
  253.  
  254. smiley_box("textbox_texte", $active, $max_smiley);
  255.  
  256. echo "</div></form><br />\n";
  257. }
  258. }
  259. else
  260. {
  261. if ($visiteur >= $level_mod)
  262. {
  263. echo"<form action=\"index.php?file=Textbox&page=submit\" method=\"post\" onsubmit=\"return verifchampstexte();\"><div style=\"text-align: center;\">\n";
  264.  
  265. if (!$user)
  266. {
  267. echo "<input id=\"textbox_auteur\" type=\"text\" name=\"auteur\" size=\"20\" maxlength=\"180\" value=\"" . _NICKNAME . "\" onclick=\"this.value=''\" /><br />\n";
  268. }
  269. else
  270. {
  271. echo "<input id=\"textbox_auteur\" type=\"hidden\" name=\"auteur\" value=\"" . $user[2] . "\" />\n";
  272. }
  273.  
  274. echo "<input id=\"textbox_texte\" type=\"text\" name=\"texte\" size=\"25\" maxlength=\"180\" value=\"" . _YOURMESS . "\" onclick=\"eff()\" /><br />\n"
  275. . "<input type=\"submit\" value=\"" . _SEND . "\" /> <input type=\"button\" value=\"" . _SMILEY . "\" title=\"". _SMIL ."\" onclick=\"javascript:changeDisplay('smilies');\" />\n"
  276. . "<br /></div><div id=\"smilies\" style=\"text-align:center;visibility:hidden;position:absolute;\">\n";
  277.  
  278. smiley_box("textbox_texte", $active, $max_smiley);
  279.  
  280. echo "</div></form><br />\n";
  281. }
  282. }
  283.  
  284. ?>



voila :D 
m
0
l
10 Juillet 2010 17:22:58

Essaie voir de redéfinir tes $bgcolor (bg = back ground = fond et color = couleur :o ).
Jpense que ça vient de là. Bon après j'ai eu la flemme de tout lire donc je garantie rien.
m
0
l
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS