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

melian’s picture

Hi,

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

attheshow’s picture

Version: 5.x-2.7 » 6.x-1.x-dev
Assigned: Unassigned » attheshow
Status: Active » Fixed

Fixed in 6.x-1.x-dev version. Added in node title. Thanks cyp25!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.