Modification sous Nuked Klan

Petit nouveau ! | 9 Messages

26 déc. 2006, 19:52

Bonjour,

Voilà mon problème, j'utilise une structure Nuked-Klan pour mon site internet et j'aimerais supprimer la colonne de droite lorsque je vais sur le forum pour l'élargir un peu.

On m'a dit qu'il suffisait de modifier le fichier "theme.php" mais je n'y comprend pas grand chose.

Quelqu'un est il capable de me faire ca ou de m'aider?

Merci d'avance de vos réponses.
A+ GIDOU

Avatar du membre
ViPHP
ViPHP | 3008 Messages

26 déc. 2006, 19:55

Je ne sais pas si ton forum utilise le système des templates. Mais il faut que tu recherches l'endroit qui contient le code HTML de ton tableau.

Petit nouveau ! | 9 Messages

26 déc. 2006, 20:02

C'est quoi le système templates??? :oops:

Ce fameur code HTML de mon tableau se trouve dans mon fichier "theme.php" ou autre part?

Voilà mon fichier "theme.php" et "theme_no_admin.php"

Code : Tout sélectionner

<? if (is_file("patch.php")) { header("location: patch.php"); } if($user[1] > 1) { $cookie_admin = $nuked['cookiename'] . "_admin_session"; setcookie($cookie_admin, $user[0]); } include("themes/deus_xfrag_red/theme_no_admin.php"); if($file == "Admin" and $op == "index" and !isset($page)) { translate("lang/french.lang.php"); top(); global $user; if(isset($user) and $user[1] == 9) { echo" <center><a href=\"javascript:affiche('contenu')\"><font size=\"2\"><b>Administration du Theme</b></font></a></center> <div class=\"blocTexte\" id=\"contenu\"> <div class=\"Cacher\"> <a href=\"javascript:cache('contenu');\"><img src=\"themes/deus_xfrag_red/images/all/reduire.jpg\" border=\"0\" /></a> </div>"; include("themes/deus_xfrag_red/admin/index.php"); echo"</div> <br /> <br /> "; } echo" <center><a href=\"javascript:affiche('admin')\"><font size=\"2\"><b>Administration de Nuked Klan</b></font></a></center> <div class=\"blocTexte\" id=\"admin\"> <div class=\"Cacher\"> <a href=\"javascript:cache('admin');\"><img src=\"themes/deus_xfrag_red/images/all/reduire.jpg\" border=\"0\" /></a> </div>"; include("modules/Admin/index.php"); echo"</div> <br /> <br /> <center><font class=\"clique\"><b>** Cliquez sur un des titre pour atteindre la rubrique concerné. **</b></font></center> "; echo" <br /> <br /> <center> <script type=\"text/javascript\" src=\"http://www.nkdeus.com/last_news.php\"></script> </center>"; footer(); break; } elseif(isset($admin)) { translate("lang/french.lang.php"); top(); include("themes/deus_xfrag_red/admin/$admin.php"); footer(); break; } elseif(isset($lum)) { translate("lang/french.lang.php"); top(); include("themes/deus_xfrag_red/admin/lum.php"); footer(); break; } ?>
[/code]




Theme no admin

Code : Tout sélectionner

