Last additions Last additions
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Last additions

Started by taulen, November 18, 2005, 12:34:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

taulen

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 :)

Nibbler

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';

taulen

Thank you :)
I did mean the title :)