Zum Inhalt springen
  • Das GSF wandelt Links in Affiliate Links um, um ggf. eine Provision erhalten zu können. Gerne nutzen bitte, danke! Mehr Infos, wie ihr das GSF unterstützen könnt, findet ihr im GSF Support Topic.

YouTube in Posting einbinden


ulai

Empfohlene Beiträge

Hi,

in anderen Foren mit Invision Power Board ist dies möglich - im Replyfenster gibt es einen "Media" Button der es ermöglicht die Videos in Posting einzubetten und nicht zu verlinken.

HIER

Schaltet das doch mal frei bzw. oder braucht die Software dafür ein Update ?

  • Like 1
Link zu diesem Kommentar
Auf anderen Seiten teilen

  • 2 Wochen später...
  • 3 Wochen später...

Das war zu ändern: :-D

Open sources\classes\bbcode\class_bbcode.php

IF YOU ARE USING IPB 2.3.x

Find:

//-----------------------------------------

// Do

 tag
//-----------------------------------------

$txt = preg_replace_callback( "#\[code\](.+?)\[/code\]#is", array( &$this, 'regex_code_tag' ), $txt );


Add Below:
//-----------------------------------------
// Do tag
//-----------------------------------------

$txt = preg_replace_callback("#\[video\](.+?)\[/video\]#is", array( &$this, 'regex_video_tag' ), $txt );


Find:
//-----------------------------------------
// CODE
//-----------------------------------------

$txt = preg_replace( "#<!--c1-->(.+?)<!--ec1-->#", '[code]' , $txt );
$txt = preg_replace( "#<!--c2-->(.+?)<!--ec2-->#", '

', $txt );

Add Below:

//-----------------------------------------

// VIDEO

//-----------------------------------------

$txt = preg_replace_callback( "#<!--id1-->(.+?)<!--id2-->#is", array( &$this, 'clean_video_tag'), $txt );

IF YOU ARE USING IPB 2.2.x

Find:

//-----------------------------------------

// Do

 tag
//-----------------------------------------

$txt = preg_replace_callback( "#\[code\](.+?)\[/code\]#is", array( $this, 'regex_code_tag' ), $txt );


Add Below:
//-----------------------------------------
// Do tag
//-----------------------------------------

$txt = preg_replace_callback("#\[video\](.+?)\[/video\]#is", array( $this, 'regex_video_tag' ), $txt );


Find:
//-----------------------------------------
// CODE
//-----------------------------------------

$txt = preg_replace( "#<!--c1-->(.+?)<!--ec1-->#", '[code]' , $txt );
$txt = preg_replace( "#<!--c2-->(.+?)<!--ec2-->#", '

', $txt );

Add Below:

//-----------------------------------------

// VIDEO

//-----------------------------------------

$txt = preg_replace_callback( "#<!--id1-->(.+?)<!--id2-->#is", array( $this, 'clean_video_tag'), $txt );

Save and upload sources\classes\bbcode\class_bbcode.php

--------------------------------------------------------------------------------

Open sources\classes\bbcode\class_bbcode_core.php

Find:

//-----------------------------------------

// CODE

//-----------------------------------------

$t = preg_replace( "#<!--c1-->(.+?)<!--ec1-->#", '

' , $t );
$t = preg_replace( "#<!--c2-->(.+?)<!--ec2-->#", '

', $t );

IF YOU ARE USING IPB 2.3.x

Add Below:

//-----------------------------------------

// VIDEO

//-----------------------------------------

$t = preg_replace_callback( "#<!--id1-->(.+?)<!--id2-->#is", array( &$this, 'clean_video_tag'), $t );

IF YOU ARE USING IPB 2.2.x

Add Below:

//-----------------------------------------

// VIDEO

//-----------------------------------------

$t = preg_replace_callback( "#<!--id1-->(.+?)<!--id2-->#is", array( $this, 'clean_video_tag'), $t );

Find:

}

?>

Add Above:

THIS IS A LARGE EDIT, SO TO AVOID ANY PROBLEMS FOR MISSING CODE JUST RIGHT CLICK > SELECT ALL ON THE TEXTBOX BELOW, AFTER THAT JUST COPY AND PASTE

//-----------------------------------------

// VIDEO CLEAN

//-----------------------------------------

function clean_video_tag( $matches=array() )

{

$code = $matches[1];

if ( $code == "")

{

return;

}

if (strstr($code, 'google') != "")

{

$startingpos = strpos($code, 'docid=') + 6;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'youtube') != "")

{

$startingpos = strpos($code, '/v/') + 3;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'liveleak') != "")

{

$startingpos = strpos($code, 'token=') + 6;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'veoh') != "")

{

$startingpos = strpos($code, 'permalinkId=') + 12;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'gametrailers') != "")

