Descriptions for Last Uploaded Descriptions for Last Uploaded
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Descriptions for Last Uploaded

Started by symantix, February 07, 2004, 09:00:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

symantix

Is there a way to make the descriptions for the last uploaded files appear under their thumbnails on the front page?  That doesn't appear to be an option anywhere.  Is there maybe a hack or something...a piece of code I can insert into the functions maybe?

Any help is greatly appreciated.

Nibbler

functions.inc.php changes:

line 553 becomes:


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


line 566 becomes:


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


Not sure by 'description' if you wanted the caption or the title, just change as appropriate.

symantix

HAHA!  I applied that to my toprated function too.  Thank you so much for the help!