Sorry for being thick; I read the docs but can't understand them.
If I upload an mp3, flash or avi (divx) movie using the IMCE module, and then insert that (as a link to the file) within the body of my content, can jquery media recognise the link and turn it into embedded media?
I'm basically looking for ways to get embedded media into node bodies without using cck fields.
Thanks.
Comments
Comment #1
petiar commentedsubscribing
Comment #2
aaron commentedAbsolutely! Here's how I would do it:
1) turn on jQuery Media for the node type you want
2) discover the class you need for those links, which in garland would be
.node .content a, and enter that in the classes section.I'll write a tutorial on it later and post it on my blog at http://aaronwinborn.com/.
Comment #3
aaron commentedComment #4
faqing commentedI only want flv and mp3 files embedded, but I do not want pdf to be embedded, how can I disable PDF embedded?
Comment #5
-Anti- commented1)
> discover the class you need for those links, which in garland would be .node .content a,
> and enter that in the classes section
hmmmm.... IMCE doesn't add a class to the links it inserts. They are just plain 'a href'.
However, I am also planning on using fckeditor, and in its dialogue box there is a space for a class.
So if I get users to type 'media' in there, the link becomes: a href class=media src=....
Would that work if I used .media a as the trigger class in the jquery media settings?
2)
In your blog, you mention performance. I don't know anything about jQuery.
How much of a big deal is it to load this plugin on every page?
Are we talking about adding seconds on to the time each page takes to load?
Are we talking about taking up php memory on the server?
Is the plugin cached like javascript, or reloaded every page?
3)
I just want to say that I think your work on this is nothing short of amazing.
For a school website I need to use IMCE for file management rather than cck fields or core upload
because each user needs their own browsable folder of documents graphics and media. And I was
really, really struggling with how to allow them to easily insert streamed media. A big thanks.
Comment #6
aaron commented1) correct. you don't need a class for the a, just find the wrapper. just try .node .content a, and it will probably work just fine for you. if not, you have to open firebug and inspect the element to find the wrapping div.
2) there won't be any performance issues, unless you have a lot of jquery on a page. in which case i doubt this will be the cause of problems; it's a pretty light plugin. i was talking for those counting ms.
3) thanks! there are improvements on the way as well (such as per-node and per-field overrides, and getID3 sniffing for better media handling.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.