coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: taulen on November 18, 2005, 12:34:52 PM

Title: Last additions
Post by: taulen 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 :)
Title: Re: Last additions
Post by: Nibbler on November 18, 2005, 01:43:10 PM
Certainly, edit include/functions.inc.php

find


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


Change it to


$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


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


And you'd also need to scroll up to


if($select_columns != '*' ) $select_columns .= ',title, caption, owner_id, owner_name, aid';


and then change it to

if($select_columns != '*' ) $select_columns .= ',title, caption, owner_id, owner_name, aid, filename';
Title: Re: Last additions
Post by: taulen on November 20, 2005, 09:59:45 PM
Thank you :)
I did mean the title :)