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