coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Walkinman on October 26, 2012, 03:47:44 AM

Title: Remove Album Owner from file info?
Post by: Walkinman 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

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
Title: Re: Remove Album Owner from file info?
Post by: Jeff Bailey 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

$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
Title: Re: Remove Album Owner from file info?
Post by: Walkinman 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
Title: Re: Remove Album Owner from file info?
Post by: Jeff Bailey on October 26, 2012, 04:11:17 AM
No problem. Thanks for resolving your thread.