modify $template_user_list_info_box modify $template_user_list_info_box
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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