Closed (fixed)
Project:
FlashVideo
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
27 Jun 2008 at 21:18 UTC
Updated:
8 Feb 2009 at 06:50 UTC
My flash video system is up and working correctly...
When adding a playlist (ie: [video : fids=22-43]) the name displayed is the filename which is the title attribute in the playlist file. How can I change this title to be either something custom or the node title the file is attached to?
I tried changing the flashvideo.module at the line:
$contents .= '' . $file->filename . '';
I tried many different variations without any success.
All help is appreciated!
Thanks,
Rob
Comments
Comment #1
melian commentedHi,
You should modify the SQL query in function flashvideo_getplaylist() to provide the n.title field either :
example :
$query = "SELECT n.title, n.type, f.fid, f.filename, f.filepath FROM {flashvideo} fv LEFT JOIN {files} f ON fv.fid = f.fid LEFT JOIN {node} n ON n.nid = fv.nid WHERE {$flashmime} AND (fv.status=3) {$fid_query}";And then use
$contents .= '' . $file->title. '';Regards
CM
Comment #2
attheshow commentedFixed in 6.x-1.x-dev version. Added in node title. Thanks cyp25!