Afficher Le profil
ben.popeye Membre non connecté
-
Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
-
Equipe Historique
Reprise du message précédent
Tu es sous la version 2 ou 3 de PHPBoost ?Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
Eric127 Membre non connecté
Booster Fronde
-
Booster Fronde
- Voir le profil du membre Eric127
- Inscrit le : 22/03/2009
ben.popeye Membre non connecté
-
Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
-
Equipe Historique
Je n'ai pas de version 2 sous la main donc je n'ai pas essayé, je ne garantis donc absolument pas que ça marche, mais si il y a un problème on le règlera.
Avec ça, tu devrais pouvoir accéder à un profil avec l'url suivante : member/member.php?login=pseudo
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
Eric127 Membre non connecté
Booster Fronde
-
Booster Fronde
- Voir le profil du membre Eric127
- Inscrit le : 22/03/2009
member/member.php?login=Eric127
ou
member/member.php?id=2
voila le début de member.php version 2
Code PHP :
<?php /*################################################## * member.php * ------------------- * begin : August 04 2005 * copyright : (C) 2005 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. * ###################################################*/ include_once('../includes/begin.php'); define('TITLE', $LANG['member_area']); $edit_get = !empty($_GET['edit']) ? trim($_GET['edit']) : ''; $id_get = !empty($_GET['id']) ? numeric($_GET['id']) : ''; if (empty($id_get)) { $login = !empty($_GET['login']) ? securit($_GET['login']) : ''; if (!empty($login) { $id_get = (int)$sql->query("SELECT id FROM ".PREFIX."member WHERE login = '" . $login . "'", __LINE__, __FILE__); } } $title_mbr = !empty($id_get) ? (!empty($edit_get) ? $LANG['profil_edit'] : $LANG['index']) : $LANG['member_s']; $speed_bar = array( $LANG['member_area'] => transid('member.php?id=' . $session->data['user_id'] . '&view=1', 'member-' . $session->data['user_id'] . '.php?view=1'), $title_mbr => '' ); include_once('../includes/header.php'); $view_get = !empty($_GET['view']) ? trim($_GET['view']) : ''; $view_msg = !empty($_GET['msg']) ? numeric($_GET['msg']) : ''; $show_group = !empty($_GET['g']) ? numeric($_GET['g']) : ''; $post_group = !empty($_POST['show_group']) ? numeric($_POST['show_group']) : ''; $get_error = !empty($_GET['error']) ? trim($_GET['error']) : ''; $get_l_error = !empty($_GET['erroru']) ? trim($_GET['erroru']) : ''; if( !empty($id_get) ) //Espace membre { $template->set_filenames(array( 'member' => '../templates/' . $CONFIG['theme'] . '/member.tpl' )); if( !empty($edit_get) && $session->data['user_id'] === $id_get && ($session->check_auth($session->data, 0)) ) //Edition du profil { //Update profil $row = $sql->query_array('member', 'user_lang', 'user_theme', 'user_mail', 'user_local', 'user_web', 'user_occupation', 'user_hobbies', 'user_avatar', 'user_show_mail', 'user_sex', 'user_born', 'user_sign', 'user_desc', 'user_msn', 'user_yahoo', "WHERE user_id = '" . $session->data['user_id'] . "'", __LINE__, __FILE__); $user_born = ''; $array_user_born = explode('-', $row['user_born']); $date_birth = explode('/', $LANG['date_birth_parse']); for($i = 0; $i < 3; $i++) { if( $date_birth[$i] == 'DD' ) { $user_born .= $array_user_born[2 - $i]; $born_day = $array_user_born[2 - $i]; } elseif( $date_birth[$i] == 'MM' ) { $user_born .= $array_user_born[2 - $i]; $born_month = $array_user_born[2 - $i]; } elseif( $date_birth[$i] == 'YYYY' ) { $user_born .= $array_user_born[2 - $i]; $born_year = $array_user_born[2 - $i]; } $user_born .= ($i != 2) ? '/' : ''; } $user_sex = ''; if( !empty($row['user_sex']) ) $user_sex = ($row['user_sex']
ben.popeye Membre non connecté
-
Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
-
Equipe Historique
Mets ceci là où je t'ai indiqué :
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
Eric127 Membre non connecté
Booster Fronde
-
Booster Fronde
- Voir le profil du membre Eric127
- Inscrit le : 22/03/2009
Ok pour ma 2 iem question : a s'avoir si member.tpl........Peux faire afficher la liste de membres
par ID croissent ....au lieu de le faire a partir de la date de validation
Eric
Gsgsd Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre Gsgsd
- Inscrit le : 07/12/2007
- Site internet
Code PHP :
$mode = ($get_mode == 'asc' || $get_mode == 'desc') ? strtoupper(trim($_GET['mode'])) : '';
et remplace le par :
Code PHP :
$mode = ($get_mode == 'asc' || $get_mode == 'desc') ? strtoupper(trim($_GET['mode'])) : 'DESC';
Ça devrait résoudre le problème.
Édité par Gsgsd Le 08/06/2009 à 06h26
Vous souhaitez que vos membres contribuent ou ajoutent du contenu sur votre site ?
La solution => le module contribution !
La solution => le module contribution !
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie