Seite 1 von 1

Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 07:11
von Tim
Hallo und guten morgen,

wir haben in unserem Forum einen BBCode für Youtubevideos eingebaut, so dass man nur [youtube]videolink[/youtube] eingeben muss und dann wird das Video in einem Player angezeigt. Leider funktioniert das nur für Youtube, nun suche ich BBCodes für Player von MyVideo, Clipfisch, Googlevideo, Metacafe usw. Gibt es da irgendwo eine Liste oder sowas? LG Tim

Re: Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 07:48
von Huchinotte
Hi ..........

ich hab hier mal eine schöne Lösung wie man mehrere "Videolinks" über eine Box definieren kann .........
Screenshot: [ externes Bild ]

Prosilver

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

Code: Alles auswählen

<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
		<option value="50">{L_FONT_TINY}</option>
		<option value="85">{L_FONT_SMALL}</option>
		<option value="100" selected="selected">{L_FONT_NORMAL}</option>
		<option value="150">{L_FONT_LARGE}</option>
		<option value="200">{L_FONT_HUGE}</option>
	</select>
add after, on a new line:

Code: Alles auswählen

<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: Alles auswählen

<span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
			<option value="50">{L_FONT_TINY}</option>
			<option value="85">{L_FONT_SMALL}</option>
			<option value="100" selected="selected">{L_FONT_NORMAL}</option>
			<option value="150">{L_FONT_LARGE}</option>
			<option value="200">{L_FONT_HUGE}</option>
		</select></span>
add after, on a new line:

Code: Alles auswählen

<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: Alles auswählen

<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: Alles auswählen

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

Re: Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 07:55
von Tim
Hey Huch,

das sieht gut aus, aber wenn ich das so einfüge fehlen doch noch die Codes für die BBCodes, oder? :geek:

Re: Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 08:36
von Huchinotte
Tim hat geschrieben:Hey Huch,

das sieht gut aus, aber wenn ich das so einfüge fehlen doch noch die Codes für die BBCodes, oder? :geek:
Richtig ...................

Re: Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 08:36
von Tim
Und wo bekomme ich die her? :D

Re: Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 10:21
von Joschi
Versuche doch mal das hier

http://www.phpbb.de/moddb/mod.php?id=BB ... ed_Version

Das sollte dir helfen

Re: Player für MyVideo, Clipfish usw einbauen

Verfasst: 16.05.2009 11:48
von dieweltist
Im Moment habe ich nur BBCodes (getestet) für die Videoportale Youtube, Google-Video, MyVideo und Daily-Motion, wo man nur den Videolink angeben muss. Ich mache mich jetzt an die Arbeit, um auch für Clipfish und Metacafe BBCodes zu schreiben. Falls noch mehr benötigt werden, bitte hier Bescheid geben!

=> http://forumtreff.pytalhost.de/b1362