MyBB Community Forums

Full Version: How to add custom contact fields in the usercp ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
A sort of work around for this would be to go to the Language files and edit those:

for user Input:
  1. Home » Languages » English » usercp.lang.php
  2. search for ( ctrl + f ) >> contact_field_icq
  3. and edit from there on which you want.
To Display:
  1. Home » Languages » English » member.lang.php
  2. search for ( ctrl + f ) >> icq_number
  3. and edit from there on which you want.

To remove the Javascript:
  1. Home » Template Sets » YOUR TEMPLATE » Edit Template » Member Templates
and edit like this:
member_profile_contact_fields_icq
<tr>
    <td class="{$bgcolors['icq']}"><strong>{$lang->icq_number}</strong></td>
    <td class="{$bgcolors['icq']}">{$memprofile['icq']}</td>
</tr>
member_profile_contact_fields_google
<tr>
    <td class="{$bgcolors['google']}"><strong>{$lang->google_id}</strong></td>
    <td class="{$bgcolors['google']}">{$memprofile['google']}</td>
</tr>
member_profile_contact_fields_aim
<tr>
    <td class="{$bgcolors['aim']}"><strong>{$lang->aim_screenname}</strong></td>
    <td class="{$bgcolors['aim']}">{$memprofile['aim']}</a></td>
</tr>
member_profile_contact_fields_yahoo
<tr>
    <td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
    <td class="{$bgcolors['yahoo']}">{$memprofile['yahoo']}</a></td>
</tr>
member_profile_contact_fields_skype
 <tr>
    <td class="{$bgcolors['skype']}"><strong>{$lang->skype_id}</strong></td>
    <td class="{$bgcolors['skype']}">{$memprofile['skype']}</a></td>
</tr>

or add your own java scrip for Steam, etc...


Do this for each of your languages and themes. Your good to go Smile, no need for plugins.
Pages: 1 2