Remove uploader from picture info Remove uploader from picture info
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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