Descriptions for Last Uploaded Descriptions for Last Uploaded
 

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

Descriptions for Last Uploaded

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

Previous topic - Next topic

0 Members and 1 Guest 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!