coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: jazmi on January 19, 2007, 12:39:14 AM

Title: How add uploader name into [] ?
Post by: jazmi on January 19, 2007, 12:39:14 AM
Hi everybody?

I've been searching for hours how to put the uploader name into [] . So that the uploader's name under the thumbnail show like : [joe] instead of just joe.

Here's a link to my gallery so you'll understand why in the world i'm trying to do this...

http://www.dklik.net/galeries/index.php (http://www.dklik.net/galeries/index.php)

Another way to solve my problem would be to show the category name instead of the uplaoder name. Is that possible?

My theme is 2bornot2b.

Thanks a LOT for all the help you gave me through this board before this question.
Title: Re: How add uploader name into [] ?
Post by: Gizmo on January 19, 2007, 01:54:52 AM
To put the brackets around the name, in functions.inc.php find
            $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 with
            $caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title"><a href ="profile.php?uid='.$row['owner_id'].'">['.$row['owner_name'].']</a></span>' : '';
Title: Re: How add uploader name into [] ?
Post by: jazmi on January 19, 2007, 10:39:49 AM
It works just perfect !!!

Thanks a lot for four time  :)

Have a nice day.

Jazmi

Title: Re: How add uploader name into [] ?
Post by: Qayyom on January 25, 2007, 11:59:13 AM
WHERE IS functions.inc.php FILE I DON'T FIND IT ANY WHERE

NEED MORE DETAILS
Title: Re: How add uploader name into [] ?
Post by: Gizmo on January 25, 2007, 12:24:13 PM
Stop yelling and don't be so lazy. You obviously didn't look hard enough since there aren't that many directories to look in. Try the include directory. Next time be more polite!  >:(