modify $template_user_list_info_box modify $template_user_list_info_box
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

modify $template_user_list_info_box

Started by McNeo, February 27, 2006, 04:22:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

McNeo

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,
            )