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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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