Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Remove Album Owner from file info?  (Read 2161 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.028 seconds with 16 queries.