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: Remove Album Owner from file info?  (Read 2110 times)

0 Members and 1 Guest are viewing this topic.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Remove Album Owner from file info?
« on: October 26, 2012, 03:47:44 am »

Hello

I'm wondering how I can remove the album owner from being displayed in the File Info section of the display.

On this page

http://www.skolaiimages.com/stock/displayimage-122-6123-Polar-bears-at-play-Alaska.html

at the bottom you'll see File Information .. under Album Name, I see both the user name and the Album name

Code: [Select]
Album Name: sk**** / Polar Bear Photos
I would like this to only show "Polar Bear Photos" rather than the username as well. This seems to have happened since I last upgraded, and I'm not sure what to edit to remove it.

Thanks so much for your help.

Cheers

Carl
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Remove Album Owner from file info?
« Reply #1 on: October 26, 2012, 03:58:07 am »

<!--Coppermine Photo Gallery 1.5.18 (stable)-->
Please upgrade.
http://forum.coppermine-gallery.net/index.php/topic,74682.0.html

In displayimage.php
Find
Code: [Select]
$owner_link = '<a href="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $cpg_udb->get_user_name($CURRENT_PIC_DATA['owner_id']) . '</a> ';
Replace with
Code: [Select]
$owner_link = '';
Untested
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Remove Album Owner from file info?
« Reply #2 on: October 26, 2012, 04:10:10 am »

Hey Jeff,

Awesome, thanks .. seems to be working for me .. I wasn't aware of the newer version of cpg, I'll work on upgrading soon. Thanks for the head's up.

Cheers

Carl
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Remove Album Owner from file info?
« Reply #3 on: October 26, 2012, 04:11:17 am »

No problem. Thanks for resolving your thread.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.