Add in msql code
PHP Code:
ALTER TABLE `users` ADD `icq` VARCHAR( 255 ) NOT NULL AFTER `email` ;
ALTER TABLE `users` ADD `msn` VARCHAR( 255 ) NOT NULL AFTER `icq` ;
ALTER TABLE `users` ADD `aim` VARCHAR( 255 ) NOT NULL AFTER `msn` ;
ALTER TABLE `users` ADD `yahoo` VARCHAR( 255 ) NOT NULL AFTER `aim` ;
ALTER TABLE `users` ADD `skype` VARCHAR( 255 ) NOT NULL AFTER `yahoo` ;
find code in account.php
PHP Code:
print("<TR><TD align=right class=table_col2><B>" . ACCOUNT_EMAIL_NOTIFICATION . ":</B> </TD><TD align=left class=table_col2><input type=checkbox name=pmnotif" . (strpos($CURUSER['notifs'], "[pm]") !== false ? " checked" : "") .
" value=yes><B>" . ACCOUNT_PM_NOTIFY_ME . "</B><br><i>The system will email you when you receive a PM.</i></td></tr>");
after add code
PHP Code:
print("<tr><td class=\"tablecat\" colspan=\"2\" align=left><b>Contacts</b></td></tr>\n");
tr(" ", " <table cellSpacing=\"3\" cellPadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td style=\"font-size: 1
1px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\" colspan=2>
If you want, that other visitors could contact quickly you, specify the data in following systems of fast messages</td>
</tr>
<tr>
<td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
Namber ICQ<br>
<img alt src=pic/contact/icq.gif width=\"17\" height=\"17\">
<input maxLength=\"30\" size=\"25\" name=\"icq\" value=\"" . htmlspecialchars($CURUSER["icq"]) . "\" ></td>
<td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
Name in AIM<br>
<img alt src=pic/contact/aim.gif width=\"17\" height=\"17\">
<input maxLength=\"30\" size=\"25\" name=\"aim\" value=\"" . htmlspecialchars($CURUSER["aim"]) . "\" ></td>
</tr>
<tr>
<td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
Youre MSN<br>
<img alt src=pic/contact/msn.gif width=\"17\" height=\"17\">
<input maxLength=\"50\" size=\"25\" name=\"msn\" value=\"" . htmlspecialchars($CURUSER["msn"]) . "\" ></td>
<td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
Name in Yahoo!<br>
<img alt src=pic/contact/yahoo.gif width=\"17\" height=\"17\">
<input maxLength=\"30\" size=\"25\" name=\"yahoo\" value=\"" . htmlspecialchars($CURUSER["yahoo"]) . "\" ></td>
</tr>
<tr>
<td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
Name in Skype<br>
<img alt src=pic/contact/skype.gif width=\"17\" height=\"17\">
<input maxLength=\"32\" size=\"25\" name=\"skype\" value=\"" . htmlspecialchars($CURUSER["skype"]) . "\" ></td>
<td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
</td>
</tr>
</table>",1);
find code
PHP Code:
$avatar = $_POST["avatar"];
$title = $_POST["title"];
after add code
PHP Code:
/////contact//////
$icq = unesc($_POST["icq"]);
if (strlen($icq) > 10)
bark("Sorry, Namber icq too long (Max - 10)");
$updateset[] = "icq = " . sqlesc($icq);
$msn = unesc($_POST["msn"]);
if (strlen($msn) > 30)
bark("Sorry, Yours msn too long (Max - 30)");
$updateset[] = "msn = " . sqlesc($msn);
$aim = unesc($_POST["aim"]);
if (strlen($aim) > 30)
bark("Sorry, Yours aim too long (Max - 30)");
$updateset[] = "aim = " . sqlesc($aim);
$yahoo = unesc($_POST["yahoo"]);
if (strlen($yahoo) > 30)
bark("Sorry, Yours yahoo too long (Max - 30)");
$updateset[] = "yahoo = " . sqlesc($yahoo);
$skype = unesc($_POST["skype"]);
if (strlen($skype) > 20)
bark("Sorry, Yours skype too long (Max - 20)");
$updateset[] = "skype = " . sqlesc($skype);
//end conatct///////
FIND CODE IN account-details.php
PHP Code:
Warnings: <?=htmlspecialchars($user["warned"])?><BR>
<?if ($user["privacy"] == "strong"){ echo "Privacy: <b>Strong</b><BR>"; }?>
</td>
</tr>
AFTER ADD CODE
PHP Code:
<tr>
<td class=tablea><b>Contact</b></td><td class=tablea align=left>
<?
if ($user["icq"])
print("<img src=http://web.icq.com/whitepages/online?icq='".htmlspecialchars($user['icq'])."&img=5' alt=icq border=0 /> ".htmlspecialchars($user['icq'])." <br>\n");
if ($user["msn"])
print("<img src=pic/contact/msn.gif alt=msn border=0 /> ".htmlspecialchars($user['msn'])."<br>\n");
if ($user["aim"])
print("<img src=pic/contact/aim.gif alt=aim border=0 /> ".htmlspecialchars($user['aim'])."<br>\n");
if ($user["yahoo"])
print("<img src=pic/contact/yahoo.gif alt=yahoo border=0 /> ".htmlspecialchars($user['yahoo'])."<br>\n");
if ($user["skype"])
print("<img src=pic/contact/skype.gif alt-skype border=0 /> ".htmlspecialchars($user['skype'])."\n");
?>
</td>
</tr>
Images:
Screenshoot:
Add in your site root: