Show file size under the thumbs Show file size under the thumbs
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Show file size under the thumbs

Started by Tchit, April 10, 2006, 09:12:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tchit

Hi !

I have a video gallery with Coppermine and I would like to show the size of each video under the thumbnails. I know it is quite simple to do (something like one line of code in the right place), but I don't know how... It would be great if someone helped me !

And optional question : Is it also possible to show the video lenght ? (I know it's hard).



Thank you a lot (and congratulations for Coppermine and the dev team !)  :o

Stramm

you'll have to modify the core code in file functions.inc.php (function build_caption)

to show the video length in the info area...
config ->  Custom fields for image description
you'll have to edit all movies and add the 'video length' manually.


Sami

if you have CPG 1.4.4 installed you should change line 1698 of your function.inc.php from

$thumb_list[$i]['caption'] = bb_decode($row['caption_text']);

to

$thumb_list[$i]['caption'] = bb_decode($row['caption_text'].($row['filesize'] >> 10).$lang_byte_units[1]);


‍I don't answer to PM with support question
Please post your issue to related board

Tchit


Sami

your welcome
then someone please flag this thread as a Solved :)
‍I don't answer to PM with support question
Please post your issue to related board