<? function top() { global $nuked, $op, $file, $user; include("themes/deus_xfrag_red/wars.php"); include("themes/deus_xfrag_red/login.php"); $sql_verif = mysql_query("SELECT name,value FROM $nuked[prefix]_config WHERE name = 'header_xfrag'"); $sql_verif_rows = @mysql_num_rows(sql_verif); if($sql_verif_rows = 1) { list($name,$value) = mysql_fetch_array($sql_verif); if($value == "on") { $header_g = "themes/deus_xfrag_red/swf/header_g_on.swf"; $header_d = "themes/deus_xfrag_red/swf/header_on.swf"; } elseif($value == "off") { $header_g = "themes/deus_xfrag_red/swf/header_g_off.swf"; $header_d = "themes/deus_xfrag_red/swf/header_off.swf"; } else { $sql_membre = mysql_query("SELECT id,name,value FROM $nuked[prefix]_xfrag WHERE name = '$user[2]'"); $membre_ok = @mysql_num_rows($sql_membre); if($membre_ok == 1) { list($id,$name,$value) = mysql_fetch_array($sql_membre); if($value == 1) { $header_g = "themes/deus_xfrag_red/swf/header_g_on.swf"; $header_d = "themes/deus_xfrag_red/swf/header_on.swf"; } else { $header_g = "themes/deus_xfrag_red/swf/header_g_off.swf"; $header_d = "themes/deus_xfrag_red/swf/header_off.swf"; } } else { $header_g = "themes/deus_xfrag_red/swf/header_g_on.swf"; $header_d = "themes/deus_xfrag_red/swf/header_on.swf"; } } } else { $header_g = "themes/deus_xfrag_red/swf/header_g_on.swf"; $header_d = "themes/deus_xfrag_red/swf/header_on.swf"; } echo" <html> <head> <meta name=\"keywords\" lang=\"fr\" content=\"$nuked[keyword]\"> <meta name=\"Description\" content=\"$nuked[description]\"> <title>$nuked[name] $nuked[slogan]</title> <meta http-equiv=\"content-style-type\" content=\"text/css\"> <link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/deus_xfrag_red/style.css\"> <script> function affiche(balise) { if (document.getElementById && document.getElementById(balise) != null) { document.getElementById(balise).style.visibility='visible'; document.getElementById(balise).style.display='block'; } } function cache(balise) { if (document.getElementById && document.getElementById(balise) != null) { document.getElementById(balise).style.visibility='hidden'; document.getElementById(balise).style.display='none'; } } cacheId('contenu'); // si JavaScript est disponible, cache le contenu dès le // chargement de la page. Sans JavaScript, le contenu sera // affiché. </script> </head> <!-- ######################################################## ## ## ## Theme deus_xfrag_red Pour nuked-klan 1.7.? ## ## ## ## Design by deus(www.nkdeus.com) ## ## HTML et PHP by Trifouille (www.td-host.fr) ## ## ## ## Nuked Klan (www.nuked-klan.org) ## ## Achetter vos themes (www.d-z-7.com) ## ## ## ######################################################## --> "; echo" <script language=\"javascript\"> function gonextwars(m2,y2) { location=\"index.php?file=Calendar&m=\" + m2 + \"&y=\" + y2; } </script> "; echo"<script language=\"JavaScript\"> function gowars(id) { location=\"index.php?file=Wars&op=detail&war_id=\" + id; } </script>"; echo"<body topmargin=0 class=\"body\"> <table border=\"0\" align=\"left\" valign=\"top\" cellpadding=\"0\" height=\"100%\" cellspacing=\"0\"> <tr> <td rowspan=\"4\" background=\"themes/deus_xfrag_red/images/header_gauche.jpg\" width=\"362\" height=\"308\"> <object type=\"application/x-shockwave-flash\" data=\"$header_g\" width=\"362\" height=\"308\"> <param name=\"movie\" value=\"$header_g\" /> <param name=\"quality\" value=\"best\" /> <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /> <param name=\"flashvars\" value=\"team=$nuked[name]&slogan=$nuked[slogan]\" /> </object> </td> <td background=\"themes/deus_xfrag_red/images/last_wars_haut.jpg\" width=\"147\" height=\"18\"></td> <td rowspan=\"3\" background=\"themes/deus_xfrag_red/images/lastnext_wars_entre.jpg\" width=\"12\" height=\"135\"></td> <td background=\"themes/deus_xfrag_red/images/next_wars_haut.jpg\" width=\"147\" height=\"18\"></td> <td rowspan=\"3\" background=\"themes/deus_xfrag_red/images/login.jpg\" width=\"196\" height=\"135\">"; nklogin(); echo"</td> <td rowspan=\"7\" background=\"themes/deus_xfrag_red/images/barre_droit_bg.jpg\" width=\"121\" valign=\"top\"> <img src=\"themes/deus_xfrag_red/images/barre_droit_haut.jpg\" width=\"121\" height=\"313\" alt=\"\" title=\"\" /> </td> </tr> <tr> <td height=\"89\" width=\"147\" valign=\"top\"> <object type=\"application/x-shockwave-flash\" data=\"themes/deus_xfrag_red/swf/lastwars.swf\" width=\"147\" height=\"89\"> <param name=\"movie\" value=\"themes/deus_xfrag_red/swf/lastwars.swf\" /> <param name=\"quality\" value=\"best\" /> <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /> <param name=\"flashvars\" value=\""; last_wars(); echo"\" /> </object> </td> <td background=\"themes/deus_xfrag_red/images/lastnext_wars_milieu.jpg\" height=\"89\" width=\"147\"> <object type=\"application/x-shockwave-flash\" data=\"themes/deus_xfrag_red/swf/nextwars.swf\" width=\"147\" height=\"89\"> <param name=\"movie\" value=\"themes/deus_xfrag_red/swf/nextwars.swf\" /> <param name=\"quality\" value=\"best\" /> <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /> <param name=\"flashvars\" value=\""; next_wars(); echo"\" /> </object> </td> </tr> <tr> <td background=\"themes/deus_xfrag_red/images/last_wars_bas.jpg\" width=\"147\" height=\"28\"></td> <td background=\"themes/deus_xfrag_red/images/next_wars_bas.jpg\" width=\"147\" height=\"28\"></td> </tr> <tr> <td colspan=\"4\" background=\"themes/deus_xfrag_red/images/header.jpg\" width=\"502\" height=\"173\"> <object type=\"application/x-shockwave-flash\" data=\"$header_d\" width=\"502\" height=\"173\"> <param name=\"movie\" value=\"$header_d\" /> <param name=\"quality\" value=\"best\" /> <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /> <param name=\"flashvars\" value=\"team=$nuked[name]\" /> </object> </td> </tr> <tr> <td colspan=\"5\" align=\"center\" height=\"100%\"> <table border=\"0\" width=\"864\" height=\"100%\" align=\"left\" valign=\"top\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td rowspan=\"2\" width=\"268\" height=\"100%\" background=\"themes/deus_xfrag_red/images/blok_gauche_bg.jpg\" valign=\"top\">"; include("themes/deus_xfrag_red/uniks.php"); get_blok('gauche'); echo"</td> <td colspan=\"2\" width=\"596\" height=\"13\" background=\"themes/deus_xfrag_red/images/centre_et_blokdroit_haut.jpg\" valign=\"top\"></td> </tr> <tr> <td width=\"438\" height=\"100%\" background=\"themes/deus_xfrag_red/images/centre_bg.jpg\" valign=\"top\"> "; if($op==index and $file !="Admin"){get_blok('centre');} } function footer() { global $nuked, $op, $file; if($op==index and $file !="Admin"){get_blok('bas');} echo" </td> <td width=\"158\" height=\"100%\" background=\"themes/deus_xfrag_red/images/blok_droit_bg.jpg\" valign=\"top\">"; get_blok('droite'); echo"</td> </tr> </table> </td> </tr> <tr> <td colspan=\"6\" background=\"themes/deus_xfrag_red/images/footer.jpg\" width=\"985\" height=\"45\"> <object type=\"application/x-shockwave-flash\" data=\"themes/deus_xfrag_red/images/footer.swf\" width=\"967\" height=\"45\"> <param name=\"movie\" value=\"themes/deus_xfrag_red/images/footer.swf\" /> <param name=\"quality\" value=\"best\" /> <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /> <param name=\"flashvars\" value=\"team=$nuked[name]&foot=$nuked[footmessage]\" /> </object> </td> </tr> </table> </body> </html>"; exit; } function news($data) { echo"<table border=\"0\" width=\"438\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"438\" height=\"34\" background=\"themes/deus_xfrag_red/images/news_titrecoms.jpg\"> <span align=\"left\" class=\"news_titre\">&nbsp;&nbsp; <b>$data[titre]</b></span><br /> &nbsp;<span class=\"news_coms\">[+] Par <a href=index.php?file=Members&op=detail&autor=$data[auteur]><span class=\"news_coms\">$data[auteur]</span></a> | le $data[date] | <a href=\"index.php?file=News&op=index_comment&news_id=$data[id]\"><span class=\"news_coms\">$data[nb_comment] commentaires</span></a></div> </td> </tr> <tr> <td width=\"438\" background=\"themes/deus_xfrag_red/images/news_milieu.jpg\" align=\"center\" align=\"center\"> <table cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" align=\"center\"> <tr> <td width=\"5\"></td> <td> <br /> $data[image] $data[texte] <br /><br /> </td> </tr> </table> </td> </tr> <tr> <td width=\"438\" height=\"6\" background=\"themes/deus_xfrag_red/images/news_bas.jpg\"> </td> </tr> </table>"; } function block_gauche($block) { echo" <table border=\"0\" width=\"268\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"268\" height=\"30\"> <object type=\"application/x-shockwave-flash\" data=\"themes/deus_xfrag_red/images/blok_titre_gauche.swf\" width=\"268\" height=\"30\"> <param name=\"movie\" value=\"themes/deus_xfrag_red/images/blok_titre_gauche.swf\" /> <param name=\"quality\" value=\"best\" /> <param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /> <param name=\"flashvars\" value=\"titre=$block[titre]\" /> </object> </td> </tr> <tr> <td width=\"268\" background=\"themes/deus_xfrag_red/images/blok_gauche_milieu.jpg\" align=\"center\"> <table cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" align=\"center\"> <tr> <td> <span class=\"block_content\">$block[content]</span> </td> </tr> </table> </td> </tr> <tr> <td width=\"268\" height=\"15\" background=\"themes/deus_xfrag_red/images/blok_gauche_bas.jpg\"> </td> </tr> </table> "; } function block_droite($block) { echo" <table border=\"0\" width=\"158\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"158\" height=\"38\" background=\"themes/deus_xfrag_red/images/blok_droit_titre.jpg\" align=\"center\"> <span class=\"block_droit_titre\"><b>$block[titre]</b></span> </td> </tr> <tr> <td width=\"158\" background=\"themes/deus_xfrag_red/images/blok_droit_milieu.jpg\" align=\"center\"> <table cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" align=\"center\"> <tr> <td> <span class=\"block_content\">$block[content]</span> </td> </tr> </table> </td> </tr> <tr> <td width=\"158\" height=\"13\" background=\"themes/deus_xfrag_red/images/blok_droit_bas.jpg\"> </td> </tr> </table>"; } function block_centre($block) { echo"<table border=\"0\" width=\"438\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"438\" height=\"18\" background=\"themes/deus_xfrag_red/images/blok_centre_titre.jpg\"> &nbsp;&nbsp;<span class=\"block_titre\"><b>$block[titre]</b></span> </td> </tr> <tr> <td width=\"438\" background=\"themes/deus_xfrag_red/images/blok_centre_milieu.jpg\" align=\"center\"> <table cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" align=\"center\"> <tr> <td> <span class=\"block_content\">$block[content]</span> </td> </tr> </table> </td> </tr> <tr> <td width=\"438\" height=\"7\" background=\"themes/deus_xfrag_red/images/blok_centre_bas.jpg\"> </td> </tr> </table>"; } function block_bas($block) { echo"<table border=\"0\" width=\"438\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"438\" height=\"18\" background=\"themes/deus_xfrag_red/images/blok_centre_titre.jpg\"> &nbsp;&nbsp;<span class=\"block_titre\"><b>$block[titre]</b></span> </td> </tr> <tr> <td width=\"438\" background=\"themes/deus_xfrag_red/images/blok_centre_milieu.jpg\" align=\"center\"> <table cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" align=\"center\"> <tr> <td> <span class=\"block_content\">$block[content]</span> </td> </tr> </table> </td> </tr> <tr> <td width=\"438\" height=\"7\" background=\"themes/deus_xfrag_red/images/blok_centre_bas.jpg\"> </td> </tr> </table>"; } function OpenTable() { global $file,$bip; echo" <table border=\"0\" width=\"438\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"438\" height=\"18\" background=\"themes/deus_xfrag_red/images/blok_centre_titre.jpg\" align=\"center\"> <span class=\"block_titre\">$file</span></td> </tr> <tr> <td width=\"438\" align=\"center\" background=\"themes/deus_xfrag_red/images/blok_centre_milieu.jpg\"> <table cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"90%\"> <tr> <td> <span class=\"block_content\">"; } function CloseTable() { echo" </span> </td> </tr> </table> </td> </tr> <tr> <td width=\"438\" height=\"7\" background=\"themes/deus_xfrag_red/images/blok_centre_bas.jpg\"> </td> </tr> </table>"; } ?>

Avatar du membre
ViPHP
ViPHP | 3008 Messages

26 déc. 2006, 20:05

Je ne connais pas du tout Nuked-Klan, mais pour repérer le bon tableau ce que tu peux faire c'est regarder le code source de ta page. Ensuite tu fais une recherche sur ces deux pages d'un morceau de HTML pour voir s'il y a une correspondance.