Hi there.
I want implementig the Codes for embedding "myvideo" "vimeo" and others.
Now in BBcodes are googlevideo, youtube, video (standard), quicktinme, in there.
How can i fix this?
Thanks
[Solved]Adding BBcode For Myvideo
Subject: [Solved]Adding BBcode For Myvideo
Last edited by Chicony on Mon 22 Jun, 2009 12:32; edited 1 time in total
Last edited by Chicony on Mon 22 Jun, 2009 12:32; edited 1 time in total
Subject: Re: Adding BBcode
The best way is to open bbcode.php and look at how the other bbcode for example google video is coded then add new code for the video you need...
it is just a matter of copying the code and then replacing it with your code.... obliviously without removing code that's already there..
:mrgreen: :mrgreen:
it is just a matter of copying the code and then replacing it with your code.... obliviously without removing code that's already there..
:mrgreen: :mrgreen:
Subject: Re: Adding BBcode
Last edited by Chicony on Mon 22 Jun, 2009 08:46; edited 2 times in total
Thanks i´ve done jet but its "only blank"...no video seen
please look here to see what i mean.
http://www.rc-freunde-schwarzwald.de/viewtopic.php?t=36&p=44#p44
Edit:
this Code changes i´ve done
includes/bbcb_mg.php
find
add after
find
add after
includes/bbcb_mg_small.php
find
add after
find
add after
includes/bbcode.php
find
add after
find
add in line after YOUTUBE
find
add in line after
find
add after
language/lang_german/bbcb_mg.js
find
add after
find
add after
find
add after
find
add after
find
add after
language/lang_german/bbcb_mg.php
find
add after
find
add after
templates/common/iconize.css
find
in line add
templates/mg_themes/bbcb_mg.tpl
find
add after
images/bbcb_mg/images/gif
add myvideo.gif
now i can embed myvideo...
please look here to see what i mean.
http://www.rc-freunde-schwarzwald.de/viewtopic.php?t=36&p=44#p44
Edit:
this Code changes i´ve done
includes/bbcb_mg.php
find
add after
find
add after
includes/bbcb_mg_small.php
find
add after
find
add after
includes/bbcode.php
find
'youtube' => array(
'nested' => true,
'inurl' => true,
'allow_empty' => false,
),
'nested' => true,
'inurl' => true,
'allow_empty' => false,
),
add after
'myvideo' => array(
'nested' => true,
'inurl' => true,
'allow_empty' => false,
),
'nested' => true,
'inurl' => true,
'allow_empty' => false,
),
find
// FLASH, SWF, FLV, VIDEO, REAL, QUICK, STREAM, EMFF, YOUTUBE, 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 === 'youtube') || ($tag === 'googlevideo') )
add in line after
find
elseif ($tag === 'youtube')
{
$html = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $content . '" /><embed src="http://www.youtube.com/v/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://youtube.com/watch?v=' . $content . '" target="_blank">Link</a><br />';
}
{
$html = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $content . '" /><embed src="http://www.youtube.com/v/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://youtube.com/watch?v=' . $content . '" target="_blank">Link</a><br />';
}
add after
elseif ($tag === 'myvideo')
{
$html = '<object width="425" height="350"><param name="movie" value="http://www.myvideo.de/movie/' . $content . '" /><embed src="http://www.myvideo.de/movie/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://www.myvideo.de/watch/' . $content . '" target="_blank">Link</a><br />';
}
{
$html = '<object width="425" height="350"><param name="movie" value="http://www.myvideo.de/movie/' . $content . '" /><embed src="http://www.myvideo.de/movie/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://www.myvideo.de/watch/' . $content . '" target="_blank">Link</a><br />';
}
language/lang_german/bbcb_mg.js
find
add after
find
s_youtube_help = 'YouTube Video-Datei einfügen: [youtube]YouTube ID[/youtube]';
add after
s_myvideo_help = 'Myvideo Video-Datei einfügen: [myvideo]MyVideo ID[/myvideo]';
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);
}
language/lang_german/bbcb_mg.php
find
add after
find
$lang['s_youtube_help'] = 'YouTube Datei einfügen: [youtube]YouTube ID[/youtube]';
add after
$lang['s_myvideo_help'] = 'MyVideo Datei einfügen: [myvideo]myvideo ID[/myvideo]';
templates/common/iconize.css
find
a[href *="youtube.com/watch?"], a[href *="sevenload.com/videos/"], a[href *="metacafe.com/watch/"] {
padding: 5px 20px 5px 0;
background: transparent url(images/icons/icon_film.gif) no-repeat center right;
}
padding: 5px 20px 5px 0;
background: transparent url(images/icons/icon_film.gif) no-repeat center right;
}
in line add
templates/mg_themes/bbcb_mg.tpl
find
<a href="javascript:BBCyoutube()"><img src="{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="{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
now i can embed myvideo...
Last edited by Chicony on Mon 22 Jun, 2009 08:46; edited 2 times in total
Subject: Re: Adding BBcode
to be honest it is not my field... maybe when MG comes back from vacation he can help...
have you searched the board for a similar add on to see if that sheds some light..
:mrgreen: :mrgreen:
have you searched the board for a similar add on to see if that sheds some light..
:mrgreen: :mrgreen:
Subject: Re: Adding BBcode
for myvideo which part are you using between the bbcode fields...?
have you a test account I can use to see what's happening...
have you a test account I can use to see what's happening...
Subject: Re: Adding BBcode
Hi in this Forum you didnt need an account.
http://www.rc-freunde-schwarzwald.de/viewforum.php?f=72
its open for all.
between myvideo Tags i have only the video ID
so the Tag is
http://www.rc-freunde-schwarzwald.de/viewforum.php?f=72
its open for all.
between myvideo Tags i have only the video ID
so the Tag is
Subject: Re: Adding BBcode
also if you use the myvideo bbcode tags for example [myvideo]5605717[/myvideo] and hit preview you get a blank square block...
but if you pass over the link url the link is incorrect it comes up like this... http://www.myvideo.de/watch?v=5605717
but it should be linking to http://www.myvideo.de/watch/5605717
there must still be a problem in your code edits..
but if you pass over the link url the link is incorrect it comes up like this... http://www.myvideo.de/watch?v=5605717
but it should be linking to http://www.myvideo.de/watch/5605717
there must still be a problem in your code edits..
Subject: Re: Adding BBcode
Yeah no...ive test many other Code options..now it is so it must
But the Video is just still "white" :cry:
DWho wrote: [View Post]
Yeah no...ive test many other Code options..now it is so it must
But the Video is just still "white" :cry:
Subject: Re: Adding BBcode
sry but for me it look´s like you´ve just duplicatet the you tube link and something is incorrect in your code.
if i look at your code
i think the foult is in here
one of this 3 links is wrong
I think i found the error
try this
come back and tell me if that worked
if i look at your code
Spoiler: [ Show ]
i think the foult is in here
one of this 3 links is wrong
I think i found the error
try this
Spoiler: [ Show ]
come back and tell me if that worked
Subject: Re: Adding BBcode
Hi thanks for brainstorm...i found mistake...your code was incorrect too.
the correct code is
So i´ve correct all codes in my second topic and code is real "working".
So you can implement this codes in your Mods Database :mrviolet: :wink:
greets chicony
spydie wrote: [View Post]
Hi thanks for brainstorm...i found mistake...your code was incorrect too.
the correct code is
elseif ($tag === 'myvideo')
{
$html = '<object width="425" height="350"><param name="movie" value="http://www.myvideo.de/movie/' . $content . '" /><embed src="http://www.myvideo.de/movie/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://www.myvideo.de/watch/' . $content . '" target="_blank">Link</a><br />';
}
{
$html = '<object width="425" height="350"><param name="movie" value="http://www.myvideo.de/movie/' . $content . '" /><embed src="http://www.myvideo.de/movie/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://www.myvideo.de/watch/' . $content . '" target="_blank">Link</a><br />';
}
So i´ve correct all codes in my second topic and code is real "working".
So you can implement this codes in your Mods Database :mrviolet: :wink:
greets chicony
Page 1 of 2
You cannot post new topicsYou 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.3645s (PHP: 13% SQL: 87%)
SQL queries: 17 - Debug Off - GZIP Enabled