In "Users galleries" we see users galleries. Under username is information, how many albums this user has. I want make that line to link that directs to user albums listing, just like user icon above. From sample theme.php I found code:
// HTML template for the USER info box in the user list view
$template_user_list_info_box = <<<EOT
<table cellspacing="1" cellpadding="0" border="0" width="100%" class="user_thumb_infobox">
<tr>
<th><a href="profile.php?uid={USER_ID}">{USER_NAME}</a></th>
</tr>
<tr>
<td>{ALBUMS}</td>
</tr>
<tr>
<td>{PICTURES}</td>
</tr>
</table>
EOT;
How can I make this {ALBUMS} to be the same link as user icon? I understand, that I have to do something in index.php, in function list_users().
$params = CPGPluginAPI::filter('user_caption_params', array(
'{USER_NAME}' => $user['user_name'],
'{USER_ID}' => $user['user_id'],
'{ALBUMS}' => $albums_txt,
'{PICTURES}' => $pictures_txt,
)