Remove uploader from picture info Remove uploader from picture info
 

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]

Main Menu

Remove uploader from picture info

Started by darkpollo, December 11, 2007, 07:16:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkpollo

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!

Marius

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

Joachim Müller