coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: amy0603 on May 22, 2005, 03:10:56 AM

Title: Can I add names under the pics?
Post by: amy0603 on May 22, 2005, 03:10:56 AM
Hi, I was wondering if there is any way to add the uploaders name under the pics uploaded on the rectent uploads.  Right now it's the date, can I add the name or exchange that date for the name?  That way we know who did it quick by looking?  Thanks :)
Title: Re: Can I add names under the pics?
Post by: amy0603 on May 23, 2005, 09:07:44 PM
Anyone know this??   ???
Title: Hack? Or easy fix? putting uploader's name under the photos
Post by: amy0603 on May 24, 2005, 02:16:11 AM
I'm trying to find out how I can have the uploaders name under the photos on the C.B. right now it displays the date it was uploaded (only random images and recent uploads) but I would rather have their names, does coppermine offer this as a hack or is there a way to fix this? Amy ;D
Title: Re: Can I add names under the pics?
Post by: kegobeer on May 24, 2005, 02:33:23 AM
Don't double post.   >:(  I merged your identical topic into your original.  Starting another thread doesn't get help any quicker.
Title: Re: Can I add names under the pics?
Post by: amy0603 on May 24, 2005, 06:05:54 PM
The second post I was trying to put under the hack boards  >:( no reason to get mad  >:(  So do you know if this is even possible? 
Title: Re: Can I add names under the pics?
Post by: Nibbler on May 24, 2005, 06:48:23 PM
There's a config option to add uploader name under all thumbs, for specifically last uploads just force the switch

functions.inc.php, look for 'lastup', then find:


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


chang it to:

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

To kill the date, chnage the next 2 lines

                        $caption = $user_link.'<span class="thumb_caption">'.localised_date($row['ctime'], $lastup_date_fmt).'</span>';
                        $rowset[$key]['caption_text'] = $caption;


to

$rowset[$key]['caption_text'] = $user_link;