Now, I'm not sure if this is php or vbscript. Anyway, is there anyway to have the capability to embed youtube videos into posts, rather than url links? Another website I go to has it where you insert the youtube video like this: [yt]8rGFfO5fUvE[/yt] That number is the value at the end of the URL when looking at a youtube video. Can something like this be done easily? Lots of forums are implementing this and I think it's pretty cool.
I've seen lots of mods for almost every forum system (vB included) that let you embed youtube videos in posts. Anyway, if I'm right ASSEMbler said that with the vBulletin version the forum has now, he couldn't apply any mods... Maybe it would be a good idea in some time, when the new version is working and all necessary things are done.
I could apply mods, but why risk losing EVERYTHING over the ability to post a vid or two. The User submitted news ares is able to handle youtube videos. But that was the only area. If it's news, or newsworthy, use the user submitted news area for youtube videos.
Technically speaking, you could create a mod that uses a new tag, e.g. [youtube]. The button could ask not for the link, but the ID. you'd then end up with something like: [youtube]dMH0bHeiRNg[/youtube] The mod then picks up on the tag, and embeds the video. This way, the item would be embedded by the mod, not the user... and it would have to be a youtube video. In fact, this is rasily doable with vBulletin's Add New BB Code feature. In the Admin Control Panel... Custom BB Codes > Add New BB Code Title: YouTube Tag: youtube Replacement: Code: <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/{param}&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{param}&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object> In fact, that code could probably be tidied up a little - that's the standard link they provide. It could probably even be simplified to... Code: <embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="355"></embed>
I know a lot of sites use this but I don't see the problem in just posting the link in the post. Also embeding youtube links makes it longer to load the page I believe