Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: modify $template_user_list_info_box  (Read 3073 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.022 seconds with 19 queries.