{

$startingpos = strpos($code, 'mid=') + 4;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'ifilm') != "")

{

$startingpos = strpos($code, 'flvbaseclip=') + 12;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'revver') != "")

{

$startingpos = strpos($code, 'mediaId=') + 8;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'brightcove') != "")

{

$startingpos = strpos($code, 'initVideoId=') + 12;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'myspace') != "")

{

$startingpos = strpos($code, 'm=') + 2;

$lenght = strpos($code, '&') - $startingpos;

return '

';

}

else if (strstr($code, 'collegehumor') != "")

{

$startingpos = strpos($code, 'clip_id=') + 8;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'vsocial') != "")

{

$startingpos = strpos($code, '?d=') + 3;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

else if (strstr($code, 'guba') != "")

{

$startingpos = strpos($code, '/uploaditem/') + 12;

$lenght = strpos($code, '/flash.flv') - $startingpos;

return '';

}

else if (strstr($code, 'glumbert') != "")

{

$startingpos = strpos($code, '/embed/') + 7;

$lenght = strpos($code, '&') - $startingpos;

return '';

}

}

//-----------------------------------------

// VIDEO REGEX

//-----------------------------------------

function regex_video_tag( $matches=array() )

{

$link = $matches[1];

if ( $link == "" )

{

return;

}

/**

Google Video.

**/

if (strstr($link, 'google') != "")

{

$startingpos = strpos($link, 'docid=') + 6;

$endpos = strpos($link,'&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid='.substr($link, $startingpos, $lenght).'&" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link) - $startingpos;

$code = '<!--id1--><div><embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid='.substr($link, $startingpos, $lenght).'&" /></embed></div><!--id2-->';

return $code;

}

}

/**

YouTube Video.

**/

else if (strstr($link, 'youtube') != "")

{

$startingpos = strpos($link, 'v=') + 2;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v='.substr($link, $startingpos, $lenght).'&"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v='.substr($link, $startingpos, $lenght).'&" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" /></embed></object></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v='.substr($link, $startingpos, $lenght).'&"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v='.substr($link, $startingpos, $lenght).'&" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" /></embed></object></div><!--id2-->';

return $code;

}

}

/**

LiveLeak Video.

**/

else if (strstr($link, 'liveleak') != "")

{

$startingpos = strpos($link, 'i=') + 2;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><object type="application/x-shockwave-flash" width="450" height="370" wmode="transparent" data="http://www.liveleak.com/player.swf?token='.substr($link, $startingpos, $lenght).'&"><param name="movie" value="http://www.liveleak.com/player.swf?token='.substr($link, $startingpos, $lenght).'&"><param name="wmode" value="transparent"><param name="quality" value="high" /></object></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><object type="application/x-shockwave-flash" width="450" height="370" wmode="transparent" data="http://www.liveleak.com/player.swf?token='.substr($link, $startingpos, $lenght).'&"><param name="movie" value="http://www.liveleak.com/player.swf?token='.substr($link, $startingpos, $lenght).'&"><param name="wmode" value="transparent"><param name="quality" value="high" /></object></div><!--id2-->';

return $code;

}

}

/**

Veoh Video.

**/

else if (strstr($link, 'veoh') != "")

{

$startingpos = strpos($link, '/videos/') + 8;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed src="http://www.veoh.com/videodetails2.swf?permalinkId='.substr($link, $startingpos, $lenght).'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed src="http://www.veoh.com/videodetails2.swf?permalinkId='.substr($link, $startingpos, $lenght).'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></div><!--id2-->';

return $code;

}

}

/**

GameTrailers Video.

**/

else if (strstr($link, 'gametrailers') != "")

{

$startingpos = strpos($link, '/player/') + 8;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed src="http://www.gametrailers.com/remote_wrap.php?mid='.substr($link, $startingpos, $lenght).'&" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed src="http://www.gametrailers.com/remote_wrap.php?mid='.substr($link, $startingpos, $lenght).'&" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409" /></embed></div><!--id2-->';

return $code;

}

}

