I just create an extension to use simple custom buttons to include youtube and googlevideo in any forum post.
You can see it working in our forum here. Here you can download the extension.
Any suggestions are feedback are welcome.
It’s not working for me. I’ve enabled the extension, but when I added the docid it just posts the code.
any suggestions? for the record my forums are still 1.3.
The version of the forums you are running lacks the extension hooks that this utilizes. A great deal of hooks were added in 1.3.2 to give developers more control.
Yep, and just in time as we released a new build a few moments ago. Of course, you’ll be following the version upgrade and not the build update instructions, but…fresh!
in order to get the google video to work AND
you should only use the docid. You added the docid with an additional language parameter (&hl=en),
which is used from google only for their user interface, but is not required in order to embed the video
in any other website.
So in your case it the code in your post should look like this:
Any chance this could be added to the weblog module? I am using tinyMCE and it strips all my youtube embeds, and object code. Even clicking the ‘html’ button and manually adding it does not work.
Ok I did it . It’s not a plugin. I just updated the extension. It now features the
support in the weblog entries and makes it possible to use either the complete url
or the doc_id.
I just had a quick look into the available hooks for the weblog comments,
but unfortunately both hooks are not suitable to use for modifying any
bbcode style tags in the comment. the first hook (comment_entries_tagdata)
just gives the templates with unchanged tags and the other hook
(comment_entries_comment_format) returns only the stripped comment
data with no more bbcode style tags in it, So I may have to look at the
the hooks, which are available for the submit process of the comment. But
I have no experience with that and I am a bit short in time right now. So will
see when I can add this to the comments.