Remove Album Owner from file info? Remove Album Owner from file info?
 

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

Main Menu

Remove Album Owner from file info?

Started by Walkinman, October 26, 2012, 03:47:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Walkinman

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

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

Jeff Bailey

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

In displayimage.php
Find

$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

$owner_link = '';

Untested
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Walkinman

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

Jeff Bailey

No problem. Thanks for resolving your thread.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford