Port to 6.x

rayarub - January 18, 2008 - 15:18
Project:Audio
Version:5.x-2.x-dev
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:patch (code needs work)
Description

Is anyone working on a Drupal 6 port yet?

#1

Compactman - January 20, 2008 - 04:13

I'd like this one to be ported as well.

#2

drewish - January 28, 2008 - 06:12

#3

kpaul - February 15, 2008 - 07:56

Any new news? Thanks.

#4

gravedancer - February 22, 2008 - 06:44

Guys, i really need this module ported, is there somebody working on it?

#5

rayarub - March 10, 2008 - 12:17

Would it be possible for a developer to give us some kind of update on this? Thanks.

#6

drewish - March 21, 2008 - 21:06

marked http://drupal.org/node/235588 as a duplicate

#7

smoltron - March 22, 2008 - 06:35

I would appreciate very much if someone is working on this. Any info or comments, please.

#8

djdanska - March 25, 2008 - 13:32

Any sign of a 6.x version of this module?

#9

zilla - March 26, 2008 - 02:03

hmmmm, over 2 months and no response - anybody with skills considering a port as a patch? i have no idea how to do it though would love to see it happen...too bad. there are a LOT of d6 sites that can not go up without audio module because they can't migrate their podcasts and other related items...

#10

smoltron - March 26, 2008 - 11:51

Audio module was the reason why I selected Drupal in the beginning. Now that reason seems to fade away ...

#11

kidzior - March 27, 2008 - 18:48

I'm too looking forward to get this module working. Does anyone knows anything about future of this module?

#12

HorsePunchKid - March 30, 2008 - 05:19
Status:active» patch (code needs work)

This needs lots and lots of work, but it's a start if anyone wants to continue. Here's a summary of progress:

  • Almost completely passes tests in coder.module.
  • All of the modules should install and uninstall cleanly, including upgrading.
  • The settings forms mostly work.

node/add/audio doesn't work, which is a pretty big impediment to further progress. The node form renders fine, but if you submit it, it just takes you back to the add page as if nothing happened. I've thrown a couple of FIXMEs in where I know something isn't right yet.

Patch is against CVS head.

AttachmentSize
audio-6.x-1.x_port_12.tgz194.07 KB
audio-6.x-1.x_port_12.patch119.28 KB

#13

Zephurus - April 9, 2008 - 16:01

Ahhh...any progress on this?

#14

Arancaytar - April 15, 2008 - 08:01

I see the problem with your node submission. hook_submit() has been removed. You need to add it as an extra submit handler to the form now. I'm currently testing a fix; will post a new patch here if it works.

#15

Arancaytar - April 15, 2008 - 08:35

I have just created an audio node using my fix.

The "click to play" link is broken without clean URLs (it produces a link like ?q={site_base}?q=audio/play/1), and the file transfer doesn't actually work (audio_file_transfer() tries to close a non-existing output buffer, and audio/play/n returns 404), but I've been able to save the node, at least.

I'm sorry, but I only have jEdit here and it won't let me print a unified diff. This isn't a "real" patch anyway, but a patch on the new files uploaded above - a "patch-patch".

836a837,839
>  
>   // Register the submit hander.
>   $form['#submit'][] = 'audio_node_submit';
908c911
<  * Implementation of hook_submit().
---
>  * Node submit handler
910,912c913,915
< function audio_submit(&$node) {
<   // If a new file was stored in the session move it into the $node.
<   $nid = ($node->nid) ? $node->nid : 'new_node';
---
> function audio_node_submit($form, &$form_state) {
>   // If a new file was stored in the session move it into the $form_state.
>   $nid = ($form_state['values']['nid']) ? $form_state['values']['nid'] : 'new_node';
914,915c917,918
<     $node->audio_file['file_path'] = $_SESSION['audio_new_file'][$nid];
<     $node->audio_file['newfile'] = TRUE;
---
>     $form_state['values']['audio_file']['file_path'] = $_SESSION['audio_new_file'][$nid];
>     $form_state['values']['audio_file']['newfile'] = TRUE;

#16

HorsePunchKid - April 15, 2008 - 19:59

Excellent, thank you. I will incorporate that fix in the next couple days. Can you repost that diff in the usual patch format (diff -up)?

#17

Arancaytar - April 16, 2008 - 06:01

Unfortunately I don't have a diff utility on the computer I'm currently using, and jEdit will only print the above format.

#18

Shai - April 17, 2008 - 03:37

I'll test this once there is a patch made in regular format.

Thanks so much to HorsePunchKid and Arancaytar!

Shai

#19

scarer - April 18, 2008 - 01:57

Are there any fixes available for 6.2?

#20

Arancaytar - April 18, 2008 - 06:41

HorsePunchKid, are you on this? I don't want to bother diffing all the files without making more substantial changes, but I could try to solve the other problems (the clean URL redirect and the download links, for example).

#21

mohammed76 - April 22, 2008 - 07:38

subscribing.

#22

davebv - April 22, 2008 - 15:36

. I am expecting this to be in drupal6! thank you all!

#23

Designer Dude - April 25, 2008 - 13:42

great work guys. I'm available for testing a beta module when it's ready.

#24

Arancaytar - April 29, 2008 - 14:51

I can start working on this around June, if nobody else takes it up.

#25

steve@hopeworks.org - April 30, 2008 - 17:19

looking forward to a Drupal 6 version, I can't upgrade until this great module is updated. Thanks to those in the community who have the ability and time to make this happen!

#26

artis - May 7, 2008 - 01:40

I made the changes in #15 against the tarball in #12 and re packaged it. I made the changes by hand so it would be good if Arancaytar could look it over and make sure they are right. I'll try installing this in my dev site and see how it works and report back. I'm not the greatest with php code but I'll see if I can work on this a little in my "spare time".

AttachmentSize
audio-6.x-1.x_port_13.tar_.gz191.83 KB

#27

cinemasaville - May 9, 2008 - 06:25

Tried using the package from #26 & got this message:
Fatal error: Call to undefined function file_check_upload() in /home/cinemasa/public_html/modules/audio/audio_images.module on line 146.

So more work to be done, but thanks for the effort. We all want/need this for 6.

#28

davebv - May 10, 2008 - 10:25

I am getting the same error with the package from #26

#29

samik - May 10, 2008 - 21:06

Here's what someone did to the image module to fix this problem, get your hints from there.
http://drupal.org/files/issues/image-d6upgrade-181809-32.patch

 
 

Drupal is a registered trademark of Dries Buytaert.