Aller au contenu

Espace dans le profil pour la config PC


alainterrenet

Messages recommandés

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

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

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

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> 

:D Et avec ca on peux commander du café sur PcIn ? Trop fort!! mais je ne vois pas les tarifs...

8) :8

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...