page personnaliser [Réglé]
julinou76 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre julinou76
- Inscrit le : 10/05/2009
je vien de voir un code pour mettre environnement de phpboost dans une page, le problème c'est que la page n'a pas de contenue, comment mettre du contenue sur cette page?
Le code que j'ai trouvée est celui la:
Code PHP :
<?php /*################################################## * accueil.php * ------------------- * begin : July 11, 2009 * copyright : (C) 2007 Viarre régis * email : crowkait@phpboost.com * * * ################################################### * * 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, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ define('PATH_TO_ROOT', '.'); //Début du chargement de l'environnement include_once('./kernel/begin.php'); //Chargement d'un fichier css, ici le fichier css du module news define('ALTERNATIVE_CSS', 'news'); //Titre de la page, ici Accueil define('TITLE', 'Samghami.com'); //Chargement de l'environnement ( header ) require_once('./kernel/header.php'); //Chargement des fichiers de langue global $LANG; //Chargement d'u fichier tpl ( non actif ici, pour le rendre actif supprimer "//" //$tpl_accueil = new Template('accueil/accueil.tpl'); ## Début du contenu de la page ## ## Fin du contenu de la page ## //Fin du chargement du tpl ( voir plus haut ) //$tpl_accueil->parse(); //Chargement du Footer include_once('./kernel/footer.php'); ?>
Merci d'avance
ReidLos Membre non connecté
-
Modérateur
- Voir le profil du membre ReidLos
- Inscrit le : 27/02/2009
- Site internet
- Groupes :
-
Equipe Développement
Code PHP :
## Début du contenu de la page ## ## Fin du contenu de la page ##
julinou76 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre julinou76
- Inscrit le : 10/05/2009
Visiteur
Boosteur Inactif
ReidLos Membre non connecté
-
Modérateur
- Voir le profil du membre ReidLos
- Inscrit le : 27/02/2009
- Site internet
- Groupes :
-
Equipe Développement
Code PHP :
<?php /*################################################## * accueil.php * ------------------- * begin : July 11, 2009 * copyright : (C) 2007 Viarre régis * email : crowkait@phpboost.com * * * ################################################### * * 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, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ define('PATH_TO_ROOT', '.'); //Début du chargement de l'environnement include_once('./kernel/begin.php'); //Chargement d'un fichier css, ici le fichier css du module news define('ALTERNATIVE_CSS', 'news'); //Titre de la page, ici Accueil define('TITLE', 'Samghami.com'); //Chargement de l'environnement ( header ) require_once('./kernel/header.php'); //Chargement des fichiers de langue global $LANG; //Chargement d'u fichier tpl ( non actif ici, pour le rendre actif supprimer "//" //$tpl_accueil = new Template('accueil/accueil.tpl'); ?> ## Début du contenu de la page ## ## Fin du contenu de la page ## <?php //Fin du chargement du tpl ( voir plus haut ) //$tpl_accueil->parse(); //Chargement du Footer include_once('./kernel/footer.php'); ?>
julinou76 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre julinou76
- Inscrit le : 10/05/2009
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie