Icy Phoenix

     
 

MyVideo BBCode for Icy Phoenix 2.0

MyVideo BBCode for Icy Phoenix 2.0

Article
Reply with quote    Download Post  
Post MyVideo BBCode for Icy Phoenix 2.0 
 
Here you get the BBCode MyVideo Mod for Icy Phoenix 2.0.1.87

Code: [Download] [Hide] [Select]
[myvideo]8823479[/myvideo]


includes/bbcb_mg.php

find
Code: [Download] [Hide] [Select]
'L_BBCB_MG_YOUTUBE' => $lang['bbcb_mg_youtube'],


add after
Code: [Download] [Hide] [Select]
'L_BBCB_MG_MYVIDEO' => $lang['bbcb_mg_myvideo'],


find
Code: [Download] [Hide] [Select]
'L_YOUTUBE_HELP' => $lang['s_youtube_help'],


add after
Code: [Download] [Hide] [Select]
'L_MYVIDEO_HELP' => $lang['s_myvideo_help'],



includes/bbcode.php

find
Code: [Download] [Hide] [Select]
'youtube'            => array('nested' => true, 'inurl' => true, 'allow_empty' => false),


add after
Code: [Download] [Hide] [Select]
'myvideo'            => array('nested' => true, 'inurl' => true, 'allow_empty' => false),


find
Code: [Download] [Hide] [Select]
// FLASH, SWF, FLV, VIDEO, REAL, QUICK, STREAM, EMFF, VIMEO, YOUTUBE, MYVIDEO, GOOGLEVIDEO


add in line after YOUTUBE,
Code: [Download] [Hide] [Select]
MYVIDEO,


find
Code: [Download] [Hide] [Select]
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
Code: [Download] [Hide] [Select]
($tag === 'youtube') ||

Code: [Download] [Hide] [Select]
($tag === 'myvideo') ||


find
Code: [Download] [Hide] [Select]
$default_width = ((($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo')) ? 640 : 320);


add in line after
Code: [Download] [Hide] [Select]
($tag === 'youtube') ||

Code: [Download] [Hide] [Select]
($tag === 'myvideo') ||


find
Code: [Download] [Hide] [Select]
$default_height = ((($tag === 'vimeo') || ($tag === 'youtube') || ($tag === 'googlevideo')) ? 385 : 240);


add in line after
Code: [Download] [Hide] [Select]
($tag === 'youtube') ||

Code: [Download] [Hide] [Select]
($tag === 'myvideo') ||


find
Code: [Download] [Hide] [Select]
elseif ($tag === 'googlevideo')


befor add

Code: [Download] [Hide] [Select]
                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>';
                }



language/lang_english/lang_bbcb_mg.php

find
Code: [Download] [Hide] [Select]
'bbcb_mg_youtube' => 'YouTube',


add after
Code: [Download] [Hide] [Select]
'bbcb_mg_myvideo' => 'MyVideo',


find
Code: [Download] [Hide] [Select]
$js_lang['s_youtube_insert'] = 'Please write YouTube file ID';


add after
Code: [Download] [Hide] [Select]
$js_lang['s_myvideo_insert'] = 'Please write MyVideo file ID';


find
Code: [Download] [Hide] [Select]
$js_lang['s_youtube_help'] = 'Insert YouTube video file: [youtube]YouTube ID[/youtube]';';


add after
Code: [Download] [Hide] [Select]
$js_lang['s_myvideo_help'] = 'Insert MyVideo video file: [myvideo]MyVideo ID[/myvideo]';



language/lang_german/lang_bbcb_mg.php

find
Code: [Download] [Hide] [Select]
'bbcb_mg_youtube' => 'YouTube',


add after
Code: [Download] [Hide] [Select]
'bbcb_mg_myvideo' => 'MyVideo',


find
Code: [Download] [Hide] [Select]
$js_lang['s_youtube_insert'] = 'Bitte YouTube Datei ID eingeben';


add after
Code: [Download] [Hide] [Select]
$js_lang['s_myvideo_insert'] = 'Bitte MyVideo Datei ID eingeben';


find
Code: [Download] [Hide] [Select]
$js_lang['s_youtube_help'] = 'YouTube Datei einfügen: [youtube]YouTube ID[/youtube]';


add after
Code: [Download] [Hide] [Select]
$js_lang['s_myvideo_help'] = 'MyVideo Datei einfügen: [myvideo]MyVideo ID[/myvideo]';



templates/common/js/bbcb_mg.js

find
Code: [Download] [Hide] [Select]
var youtube = 0;


add after
Code: [Download] [Hide] [Select]
var myvideo = 0;


find
Code: [Download] [Hide] [Select]
'[youtube]','[/youtube]',


add after
Code: [Download] [Hide] [Select]
'[myvideo]','[/myvideo]',


find
Code: [Download] [Hide] [Select]
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);
}


add after
Code: [Download] [Hide] [Select]
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);
}



templates/common/iconize.css

find
Code: [Download] [Hide] [Select]
a[href *="youtube.com/watch?"], a[href *="sevenload.com/videos/"], a[href *="metacafe.com/watch/"]


add in line after
Code: [Download] [Hide] [Select]
a[href *="youtube.com/watch?"],

Code: [Download] [Hide] [Select]
a[href *="myvideo.de/watch/"],



templates/default/bbcb_mg.tpl

find
Code: [Download] [Hide] [Select]
<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
Code: [Download] [Hide] [Select]
<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

 myvideo

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: 175 Time(s)




 
TheSteffen - View user's profile Send private message  
TheSteffen [ Fri 18 Jan, 2013 13:51 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


MyVideo BBCode for Icy Phoenix 2.0

Comments
Reply with quote    Download Post  
Post Re: MyVideo BBCode For Icy Phoenix 2.0 
 
Thanks , i will try it for shure  

its a long codes to change  



 
Limun - View user's profile Send private message  
Limun [ Fri 18 Jan, 2013 16:18 ]
Reply with quote    Download Post  
Post 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

 



 
mort - View user's profile Send private message  
mort [ Wed 30 Jan, 2013 00:15 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1
 
 




 


 

  cron