/**

iFilm Video.

**/

else if (strstr($link, 'ifilm') != "")

{

$startingpos = strpos($link, '/video/') + 7;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed width="448" height="365" src="http://www.ifilm.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip='.substr($link, $startingpos, $lenght).'&" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed width="448" height="365" src="http://www.ifilm.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip='.substr($link, $startingpos, $lenght).'&" /></embed></div><!--id2-->';

return $code;

}

}

/**

Revver Video.

**/

else if (strstr($link, 'revver') != "")

{

$startingpos = strpos($link, '/watch/') + 7;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed type="application/x-shockwave-flash" src="http://flash.revver.com/player/1.0/player.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noScale" salign="TL" bgcolor="#000000" flashvars="mediaId='.substr($link, $startingpos, $lenght).'&affiliateId=0&allowFullScreen=true" allowfullscreen="true" height="392" width="480" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed type="application/x-shockwave-flash" src="http://flash.revver.com/player/1.0/player.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noScale" salign="TL" bgcolor="#000000" flashvars="mediaId='.substr($link, $startingpos, $lenght).'&affiliateId=0&allowFullScreen=true" allowfullscreen="true" height="392" width="480" /></embed></div><!--id2-->';

return $code;

}

}

/**

BrightCove Video.

**/

else if (strstr($link, 'brightcove') != "")

{

$startingpos = strpos($link, 'title=') + 6;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed src="http://www.brightcove.com/playerswf" bgcolor="#FFFFFF" flashVars="initVideoId='.substr($link, $startingpos, $lenght).'&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" base="http://admin.brightcove.com" name="bcPlayer" width="486" height="412" allowFullScreen="true" allowScriptAccess="always" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed src="http://www.brightcove.com/playerswf" bgcolor="#FFFFFF" flashVars="initVideoId='.substr($link, $startingpos, $lenght).'&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" base="http://admin.brightcove.com" name="bcPlayer" width="486" height="412" allowFullScreen="true" allowScriptAccess="always" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" /></embed></div><!--id2-->';

return $code;

}

}

/**

MySpace Video.

**/

else if (strstr($link, 'myspace') != "")

{

$startingpos = strpos($link, 'videoid=') + 8;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m='.substr($link, $startingpos, $lenght).'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m='.substr($link, $startingpos, $lenght).'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346" /></embed></div><!--id2-->';

return $code;

}

}

/**

CollegeHumor Video.

**/

else if (strstr($link, 'collegehumor') != "")

{

$startingpos = strpos($link, 'video:') + 6;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.substr($link, $startingpos, $lenght).'&" quality="best" width="400" height="300" type="application/x-shockwave-flash" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.substr($link, $startingpos, $lenght).'&" quality="best" width="400" height="300" type="application/x-shockwave-flash" /></embed></div><!--id2-->';

return $code;

}

}

/**

vSocial Video.

**/

else if (strstr($link, 'vsocial') != "")

{

$startingpos = strpos($link, '?d=') + 3;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed allowScriptAccess="always" id="flash_player" name="flash_player" class="flash_player" height="400" width="410" src="http://static.vsocial.com/flash/ups.swf?d='.substr($link, $startingpos, $lenght).'&a=0&s=false" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed allowScriptAccess="always" id="flash_player" name="flash_player" class="flash_player" height="400" width="410" src="http://static.vsocial.com/flash/ups.swf?d='.substr($link, $startingpos, $lenght).'&a=0&s=false" /></embed></div><!--id2-->';

return $code;

}

}

/**

Guba Video.

**/

else if (strstr($link, 'guba') != "")

{

$startingpos = strpos($link, '/watch/') + 7;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><embed src="http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/'.substr($link, $startingpos, $lenght).'/flash.flv&isEmbeddedPlayer=true" quality="high" bgcolor="#FFFFFF" menu="true" wmode="transparent" width="375px" height="360px" name="root" id="root" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><embed src="http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/'.substr($link, $startingpos, $lenght).'/flash.flv&isEmbeddedPlayer=true" quality="high" bgcolor="#FFFFFF" menu="true" wmode="transparent" width="375px" height="360px" name="root" id="root" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></div><!--id2-->';

return $code;

}

}

/**

Glumbert Video.

**/

else if (strstr($link, 'glumbert') != "")

