2
What you changed was the presentation side of the coin, however, the code that creates the block will also need to be modified to retrieve the user's ICQ #:
in /modules/system/blocks/system_blocks.php find the function b_system_info_show() and replace it with this one:
function b_system_info_show($options)
{
global $xoopsConfig, $xoopsUser;
$xoopsDB =& Database::getInstance();
$myts =& MyTextSanitizer::getInstance();
$block = array();
if (!empty($options[3])) {
$block['showgroups'] = true;
$result = $xoopsDB->query("SELECT u.uid, u.uname, u.email, u.user_viewemail, u.user_avatar, [b][color=008000]u.user_icq[/color][/b], g.name AS groupname FROM ".$xoopsDB->prefix("groups_users_link")." l LEFT JOIN ".$xoopsDB->prefix("users")." u ON l.uid=u.uid LEFT JOIN ".$xoopsDB->prefix("groups")." g ON l.groupid=g.groupid WHERE g.group_type='Admin' ORDER BY l.groupid, u.uid");
if ($xoopsDB->getRowsNum($result) > 0) {
$prev_caption = "";
$i = 0;
while ($userinfo = $xoopsDB->fetchArray($result)) {
if ($prev_caption != $userinfo['groupname']) {
$prev_caption = $userinfo['groupname'];
$block['groups'][$i]['name'] = $myts->htmlSpecialChars($userinfo['groupname']);
}
if ($xoopsUser != '') {
$block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => "<a href="javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&to_userid=".$userinfo['uid']."','pmlite',450,370);"><img src="".XOOPS_URL."/images/icons/pm_small.gif" border="0" width="27" height="17" alt="" /></a>", 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar'], [b][color=008000]'icq' => $userinfo['user_icq'][/color][/b] );
} else {
if ($userinfo['user_viewemail']) {
$block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => '<a href="mailto:'.$userinfo['email'].'"><img src="'.XOOPS_URL.'/images/icons/em_small.gif" border="0" width="16" height="14" alt="" /></a>', 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar'], [b][color=008000]'icq' => $userinfo['user_icq'][/color][/b]);
} else {
$block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => ' ', 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar'], [b][color=008000]'icq' => $userinfo['user_icq'][/color][/b]);
}
}
$i++;
}
}
} else {
$block['showgroups'] = false;
}
$block['logourl'] = XOOPS_URL.'/images/'.$options[2];
$block['recommendlink'] = "<a href="javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform&t=".time()."','friend',".$options[0].",".$options[1].")">"._MB_SYSTEM_RECO."</a>";
return $block;
}
Then in your site info template:
<!-- start group member loop -->
<{foreach item=user from=$group.users}>
<tr>
<td class="even" valign="middle" align="center"><img src="<{$user.avatar}>" alt="" width="32" /><br /><a href="<{$xoops_url}>/userinfo.php?uid=<{$user.id}>"><{$user.name}></a></td>[b][color=008000]<td class="odd" align="center"><img border="0" src="http://web.icq.com/whitepages/online?icq=<{$user.icq}>&img=5" /></td>[/color][/b]<td class="odd" width="20%" align="right" valign="middle"><{$user.msglink}></td>
</tr>
<{/foreach}>
<!-- end group member loop -->