Closed (fixed)
Project:
Audio
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
20 Mar 2006 at 09:09 UTC
Updated:
12 May 2006 at 18:15 UTC
Jump to comment: Most recent file
like it says, add support for the views module. it'd let people roll their own table views very easily.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | views_audio.inc | 4.46 KB | drewish |
| #9 | views_audio.inc_0.txt | 3.18 KB | drewish |
| #8 | audio.module_54881_views_1.patch | 609 bytes | drewish |
| #6 | audio.module_54881_views_0.patch | 10.11 KB | drewish |
| #4 | views_audio.inc.txt | 2.84 KB | drewish |
Comments
Comment #1
drewish commentedlooks like bryght is going to sponsor this. i'll be sitting on a plane to new your tomorrow so i'll have some time to work on this.
i'm just looking forward to being able to have a "most popular audio" block.
Comment #2
drewish commentedthat should have read "to new york tomorrow"...
Comment #3
drewish commentedhere's a patch to the audio module to have it load a views_audio.inc file.
i would think that i'll probably be posting multiple versions of the views_audio.inc file, but this should be the only patch needed against the audio module itself.
Comment #4
drewish commentedthis is a really basic implementation of the views hooks. mostly just to prove that i'm working on it. it doesn't link in the meta data yet.
Comment #5
drewish commentedeaton and merlinofchaos, convinced me that the views support would work a lot better if the tag settings were in a table rather than stuffed into an array. the attached patch ads a new audio_settings table and migrates the settings into it. i'll probably need to add some caching to audio_get_tag_settings()...
i'll work on the views support more tomorrow.
Comment #6
drewish commentedComment #7
moshe weitzman commenteddrewish - any update on this? client is starting to itch ...
Comment #8
drewish commentedsorry for the lack of progress on this moshe. i was hoping you could provide a bit more info on what your client is trying to do exactly. i've gotten more stuff working but if you've got priorities that would help direct the development.
i decided to step back from moving the tags settings into a table. i don't think it's necessary for the views support, i may consider it at some other point though.
Comment #9
drewish commentedhere's the updated views file. all tags are now exposed. i'm not sure how efficient it is but it looks like it does the job.
Comment #10
drewish commentedadded id3tag filters, and link to download or play the file.
Comment #11
moshe weitzman commentedI tested the latest patch and include file. Works well.
Comment #12
drewish commentedThanks, this has been committed to HEAD.
Comment #13
moshe weitzman commentedi think Views added a function that you use:
PHP Fatal error: Cannot redeclare views_handler_field_filesize() (previously declared in /Library/WebServer/contributions/modules/audio/views_audio.inc:147) in /Library/WebServer/contributions/modules/views/views.module on line 1650
Comment #14
drewish commentedyeah, it's already been removed from CVS. you should go ahead and at least update views_audio.inc
Comment #15
drewish commentedComment #16
(not verified) commented