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: usernames  (Read 3072 times)

0 Members and 1 Guest are viewing this topic.

hbalagh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
usernames
« on: October 21, 2005, 04:26:04 am »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: usernames
« Reply #1 on: October 21, 2005, 12:12:22 pm »

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

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

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

hbalagh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: usernames
« Reply #2 on: October 21, 2005, 05:36:02 pm »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: usernames
« Reply #3 on: October 21, 2005, 05:42:48 pm »

for the thumb view you can turn on/ off display of usernames in config
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.