2009-01-13, 02:18 AM
Isn't this the hard way to do it?
I just setup a mybb code to replace a standard youtube video with the embedded player. No need to have a button or anything. Just setup a mybbcode like this:
title
YouTube BB Code
Short Description
replace a youtube link with the video
Regular Expression
Replacement
Enabled
yes
Then your people just have to paste a link to their youtube video, and it will automatically show.
I just setup a mybb code to replace a standard youtube video with the embedded player. No need to have a button or anything. Just setup a mybbcode like this:
title
YouTube BB Code
Short Description
replace a youtube link with the video
Regular Expression
http://(www\.)?youtube.com/watch\?v=([A-Za-z0-9_-]*)(.*)?
Replacement
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$2&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/$2&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
Enabled
yes
Then your people just have to paste a link to their youtube video, and it will automatically show.