26

Re: Easy BBCode Visual & Video Extended

Coppertop FOA,
unfortunately I'm not dealing with those "gaming-things", so if you could post some links to what you want to embed and maybe a link to your problem I could take a look if it is possible to embed that stuff.

Actually it does "just" embed the video - not uploading it, so if there is some problem with the server the video is located it wont display.

Re: Easy BBCode Visual & Video Extended

Here is our forum page http://www.thefoaclan.com/forum/


examples of embed video im trying to do.
_____________

http://www.ecountdowns.com/home.php

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="486" height="60"><param name="movie" value="http://www.ecountdowns.com/swfs/ut3pc.swf"/><param name="quality" value="high"/><embed src="http://www.ecountdowns.com/swfs/ut3pc.swf" quality="high" width="486" height="60" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/></object>

_________________

http://www.gametrailers.com/index.php

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">    <param name="allowScriptAccess" value="sameDomain" />     <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=27916"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=27916" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed> </object>

__________________

http://www.youtube.com/

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/jlmDVL5loYI&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/jlmDVL5loYI&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

____________________


http://www.ign.com/

<embed src='http://videomedia.ign.com/ev/ev.swf' flashvars='object_ID=718963&downloadURL=http://xbox360movies.ign.com/xbox360/video/article/833/833595/masseffect_110907_sexscene_flvlowwide.flv&allownetworking="all"' type='application/x-shockwave-flash' width='433' height='360' ></embed>

___________________

These are some of the embed code im trying to do on the forum page. I really need to have the video go and not just the code put it this way we have a few teenagers in the clan I'm lucky to be able to get them to the forum page and do some post if they have to go back and forth they won"t stay on there very long and yes unstanable they want to get on their xbox but i really do NEED this to work.

Thanks

28

Re: Easy BBCode Visual & Video Extended

Copper,

if you have installed my mod in the right way you should at least be able to embed youTube videos like this:

[youtube]jlmDVL5loYI[/youtube]

..that would be for the youTube video from you example.


for the other "portals" it would be neccessary to make own bbCodes and parse them. I can take a look if that is possible next week.
The problem is, you have to embed the player (if there is one at the portal) which is provided by the specefic portal, so you can't just take another bbCode and try embedding something, except it is just a swf file and nothing else.

In that case you use the swf bbCode:

[swf height=?]http://www.path.com/to/your.swf[/swf]

I will be back on tuesday and can take a look then.

29 (edited by no64 2007-11-19 18:13)

Re: Easy BBCode Visual & Video Extended

Copper,

Ok, youTube is like this way - nothing to change in the parser.php file

[youtube]jlmDVL5loYI[/youtube]

..that would be for the youTube video from you example.


As far as I can see is "ecountdowns" just a swf file/source

embed like this:

[swf width=486 height=60]http://www.ecountdowns.com/swfs/ut3pc.swf[/swf]

For gametrailers you have to add something in the parser.php:


In the "pattern Array" right before the youTube code add:

                     '#\[gTrailers\](.*?)\[/gTrailers\]#s',
                     '#\[UgTrailers\](.*?)\[/UgTrailers\]#s',

...of course you can use whatever lable you want, like: "gametrailers" or "usermovies", etc.


In the "replace Array" right before the youTube code add:

//****** embed GameTrailers Videos ************************************************
'<div class="bbvideo"><object width="480" height="392" align="top" data="http://www.gametrailers.com/remote_wrap.php?mid=$1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=$1" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=$1" width="480" height="392" wmode="transparent" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end GameTrailers Videos **************************************************
//****** embed GameTrailers Videos ************************************************
'<div class="bbvideo"><object width="480" height="392" align="top" data="http://www.gametrailers.com/remote_wrap.php?umid=$1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.gametrailers.com/remote_wrap.php?umid=$1" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><embed src="http://www.gametrailers.com/remote_wrap.php?umid=$1" width="480" height="392" wmode="transparent" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end GameTrailers Videos **************************************************

It seems you need two different bbCodes here, cause there are "usermovies" and the "normal" movies.
The bbCode "gTrailers" is for the normal videos and the bbCode "UgTrailers" for the usermovies.

Just grab the ID Number of the movie located in the URL and put it between the bbCode like:

[gTrailers]12604[/gTrailers]

[UgTrailers]12604[/UgTrailers]

See examples here:
http://www.monsterhall.de/viewtopic.php?id=78


I haven't been able to embed the videos from IGN - have to do more testing there.
Hope this helps.

