MyVideo BBCode for Icy Phoenix 2.0


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

Profile PM  
Subject: Re: MyVideo BBCode For Icy Phoenix 2.0
Thanks , i will try it for shure :)

its a long codes to change :mrblue:

Subject: 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:

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0891s (PHP: 23% SQL: 77%)
SQL queries: 12 - Debug Off - GZIP Enabled