includes/bbcb_mg.php
find
add after
find
add after
includes/bbcode.php
find
'youtube' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),
add after
'myvideo' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),
find
// FLASH, SWF, FLV, VIDEO, REAL, QUICK, STREAM, EMFF, VIMEO, YOUTUBE, MYVIDEO, GOOGLEVIDEO
add in line after YOUTUBE,
find
if(($tag === 'flash') || ($tag === 'swf') || ($tag === 'flv') || ($tag === 'video') || ($tag === 'ram') || ($tag === 'quick') || ($tag === 'stream') || ($tag === 'emff') || ($tag === 'mp3') || ($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo'))
add in line after
find
$default_width = ((($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo')) ? 640 : 320);
add in line after
find
$default_height = ((($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo')) ? 385 : 240);
add in line after
find
befor add
elseif ($tag === 'myvideo')
{
$width = in_array($width, $width_array) ? $width : 640;
$height = in_array($height, $height_array) ? $height : 385;
$html = '<iframe width="' . $width . '" height="' . $height . '" src="http://www.myvideo.de/embed/' . $content . '" frameborder="0" scrolling="no"></iframe><br/><a href="http://www.myvideo.de/watch/' . $content . '" title="myvideo">Link</a>';
}
{
$width = in_array($width, $width_array) ? $width : 640;
$height = in_array($height, $height_array) ? $height : 385;
$html = '<iframe width="' . $width . '" height="' . $height . '" src="http://www.myvideo.de/embed/' . $content . '" frameborder="0" scrolling="no"></iframe><br/><a href="http://www.myvideo.de/watch/' . $content . '" title="myvideo">Link</a>';
}
language/lang_english/lang_bbcb_mg.php
find
add after
find
add after
find
$js_lang['s_youtube_help'] = 'Insert YouTube video file: [youtube]YouTube ID[/youtube]';';
add after
$js_lang['s_myvideo_help'] = 'Insert MyVideo video file: [myvideo]MyVideo ID[/myvideo]';
language/lang_german/lang_bbcb_mg.php
find
add after
find
add after
find
$js_lang['s_youtube_help'] = 'YouTube Datei einfügen: [youtube]YouTube ID[/youtube]';
add after
$js_lang['s_myvideo_help'] = 'MyVideo Datei einfügen: [myvideo]MyVideo ID[/myvideo]';
templates/common/js/bbcb_mg.js
find
add after
find
add after
find
function BBCyoutube()
{
var FoundErrors = '';
var enterURL = prompt(s_youtube_insert, s_id_insert_tip);
if (!enterURL)
{
FoundErrors += s_id_insert_error;
}
if (FoundErrors)
{
alert(s_gen_error + FoundErrors);
return;
}
var ToAdd = "[youtube]" + enterURL + "[/youtube]";
PostWrite(ToAdd);
}
{
var FoundErrors = '';
var enterURL = prompt(s_youtube_insert, s_id_insert_tip);
if (!enterURL)
{
FoundErrors += s_id_insert_error;
}
if (FoundErrors)
{
alert(s_gen_error + FoundErrors);
return;
}
var ToAdd = "[youtube]" + enterURL + "[/youtube]";
PostWrite(ToAdd);
}
add after
function BBCmyvideo()
{
var FoundErrors = '';
var enterURL = prompt(s_myvideo_insert, s_id_insert_tip);
if (!enterURL)
{
FoundErrors += s_id_insert_error;
}
if (FoundErrors)
{
alert(s_gen_error + FoundErrors);
return;
}
var ToAdd = "[myvideo]" + enterURL + "[/myvideo]";
PostWrite(ToAdd);
}
{
var FoundErrors = '';
var enterURL = prompt(s_myvideo_insert, s_id_insert_tip);
if (!enterURL)
{
FoundErrors += s_id_insert_error;
}
if (FoundErrors)
{
alert(s_gen_error + FoundErrors);
return;
}
var ToAdd = "[myvideo]" + enterURL + "[/myvideo]";
PostWrite(ToAdd);
}
templates/common/iconize.css
find
a[href *="youtube.com/watch?"], a[href *="sevenload.com/videos/"], a[href *="metacafe.com/watch/"]
add in line after
templates/default/bbcb_mg.tpl
find
<a href="javascript:BBCyoutube()"><img src="{FULL_SITE_PATH}{BBCB_MG_IMG_PATH}youtube{BBCB_MG_IMG_EXT}" name="youtube" onmouseover="helpline('youtube')" alt="{L_BBCB_MG_YOUTUBE}" title="{L_BBCB_MG_YOUTUBE}" class="bbimages" /></a>
add after
<a href="javascript:BBCmyvideo()"><img src="{FULL_SITE_PATH}{BBCB_MG_IMG_PATH}myvideo{BBCB_MG_IMG_EXT}" name="myvideo" onmouseover="helpline('myvideo')" alt="{L_BBCB_MG_MYVIDEO}" title="{L_BBCB_MG_MYVIDEO}" class="bbimages" /></a>
images/bbcb_mg/images/gif/
add myvideo.gif
Here are all the changed files for Icy Phoenix 2.0.1.87
Only working fine, if you have no other Mod installed
myvideo_for_icyphoenix20187.zip | ||
Description: | BBCode MyVideo Mod for Icy Phoenix 2.0.1.87 | Download |
Filename: | myvideo_for_icyphoenix20187.zip | |
Filesize: | 57.02 KB | |
Downloaded: | 172 Time(s) |