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: Last additions  (Read 2858 times)

0 Members and 1 Guest are viewing this topic.

taulen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Last additions
« on: November 18, 2005, 12:34:52 pm »

On the index page you can see the last added files, under every file you have the date the file is added, can you change the date too the name of the file?
Thanks :)
« Last Edit: November 20, 2005, 10:00:41 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Last additions
« Reply #1 on: November 18, 2005, 01:43:10 pm »

Certainly, edit include/functions.inc.php

find

Code: [Select]
$caption = $user_link.'<span class="thumb_caption">'.localised_date($row['ctime'], $lastup_date_fmt).'</span>';

Change it to

Code: [Select]
$caption = $user_link.'<span class="thumb_caption">'.$row['title'].'</span>';

That will display the title, I am unsure what exaclty you mean by the name of the file though. If you literally mean the filename, then the line would be

Code: [Select]
$caption = $user_link.'<span class="thumb_caption">'.$row['filename'].'</span>';

And you'd also need to scroll up to

Code: [Select]
if($select_columns != '*' ) $select_columns .= ',title, caption, owner_id, owner_name, aid';

and then change it to

Code: [Select]
if($select_columns != '*' ) $select_columns .= ',title, caption, owner_id, owner_name, aid, filename';
Logged

taulen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Last additions
« Reply #2 on: November 20, 2005, 09:59:45 pm »

Thank you :)
I did mean the title :)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.