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 to add "Uploaded by" before user  (Read 2185 times)

0 Members and 1 Guest are viewing this topic.

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
How to add "Uploaded by" before user
« 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.
« Last Edit: December 10, 2007, 08:10:14 pm by GauGau »
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to add "Uploaded by" before user
« Reply #1 on: December 07, 2007, 08:24:49 am »

Is your question by chance related to images fetched by cpmFetch?
Logged

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: How to add "Uploaded by" before user
« Reply #2 on: December 07, 2007, 08:43:47 am »

No. I mean the thumbnails displayed at main page.
Attached here the Screen shot
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: How to add "Uploaded by" before user
« Reply #3 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
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 it with this

Code: [Select]
$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. ;)
Logged
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.