{

$startingpos = strpos($link, '/media/') + 7;

$endpos = strpos($link, '&');

if ($endpos > $startingpos)

{

$lenght = $endpos - $startingpos;

$code = '<!--id1--><div><object width="448" height="336"><param name="movie" value="http://www.glumbert.com/embed/'.substr($link, $startingpos, $lenght).'&"></param><param name="wmode" value="transparent"></param><embed src="http://www.glumbert.com/embed/'.substr($link, $startingpos, $lenght).'&" type="application/x-shockwave-flash" wmode="transparent" width="448" height="336" /></embed></object></div><!--id2-->';

return $code;

}

else if ($endpos < $startingpos)

{

$lenght = strlen($link);

$code = '<!--id1--><div><object width="448" height="336"><param name="movie" value="http://www.glumbert.com/embed/'.substr($link, $startingpos, $lenght).'&"></param><param name="wmode" value="transparent"></param><embed src="http://www.glumbert.com/embed/'.substr($link, $startingpos, $lenght).'&" type="application/x-shockwave-flash" wmode="transparent" width="448" height="336" /></embed></object></div><!--id2-->';

return $code;

}

}

else

{

return 'Invalid Video Link';

}

}

Save and upload sources\classes\bbcode\class_bbcode_core.php

--------------------------------------------------------------------------------

Open jscripts\ips_text_editor.js

