Probleme integration forum phpBB dans site
Résolu
Benji7790
-
stchretien -
stchretien -
Bonjour,
Je suis en train de faire un site, et j'y ai mis un forum.
Je voudrais integrer le forum a mon site.
Le probleme, c'est que quand j'integre la page index.php de phpBB
dans une page index a moi ca me met:
Le code de la page est:
Pouvez-vous m'aider s'il vous plait?
Merci d'avance.
Je suis en train de faire un site, et j'y ai mis un forum.
Je voudrais integrer le forum a mon site.
Le probleme, c'est que quand j'integre la page index.php de phpBB
dans une page index a moi ca me met:
Warning: Cannot modify header information - headers already sent by (output started at /mnt/167/sda/7/c/espacewebdetente/forums/index.php:6) in /mnt/167/sda/7/c/espacewebdetente/forums/includes/page_header.php on line 560 Warning: Cannot modify header information - headers already sent by (output started at /mnt/167/sda/7/c/espacewebdetente/forums/index.php:6) in /mnt/167/sda/7/c/espacewebdetente/forums/includes/page_header.php on line 562 Warning: Cannot modify header information - headers already sent by (output started at /mnt/167/sda/7/c/espacewebdetente/forums/index.php:6) in /mnt/167/sda/7/c/espacewebdetente/forums/includes/page_header.php on line 563
Le code de la page est:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Espace Web Détente Beta</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="menus.css" />
</head>
<body>
<!-- L'en-tête -->
<div id="en_tete">
</div>
<div id="page">
<!-- Les menus -->
<div id="menu">
<?php
include 'menuleft_navig.php';
include 'menuleft_spec.php';
?>
</div>
<!-- Le corps -->
<div id="corps">
INDEX.PHP DU FORUM
</div>
</body>
</html>
Pouvez-vous m'aider s'il vous plait?
Merci d'avance.
4 réponses
-
Bonjour,
étant donné les messages d'erreur n'aurais-tu pas des fonctions php header() dans les pages que tu inclues. Si c'est le cas sache que les headers en php doivent etre impérativement à la premiere ligne du document, donc il faut les metre en tete de la page que tu as copié ici (sans oublier d'ouvrir la balise php avant) -
Ben enfait tu integres ca dans les fichiers .tpl
Exemple:
Le code original du site:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > <head> <title>Titre de ton site</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css" /> </head> <body> Code de l'en tête Code du menu du haut Code du menu de gauche Code du contenu Code du pied de page </body> </html>
Et ben ca donne:
Dans le overall_header.tpl: (ca fait un truc genre ca)
Original:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Script-Webmaster.com :: Index ; template phpbb, thèmes phpbb, thème phpbb, theme, style, gratuit</title> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- style --> </style> </head> <body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4"> <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td><a href="index.php"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="Script-Webmaster.com Index du Forum" vspace="1" /></a></td> <td align="center" width="100%" valign="middle"><span class="maintitle">site.com</span><br /><span class="gen">Démo des templates phpBB2<br /> </span> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="faq.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="FAQ" hspace="3" />FAQ</a> <a href="search.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="Rechercher" hspace="3" />Rechercher</a> <a href="memberlist.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="Liste des Membres" hspace="3" />Liste des Membres</a> <a href="groupcp.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="Groupes d'utilisateurs" hspace="3" />Groupes d'utilisateurs</a> <a href="profile.php?mode=register" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="S'enregistrer" hspace="3" />S'enregistrer</a> </span></td> </tr> <tr> <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="profile.php?mode=editprofile" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="Profil" hspace="3" />Profil</a> <a href="privmsg.php?folder=inbox" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="Se connecter pour vérifier ses messages privés" hspace="3" />Se connecter pour vérifier ses messages privés</a> <a href="login.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="Connexion" hspace="3" />Connexion</a> </span></td> </tr> </table></td> </tr> </table> <br /> <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center"> <tr>
Modifié:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Script-Webmaster.com :: Index ; template phpbb, thèmes phpbb, thème phpbb, theme, style, gratuit</title> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- style --> </style> </head> <body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4"> Code de l'en tête Code du menu du haut Code du menu de gauche <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td><a href="index.php"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="Script-Webmaster.com Index du Forum" vspace="1" /></a></td> <td align="center" width="100%" valign="middle"><span class="maintitle">site.com</span><br /><span class="gen">Démo des templates phpBB2<br /> </span> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="faq.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="FAQ" hspace="3" />FAQ</a> <a href="search.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="Rechercher" hspace="3" />Rechercher</a> <a href="memberlist.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="Liste des Membres" hspace="3" />Liste des Membres</a> <a href="groupcp.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="Groupes d'utilisateurs" hspace="3" />Groupes d'utilisateurs</a> <a href="profile.php?mode=register" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="S'enregistrer" hspace="3" />S'enregistrer</a> </span></td> </tr> <tr> <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="profile.php?mode=editprofile" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="Profil" hspace="3" />Profil</a> <a href="privmsg.php?folder=inbox" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="Se connecter pour vérifier ses messages privés" hspace="3" />Se connecter pour vérifier ses messages privés</a> <a href="login.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="Connexion" hspace="3" />Connexion</a> </span></td> </tr> </table></td> </tr> </table> <br /> <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center"> <tr>
et tu inclus le Code du pied de page dans le overall_footer.tpl
J'espere t'avoir aidé, et si tu n'a pas compris, dit lemoi je te reexpliquerais du mieux que je peux.-
Salut Benji7,
J'espere que tu va bien. quand moi j'ai installer la version phpBB3 que je voudrai integrer a mon site web.
mais kan je modifie overall_header.html et overall_footer.html ca ne passe pas et je ne sais pas trop pourkoi
priere de m'aider Stp
j'attends et de te lire et d'ici la porte toi bien
-
-
J'ai fait totalement autrement en modifiant le header et le footer du forum avec mes infos et ca marche.
-
Bonsoir,
tu dis que tu as fait totalement autrement !
Est ce que tu pourrais donner plus de détails, cela m'intéresse, car j'ai la mémé problématiqe que toi.
merci!