coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: darkpollo on December 11, 2007, 07:16:57 PM

Title: Remove uploader from picture info
Post by: darkpollo on December 11, 2007, 07:16:57 PM
I am sure that the question must be on the forum, but i have searched a lot of words and i didnt find anything.
It is a easy question, sure.

I want to edit the pic info (not find how to do that) and remove
the "Album name" text.
It shows the uploader name with a link to the profile and a link to the album. I want to remove the uploader, or if it is not possible, remove the line.

   Album name:  username / album  -> Album name:  album

Thanks!
Title: Re: Remove uploader from picture info
Post by: Marius on March 07, 2008, 09:39:33 PM
In root/displayimage.php search this, around line 110 (v. 1.4.16):
$info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';
and replace with:
$info[$lang_picinfo['Album name']] = '<span class="alblink"><a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';

This works for me.
Remember to always make backups if something goes wrong
Title: Re: Remove uploader from picture info
Post by: Joachim Müller on March 08, 2008, 12:37:42 PM
Better use the plugin "Filter & Sort File Information Fields on Image Display Page (http://forum.coppermine-gallery.net/index.php/topic,27407.0.html)"