(Note: it's much easier to edit the javascript files you find in the board\Development\javascript_uncompressed\jscripts folder of your IPB download)

Find:

/**

* STD:

* IPB Quote override

*/

this.ipb_quote = function()

{

this.wrap_tags_lite( '

', '
', 0)

};

Add Above:

/**

* STD:

* Insert video override

*/

this.insertvideo = function()

{

this.wrap_tags_lite( 'Invalid Video Link', 0)

};

Save and upload jscripts\ips_text_editor.js

--------------------------------------------------------------------------------

Open jscripts\ips_text_editor_lite.js

(Note: it's much easier to edit the javascript files you find in the board\Development\javascript_uncompressed\jscripts folder of your IPB download)

Find:

/**

* STD:

* IPB Quote override

*/

this.ipb_quote = function()

{

var _text = this.get_selection();

this.wrap_tags( 'quote', false, _text );

};

Add Above:

/**

* STD:

* Insert video override

*/

this.insertvideo = function()

{

var _text = this.get_selection();

var _url = prompt( ipb_global_lang['editor_enter_video'], _text ? _text : "http://" );

if( !_url || _url == null || _url == 'http://' )

{

return false;

}

this.wrap_tags( 'video', false, _url );

};

Save and upload jscripts\ips_text_editor_lite.js

--------------------------------------------------------------------------------

Open cache\lang_cache\--\lang_javascript.js

Find:

'editor_enter_image' : 'Please enter the URL for this image',

Add Below:

'editor_enter_video' : 'Please enter the URL for this video',

Save and upload cache\lang_cache\--\lang_javascript.js

Repeat the above step for each language set that you have installed on your site.

Step 4: Skin Edits

Log in to your ACP and go to Look & Feel -> Skins & Templates -> Skin Manager. Click on the Options button beside a skin and then click Edit Template HTML. Perform the following edits on your first skin, and then repeat for each skin you have installed:

Section: Post / PM Editor

Template Bit: ips_editor

Find:

<td><div class="rte-normal" id="{$editor_id}_cmd_insertimage"><img src="{$images_path}rte-image-button.png" alt="{$this->ipsclass->lang['js_rte_lite_img']}" title="{$this->ipsclass->lang['js_rte_lite_img']}"></div></td>

Add Below:

<td><div class="rte-normal" id="{$editor_id}_cmd_insertvideo"><img src="{$images_path}rte-video-button.png" alt="{$this->ipsclass->lang['js_rte_lite_video']}" title="{$this->ipsclass->lang['js_rte_lite_video']}"></div></td>

Find:

'js_rte_image' : "{$this->ipsclass->lang['js_rte_image']}",

Add Below:

'js_rte_video' : "{$this->ipsclass->lang['js_rte_video']}",

Save Template Bit.

Section: Post Screen

Template Bit: inline_edit_quick_box

Find:

<td><div class="rte-normal" id="{$pid}_cmd_insertimage"><img src="style_images/<#IMG_DIR#>/folder_editor_images/rte-image-button.png" alt="{$this->ipsclass->lang['js_rte_lite_img']}" title="{$this->ipsclass->lang['js_rte_lite_img']}"></div></td>

Add Below:

<td><div class="rte-normal" id="{$pid}_cmd_insertvideo"><img src="style_images/<#IMG_DIR#>/folder_editor_images/rte-video-button.png" alt="{$this->ipsclass->lang['js_rte_lite_video']}" title="{$this->ipsclass->lang['js_rte_lite_video']}"></div></td>

Save Template Bit.

Section: Topic View

Template Bit: quick_reply_box_open

Find:

<td><div class="rte-normal" id="fast-reply_cmd_insertimage"><img src="style_images/<#IMG_DIR#>/folder_editor_images/rte-image-button.png" alt="{$this->ipsclass->lang['js_rte_lite_img']}" title="{$this->ipsclass->lang['js_rte_lite_img']}" /></div></td>

Add Below:

<td><div class="rte-normal" id="fast-reply_cmd_insertvideo"><img src="style_images/<#IMG_DIR#>/folder_editor_images/rte-video-button.png" alt="{$this->ipsclass->lang['js_rte_lite_video']}" title="{$this->ipsclass->lang['js_rte_lite_video']}"></div></td>

Save Template Bit.

Repeat the above steps for each skin installed on your site.

After that remember to rebuild your skin(s), Look & Feel -> Skins & Templates -> Skin Tools -> Rebuild Skin Set Cache

Link zu diesem Kommentar
Auf anderen Seiten teilen

Es können Videos direkt im Forum eingefügt werden von folgenden Anbietern:

YouTube (www.youtube.com)

GoogleVideo (video.google.com)

LiveLeak (www.liveleak.com)

Veoh (www.veoh.com)

GameTrailers (www.gametrailers.com)

iFilm (www.ifilm.com)

Revver (www.revver.com)

BrightCove (www.brightcove.com)

MySpaceVideo (vids.myspace.com)

CollegeHumor (www.collegehumor.com)

vSocial (www.vsocial.com)

Guba (www.guba.com)

Glumbert (www.glumbert.com)

Und so fügt man ein Video ein:

- URL des Videos mit Videobutton einfügen (siehe Bild)

post-1-1198283090.gif

Link zu diesem Kommentar
Auf anderen Seiten teilen

Das war zu ändern: :-D

na, das geht ja noch... :-D

mit einem guten editor mit syntax-highlighting geht sowas ja gut von der hand. als ich vor ca. 5 jahren mit phpBB angefangen bin, hab' ich das noch mit dem windows editor gemacht, das war eine elende quälerei. bis mich jemand darauf gebracht hat, dass es noch andere (wesentlich bessere) editoren gibt. :-D

aber schaut gut aus, super job! :-D

Link zu diesem Kommentar
Auf anderen Seiten teilen

  • 2 Wochen später...

Leider weder das eine noch das andere ist der Fall.

Eventuell haben die durch das "immer eigeloggt" sein spitzbekommen daß ich Videos verlinke ?? Ich hoffe nicht ! :-D

rs

edit: nach der neuen Methode gayts aber !

Bearbeitet von rs.
Link zu diesem Kommentar
Auf anderen Seiten teilen

  • 4 Monate später...
  • 3 Wochen später...

OK! Alles Klar. Versteh schon, wenn du keinen Bock hast, dass jedes mal aufwändigst einzuhacken. Nur nimm dann doch mal das Symbol aus der Leiste. Schon allein um solchen Fragen vorzubeugen... :-D

Link zu diesem Kommentar
Auf anderen Seiten teilen

  • 1 Jahr später...
  • 1 Jahr später...
  • 2 Wochen später...

Dein Link:

http://youtu.be/8NhVBWjLRhY

Funktionierender Link:

http://www.youtube.com/watch?v=8NhVBWjLRhY

Wie man jetzt an welchen Link kommt, müssen dir die DeinRohr-spezies beantworten, deiner kommt von dem "Weiterleiten"-Knopf bei Youtube.

Ich habe dein Posting dies bezüglich mal als Test verwendet und den Link repariert.

Link zu diesem Kommentar
Auf anderen Seiten teilen

Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde Dich hier an.

Jetzt anmelden
  • Wer ist Online   0 Benutzer

    • Keine registrierten Benutzer online.


×
×
  • Neu erstellen...

Wichtige Information