Page 1 of 1

Video BBCode Mod

Posted: 11 Mar 2010, 18:06
by Stoker
Video BBCode Mod

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::
video.PNG

Prosilver

Open styles/prosilver/template/posting_buttons.html
Find:

Code: Select all

<option value="200">{L_FONT_HUGE}</option>
	</select>
add after, on a new line:

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>
Save, upload and refresh template.

Subsilver2

Open styles/subsilver2/template/posting_buttons.html
Find:

Code: Select all

<option value="200">{L_FONT_HUGE}</option>
		</select></span>
add after, on a new line:

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>
Save, upload and refresh template.

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>
Lets say you want to add the Photobucket Video BBCode. Then you just need to add the following after the above mentoined line:

Code: Select all

<option value="photobucket" title="Photobucket: [photobucket]URL from embed code[/photobucket]">Photobucket</option>

Re: Video BBCode Mod

Posted: 23 Jun 2010, 21:21
by billoo

Code: Select all

 </select></span>
this was not present in mine phpbb3.0.7

so i added it myself now it is working otherwise it was not working check this stoker plz :thumb: