Port to 6
add1sun - February 25, 2008 - 15:18
| Project: | Media Field |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Darren Oh |
| Status: | needs review |
Description
Hey there, the Dojo will be using the Media Actions module in Drupal 6 on the new website to handle video uploads. It currently works with mediafield for uploading. Just checkingt o see if any work has started on porting mediafield and, if not, would you be cool with making this a DROP task?

#1
Looks like ARDAS has taken a leave of absense.
#2
Working on a patch.
#3
I've just taken over the module, going to do some much needed patching and then take it from there. Patches for getting it up to D6 are VERY welcome, also if your interested in being a co-maintainer fire me an email :)
#4
Hi, what's the current state of the port to 6.x?
#5
with D6 you want to investigate the filefileld.module
#6
Thanks for your quick reply. I use filefield already for videos in conjunction with swf tools.
ok, maybe i should try to use it also for audio files. is there a possibility to use getid3 library?
#7
Subscribe
I believe that FileField will handle this in Drupal 6, can anyone confirm?
#8
Patch is ready for testing. Does not update old fields yet.
#9
Is there any reason that this would be better than using FileField? As FileField will be in core for Drupal 7 and uses SWFTools to display audio and video.
#10
This does use FileField. It enables Mediafield users to upgrade to FileField.
#11
Attached patch adds all the functionality of the audio and video fields to file fields and updates old fields.
#12
Forgot to attach patch.
#13
What version is this patch against? Head, 5.x branch? I'm trying to apply against 5.x and having some trouble. Maybe you could also post an archive of the module with the patch applied. Thanks!
UPDATE: Never mind, works fine against head, thanks. I'll test the patch and post any updates.
#14
After installing the patched module and running the updates, my legacy audio and video fields are still not appearing updated. When viewing the manage fields page, I get the following message,
This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
* opera_audio (field_opera_audio) is an inactive File field that uses a Audio widget.
* opera_video (field_opera_video) is an inactive File field that uses a Video widget.
Any suggestions?
#15
Try this updated patch. It works for me.
#16
Fixed undefined variables in last patch.
#17
Fixed error notice when attempting to retrieve missing file.
#18
Fixed loss of hidden display setting after upgrade.
#19
Thanks for the discussion and work on this...
Is the patch you posted here a fix to be able to use the mediafield module in Drupal 6?
Here is our problem (and this is a HUGE issue for us). We have a Drupal 5 installation with many podcasts and are attempting to go to Drupal 6. In the Drupal 5 version, we used mediafield, mediafield display, cck and file_upload to get a pretty easy upload, player solution for users to create podcasts. However, in moving to Drupal 6, mediafield is not ready for 6 and so use filefield, cck, file_upload and mp3player modules; that works fine EXCEPT for existing podcasts created in Drupal 5. For those existing podcasts we get this message (when accessing content types/manage fields):
This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
Podcast (field_podcast) is an inactive file_audio field that uses a audio widget.
So, again, is the patch you have posted, does that essentially make mediafield useable in Drupal 6? And if so, how do we patch it into the 5 module?
thanks
geoff gevalt
#20
Currently you have to download the HEAD code from CVS and apply the patch to that. The patch is intended to help the maintainer create a Drupal 6 release.