forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Fab on September 23, 2006, 10:03:22 pm
-
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?
-
It's config setting
config=>Thumbnail view
-
Yes I know about this option, but it doesn't remove the username from the "File Information" section.
-
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 = '';
}
-
@fab:oops Sorry my bad ::)
-
No worries Sami :)
Thanks lamama worked like a charm.