Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How add uploader name into [] ?  (Read 2880 times)

0 Members and 1 Guest are viewing this topic.

jazmi

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
How add uploader name into [] ?
« 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

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.
« Last Edit: January 19, 2007, 12:53:45 pm by Nibbler »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: How add uploader name into [] ?
« Reply #1 on: January 19, 2007, 01:54:52 am »

To put the brackets around the name, in functions.inc.php find
Code: [Select]
            $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
Code: [Select]
            $caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title"><a href ="profile.php?uid='.$row['owner_id'].'">['.$row['owner_name'].']</a></span>' : '';
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

jazmi

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: How add uploader name into [] ?
« Reply #2 on: January 19, 2007, 10:39:49 am »

It works just perfect !!!

Thanks a lot for four time  :)

Have a nice day.

Jazmi

Logged

Qayyom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 52
    • www.PICSnCLIPS.net
Re: How add uploader name into [] ?
« Reply #3 on: January 25, 2007, 11:59:13 am »

WHERE IS functions.inc.php FILE I DON'T FIND IT ANY WHERE

NEED MORE DETAILS
Logged
Qayyom Ashraf .:|:. Karachi-PK
 *Image Removed*

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: How add uploader name into [] ?
« Reply #4 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!  >:(
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.