I'm a newbie so this is probably stupid, but I'm having a fit getting 1pixelout to show up in any sort of view using filefield as the basis for my user's file uploads.

After uninstalling the Audio module that I'd been playing with previously (waaaaay too early), I set up a new filefield called field_filefield_audio, and using SWFtools was able to get the basic upload/play functionality working. New uploads show up as "recent posts", and logged in users can hit the play button, listen to the tune etc. so it's clear that SOME sort of file handling is going on and that the player is available.

So, the next step was to try and make a "recently uploaded tunes" view, and place the view in a block so that users would see a nice listing of what's there without having to search though the recent posts queue, sort out blog posts from forum posts from media uploads...you get the idea, just getting the user's basic environment set up.

Anyway, that's where I'm stumped. I went into the Views UI, and created a new view that has the following fields turned on:

Customfield: PHP Code
File: Name
File: ID
File: Path
File: Upload Date

With just the name and upload date, I get a list of filenames and dates just fine, but I've not figured how to successfully pass the information to SWFtools.

I've tried the basic syntax in the PHP field thinking that SWFtools would be getting the file information in the $file variable:

print swf($file);

I had set 1pixelout as the default player for single MP3 files, which was what I thought I was exposing, but it’s clear that somehow it’s getting parsed as a list, and running it out to flowplayer (my default for lists of mixed files).

Not the end of the world if flowplayer was rendering the files correctly, but instead I'm I get the following error next to the path under the Fields block in the views admin page:

Path Error: handler for filefield_meta > audio_format doesn't exist!

The other symptom is that while the names and other information is displayed, the player itself doesn’t seem to have any idea where the files are (Error #2032 in Flowplayer)

Any help or advice would be appreciated. I posted this here as it seemed to be more related to the way filefield is set up, but if anyone thinks this belongs in SWFtools or elsewhere please let me know.

Regards,

Frank

CommentFileSizeAuthor
Views Admin Screen copy.jpg547.21 KBfaltschuler

Comments

quicksketch’s picture

Status: Active » Fixed

I'd suggest using the new version of SWF Tools that provides formatters for FileField now instead of needing to do custom PHP snippets. My guess is that the problem is caused by the $file variable being undefined at the point in which you're trying to use it. I don't think the FileField queue was the correct place for asking, which is why it took so long to get back to this. I'm going to mark as fixed so it stays in the queue for 2 weeks.

Status: Fixed » Closed (fixed)

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