30 (edited by FredrikK 2007-12-16 13:19)

Re: Easy BBCode Visual & Video Extended

How can I make the text place itself under the video instead for on the side like this:

http://www.brunna.se/bilder/help.png

Thanks! smile

hej!

31

Re: Easy BBCode Visual & Video Extended

...make a linebreake after the video BBCode

32 (edited by FredrikK 2007-12-16 13:34)

Re: Easy BBCode Visual & Video Extended

Linebreake when I write my post?

"Is Europe a country?"

[youtube]juOQhTuzDQ0[/youtube]

haha!

Result =

http://www.brunna.se/bilder/help.png

I figure I have to change the code in viewtopic.php. But how?

hej!

33

Re: Easy BBCode Visual & Video Extended

very strange.... shouldn't come out that way... maybe this have something to do with your Forum style.... do this also happen in a different Style?

34 (edited by FredrikK 2007-12-16 13:59)

Re: Easy BBCode Visual & Video Extended

yes it does... hmm

hej!

35

Re: Easy BBCode Visual & Video Extended

Do you also have the latest version of this mod?

http://www.punres.org/files.php?pid=416

especially the parser.php

36 (edited by FredrikK 2007-12-17 18:33)

Re: Easy BBCode Visual & Video Extended

Thanks mate!

Now it works splendid! smile

hej!

37

Re: Easy BBCode Visual & Video Extended

Sounds good, glad I could help


... har det so bra Fredrik

38 (edited by onecut 2008-03-19 13:32)

Re: Easy BBCode Visual & Video Extended

Just for saying THANKS for the code about gametrailers's videos, it's just what i was looking for!

Is there a rule or something for adding more embed tags? Or you just try and try until it works?

39

Re: Easy BBCode Visual & Video Extended

onecut wrote:

Just for saying THANKS for the code about gametrailers's videos, it's just what i was looking for!

Is there a rule or something for adding more embed tags? Or you just try and try until it works?

Thank you onecut ...

well, there is not really a "rule" to add more embed tags, except you keep attention to the "order"  "pattern array" and the "replace array" in the parser.php file

I used the "embed" code and the "object" code to embed the videos. Take a deeper look at my codes and you will see there is a link to the flashvideo player of the desired portal, like:

data="http://www.metacafe.com/fplayer/$1"

That file is the first step to localize...


It is a bit difficult to explain how to find out.... what video portal are you looking for?

40

Re: Easy BBCode Visual & Video Extended

I have Modern BBcode on my forum. would this mod work with it?

41

Re: Easy BBCode Visual & Video Extended

I don't think so, cause this "complete" Mod is something similar to modern BBCode ... with the buttons, etc.
But what you could do - take my "embed" codes from the parser.php and try to use them in the code array of Modern BBCode. I don't know how Modern BBCode is built, but it surely use also the parser.php file to insert the BBCodes, so take a look how it was done there and add my "embed" codes to those arrays.

42 (edited by onecut 2008-03-20 14:35)

Re: Easy BBCode Visual & Video Extended

Ok thx for help no64, for exemple just right now i want to add a "vimeo" embed video.
There's the embed code:

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=">    <param name="quality" value="best" />    <param name="allowfullscreen" value="true" />    <param name="scale" value="showAll" />    <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=" /></object><br /><a href="http://www.vimeo.com/739858/l:embed_739858">Wii Loop Machine 2.0 : two hands!</a> from <a href="http://www.vimeo.com/user157218/l:embed_739858">The Amazing Rolo</a> on <a href="http://vimeo.com/l:embed_739858">Vimeo</a>.

(think is more clear with the italic style than the "code" one)

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=">    <param name="quality" value="best" />    <param name="allowfullscreen" value="true" />    <param name="scale" value="showAll" />    <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=" /></object><br /><a href="http://www.vimeo.com/739858/l:embed_739858">Wii Loop Machine 2.0 : two hands!</a> from <a href="http://www.vimeo.com/user157218/l:embed_739858">The Amazing Rolo</a> on <a href="http://vimeo.com/l:embed_739858">Vimeo</a>.

43 (edited by no64 2008-03-20 17:37)

Re: Easy BBCode Visual & Video Extended

onecut wrote:

Ok thx for help no64, for exemple just right now i want to add a "vimeo" embed video.
There's the embed code:

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=">    <param name="quality" value="best" />    <param name="allowfullscreen" value="true" />    <param name="scale" value="showAll" />    <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=" /></object><br /><a href="http://www.vimeo.com/739858/l:embed_739858">Wii Loop Machine 2.0 : two hands!</a> from <a href="http://www.vimeo.com/user157218/l:embed_739858">The Amazing Rolo</a> on <a href="http://vimeo.com/l:embed_739858">Vimeo</a>.

