usernames usernames
 

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

usernames

Started by hbalagh, October 21, 2005, 04:26:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hbalagh

I am new to coppermine, and I am wondering how to get the usernames to show up under the user's picture... i have all these pictures and don't know who's they are.... 

thanks

Stramm

you need to edit two files, theme.php and displayimage.php

displayimage:
find
        '{IMAGE}' => $pic_html,
        '{ADMIN_MENU}' => $picture_menu,
        '{TITLE}' => $CURRENT_PIC_DATA['title'],
        '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),

below add

        '{OWNER_NAME}' => $CURRENT_PIC_DATA['owner_name'],


theme.php
find $template_display_picture = <<<EOT
a few lines below under {ADMIN_MENU} add
<br>From: <strong>{OWNER_NAME}</strong>

good luck

hbalagh

Thanks :)

Could you help me out with what to look for and what to add on the thumbnail view (im guessing on the thumbnail.php

Stramm

for the thumb view you can turn on/ off display of usernames in config