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: How to remove Username from Album Name under File Information?  (Read 3274 times)

0 Members and 1 Guest are viewing this topic.

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
How to remove Username from Album Name under File Information?
« on: September 23, 2006, 10:03:22 pm »

I don't want my Username to be in Album Name under File Information.

How can I prevent it from being display?

Alternatively is it possible to edit the Admin Username? e.g. change from Fab to Admin, and would the change be applied to all pics uploaded by Fab?
« Last Edit: September 25, 2006, 06:10:48 am by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: How to remove Username from Album Name under File Information?
« Reply #1 on: September 24, 2006, 10:48:00 am »

It's config setting
config=>Thumbnail view
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: How to remove Username from Album Name under File Information?
« Reply #2 on: September 24, 2006, 07:52:22 pm »

Yes I know about this option, but it doesn't remove the username from the "File Information" section.
Logged

lamama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 404
Re: How to remove Username from Album Name under File Information?
« Reply #3 on: September 24, 2006, 08:36:36 pm »

You'll have to modify the original code. Please note, that you'll have to do it everytime when a new version of CPG is released.

open displayimage.php
search for "function html_picinfo()"

Code: [Select]
    if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
        $owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a> ';
    } else {
        $owner_link = '';
    }

Change it to:

Code: [Select]
    if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
        $owner_link = '';                   
    } else {
        $owner_link = '';
    }

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: How to remove Username from Album Name under File Information?
« Reply #4 on: September 24, 2006, 09:02:46 pm »

@fab:oops Sorry my bad ::)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Fab

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: How to remove Username from Album Name under File Information?
« Reply #5 on: September 25, 2006, 04:09:14 am »

No worries Sami :)

Thanks lamama worked like a charm.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.