coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: fangweile on December 07, 2007, 05:22:25 AM

Title: How to add "Uploaded by" before user
Post by: fangweile on December 07, 2007, 05:22:25 AM
What file that I must modified to add "Uploaded by" before the user name. It is displayed in thumbnails view.  ??? The current setting display only uploader name below the thumbnail. I already try to edit the displayimaget.php but seems doesn't work. Hope you could help.

Thanks in advance.
Title: Re: How to add "Uploaded by" before user
Post by: Joachim Müller on December 07, 2007, 08:24:49 AM
Is your question by chance related to images fetched by cpmFetch?
Title: Re: How to add "Uploaded by" before user
Post by: fangweile on December 07, 2007, 08:43:47 AM
No. I mean the thumbnails displayed at main page.
Attached here the Screen shot
Title: Re: How to add "Uploaded by" before user
Post by: fangweile on December 10, 2007, 11:00:45 AM
Alright, I already figured it out. I edited the file functions.inc.php
and find this code
$caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title"><a href ="profile.php?uid='.$row['owner_id'].'">'.$row['owner_name'].'</a></span>' : '';

and replace it with this

$caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title">Uploaded by: <a href ="profile.php?uid='.$row['owner_id'].'">'.$row['owner_name'].'</a></span>' : '';

Please mark this topic as SOLVED.

Thank you. ;)