Advanced search  

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]

Pages: [1]   Go Down

Author Topic: modify $template_user_list_info_box  (Read 2983 times)

0 Members and 1 Guest are viewing this topic.

McNeo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
modify $template_user_list_info_box
« on: February 27, 2006, 04:22:03 pm »

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:
Code: [Select]
// 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().

Code: [Select]
        $params = CPGPluginAPI::filter('user_caption_params', array(
            '{USER_NAME}' => $user['user_name'],
            '{USER_ID}' => $user['user_id'],
            '{ALBUMS}' => $albums_txt,
            '{PICTURES}' => $pictures_txt,
            )
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.