(think is more clear with the italic style than the "code" one)

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=">    <param name="quality" value="best" />    <param name="allowfullscreen" value="true" />    <param name="scale" value="showAll" />    <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=" /></object><br /><a href="http://www.vimeo.com/739858/l:embed_739858">Wii Loop Machine 2.0 : two hands!</a> from <a href="http://www.vimeo.com/user157218/l:embed_739858">The Amazing Rolo</a> on <a href="http://vimeo.com/l:embed_739858">Vimeo</a>.

ok,... here you go
first create in parser.php another BBCode in the $pattern = array
I placed it right after  "brightcove"

'#\[vimeo\](.*?)\[/vimeo\]#s',

Then in the $replace = array
also right after "brightcove"

    
//****** embed Vimeo Video ****************************************************    
'<div class="bbvideo"><object width="400" height="302" align="top" data="http://www.vimeo.com/moogaloop.swf?clip_id=$1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=$1" /><param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=1&color=999900" /><embed src="http://www.vimeo.com/moogaloop.swf?clip_id=$1" flashvars="&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=1&color=999900" width="400" height="302" wmode="transparent" quality="best" align="top" allowScriptAccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Vimeo Video ******************************************************

Thats it, now you can use:

[vimeo]739858[/vimeo]

to insert your vimeo video.
"739858" is of course the video ID , which is included in the embed code:

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www......


As you can see, I use the "object" tag and the "embed" tag, some people say you only need the "object" tag, but somehow it seems Safari on Mac grabs the "embed" tag.

However, take a look at both, you will find something like this:

flashvars="&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=999900"

there you have "fullscreen", "show_title", "show_byline" , "show_portrait" and the "color"
Here you can set your custom appearance of the player - either "1" for true or "0" for false


Here is a test where you can see the "plain" one - everything set to "0" and with a blue color
and the other all parameters set to "1" and with a green color.

http://www.monsterhall.de/viewtopic.php?pid=86#p86


Make a test and tell me if it works - I can only test this on a Mac at the moment.

*Edit: changed a bit on the code.... fullscreen works now too

44

Re: Easy BBCode Visual & Video Extended

... just saw : the video ID is also in the URL
http://www.vimeo.com/739858

45 (edited by onecut 2008-03-21 10:11)

Re: Easy BBCode Visual & Video Extended

What can i say but thanks? It's works perferctly and even better with the fullscreen support (point that i didn't notice yesterday :)).
Thanks for explain me the how to, its very kind.

I have tested it on Osx/XP platforms and no problems at all. Anyway dreamweaver send me an alert about the object tag:

http://www.flemflemflem.com/forums/uploads/thumbs/2_screen_1.png

Have i to do something or this alert are common?

see you,

onecut

46

Re: Easy BBCode Visual & Video Extended

well, I think this is what I ment with the "object" tag and the "embed" tag - some browsers need the object and others the embed tag.

Do me a favour and make a copy of your parser.php and let dreamweaver covert it to what he suggested and take a look if it works in all browsers. And if you want, you could send me the file and I make an update - I started yesterday to change all the code to support fullscreen for the other players too.... so why not changing that too

47

Re: Easy BBCode Visual & Video Extended

Ok the new parser.php modified by dreamW generate error on my website now. I have put back the previous parser.php.

Theres some links to the modified parser.php:

http://www.flemflemflem.com/temp/parser_modByDreamW.php

And when i want to upload the modified file back, dreamweaver tell me that it was now dependent to this both .js (DreamW creates them when it moding my parser i think):

http://www.flemflemflem.com/temp/Scripts/AC_ActiveX.js
http://www.flemflemflem.com/temp/Script … Content.js

48

Re: Easy BBCode Visual & Video Extended

AC_RunActiveContent.js
AC_ActiveX.js

These two you need for the quicktime - Dreamweaver seems to changed the quicktime object too.
Can you send me your modified parser.php, please

49

Re: Easy BBCode Visual & Video Extended

http://www.flemflemflem.com/temp/parser_modByDreamW.txt

50

Re: Easy BBCode Visual & Video Extended

use the "not-dreamweaver-modified" parser.php version

I have to find out if it is possible to embed the objects with those Javascript files.
I will keep you informed about this.