MyBB Community Forums

Full Version: Replacing Contact Details
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could someone please help me change the contact details on a members profile from Aim, ICQ, MSN and Yahoo

to

Skype and Facebook.
Add custom profile fields.
ACP > Configurations > Custom Profile Fields > Add New Profile Field
(2013-07-24, 03:46 AM)effone Wrote: [ -> ]Add custom profile fields.
ACP > Configurations > Custom Profile Fields > Add New Profile Field

But it doesn't display those field that he want to remove. (Aim, ICQ, MSN and Yahoo).
He can then remove the related codes from template.

From 'member_profile'
remove:

<tr>
<td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
<tr>
<td class="{$bgcolors['icq']}"><strong>{$lang->icq_number}</strong></td>
<td class="{$bgcolors['icq']}">{$memprofile['icq']}</td>
</tr>
<tr>
<td class="{$bgcolors['aim']}"><strong>{$lang->aim_screenname}</strong></td>
<td class="{$bgcolors['aim']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="{$bgcolors['msn']}"><strong>{$lang->msn}</strong></td>
<td class="{$bgcolors['msn']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>

and from 'usercp_profile'
remove:
<fieldset class="trow2">
<legend><strong>{$lang->additional_contact_details}</strong></legend>
<table cellspacing="0" cellpadding="{$theme['tablespace']}">
<tr>
<td><span class="smalltext">{$lang->icq_number}</span></td>
</tr>
<tr>
<td><input type="text" class="textbox" name="icq" size="25" value="{$user['icq']}" /></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->aim_screenname}</span></td>
</tr>
<tr>
<td><input type="text" class="textbox" name="aim" size="25" value="{$user['aim']}" /></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->msn}</span></td>
</tr>
<tr>
<td><input type="text" class="textbox" name="msn" size="25" value="{$user['msn']}" /></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->yahoo_id}</span></td>
</tr>
<tr>
<td><input type="text" class="textbox" name="yahoo" size="25" value="{$user['yahoo']}" /></td>
</tr>
</table>
</fieldset>