Video BBCode Mod

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Video BBCode Mod

Post 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>
Board rules! No PM support
User avatar
billoo
BBCoder II
BBCoder II
Posts: 24
Joined: 15 May 2010, 22:46

Re: Video BBCode Mod

Post 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:
Locked