alainterrenet Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Salut à tous Je suis nouveau, la proposition à peut-être déja été abordée mais il a vraiment trop de messages pour que je puisse vérifier. Et puis ce sera un rappel si on n'en as pas encore tenu compte. Dans le profil, il serait intérressant d'y insérer une zone où l'on pourrait décrire le matériel avec lequel on travail : plus facile pour répondre à certaine question. Merci de tenir compte de ma propostion. Alain(TerreNet) Lien vers le commentaire Partager sur d’autres sites More sharing options...
Compte_supprime_662 Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 En général, on met ces infos dans la signature ; cf la mienne Lien vers le commentaire Partager sur d’autres sites More sharing options...
NilSanyas Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Ouaip puis jsais pas comment créer un endroit pour ça Lien vers le commentaire Partager sur d’autres sites More sharing options...
deadhead Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 tu sé po faire ça? alors cache toi vi la signature Lien vers le commentaire Partager sur d’autres sites More sharing options...
toTOW Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 c'est pourtant facile (suivre les consignes suivantes) : ######## ## ## Hack Title: PC Config Display ## Hack Version: 1.0.0 ## Description: Faite la description de votre ordinateur dans votre profil ## ## Files To Edit: 9 ## admin/admin_users.php ## language/lang_xxx/lang_main.php ## language/lang_xxx/lang_admin.php ## includes/usercp_viewprofile.php ## includes/usercp_register.php ## includes/usercp_avatar.php ## templates/YOUR_TEMPLATE/admin/user_edit_body.tpl ## templates/YOUR_TEMPLATE/profile_add_body.tpl ## templates/YOUR_TEMPLATE/profile_view_body.tpl ## ######## ## ## Installation/Author Notes: ## Faite une sauvegarde de tous vos fichiers ## ######## SQL QUERY: (watch if this match your prefix_ ...for me is it phpbb_) ALTER TABLE phpbb_users ADD user_config VARCHAR(255); ######## usercp_viewprofile.php ---------------------- >>FIND: 'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ', >>ADD BELOW: 'CONFIG' => ( $profiledata['user_config'] ) ? $profiledata['user_config'] : ' ', -------------------------------------------------------------------------------------------------------- >>FIND: 'L_INTERESTS' => $lang['Interests'], >>ADD BELOW: 'L_CONFIG' => $lang['config'], ######## usercp_register.php ------------------- >>FIND: $strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests'); >>FIND IN THIS LINE: 'interests' >>ADD AFTER: , 'config' => 'config' -------------------------------------------------------------------------------------------------------- >>FIND: validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); >>FIND IN THIS LINE: $interests >>ADD AFTER: , $config -------------------------------------------------------------------------------------------------------- >>FIND: $interests = stripslashes($interests); >>ADD BELOW: $config = stripslashes($config); -------------------------------------------------------------------------------------------------------- >>FIND: $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) ."', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("'", "''", $user_actkey) . "'" . $avatar_sql . " >>FIND IN THIS LINE: $interests) . "', >>ADD AFTER user_config = '" . str_replace("'", "''", $config) . "', -------------------------------------------------------------------------------------------------------- >>FIND: $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) VALUES ($user_id, '" . str_replace("'", "''", $username) . "', " . time() . ", '" . str_replace("'", "''", $password) . "', '" . str_replace("'", "''", $email) . "', '" . str_replace("'", "''", $icq) . "', '" . str_replace("'", "''", $website) . "', '" . str_replace("'", "''", $occupation) . "', '" . str_replace("'", "''", $location) . "', '" . str_replace("'", "''", $interests) . "', '" . str_replace("'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("'", "''", $yim) . "', '" . str_replace("'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("'", "''", $user_dateformat) . "', '" . str_replace("'", "''", $user_lang) . "', $user_style, 0, 1, "; >>FIND IN THIS LINE: user_interests >>ADD AFTER: , user_config >>FIND IN THIS LINE: $interests) . "' >>ADD AFTER: , '" . str_replace("'", "''", $config) . "' -------------------------------------------------------------------------------------------------------- >>FIND: 'INTERESTS' => $interests, >>ADD BELOW: 'CONFIG' => $config, -------------------------------------------------------------------------------------------------------- >>FIND: $interests = htmlspecialchars(stripslashes($interests)); >>ADD BELOW: $config = htmlspecialchars(stripslashes($config)); -------------------------------------------------------------------------------------------------------- >>FIND: $interests = htmlspecialchars($userdata['user_interests']); >>ADD BELOW: $config = htmlspecialchars($userdata['user_config']); -------------------------------------------------------------------------------------------------------- >>FIND: display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat); >>FIND IN THIS LINE: $interests >>ADD AFTER: , $config -------------------------------------------------------------------------------------------------------- >>FIND: 'INTERESTS' => $interests, >>ADD BELOW: 'CONFIG' => $config, -------------------------------------------------------------------------------------------------------- >>FIND: 'L_INTERESTS' => $lang['Interests'], >>ADD BELOW: 'L_CONFIG' => $lang['Config'], ######## usercp_avatar.php ----------------- >>FIND: function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat) >>FIND IN THIS LINE: &$interests >>ADD AFTER: , &$config -------------------------------------------------------------------------------------------------------- >>FIND: $params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat'); >>FIND IN THIS LINE: 'dateformat' >>ADD AFTER: , 'config' ######## admin_users.php --------------- >>FIND: $interests = (!empty($HTTP_POST_VARS['interests'])) ? trim(strip_tags($HTTP_POST_VARS['interests'])) : ''; >>ADD BELOW: $config = ( !empty($HTTP_POST_VARS['config']) ) ? trim(strip_tags( $HTTP_POST_VARS['config'] ) ) : ''; -------------------------------------------------------------------------------------------------------- >>FIND: validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); >>FIND IN THIS LINE: $interests >>ADD AFTER: , $config -------------------------------------------------------------------------------------------------------- >>FIND: $interests = stripslashes($interests); >>ADD BELOW: $config = stripslashes($config); -------------------------------------------------------------------------------------------------------- >>FIND: $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) . "', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", $aim) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . " >>FIND IN THIS LINE: $interests) . "' >>ADD AFTER: , user_config = '" . str_replace("'", "''", $config) . "' -------------------------------------------------------------------------------------------------------- >>FIND: $interests = stripslashes($interests); >>ADD BELOW: $config = stripslashes($config); -------------------------------------------------------------------------------------------------------- >>FIND: $interests = $this_userdata['user_interests']; >>ADD BELOW: $config = $this_userdata['user_config']; -------------------------------------------------------------------------------------------------------- >>FIND: $s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace(""", """, $interests) . '" />'; >>ADD BELOW: $s_hidden_fields .= '<input type="hidden" name="config" value="' . str_replace(""", """, $config) . '" />'; -------------------------------------------------------------------------------------------------------- >>FIND: 'INTERESTS' => $interests, >>ADD BELOW: 'CONFIG' => $config, -------------------------------------------------------------------------------------------------------- >>FIND: 'L_INTERESTS' => $lang['Interests'], >>ADD BELOW: 'L_CONFIG' => $lang['Config'], ######## lang_admin.php ------------- >>FIND: // // That's all Folks! >>ADD BEFORE: $lang['Config'] = "La configuration de son ordinateur"; ######## lang_main.php ------------- >>FIND: // // That's all Folks! >>ADD BEFORE: $lang['Config'] = "La configuration de votre ordinateur"; ######## profile_add_body.tpl -------------------- >>FIND: <tr> <td class="row1"><span class="gen">{L_INTERESTS}:</span></td> <td class="row2"> <input type="text" class="post"style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" /> </td> </tr> >>ADD BELOW : <tr> <td class="row1"><span class="gen">{L_CONFIG}:</span><br /><span class="gensmall"><br />{HTML_STATUS}</span></td> <td class="row2"> <textarea name="config"style="width: 300px" rows="6" cols="30" class="post">{CONFIG}</textarea> </td> </tr> ######## profile_view_body.tpl --------------------- >>FIND: <tr> <td valign="top" align="right"><span class="gen">{L_INTERESTS}:</span></td> <td> <b><span class="gen">{INTERESTS}</span></b></td> </tr> >>ADD BELOW: <tr> <td valign="top" align="right"><span class="gen">Configuration:{L_CONFIG}</span></td> <td> <b><span class="gen">{CONFIG}</span></b></td> </tr> ######## user_edit_body.tpl ------------------ >>FIND: <tr> <td class="row1"><span class="gen">{L_INTERESTS}</span></td> <td class="row2"> <input type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" /> </td> </tr> >>ADD BELOW: <tr> <td class="row1"><span class="gen">{L_CONFIG}</span></td> <td class="row2"> <textarea name="config" rows="6" cols="45">{CONFIG}</textarea> </td> </tr> Lien vers le commentaire Partager sur d’autres sites More sharing options...
Invité nightswan Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 facile, ouais Lien vers le commentaire Partager sur d’autres sites More sharing options...
prodigy Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 vu la longeur je ne pense pas que nils aurra le courrage de le faire Lien vers le commentaire Partager sur d’autres sites More sharing options...
NilSanyas Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Heu... ouais on verra plus tard hein. Tchao Bip Bip !! ©Bip Bip contre le Coyote Lien vers le commentaire Partager sur d’autres sites More sharing options...
prodigy Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 c'es bien ce que je dissais Et nils tu ne ve pas juste rajouter le topic Linux Lien vers le commentaire Partager sur d’autres sites More sharing options...
Invité nightswan Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Regardez le courir... Lien vers le commentaire Partager sur d’autres sites More sharing options...
NilSanyas Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 c'est Nil pas NilS Ensuite pour Linux demain jle ferais pitet Lien vers le commentaire Partager sur d’autres sites More sharing options...
prodigy Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 excuse moi Nil O grand maitre et puis quoi encore sa arrive de se troper non mais Lien vers le commentaire Partager sur d’autres sites More sharing options...
PhiBee Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 NilS on aime bien nous... tu dois être plusieurs pour dire autant de choses, non ? (tu remarqueras que je n'ai pas dit "pour dire autant de conneries"...) Ou alors Nilou ? Nilon ?...ok, je suis plus là ... Lien vers le commentaire Partager sur d’autres sites More sharing options...
NilSanyas Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Nilou spour les intimes (comme Bilou ). Une fois en tapant une news (y'a quelques jours) j'ai tapé Nilou au lieu de Bilou :petedr: c'est à cause du B qui est à côté de N (et non parce que je rêve d'être à sa place ). Lien vers le commentaire Partager sur d’autres sites More sharing options...
deadhead Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Heu... ouais on verra plus tard hein.Tchao Bip Bip !! ©Bip Bip contre le Coyote :petedr: Lien vers le commentaire Partager sur d’autres sites More sharing options...
Dark26 Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 ouais ce serait cool.... et même de mettre plus de 1 config..... Lien vers le commentaire Partager sur d’autres sites More sharing options...
Will. Posté(e) le 11 mai 2003 Partager Posté(e) le 11 mai 2003 Moi je suis pour à 100% !!! Allez Nil bouge Tristan (le pauvre il est déjà à 200% sur PCIn) ça serait cool un icone avec le profil du PC Lien vers le commentaire Partager sur d’autres sites More sharing options...
Pipotron Posté(e) le 12 mai 2003 Partager Posté(e) le 12 mai 2003 comme ça on pourrait mettre autre chose en signature Lien vers le commentaire Partager sur d’autres sites More sharing options...
korrigan Posté(e) le 13 mai 2003 Partager Posté(e) le 13 mai 2003 non ce serait lourd d'avoir a taper a chaque fois sur une touche pour connaitre la config de qqun si par ex taleur je tombe sur la config d'un gars qui a une piece que jme tate a acheter alors je peut lui demand"er des precisions alors que ca sera impossible avec ce systeme... aussi ce serait trop la misere de repondre a chaque topic hardware en allant taper sur une touche,faut voir que tout le onde n'est pas en adsl,c long a charger une page chez moi! derniere chose,rien n'oblige a mettre sa config dans la signture! Lien vers le commentaire Partager sur d’autres sites More sharing options...
M'sieu Sman Posté(e) le 13 mai 2003 Partager Posté(e) le 13 mai 2003 c'est pourtant facile (suivre les consignes suivantes) : ######## ## ## Hack Title: PC Config Display ## Hack Version: 1.0.0 ## Description: Faite la description de votre ordinateur dans votre profil ## ## Files To Edit: 9 ## admin/admin_users.php ## language/lang_xxx/lang_main.php ## language/lang_xxx/lang_admin.php ## includes/usercp_viewprofile.php ## includes/usercp_register.php ## includes/usercp_avatar.php ## templates/YOUR_TEMPLATE/admin/user_edit_body.tpl ## templates/YOUR_TEMPLATE/profile_add_body.tpl ## templates/YOUR_TEMPLATE/profile_view_body.tpl ## ######## ## ## Installation/Author Notes: ## Faite une sauvegarde de tous vos fichiers ## ######## SQL QUERY: (watch if this match your prefix_ ...for me is it phpbb_) ALTER TABLE phpbb_users ADD user_config VARCHAR(255); ######## usercp_viewprofile.php ---------------------- >>FIND: 'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ', >>ADD BELOW: 'CONFIG' => ( $profiledata['user_config'] ) ? $profiledata['user_config'] : ' ', -------------------------------------------------------------------------------------------------------- >>FIND: 'L_INTERESTS' => $lang['Interests'], >>ADD BELOW: 'L_CONFIG' => $lang['config'], ######## usercp_register.php ------------------- >>FIND: $strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests'); >>FIND IN THIS LINE: 'interests' >>ADD AFTER: , 'config' => 'config' -------------------------------------------------------------------------------------------------------- >>FIND: validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); >>FIND IN THIS LINE: $interests >>ADD AFTER: , $config -------------------------------------------------------------------------------------------------------- >>FIND: $interests = stripslashes($interests); >>ADD BELOW: $config = stripslashes($config); -------------------------------------------------------------------------------------------------------- >>FIND: $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) ."', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("'", "''", $user_actkey) . "'" . $avatar_sql . " >>FIND IN THIS LINE: $interests) . "', >>ADD AFTER user_config = '" . str_replace("'", "''", $config) . "', -------------------------------------------------------------------------------------------------------- >>FIND: $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) VALUES ($user_id, '" . str_replace("'", "''", $username) . "', " . time() . ", '" . str_replace("'", "''", $password) . "', '" . str_replace("'", "''", $email) . "', '" . str_replace("'", "''", $icq) . "', '" . str_replace("'", "''", $website) . "', '" . str_replace("'", "''", $occupation) . "', '" . str_replace("'", "''", $location) . "', '" . str_replace("'", "''", $interests) . "', '" . str_replace("'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("'", "''", $yim) . "', '" . str_replace("'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("'", "''", $user_dateformat) . "', '" . str_replace("'", "''", $user_lang) . "', $user_style, 0, 1, "; >>FIND IN THIS LINE: user_interests >>ADD AFTER: , user_config >>FIND IN THIS LINE: $interests) . "' >>ADD AFTER: , '" . str_replace("'", "''", $config) . "' -------------------------------------------------------------------------------------------------------- >>FIND: 'INTERESTS' => $interests, >>ADD BELOW: 'CONFIG' => $config, -------------------------------------------------------------------------------------------------------- >>FIND: $interests = htmlspecialchars(stripslashes($interests)); >>ADD BELOW: $config = htmlspecialchars(stripslashes($config)); -------------------------------------------------------------------------------------------------------- >>FIND: $interests = htmlspecialchars($userdata['user_interests']); >>ADD BELOW: $config = htmlspecialchars($userdata['user_config']); -------------------------------------------------------------------------------------------------------- >>FIND: display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat); >>FIND IN THIS LINE: $interests >>ADD AFTER: , $config -------------------------------------------------------------------------------------------------------- >>FIND: 'INTERESTS' => $interests, >>ADD BELOW: 'CONFIG' => $config, -------------------------------------------------------------------------------------------------------- >>FIND: 'L_INTERESTS' => $lang['Interests'], >>ADD BELOW: 'L_CONFIG' => $lang['Config'], ######## usercp_avatar.php ----------------- >>FIND: function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat) >>FIND IN THIS LINE: &$interests >>ADD AFTER: , &$config -------------------------------------------------------------------------------------------------------- >>FIND: $params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat'); >>FIND IN THIS LINE: 'dateformat' >>ADD AFTER: , 'config' ######## admin_users.php --------------- >>FIND: $interests = (!empty($HTTP_POST_VARS['interests'])) ? trim(strip_tags($HTTP_POST_VARS['interests'])) : ''; >>ADD BELOW: $config = ( !empty($HTTP_POST_VARS['config']) ) ? trim(strip_tags( $HTTP_POST_VARS['config'] ) ) : ''; -------------------------------------------------------------------------------------------------------- >>FIND: validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); >>FIND IN THIS LINE: $interests >>ADD AFTER: , $config -------------------------------------------------------------------------------------------------------- >>FIND: $interests = stripslashes($interests); >>ADD BELOW: $config = stripslashes($config); -------------------------------------------------------------------------------------------------------- >>FIND: $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) . "', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", $aim) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . " >>FIND IN THIS LINE: $interests) . "' >>ADD AFTER: , user_config = '" . str_replace("'", "''", $config) . "' -------------------------------------------------------------------------------------------------------- >>FIND: $interests = stripslashes($interests); >>ADD BELOW: $config = stripslashes($config); -------------------------------------------------------------------------------------------------------- >>FIND: $interests = $this_userdata['user_interests']; >>ADD BELOW: $config = $this_userdata['user_config']; -------------------------------------------------------------------------------------------------------- >>FIND: $s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace(""", """, $interests) . '" />'; >>ADD BELOW: $s_hidden_fields .= '<input type="hidden" name="config" value="' . str_replace(""", """, $config) . '" />'; -------------------------------------------------------------------------------------------------------- >>FIND: 'INTERESTS' => $interests, >>ADD BELOW: 'CONFIG' => $config, -------------------------------------------------------------------------------------------------------- >>FIND: 'L_INTERESTS' => $lang['Interests'], >>ADD BELOW: 'L_CONFIG' => $lang['Config'], ######## lang_admin.php ------------- >>FIND: // // That's all Folks! >>ADD BEFORE: $lang['Config'] = "La configuration de son ordinateur"; ######## lang_main.php ------------- >>FIND: // // That's all Folks! >>ADD BEFORE: $lang['Config'] = "La configuration de votre ordinateur"; ######## profile_add_body.tpl -------------------- >>FIND: <tr> <td class="row1"><span class="gen">{L_INTERESTS}:</span></td> <td class="row2"> <input type="text" class="post"style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" /> </td> </tr> >>ADD BELOW : <tr> <td class="row1"><span class="gen">{L_CONFIG}:</span><br /><span class="gensmall"><br />{HTML_STATUS}</span></td> <td class="row2"> <textarea name="config"style="width: 300px" rows="6" cols="30" class="post">{CONFIG}</textarea> </td> </tr> ######## profile_view_body.tpl --------------------- >>FIND: <tr> <td valign="top" align="right"><span class="gen">{L_INTERESTS}:</span></td> <td> <b><span class="gen">{INTERESTS}</span></b></td> </tr> >>ADD BELOW: <tr> <td valign="top" align="right"><span class="gen">Configuration:{L_CONFIG}</span></td> <td> <b><span class="gen">{CONFIG}</span></b></td> </tr> ######## user_edit_body.tpl ------------------ >>FIND: <tr> <td class="row1"><span class="gen">{L_INTERESTS}</span></td> <td class="row2"> <input type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" /> </td> </tr> >>ADD BELOW: <tr> <td class="row1"><span class="gen">{L_CONFIG}</span></td> <td class="row2"> <textarea name="config" rows="6" cols="45">{CONFIG}</textarea> </td> </tr> Et avec ca on peux commander du café sur PcIn ? Trop fort!! mais je ne vois pas les tarifs... :8 Lien vers le commentaire Partager sur d’autres sites More sharing options...
korrigan Posté(e) le 13 mai 2003 Partager Posté(e) le 13 mai 2003 oui et ca fait allume-cigare en plus! Lien vers le commentaire Partager sur d’autres sites More sharing options...
amexsaga Posté(e) le 13 mai 2003 Partager Posté(e) le 13 mai 2003 J'en veux un, j'en veux un Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
Archivé
Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.