https://www.icyphoenix.com/viewtopic.php?f=28&t=8894 ----------------------------------- TheSteffen Fri 18 Jan, 2013 13:51 MyVideo BBCode for Icy Phoenix 2.0 ----------------------------------- Here you get the BBCode MyVideo Mod for Icy Phoenix 2.0.1.87 [code linenumbers=false][myvideo]8823479[/myvideo][/code] [b]includes/bbcb_mg.php[/b] find [code linenumbers=false]'L_BBCB_MG_YOUTUBE' => $lang['bbcb_mg_youtube'],[/code] add after [code linenumbers=false]'L_BBCB_MG_MYVIDEO' => $lang['bbcb_mg_myvideo'],[/code] find [code linenumbers=false]'L_YOUTUBE_HELP' => $lang['s_youtube_help'],[/code] add after [code linenumbers=false]'L_MYVIDEO_HELP' => $lang['s_myvideo_help'],[/code] [b]includes/bbcode.php[/b] find [code linenumbers=false]'youtube' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),[/code] add after [code linenumbers=false]'myvideo' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),[/code] find [code linenumbers=false]// FLASH, SWF, FLV, VIDEO, REAL, QUICK, STREAM, EMFF, VIMEO, YOUTUBE, MYVIDEO, GOOGLEVIDEO[/code] add in line after YOUTUBE, [code linenumbers=false]MYVIDEO, [/code] find [code linenumbers=false]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'))[/code] add in line after [code linenumbers=false]($tag === 'youtube') || [/code] [code linenumbers=false]($tag === 'myvideo') || [/code] find [code linenumbers=false]$default_width = ((($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo')) ? 640 : 320);[/code] add in line after [code linenumbers=false]($tag === 'youtube') || [/code] [code linenumbers=false]($tag === 'myvideo') || [/code] find [code linenumbers=false]$default_height = ((($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo')) ? 385 : 240);[/code] add in line after [code linenumbers=false]($tag === 'youtube') || [/code] [code linenumbers=false]($tag === 'myvideo') || [/code] find [code linenumbers=false]elseif ($tag === 'googlevideo')[/code] befor add [code linenumbers=false] elseif ($tag === 'myvideo') { $width = in_array($width, $width_array) ? $width : 640; $height = in_array($height, $height_array) ? $height : 385; $html = '
Link'; }[/code] [b]language/lang_english/lang_bbcb_mg.php[/b] find [code linenumbers=false]'bbcb_mg_youtube' => 'YouTube',[/code] add after [code linenumbers=false]'bbcb_mg_myvideo' => 'MyVideo',[/code] find [code linenumbers=false]$js_lang['s_youtube_insert'] = 'Please write YouTube file ID';[/code] add after [code linenumbers=false]$js_lang['s_myvideo_insert'] = 'Please write MyVideo file ID';[/code] find [code linenumbers=false]$js_lang['s_youtube_help'] = 'Insert YouTube video file: [youtube]YouTube ID[/youtube]';';[/code] add after [code linenumbers=false]$js_lang['s_myvideo_help'] = 'Insert MyVideo video file: [myvideo]MyVideo ID[/myvideo]';[/code] [b]language/lang_german/lang_bbcb_mg.php[/b] find [code linenumbers=false]'bbcb_mg_youtube' => 'YouTube',[/code] add after [code linenumbers=false]'bbcb_mg_myvideo' => 'MyVideo',[/code] find [code linenumbers=false]$js_lang['s_youtube_insert'] = 'Bitte YouTube Datei ID eingeben';[/code] add after [code linenumbers=false]$js_lang['s_myvideo_insert'] = 'Bitte MyVideo Datei ID eingeben';[/code] find [code linenumbers=false]$js_lang['s_youtube_help'] = 'YouTube Datei einfügen: [youtube]YouTube ID[/youtube]';[/code] add after [code linenumbers=false]$js_lang['s_myvideo_help'] = 'MyVideo Datei einfügen: [myvideo]MyVideo ID[/myvideo]';[/code] [b]templates/common/js/bbcb_mg.js[/b] find [code linenumbers=false]var youtube = 0;[/code] add after [code linenumbers=false]var myvideo = 0;[/code] find [code linenumbers=false]'[youtube]','[/youtube]',[/code] add after [code linenumbers=false]'[myvideo]','[/myvideo]',[/code] find [code linenumbers=false]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); } [/code] add after [code linenumbers=false]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); } [/code] [b]templates/common/iconize.css[/b] find [code linenumbers=false]a[href *="youtube.com/watch?"], a[href *="sevenload.com/videos/"], a[href *="metacafe.com/watch/"][/code] add in line after [code linenumbers=false]a[href *="youtube.com/watch?"], [/code] [code linenumbers=false]a[href *="myvideo.de/watch/"], [/code] [b]templates/default/bbcb_mg.tpl[/b] find [code linenumbers=false]{L_BBCB_MG_YOUTUBE}[/code] add after [code linenumbers=false]{L_BBCB_MG_MYVIDEO}[/code] [b]images/bbcb_mg/images/gif/[/b] add myvideo.gif [img]http://www.icyphoenix.com/files/images/7406/myvideo.gif[/img] Here are all the changed files for Icy Phoenix 2.0.1.87 Only working fine, if you have no other Mod installed ----------------------------------- Limun Fri 18 Jan, 2013 16:18 Re: MyVideo BBCode For Icy Phoenix 2.0 ----------------------------------- Thanks , i will try it for shure :) its a long codes to change :mrblue: ----------------------------------- mort Wed 30 Jan, 2013 00:15 Re: MyVideo BBCode For Icy Phoenix 2.0 ----------------------------------- I've also added some new buttons for this MOD here: http://www.icyphoenix.com/viewtopic.php?p=58157#p58157 :mricy: