- includes/usercp_avatar.php
- includes/usercp_register.php
because they do not existe and i don't know what i must edit/change in usercp_profile.php
thank for all.
  ################################################################ MOD Title]http://crewstyle.free.fr#[/url]##### MOD Description:      Members can choose a default color##                               for all their posts.##                               Admins has the possibility to allow##                               or not this option.###### MOD Version:            2.2.5## Compatibility:         phpBB last version###### Installation Level: Medium - Hard## Installation Time:   20 Minutes## Files To Edit:         15##                - modcp.php##                - posting.php##                - privmsg.php##                - search.php##                - viewtopic.php##                - admin/admin_board.php##                - admin/admin_users.php##                - includes/topic_review.php##                - includes/usercp_avatar.php##                - includes/usercp_register.php##                - language/lang_french/lang_admin.php##                - language/lang_french/lang_main.php##                - templates/subSilver/profile_add_body.tpl##                - templates/subSilver/admin/board_config_body.tpl##                - templates/subSilver/admin/user_edit_body.tpl#### Included Files:       0#################################################################### For Security Purposes, Please Check: [url=http://forums.phpbb-fr.com#]http://forums.phpbb-fr.com#[/url]# for the latest version of this MOD.## Downloading this MOD from other sites could cause malicious code## to enter into your phpBB Forum.## As such, phpBB will not offer support for MOD's not offered## in our MOD-Database, located at: [url=http://forums.phpbb-fr.com#]http://forums.phpbb-fr.com#[/url]################################################################# Before Adding This MOD To Your Forum, You Should Back Up## All Files Related To This MOD.################################################################## MOD History:####    2006-02-22 - Version 2.2.5##         - Multiple quote Bug####    2005-07-24 - Version 2.2.4##         - MOD added for includes/usercp_avatar.php####    2005-07-16 - Version 2.2.3##         - MOD added for privmsg.php####    2005-07-16 - Version 2.2.2##         - MOD added for modcp.php and search.php####    2005-07-14 - Version 2.2.1##         - Bugs####    2005-07-01 - Version 2.2.0##         - SQL Bug##         - Bugs####    2005-06-30 - Version 2.1.0##         - Bugs####    2005-06-24 - Version 2.0.0##         - Multiple Quote Bug####    2005-03-31 - Version 1.2.1##         - SQL Bug####    2005-03-29 - Version 1.2.0##         - Color in Review##         (if admin allows it)####    2005-03-28 - Version 1.1.0##         - Color in Preview##         - Color in Quote##         (if admin allows it)####    2005-03-28 - Version 1.0.0##         - Initial version##################################################################-----[ SQL ]----------------------------------------------------#  INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_colortext', '1');ALTER TABLE phpbb_users ADD user_colortext VARCHAR(10);  ##-----[ OPEN ]--------------------------------------------------#  modcp.php  ##-----[ FIND ]------------------------------------------------#                    $sql = "SELECT u.username  ##-----[ IN LINE, FIND ]---------------------------------#  u.username  ##-----[ IN LINE, AFTER, ADD ]----------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#                                $message = str_replace("n", '<br>', $message);  ##-----[ AFTER, ADD ]------------------------------------------#                                if ( $board_config['allow_colortext'] )                              {                                    if ( $postrow[$i]['user_colortext'] != '' )                                    {                                          $message = '<font>' . $message . '</font>';                                    }                              }  ##-----[ OPEN ]--------------------------------------------------#  posting.php  ##-----[ FIND ]------------------------------------------------#  $select_sql = (!$submit) ? '  ##-----[ IN LINE, FIND ]---------------------------------#  u.user_sig  ##-----[ IN LINE, AFTER, ADD ]----------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#        if ( $mode == 'newtopic' || $mode == 'reply')      {            $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';  ##-----[ AFTER, ADD ]------------------------------------------#              $user_colortext = $userdata['user_colortext'];  ##-----[ FIND ]------------------------------------------------#        else if ( $mode == 'editpost' )      {            $user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';  ##-----[ AFTER, ADD ]------------------------------------------#              $user_colortext = $post_info['user_colortext'];  ##-----[ FIND ]------------------------------------------------#              if( $attach_sig && $user_sig != '' )            {                  $preview_message = $preview_message . '<br><br>_________________<br>' . $user_sig;  ##-----[ BEFORE, ADD ]------------------------------------------#              if ( $board_config['allow_colortext'] )            {                  if ( $user_colortext != '' )                  {                        $preview_message = '<font>' . $preview_message . '</font>';                  }            }  ##-----[ FIND ]------------------------------------------------#                    $message = '[quote=""' . $quote_username . '""]' . $message . '[/quote]';  ##-----[ REPLACE WITH ]------------------------------------------#                    if ( $board_config['allow_colortext'] && $post_info['user_colortext'] != '')                  {                        if ( preg_match('/^[0-9A-Fa-f]{6}$/', $post_info['user_colortext']) )                        {                              $post_info['user_colortext'] = '#' . $post_info['user_colortext'];                        }                        $post_info['user_colortext'] = trim($post_info['user_colortext']);                          $message = preg_replace('/[quote/', '[/color][quote', $message, 1);                          $pos = false;                          if (is_int(strpos($message, '[/quote]')))                        {                              $endPos = strlen($message) - 5;                              while ($endPos > 0)                              {                                    $endPos = $endPos - 1;                                    $pos = strpos($message, '[/quote]', $endPos);                                    if (is_int($pos))                                    {                                          break;                                    }                              }                        }                          $savemsg = "";                        if (is_int($pos))                        {                              $len = strlen('[/quote]');                              $message = substr_replace($message, '[/quote][color=' . $post_info['user_colortext'] . ']', $pos, $len);                              $savemsg = substr($message, strpos($message, '[quote'), $pos -   strpos($message, '[quote'));                              $message = substr( $message, 0, strpos($message, '[quote')) . 'à ÃƒÆ’ƒÂ §#; §$ £ÃƒÆ’‚ µÃƒÆ’ƒÂ ¹1-p' . substr($message, $pos);                        }                          $colortext_name = "#([quote=.(.*)])([/color])#";                        $message = preg_replace($colortext_name, "\1", $message);                          $colortext_start = '[/color]';                        $colortext_color = "#([color=.(.*)].(.*)[/color])#";                        $colortext_end = '[color=' . $post_info['user_colortext'] . ']';                        $message = preg_replace($colortext_color, $colortext_start . "\1" . $colortext_end, $message);                          $message = str_replace('[color=' . $post_info['user_colortext'] . '][color=', '[color=', $message);                          $message = '[quote=""' . $quote_username . '""][color=' . $post_info['user_colortext'] . ']' . $message . '[/color][/quote]';                          $message = str_replace('[color=' . $post_info['user_colortext'] . '][/color]', '', $message);                          $message = str_replace('à ÃƒÆ’ƒÂ §#; §$ £ÃƒÆ’‚ µÃƒÆ’ƒÂ ¹1-p', $savemsg, $message);                        $message = str_replace('[/color][/color]', '[/color]', $message);                  }                  else                  {                        $message = '[quote=""' . $quote_username . '""]' . $message . '[/quote]';                  }  ##-----[ OPEN ]--------------------------------------------------#  privmsg.php  ##-----[ FIND ]------------------------------------------------#        $sql = "SELECT u.username AS username_1, u.user_id AS user_id_1, u2.username AS username_2  ##-----[ IN LINE, FIND ]---------------------------------#  u.user_avatar  ##-----[ IN LINE, AFTER, ADD ]---------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#        if ( $privmsg['privmsgs_attach_sig'] && $user_sig != '' )      {            $private_message .= '<br><br>_________________<br>' . make_clickable($user_sig);  ##-----[ BEFORE, ADD ]------------------------------------------#        if ( $board_config['allow_colortext'] )      {            if ( $privmsg['user_colortext'] != '' )            {                  $private_message = '<font>' . $private_message . '</font>';            }      }  ##-----[ FIND ]------------------------------------------------#              else if ( $mode == 'reply' || $mode == 'quote' )            {                    $sql = "SELECT pm.privmsgs_subject, pm.privmsgs_date, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text, u.username, u.user_id  ##-----[ IN LINE, FIND ]---------------------------------#  u.user_id  ##-----[ IN LINE, AFTER, ADD ]---------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#                          $privmsg_message = '[quote=""' . $to_username . '""]' . $privmsg_message . '[/quote]';  ##-----[ REPLACE WITH ]------------------------------------------#                          if ( $board_config['allow_colortext'] && $privmsg['user_colortext'] != '')                        {                              if ( preg_match('/^[0-9A-Fa-f]{6}$/', $privmsg['user_colortext']) )                              {                                    $privmsg['user_colortext'] = '#' . $privmsg['user_colortext'];                              }                                $privmsg_message = preg_replace('/[quote/', '[/color][quote', $privmsg_message, 1);                                $pos = false;                              if (is_int(strpos($privmsg_message, '[/quote]')))                              {                                    $endPos = strlen($privmsg_message);                                    while ($endPos > 0)                                    {                                          $endPos = $endPos - 1;                                          $pos = strpos($privmsg_message, '[/quote]', $endPos);                                          if (is_int($pos))                                          {                                                break;                                          }                                    }                              }                                $savemsg = "";                              if (is_int($pos))                              {                                    $len = strlen('[/quote]');                                    $privmsg_message = substr_replace($privmsg_message, '[/quote][color=' . $privmsg['user_colortext'] . ']', $pos, $len);                                    $savemsg = substr($privmsg_message, strpos($privmsg_message, '[quote'), $pos -   strpos($privmsg_message, '[quote'));                                    $privmsg_message = substr( $privmsg_message, 0, strpos($privmsg_message, '[quote')) . 'à ÃƒÆ’ƒÂ §#; §$ £ÃƒÆ’‚ µÃƒÆ’ƒÂ ¹1-p' . substr($privmsg_message, $pos);                              }                                $colortext_name = "#([quote=.(.*)])([/color])#";                              $privmsg_message = preg_replace($colortext_name, "\1", $privmsg_message);                                $colortext_start = '[/color]';                              $colortext_color = "#([color=.(.*)].(.*)[/color])#";                              $colortext_end = '[color=' . $privmsg['user_colortext'] . ']';                              $privmsg_message = preg_replace($colortext_color, $colortext_start . "\1" . $colortext_end, $privmsg_message);                                $privmsg_message = str_replace('[color=' . $privmsg['user_colortext'] . '][color=', '[color=', $privmsg_message);                                $privmsg_message = '[quote=""' . $to_username . '""][color=' . $privmsg['user_colortext'] . ']' . $privmsg_message . '[/color][/quote]';                                $privmsg_message = str_replace('[color=' . $privmsg['user_colortext'] . '][/color]', '', $privmsg_message);                                $privmsg_message = str_replace('à ÃƒÆ’ƒÂ §#; §$ £ÃƒÆ’‚ µÃƒÆ’ƒÂ ¹1-p', $savemsg, $privmsg_message);                              $privmsg_message = str_replace('[/color][/color]', '[/color]', $privmsg_message);                        }                        else                        {                              $privmsg_message = '[quote=""' . $to_username . '""]' . $privmsg_message . '[/quote]';                        }  ##-----[ FIND ]------------------------------------------------#              if ( $attach_sig && $user_sig != '' )            {                  $preview_message = $preview_message . '<br><br>_________________<br>' . $user_sig;  ##-----[ BEFORE, ADD ]------------------------------------------#              if ( $board_config['allow_colortext'] )            {                  if ( $userdata['user_colortext'] != '' )                  {                        $preview_message = '<font>' . $preview_message . '</font>';                  }            }  ##-----[ OPEN ]--------------------------------------------------#  search.php  ##-----[ FIND ]------------------------------------------------#              if ( $show_results == 'posts' )            {                  $sql = "SELECT pt.post_text, pt.bbcode_uid, pt.post_subject, p.*, f.forum_id, f.forum_name, t.*, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid  ##-----[ IN LINE, FIND ]---------------------------------#  u.user_sig_bbcode_uid  ##-----[ IN LINE, AFTER, ADD ]----------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#                                $message = str_replace("n", '<br>', $message);  ##-----[ AFTER, ADD ]------------------------------------------#                                if ( $board_config['allow_colortext'] )                              {                                    if ( $searchset[$i]['user_colortext'] != '' )                                    {                                          $message = '<font>' . $message . '</font>';                                    }                              }  ##-----[ OPEN ]--------------------------------------------------#  viewtopic.php  ##-----[ FIND ]------------------------------------------------#  $sql = "SELECT u.username, u.user_id,  ##-----[ IN LINE, FIND ]---------------------------------#  u.user_sig  ##-----[ IN LINE, AFTER, ADD ]----------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#        $message = str_replace("n", "n<br>n", $message);  ##-----[ AFTER, ADD ]------------------------------------------#        if ( $board_config['allow_colortext'] )      {            if ( $postrow[$i]['user_colortext'] != '' )            {                  $message = '<font>' . $message . '</font>';            }      }  ##-----[ OPEN ]-------------------------------------------------#  admin/admin_board.php   ##-----[ FIND ]-----------------------------------------------#  $namechange_yes = ( $new['allow_namechange'] ) ? "checked="checked"" ] ) ? "checked="checked"" : "";  ##-----[ AFTER, ADD ]-----------------------------------------#  $allow_colortext_yes = ( $new['allow_colortext'] ) ? "checked="checked"" : ""; $allow_colortext_no = ( !$new['allow_colortext'] ) ? "checked="checked"" : "";   ##-----[ FIND ]-----------------------------------------------#        "L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],  ##-----[ AFTER, ADD ]-----------------------------------------#        "L_ALLOW_COLORTEXT" => $lang['Allow_colortext'],  ##-----[ FIND ]-----------------------------------------------#        "NAMECHANGE_YES" => $namechange_yes,      "NAMECHANGE_NO" => $namechange_no,  ##-----[ AFTER, ADD ]-----------------------------------------#        "ALLOW_COLORTEXT_YES" => $allow_colortext_yes,       "ALLOW_COLORTEXT_NO" => $allow_colortext_no,   ##-----[ OPEN ]--------------------------------------------------#  admin/admin_users.php  ##-----[ FIND ]------------------------------------------------#              $user_dateformat = ( $HTTP_POST_VARS['dateformat'] ) ? trim( $HTTP_POST_VARS['dateformat'] ) : $board_config['default_dateformat'];  ##-----[ AFTER, ADD ]------------------------------------------#              $user_colortext = ( !empty($HTTP_POST_VARS['user_colortext']) ) ? trim(strip_tags( $HTTP_POST_VARS['user_colortext']) ) : '';  ##-----[ FIND ]-------------------------------------------------#  $sql = "UPDATE " . USERS_TABLE . "  ##-----[ IN LINE, FIND ]----------------------------------#  user_attachsig = $attachsig  ##-----[ IN LINE, AFTER, ADD ]-----------------------------#  , user_colortext = '$user_colortext'  ##-----[ FIND ]------------------------------------------------#              $signature = preg_replace($html_entities_match, $html_entities_replace, $signature);  ##-----[ AFTER, ADD ]------------------------------------------#              $user_colortext = htmlspecialchars($this_userdata['user_colortext']);  ##-----[ FIND ]------------------------------------------------#                    $s_hidden_fields .= '<input>';  ##-----[ FIND ]--------------------------------------------------#              //            // Let's do an overall check for settings/versions which would prevent  ##-----[ BEFORE, ADD ]--------------------------------------------#              if ( $board_config['allow_colortext'] )            {                  $template->assign_block_vars('switch_colortext', array());            }  ##-----[ FIND ]--------------------------------------------------#                    'DATE_FORMAT' => $user_dateformat,  ##-----[ AFTER, ADD ]--------------------------------------------#                    'COLORTEXT' => $user_colortext,  ##-----[ FIND ]--------------------------------------------------#                    'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'],  ##-----[ AFTER, ADD ]--------------------------------------------#                    'L_COLORTEXT' => $lang['Colortext'],  ##-----[ OPEN ]--------------------------------------------------#  includes/topic_review.php  ##-----[ FIND ]------------------------------------------------#  $sql = "SELECT u.username, u.user_id  ##-----[ IN LINE, FIND ]---------------------------------#  u.user_id  ##-----[ IN LINE, AFTER, ADD ]----------------------------#  , u.user_colortext  ##-----[ FIND ]------------------------------------------------#                    $message = str_replace("n", '<br>', $message);  ##-----[ AFTER, ADD ]------------------------------------------#                    if ( $board_config['allow_colortext'] )                  {                        if ( $row['user_colortext'] != '' )                        {                              $message = '<font>' . $message . '</font>';                        }                  }  ##-----[ OPEN ]----------------------------------------------------#  includes/usercp_avatar.php  ##-----[ FIND ]--------------------------------------------------#  function display_avatar_gallery(  ##-----[ IN LINE, FIND ]----------------------------------#  &$attachsig  ##-----[ IN LINE, AFTER, ADD ]-----------------------------#  , &$colortext  ##-----[ FIND ]--------------------------------------------------#        $params = array(  ##-----[ IN LINE, FIND ]----------------------------------#  'attachsig'  ##-----[ IN LINE, AFTER, ADD ]-----------------------------#  , 'colortext'  ##-----[ OPEN ]----------------------------------------------------#  includes/usercp_register.php  ##-----[ FIND ]--------------------------------------------------#        $user_dateformat = ( !empty($HTTP_POST_VARS['dateformat']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['dateformat'])) : $board_config['default_dateformat'];  ##-----[ AFTER, ADD ]--------------------------------------------#        $user_colortext = ( $board_config['allow_colortext'] ) ? $HTTP_POST_VARS['colortext'] : '';  ##-----[ FIND ]--------------------------------------------------#  $sql = "UPDATE " . USERS_TABLE . "  ##-----[ IN LINE, FIND ]-----------------------------------#  user_attachsig = $attachsig  ##-----[ IN LINE, AFTER, ADD ]-----------------------------#  , user_colortext = '$user_colortext'  ##-----[ FIND ]--------------------------------------------------#  $sql = "INSERT INTO " . USERS_TABLE . "  ##-----[ IN LINE, FIND ]-----------------------------------#  user_attachsig  ##-----[ IN LINE, AFTER, ADD ]-----------------------------#  , user_colortext  ##-----[ IN LINE, FIND ]-----------------------------------#  $attachsig  ##-----[ IN LINE, AFTER, ADD ]-----------------------------#  , '" . str_replace("'", "''", $user_colortext) . "'  ##-----[ FIND ]--------------------------------------------------#        $signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|])/si", '\3', $signature) : $signature;  ##-----[ AFTER, ADD ]---------------------------------------------#        $user_colortext = stripslashes($user_colortext);  ##-----[ FIND ]---------------------------------------------------#        $signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|])/si", '\3', $userdata['user_sig']) : $userdata['user_sig'];  ##-----[ AFTER, ADD ]---------------------------------------------#        $user_colortext = $userdata['user_colortext'];  ##-----[ FIND ]---------------------------------------------------#        display_avatar_gallery($mode, $avatar  ##-----[ IN LINE, FIND ]------------------------------------#  $attachsig  ##-----[ IN LINE, AFTER, ADD ]------------------------------#  , $user_colortext  ##-----[ FIND ]---------------------------------------------------#        //      // Let's do an overall check for settings/versions which would prevent  ##-----[ BEFORE, ADD ]---------------------------------------------#        if ( $board_config['allow_colortext'] )      {            $template->assign_block_vars('switch_colortext', array());      }  ##-----[ FIND ]---------------------------------------------------#              'SIGNATURE' => str_replace('<br>', "n", $signature),  ##-----[ AFTER, ADD ]---------------------------------------------#              'COLORTEXT' => $user_colortext,  ##-----[ FIND ]---------------------------------------------------#              'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],  ##-----[ AFTER, ADD ]---------------------------------------------#              'L_COLORTEXT' => $lang['Colortext'],            'L_COLORTEXT_EXPLAIN' => $lang['Colortext_Explain'],  ##-----[ OPEN ]--------------------------------------------------#  language/lang_english/lang_admin.php  ##-----[ FIND ]------------------------------------------------#  //// That's all Folks!  ##-----[ BEFORE, ADD ]------------------------------------------ #  // MOD ColorText$lang['Allow_colortext'] = 'Allow Customize Color in posts';$lang['Colortext'] = 'Post Color';  ##-----[ OPEN ]--------------------------------------------------#  language/lang_english/lang_main.php  ##-----[ FIND ]------------------------------------------------#  //// That's all Folks!  ##-----[ BEFORE, ADD ]------------------------------------------ #  // MOD ColorText$lang['Colortext'] = 'Post Color';$lang['Colortext_Explain'] = 'You can choose a custom color which colorize all your posts.<br>You have 3 different ways to do it :<br><font>red</font> - <font>#ff0000</font> - <font>ff0000</font>';  ##-----[ OPEN ]------------------------------------------------------#  templates/subSilver/profile_add_body.tpl  ##-----[ FIND ]----------------------------------------------------#        <tr>         <td><span>{L_SIGNATURE}:</span><br><span>{L_SIGNATURE_EXPLAIN}<br><br>{HTML_STATUS}<br>{BBCODE_STATUS}<br>{SMILIES_STATUS}</span></td>         <td>            <textarea>{SIGNATURE}</textarea>         </td>      </tr>  ##-----[ AFTER, ADD ]-----------------------------------------------#  <BEGIN>      <tr>         <td><span>{L_COLORTEXT}:</span><br><span>{L_COLORTEXT_EXPLAIN}</span></td>         <td>            <input>         </td>      </tr><END>  ##-----[ OPEN ]-------------------------------------------------#  templates/subSilver/admin/board_config_body.tpl  ##-----[ FIND ]-----------------------------------------------#        <tr>            <td>{L_ALLOW_NAME_CHANGE}</td>            <td><input> {L_YES}  <input> {L_NO}</td>      </tr>  ##-----[ AFTER, ADD ]-----------------------------------------#        <tr>            <td>{L_ALLOW_COLORTEXT}</td>            <td><input> {L_YES}  <input> {L_NO}</td>      </tr>  ##-----[ OPEN ]----------------------------------------------------#  templates/subSilver/admin/user_edit_body.tpl  ##-----[ FIND ]--------------------------------------------------#        <tr>         <td><span>{L_SIGNATURE}</span><br>            <span>{L_SIGNATURE_EXPLAIN}<br>            <br>            {HTML_STATUS}<br>            {BBCODE_STATUS}<br>            {SMILIES_STATUS}</span></td>         <td>            <textarea>{SIGNATURE}</textarea>         </td>      </tr>  ##-----[ AFTER, ADD ]--------------------------------------------#  <BEGIN>      <tr>         <td><span>{L_COLORTEXT}</span>         <td>            <input>         </td>      </tr><END>  ##-----[ FERMER/SAUVEGARDER ]---------------------------------------------------------  
 Author:
Author: 



