Author: Stoker
Description: With the Video BBCode Mod for phpBB3 you can get all the video bbcodes in a select box.
You just need to edit one single file and install the video bbcodes in ACP. Chose NOT to display on posting page.
In this case you need the following Video BBCodes:
YouTube, Google Video, Flv, Wmv, Vimeo, DivX and Veoh
Its very easy to add more Video BBCodes to the mod.
Testet and working with: Firefox 3, Internet Explorer 7 and 8, Google Chrome and Opera 9.6
Demo: This board.
Screenshot::
Prosilver
Open styles/prosilver/template/posting_buttons.html
Find:
Code: Select all
<option value="200">{L_FONT_HUGE}</option>
</select>
Code: Select all
<select name="addbbcodevideo" onchange="bbfontstyle('[' + this.form.addbbcodevideo.options[this.form.addbbcodevideo.selectedIndex].value + ']', '[/' + this.form.addbbcodevideo.options[this.form.addbbcodevideo.selectedIndex].value + ']');this.form.addbbcodevideo.selectedIndex = 0;">
<option value="" selected="selected">Videos</option>
<option value="youtube" title="YouTube: [youtube]Link to YouTube Video[/youtube]">YouTube</option>
<option value="gvideo" title="Google Video: [gvideo]Link to video here[/gvideo]">Google</option>
<option value="flv" title="Flv: [flv]Url[/flv]">Flv</option>
<option value="wmv" title="Wmv: [wmv]Video Url[/wmv]">Wmv</option>
<option value="vimeo" title="Vimeo: [vimeo]Vimeo Video ID[/vimeo]">Vimeo</option>
<option value="divx" title="DivX: [divx]Link to avi file[/divx]">DivX</option>
<option value="veoh" title="Veoh: [veoh]Video ID[/veoh]">Veoh</option>
</select>
Subsilver2
Open styles/subsilver2/template/posting_buttons.html
Find:
Code: Select all
<option value="200">{L_FONT_HUGE}</option>
</select></span>
Code: Select all
<select class="gensmall" name="addbbcodevideo" onchange="bbfontstyle('[' + this.form.addbbcodevideo.options[this.form.addbbcodevideo.selectedIndex].value + ']', '[/' + this.form.addbbcodevideo.options[this.form.addbbcodevideo.selectedIndex].value + ']');this.form.addbbcodevideo.selectedIndex = 0;">
<option value="" selected="selected">Videos</option>
<option value="youtube" title="YouTube: [youtube]Link to YouTube Video[/youtube]">YouTube</option>
<option value="gvideo" title="Google Video: [gvideo]Link to video here[/gvideo]">Google</option>
<option value="flv" title="Flv: [flv]Url[/flv]">Flv</option>
<option value="wmv" title="Wmv: [wmv]Video Url[/wmv]">Wmv</option>
<option value="vimeo" title="Vimeo: [vimeo]Vimeo Video ID[/vimeo]">Vimeo</option>
<option value="divx" title="DivX: [divx]Link to avi file[/divx]">DivX</option>
<option value="veoh" title="Veoh: [veoh]Video ID[/veoh]">Veoh</option>
</select>
FAQ
Q: How do I add more vidoes?
A: First you need to install the Video BBCodes in ACP
This is an entry for a video:
Code: Select all
<option value="veoh" title="Veoh: [veoh]Video ID[/veoh]">Veoh</option>
Code: Select all
<option value="photobucket" title="Photobucket: [photobucket]URL from embed code[/photobucket]">Photobucket</option>