How to remove Username from Album Name under File Information? How to remove Username from Album Name under File Information?
 

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

How to remove Username from Album Name under File Information?

Started by Fab, September 23, 2006, 10:03:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fab

I don't want my Username to be in Album Name under File Information.

How can I prevent it from being display?

Alternatively is it possible to edit the Admin Username? e.g. change from Fab to Admin, and would the change be applied to all pics uploaded by Fab?

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Fab

Yes I know about this option, but it doesn't remove the username from the "File Information" section.

lamama

You'll have to modify the original code. Please note, that you'll have to do it everytime when a new version of CPG is released.

open displayimage.php
search for "function html_picinfo()"

    if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
        $owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a> ';
    } else {
        $owner_link = '';
    }


Change it to:

    if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
        $owner_link = '';                   
    } else {
        $owner_link = '';
    }



Sami

‍I don't answer to PM with support question
Please post your issue to related board

Fab