Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Posting Youtube Video Into A Discussion
I wanted to be able to post Youtube videos into a discussion but when I copy and paste the embed code it only shows the code and not the video. Does anyone have any experience with doing this and if so did you run into the same problem? Maybe it's the editor that I'm using? Any suggestions would be appreciated.
0
This discussion has been closed.
Comments
ZRAUlK8_2VE
Just read the documentation, and use these bits of html.
<video type="youtube">video-id</video> <video type="google">doc-id</video> <video type="myspace">video-id</video>
I tried adding that code in a few diferent instances and can't figure out which is which. CAn you take a look on this page. I have enabled the html formatter extension also.
http://www.suboxone-doctor.com/comments.php?DiscussionID=19
It looks like the code isn't rendering at all but the video ID is still there.
define('HTML_VIDEO_TAG', 0);
Just change it to a 1
I really appreciate the help.
Erin
I am still using an earlier version because I made so many hacks to it.
PxLgBx3W9Ss
Once you are able to give us more information like that, someone will have a better idea of what's going on.
Is this "successful" enough?
1) Unzip the Html Formatter Directory
2) Open "default.php"
3) Change the 0 in line 57 to a 1: define('HTML_VIDEO_TAG', 0);
4) Upload and activate the extension as usual
5) When creating a new discussion, use
<video type="youtube">video code here</video>
example:
<video type="youtube">PlCj3OAi6j4</video>
and make sure you click "format comments as html" beneath the comment editor window.
6) That was all I had to do to embed youtube videos in my Vanilla 1.1.5a installation. Good Luck!
P.S. This function works great with the BlogThis extension by Spode