51

Re: Easy BBCode Visual & Video Extended

Yep i stay for now with the original parser.php file.

About the js i remember a little mod for punbb who was a little .js who convert automatically pure youtube and googlevideo videos's urls into embeded videos.
In other terms you just copy/past the url on the forum and the when the .js is loaded it convert the link into a video.

Since i have removed this mod because the forum was feeling less responsive in fact.

I can try to find this .js if you want look at it?

52

Re: Easy BBCode Visual & Video Extended

well, yes, could be interresting to know how that javascript work

53 (edited by onecut 2008-03-21 15:18)

Re: Easy BBCode Visual & Video Extended

http://www.flemflemflem.com/temp/javascript_triggers.js

I dont really remember in wich page the script was called.
This .js also put favicon in front of links automatically, its pretty anoying but its works.

54

Re: Easy BBCode Visual & Video Extended

a little "update" here:

http://www.punres.org/viewtopic.php?pid=23413#p23413

55

Re: Easy BBCode Visual & Video Extended

hi again, it possible that you look at this embeded video tag, its from TED.com (theya have good videos btw):

<!--cut and paste--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="285" id="VE_Player" align="middle"><param name="movie" value="http://static.videoegg.com/ted/flash/loader.swf"><PARAM NAME="FlashVars" VALUE="bgColor=FFFFFF&file=http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv&autoPlay=false&fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&forcePlay=false&logo=&allowFullscreen=true"><param name="quality" value="high"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#FFFFFF"><param name="scale" value="noscale"><param name="wmode" value="window"><embed src="http://static.videoegg.com/ted/flash/loader.swf" FlashVars="bgColor=FFFFFF&file=http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv&autoPlay=false&fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&forcePlay=false&logo=&allowFullscreen=true" quality="high" allowScriptAccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="320" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>


Thx a lot!

56 (edited by no64 2008-05-28 15:59)

Re: Easy BBCode Visual & Video Extended

onecut wrote:

hi again, it possible that you look at this embeded video tag, its from TED.com (theya have good videos btw):

<!--cut and paste--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="285" id="VE_Player" align="middle"><param name="movie" value="http://static.videoegg.com/ted/flash/loader.swf"><PARAM NAME="FlashVars" VALUE="bgColor=FFFFFF&file=http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv&autoPlay=false&fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&forcePlay=false&logo=&allowFullscreen=true"><param name="quality" value="high"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#FFFFFF"><param name="scale" value="noscale"><param name="wmode" value="window"><embed src="http://static.videoegg.com/ted/flash/loader.swf" FlashVars="bgColor=FFFFFF&file=http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv&autoPlay=false&fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&forcePlay=false&logo=&allowFullscreen=true" quality="high" allowScriptAccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="320" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>


Thx a lot!

..onecut, this one is easy smile .... if you don't need the "embed" TED Player
TED don't use Video IDs, they use the direct path to the FLV ! That's good.... with that path you could just embed the video with the FLV Player.

[flv]http://www.yourPath.com/to_the/movie.flv[/flv]

if you have the JW Mediaplayer installed.

Take a look at the embed code and you will find the FLV path:

http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv

It is directly in the "flashvars"

57

Re: Easy BBCode Visual & Video Extended

....if you want to extend the script and use the embed TED Player:

like the others, first create in parser.php another BBCode in the $pattern = array
I placed it on the first place

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

Then in the $replace = array
also on the first place

    
//****** embed TED Videos ***************************************************    
'<div class="bbvideo"><object width="500" height="445" align="top" data="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$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://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><embed src="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" width="500" height="445" quality="best" align="top" wmode="transparent" allowScriptAccess="sameDomain" allowfullscreen="true"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end TED Videos *****************************************************

If using this you don't have to put all the path into the bbcode tags - only the name of the FLV File:

[ted]EDBURTYNSKY_high.flv[/ted]

58

Re: Easy BBCode Visual & Video Extended

As usual, thanks a lot!

59

Re: Easy BBCode Visual & Video Extended

... glad I could help

60 (edited by laxrom 2008-09-25 14:05)

Re: Easy BBCode Visual & Video Extended

Could you please take a look at this embed code and see if you can do something useful with it:

<object width='500' height='353'><param name='allowFullScreen' value='false' /><param name='allowScriptAccess' value='always' /><param name='movie' value='http://www.pinkbike.com/v/13666/l/' /><embed src='http://www.pinkbike.com/v/13666/l/' type='application/x-shockwave-flash' width='500' height='353' allowFullScreen='false' allowScriptAccess=always' /></object>

I want to extend the script with videos from pinkbike.
Thanks smile

61

Re: Easy BBCode Visual & Video Extended

In parser.php add BBCode in the
$pattern = array
on the first place

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

Then in the $replace = array
also on the first place

//****** embed pinkbike Videos **********************************************    
'<div class="bbvideo"><object width="500" height="440" align="top" data="http://www.pinkbike.com/v/$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.pinkbike.com/v/$1" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><embed src="http://www.pinkbike.com/v/$1" width="500" height="440" quality="best" align="top" wmode="transparent" allowScriptAccess="sameDomain" allowfullscreen="true"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end pinkbike Videos ************************************************