1

Topic: Easy BBCode Visual & Video Extended

I have updated my mod - it can be found here:

http://www.punres.org/viewtopic.php?pid=18565#p18565
http://www.punres.org/desc.php?pid=416

Updated with more Video Portals and now you just have to insert the Video ID between the tags.

Video Portals:

YouTube,
MyVideo,
GoogleVideo,
ClipFish,
Dailymotion,
Metacafe,
iFilm,
Sevenload,
GarageTV,
Revver,
Guba,
mySpace,
Yahoo,
Aniboom,
Veoh,
Virb,
Stage6,
VideoJug,
VSocial,
eSnips
Brightcove

Also added support for DivX and Windows Media

Re: Easy BBCode Visual & Video Extended

looks pretty simple for moding... i'll try it...


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Easy BBCode Visual & Video Extended

Thanks man.Very good mod.

4

Re: Easy BBCode Visual & Video Extended

quaker wrote:

looks pretty simple for moding... i'll try it...


Q

Examples here: http://www.bikepark-oberammergau.de/for … m.php?id=1

5 (edited by no64 2007-07-25 18:10)

Re: Easy BBCode Visual & Video Extended

Just found a small bug for inserting the HR bbcode in the file "mod_easy_bbcode.php" - I don't think I have to make a new release for that:

Find line:
<img class="bbcode" src="img/easyVisualBBCode/text_horizontalrule.png" alt="HorizRule" title="Horizontal Rule" onclick="insert_text('[hr]')" />

Replace with:
<img class="bbcode" src="img/easyVisualBBCode/text_horizontalrule.png" alt="HorizRule" title="Horizontal Rule" onclick="insert_text('[hr]','')" />

...forgot something after the [hr]

...otherwise it writes a [hr]undefined


*Edit: I have deleted the old file and uploaded the updated zip

Re: Easy BBCode Visual & Video Extended

This is exactly what I have been looking fore thanks man. I just have a small isuess:  When I add a movie to my forum It is just withe and no sound.
Now I would guess this is a pretty simple mestake by me, but I just don't know what to do.

7

Re: Easy BBCode Visual & Video Extended

Is this on every movie or just some particular?

Re: Easy BBCode Visual & Video Extended

I have tried & movies in Youtube, which is where I upload my movies, all with the same result and I have tried to apply the the mod scrit sevral times with out sucsess.

Easy bbcode works nicely btw.

9 (edited by no64 2007-07-26 16:17)

Re: Easy BBCode Visual & Video Extended

..do you have a link to that?
Do it work with another Portal, please try.

..are your arrays correct?
Are you inserting the right video ID? (only the video ID with release 1.5)


This is what I have in my actual working setup:

'#\[youtube\](.*?)\[/youtube\]#s',
                     //****** embed YouTube Videos ***********************************************    
                     '<div class="bbvideo"><object width="425" height="350" align="top" data="http://www.youtube.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.youtube.com/v/$1" />
                         <param name="quality" value="best" />
                     
                         <embed src="http://www.youtube.com/v/$1" width="425" height="350" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
                     </object></div>',
                     //****** end YouTube Videos *************************************************

10

Re: Easy BBCode Visual & Video Extended

quaker wrote:

looks pretty simple for moding... i'll try it...


Q

...it should be!

11 (edited by no64 2007-07-26 21:13)

Re: Easy BBCode Visual & Video Extended

Hmmm, encountered a "bug" with positioning the object in Firefox due the generated output of the bbCode

So, this is how the embed code look like in the parser.php

                     //****** embed Brightcove Videos ********************************************    
                     '<div class="bbvideo"><object width="486" height="412" align="top" data="http://admin.brightcove.com/destination/player/player.swf" 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="always" />
                         <param name="movie" value="http://admin.brightcove.com/destination/player/player.swf" />
                         <param name="quality" value="best" />
                         <param name="allowFullScreen" value="true" />
                         <param name="flashvars"  value="allowFullScreen=true&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false&initVideoId=$1" />
                         
                        <embed src="http://admin.brightcove.com/destination/player/player.swf?&initVideoId=$1" allowfullscreen="true" quality="best" width="486" height="412" flashvars="allowFullScreen=true&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
                     </object></div>',    
                     //****** end Brightcove Videos **********************************************

...And this is how it's been generated/written into the page:

<div class="bbvideo"><object width="486" height="412" align="top" data="http://admin.brightcove.com/destination/player/player.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">            <br />                                              <br />                         <param name="allowScriptAccess" value="always" /><br />                         <param name="movie" value="http://admin.brightcove.com/destination/player/player.swf" /><br />                         <param name="quality" value="best" /><br />                         <param name="allowFullScreen" value="true" /><br />                         <param name="flashvars"  value="allowFullScreen=true&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false&initVideoId=1111467080" /><br />                         <br />                        <embed src="http://admin.brightcove.com/destination/player/player.swf?&initVideoId=1111467080" allowfullscreen="true" quality="best" width="486" height="412" flashvars="allowFullScreen=true&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed><br />                     </object></div></p>

All these " " and "<br />" are from the spaces and breaks I made in the parser.php to have the code shown up a little bit clearer.

Anybody an idea why this happen?

Anyway, if everything is written in a single line, it works perfect and no spaces and breaks are generated.
So, everybody having the same problem should replace the code for the Video Portals in the  "replace" array in the parser.php

Here they come:

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Video Portals +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

                     
//****** embed YouTube Videos ***********************************************    
'<div class="bbvideo"><object width="425" height="350" align="top" data="http://www.youtube.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.youtube.com/v/$1" /><param name="quality" value="best" /><embed src="http://www.youtube.com/v/$1" width="425" height="350" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end YouTube Videos *************************************************
                                          
                     
//****** embed Google Videos ************************************************
'<div class="bbvideo"><object width="425" height="364" align="top" data="http://video.google.com/googleplayer.swf?docId=$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://video.google.com/googleplayer.swf?docId=$1" /><param name="quality" value="best" /><embed src="http://video.google.com/googleplayer.swf?docId=$1" width="425" height="364" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Google Videos **************************************************
                                          
                     
//****** embed MyVideo ******************************************************
'<div class="bbvideo"><object width="470" height="406" align="top" data="http://www.myvideo.de/movie/$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.myvideo.de/movie/$1" /><param name="quality" value="best" /><embed src="http://www.myvideo.de/movie/$1" width="470" height="406" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end MyVideo ********************************************************
                     
                      
//****** embed ClipFish *****************************************************
'<div class="bbvideo"><object width="464" height="380" align="top" data="http://www.clipfish.com/videoplayer.swf?as=0&videoid=$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.clipfish.com/videoplayer.swf?as=0&videoid=$1" /><param name="quality" value="best" /><embed src="http://www.clipfish.com/videoplayer.swf?as=0&videoid=$1" width="464" height="380" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end ClipFish *******************************************************
                                      
                     
//****** embed Dailymotion Videos *******************************************    
'<div class="bbvideo"><object width="520" height="406" align="top" data="http://www.dailymotion.com/swf/$1.swf" 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.dailymotion.com/swf/$1.swf" /><param name="quality" value="best" /><embed src="http://www.dailymotion.com/swf/$1" width="520" height="406" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Dailymotion Videos *********************************************
                     
                     
//****** embed Metacafe Videos **********************************************    
'<div class="bbvideo"><object width="400" height="345" align="top" data="http://www.metacafe.com/fplayer/$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.metacafe.com/fplayer/$1" /><param name="quality" value="best" /><embed src="http://www.metacafe.com/fplayer/$1.swf" width="400" height="345" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Metacafe Videos ************************************************    
                     
                    
//****** embed iFilm Videos *************************************************    
'<div class="bbvideo"><object width="448" height="365" align="top" data="http://www.ifilm.com/efp?flvbaseclip=$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.ifilm.com/efp?flvbaseclip=$1" /><param name="quality" value="best" /><embed src="http://www.ifilm.com/efp?flvbaseclip=$1" width="448" height="365" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end iFilm Videos ***************************************************    
                                      
                     
//****** embed Sevenload Videos *********************************************    
'<div class="bbvideo"><object width="425" height="350" align="top" data="http://page.sevenload.com/swf/player.swf?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="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://page.sevenload.com/swf/player.swf?id=$1" /><param name="quality" value="best" /><embed src="http://page.sevenload.com/swf/player.swf?id=$1" width="425" height="350" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Sevenload Videos ***********************************************
                     
                     
//****** embed GarageTV Videos **********************************************    
'<div class="bbvideo"><object width="425" height="350" align="top" data="http://www.garagetv.be/v/$1/v.aspx" 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.garagetv.be/v/$1/v.aspx" /><param name="quality" value="best" /><embed src="http://www.garagetv.be/v/$1/v.aspx" width="425" height="350" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end GarageTV Videos ************************************************
                     
                     
//****** embed Revver Videos ************************************************    
'<div class="bbvideo"><object width="480" height="392" align="top" data="http://flash.revver.com/player/1.0/player.swf?mediaId=$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://flash.revver.com/player/1.0/player.swf?mediaId=$1" /><param name="quality" value="best" /><embed src="http://flash.revver.com/player/1.0/player.swf?mediaId=$1" width="480" height="392" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Revver Videos **************************************************
                                      
                     
//****** embed Guba Videos **************************************************    
'<div class="bbvideo"><object width="480" height="392" align="top" data="http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/$1/flash.flv" 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.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/$1/flash.flv" /><param name="quality" value="best" /><embed src="http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/$1/flash.flv" width="480" height="392" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Guba Videos ****************************************************
                     

//****** embed mySpace Videos ***********************************************    
'<div class="bbvideo"><object width="480" height="392" align="top data="http://lads.myspace.com/videos/vplayer.swf?m=$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://lads.myspace.com/videos/vplayer.swf?m=$1" /><param name="quality" value="best" /><embed src="http://lads.myspace.com/videos/vplayer.swf?m=$1" width="480" height="392" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end mySpace Videos *************************************************
                     
                    
//****** embed Yahoo Videos **************************************************    
'<div class="bbvideo"><object width="480" height="392" align="top" data="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf?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="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf?id=$1" /><param name="quality" value="best" /><embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf?id=$1" width="480" height="392" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Yahoo Videos ***************************************************
                     
                         
//****** embed Aniboom Videos ***********************************************    
'<div class="bbvideo"><object width="448" height="372" align="top" data="http://api.aniboom.com/embedded.swf?videoar=$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://api.aniboom.com/embedded.swf?videoar=$1" /><param name="quality" value="best" /><embed src="http://api.aniboom.com/embedded.swf?videoar=$1" width="448" height="372" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Aniboom Videos *************************************************    
                         
                
//****** embed Veoh Videos **************************************************    
'<div class="bbvideo"><object width="540" height="438" align="top" data="http://www.veoh.com/videodetails2.swf?permalinkId=$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.veoh.com/videodetails2.swf?permalinkId=$1" /><param name="quality" value="best" /><embed src="http://www.veoh.com/videodetails2.swf?permalinkId=$1" width="540" height="438" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Veoh Videos ****************************************************     
    

//****** embed VideoJug Videos **********************************************    
'<div class="bbvideo"><object width="400" height="345" align="top" data="http://www.videojug.com/film/player?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="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.videojug.com/film/player?id=$1" /><param name="quality" value="best" /><embed src="http://www.videojug.com/film/player?id=$1" width="400" height="345" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end VideoJug Videos ************************************************ 
                          
                     
//****** embed VSocial Videos ***********************************************    
'<div class="bbvideo"><object width="400" height="410" align="top" data="http://static.vsocial.com/flash/ups.swf?d=$1&a=0" 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.vsocial.com/flash/ups.swf?d=$1&a=0" /><param name="quality" value="best" /><embed src="http://static.vsocial.com/flash/ups.swf?d=$1&a=0" width="400" height="410" quality="best" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end VSocial Videos *************************************************                      
                                                                             
        
//****** embed eSnips Videos ************************************************    
'<div class="bbvideo"><object width="320" height="285" align="top" data="http://www.esnips.com//3rd/flvplayer/esnips_flvplayer12.swf?xmlURL=http://www.esnips.com//flashxml/1/$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.esnips.com//3rd/flvplayer/esnips_flvplayer12.swf?xmlURL=http://www.esnips.com//flashxml/1/$1 \" /><param name="quality" value="best" /><param name="flashvars"  value= "autostart=false" /><embed src="http://www.esnips.com//3rd/flvplayer/esnips_flvplayer12.swf?xmlURL=http://www.esnips.com//flashxml/1/$1" quality="best" height="300" width="400" flashvars="autostart=false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></div>',    
//****** end eSnips Videos **************************************************                                   


//****** embed Brightcove Videos ********************************************    
'<div class="bbvideo"><object width="486" height="412" align="top" data="http://admin.brightcove.com/destination/player/player.swf" 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="always" /><param name="movie" value="http://admin.brightcove.com/destination/player/player.swf" /><param name="quality" value="best" /><param name="allowFullScreen" value="true" /><param name="flashvars"  value="allowFullScreen=true&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false&initVideoId=$1" /><embed src="http://admin.brightcove.com/destination/player/player.swf?&initVideoId=$1" allowfullscreen="true" quality="best" width="486" height="412" flashvars="allowFullScreen=true&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></div>',    
//****** end Brightcove Videos ********************************************** 



                     
                     
//****** embed Stage6 divX Videos with dimensions settings inside BBCode ****
'<div class="bbvideo"><object width="$1" height="$2" align="top" data="http://video.stage6.com/$3/.divx\" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"  codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/$3/.divx\" /<param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed src="http://video.stage6.com/$3/.divx" width="$1" height="$2" align="top" showpostplaybackad="false" custommode="Stage6" autoplay="false" type="video/divx" pluginspage="http://go.divx.com/plugin/download/"  /></embed></object>
<br/>No video? Get the DivX Web Player for <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">Windows</a> or <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg">Mac</a></div>',
//****** end Stage6 divX Videos ********************************************* 
                                          
//****** embed Stage6 divX Videos *******************************************    
'<div class="bbvideo"><object width="640" height="480" align="top" data="http://video.stage6.com/$1/.divx\" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"  codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/$1/.divx\" /<param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed src="http://video.stage6.com/$1/.divx" width="640" height="480" align="top" showpostplaybackad="false" custommode="Stage6" autoplay="false" type="video/divx" pluginspage="http://go.divx.com/plugin/download/"  /></embed></object>
<br/>No video? Get the DivX Web Player for <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">Windows</a> or <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg">Mac</a></div>',
//****** end Stage6 divX Videos ********************************************* 
                     
                     
                     
                     
                     
//****** embed Virb Videos with dimensions settings inside BBCode **********    
'<div class="bbvideo"><object width="$1" height="$2" align="top" data="http://www.virb.com/external/video/$3" 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.virb.com/external/video/$3" /><param name="quality" value="best" /><param name="salign" value="tl" /><param name="wmode" value="transparent" /><embed src="http://www.virb.com/external/video/$3" width="$1" height="$2" quality="best" salign="tl" align="top" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Virb Videos **************************************************** 
                     
//****** embed Virb Videos **************************************************    
'<div class="bbvideo"><object width="564" height="380" align="top" data="http://www.virb.com/external/video/$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.virb.com/external/video/$1" /><param name="quality" value="best" /><param name="salign" value="tl" /><param name="wmode" value="transparent" /><embed src="http://www.virb.com/external/video/$1" width="564" height="380" quality="best" salign="tl" align="top" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end Virb Videos ****************************************************     






//++++++++++++++++++++++++++++++++++++++++++++ FLV Videos +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

//****** embed FLV for JW - Players *****************************************    
'<div class="bbvideo"><object width="464" height="380" data="mod_mediaplayer.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"><param name="movie" value="mod_mediaplayer.swf" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="flashvars" value="frontcolor=0xEEEEEE&backcolor=0x222222&lightcolor=0xFFFFFF&autostart=false&usefullscreen=true&file=$1" /><embed src="mod_mediaplayer.swf" width="464" height="380" menu="false" flashvars="frontcolor=0xEEEEEE&backcolor=0x222222&lightcolor=0xFFFFFF&autostart=false&usefullscreen=true&file=$1" type="application/x-shockwave-flash" pluginspage= "http://www.macromedia.com/go/getflashplayer"/></embed></object></div>',
//****** end FLV for JW - Players *******************************************

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//


//+++++++++++++++++++++++++++++++++++++++++++++ Mp3 Music ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

//****** embed Mp3 for JW - Players ******************************************    
'<div class="bbvideo"><object width="464" height="380" data="mod_mediaplayer.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"><param name="movie" value="mod_mediaplayer.swf" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="flashvars" value="flashvars="&height=20&width=320&frontcolor=0xEEEEEE&backcolor=0x444444&lightcolor=0xFFFFFF&showdownload=true&showicons=false&autostart=false&file=$1"" /><embed src="mod_mediaplayer.swf" width="320" height="20" menu="false" flashvars="&height=20&width=320&frontcolor=0xEEEEEE&backcolor=0x444444&lightcolor=0xFFFFFF&showdownload=true&showicons=false&autostart=false&file=$1" type="application/x-shockwave-flash" pluginspage= "http://www.macromedia.com/go/getflashplayer"/></embed></object></div>',
//****** end Mp3 for JW - Players *******************************************
                    
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//                     
                     
    
    
    
                     
                     
                                          
//++++++++++++++++++++++++++++++ DivX Videos with DivX WebPlayer PlugIn ++++++++++++++++++++++++++++++++++++++++++++++//
                                              
//****** embed divX Videos **************************************************                             
'<div class="bbvideo"><object width="640" height="480" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="autoPlay" value="false" /><param name="src" value="$1" /><embed src="$1" width="640" height="480" autoPlay="false" type="video/divx" pluginspage="http://go.divx.com/plugin/download/"></embed></object>
<br/>No video? Get the DivX Web Player for <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">Windows</a> or <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg">Mac</a>    </div>',    
//****** end divX Videos ****************************************************
                                     
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//    
                             
//++++++++++++++++++++++++++++++ DivX Videos with dimensions settings inside BBCode ++++++++++++++++++++++++++++++++++//
                                              
//****** embed divX Videos **************************************************                             
'<div class="bbvideo"><object width="$1" height="$2" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="autoPlay" value="false" /><param name="src" value="$3" /><embed src="$3" width="$1" height="$2" autoPlay="false" type="video/divx" pluginspage="http://go.divx.com/plugin/download/"></embed></object>
<br/>No video? Get the DivX Web Player for <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">Windows</a> or <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg">Mac</a>    </div>',    
//****** end divX Videos ****************************************************
                                     
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
                                                          
    
    
    
                     
                     
//+++++++++++++++++++++++++++++++++++++++ SWF with fixed width set to 100% ++++++++++++++++++++++++++++++++++++++++++++//
                     
//****** embed SWF **********************************************************
'<div class="bbvideo"><object width="100%" height="$1" align="middle" data="$2" 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="scale" value="noscale" /><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="$2" /><param name="quality" value="best" /><param name=menu value="false"><embed align="middle" src="$2" quality="best" width="100%" height="$1" scale="noscale"  allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>',
//******** end SWF **********************************************************                                          

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//         

//++++++++++++++++++++++++++++ SWF with width and height settings inside BBCode +++++++++++++++++++++++++++++++++++++++//


//****** embed SWF **********************************************************
'<div class="bbvideo"><object width="$1" height="$2" align="middle" data="$3" 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="scale" value="noscale" /><param name="allowScriptAccess" value="never" /><param name="movie" value="$3" /><param name="quality" value="best" /><param name=menu value="false"><embed align="middle" src="$3" quality="best" width="$1" height="$2" scale="noscale" allowScriptAccess="never" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>',
//******** end SWF **********************************************************
                     
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

//++++++++++++++++++++++++++++ SWF with fixed width and height and cropping ++++++++++++++++++++++++++++++++++++++++++//


//****** embed SWF **********************************************************
'<div class="bbvideo"><object align="top" width="480" height="384" data="$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="scale" value="noorder" /><param name="allowScriptAccess" value="never" /><param name="movie" value="$1" /><param name="quality" value="best" /><param name="bgcolor" value="#000000" /><param name="salign" value="tl" /><param name=menu value="false"><embed align="middle" src="$1" quality="best" bgcolor="#000000" width="480" height="384" scale="noorder" salign="tl" align="top" allowScriptAccess="never" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>',
//******** end SWF **********************************************************
                 
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//




                                      
//+++++++++++++++++++++++++++++++++++++++ Quicktime with fixed width and height ++++++++++++++++++++++++++++++++++++++//
                     
//****** embed QuickTime ****************************************************
'<div class="bbvideo"><object width="480" height="376" align="top" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" ><param name="type" value="video/quicktime" /><param name="scale" value="aspect"/><param name="cache" value="true"/><param name="src" value="$1"/><param name="autoplay" value="false"/><param name="controller" value="true"/><param name="loop" value="false"/><param name="bgcolor" value="transparent" /><embed width="480" height="376" align="top" src="$1" type="video/quicktime" controller="true" autoplay="false" bgcolor="transparent" cache="true" scale="aspect" loop="false" pluginspage="http://www.apple.com/quicktime/download/"></embed></object></div>',
//****** end QuickTime *******************************************************
                    
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

//+++++++++++++++++++++++++++++++++ Quicktime with dimensions settings inside BBCode +++++++++++++++++++++++++++++++++//

//****** embed QuickTime ****************************************************
'<div class="bbvideo"><object width="$1" height="$2" align="top" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" ><param name="type" value="video/quicktime" /><param name="scale" value="aspect"/><param name="cache" value="true"/><param name="src" value="$3"/><param name="autoplay" value="false"/><param name="controller" value="true"/><param name="loop" value="false"/><param name="bgcolor" value="transparent" /><embed width="$1" height="$2" src="$3" align="top" type="video/quicktime" controller="true" autoplay="false" bgcolor="transparent" cache="true" scale="aspect" loop="false" pluginspage="http://www.apple.com/quicktime/download/"></embed></object></div>',
//****** end QuickTime ******************************************************* 
                                         
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//





//+++++++++++++++++++++++++++++++++ Windows Media with dimensions settings inside BBCode ++++++++++++++++++++++++++++++//

//****** embed Windows Media *************************************************
'<div class="bbvideo"><object width="$1" height="$2" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading Windows Media Player components..." type="application/x-oleobject"><param name="FileName" value="$3" /><param name="ShowControls" value="true" /><param name="ShowStatusBar" value="false" /><param name="ShowDisplay" value="false" /><param name="autostart" value="false" /><param name="autosize" value="true" /><param name="AnimationAtStart" value="false" /><embed width="$1" height="$2" src="$3" AnimationAtStart="0" showcontrols="1" showstatusbar="0" showdisplay="0" autostart="0" autosize="1" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/players.asp"></embed></object></div>',
//****** end Windows Media **************************************************** 
                                         
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

            
    
                     
                     );// end array - don't remove //
                     
                     
                     

//++++++++++++++++++++++++++++++++++++++++++++++++++++ End Easy Visual BBCode ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//    
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

12

Re: Easy BBCode Visual & Video Extended

Fixed version is uploaded - called "evbbc_fixed.zip"

Re: Easy BBCode Visual & Video Extended

why thanks that did it. gj.

14

Re: Easy BBCode Visual & Video Extended

hi youtube tag is not running on my forum look at this:
http://www.linuxsitesi.org/forum/viewto … d=123#p123

Re: Easy BBCode Visual & Video Extended

i use an older youtube tag and in my case the problem was [youtube]youtube.com/233223[/youtube] did not work but [youtube]www.youtube.com/233223[/youtube] works.

PunnyBunny..

16 (edited by no64 2007-08-09 11:33)

Re: Easy BBCode Visual & Video Extended

Do you use the newest release?
http://www.punres.org/viewtopic.php?pid=18860#p18860

..there you just need to write:

[youtube]UuBm0dvIzcc[/youtube]

17

Re: Easy BBCode Visual & Video Extended

no64 wrote:

Do you use the newest release?
http://www.punres.org/viewtopic.php?pid=18860#p18860

..there you just need to write:

[youtube]UuBm0dvIzcc[/youtube]

it is work for me but why video id?
Why cant we put all of url?

18

Re: Easy BBCode Visual & Video Extended

cause it doesn't work that way - the url does link to the site itself with the embedded swf player and we want to embed the player in our site and not the whole youTube site, don't we.

therefore the youTube player is embedded thrue the script and the BBCode tells the player to play a specefic video which is identifiabled thrue the video ID.

Well, the video ID of the youTube videos is integrated in the url - easy to grab, so why do you want to add an extra "www.youtube.com-thing" there?

Read my "how to" file - there you can learn how and where to find the video IDs of all supported video portals.

19 (edited by FredrikK 2007-08-17 14:16)

Re: Easy BBCode Visual & Video Extended

Great mod!

I had Rickard's Easy BBCode before. Now I have installed this mod and it works perfectly fine. But how can i make it work with the quick post function?

hej!

20

Re: Easy BBCode Visual & Video Extended

FredrikK

...you just have to make "mod_easy_BBCode" work fot the quick post function - then this addon should work there too.
Take a look here, where Rickard explained how to implement his mod for the quickpost:

http://punbb.org/forums/viewtopic.php?pid=33729

Re: Easy BBCode Visual & Video Extended

Thanks!

hej!

22

Re: Easy BBCode Visual & Video Extended

Have made an update again, if anybody is interrested
One more Video Portal - MegaVideo.com - has been added.
Check the files and the thread at punres

http://www.punres.org/viewtopic.php?pid=18565#p18565
http://www.punres.org/desc.php?pid=416

Re: Easy BBCode Visual & Video Extended

Does it work only with 1.2.15?
Does it work with puntoolbar?
Thanks.

If you do what you've always done, you'll get what you've always gotten.

24

Re: Easy BBCode Visual & Video Extended

I don't know puntoolbar, never tried it..... but if you just take the codes (arrays) for the videos and implement them in the right way into the "parser.php" and add some buttons for the "puntoolbar" which sets the right bbcode, it should work I think.

Haven't tested it with earlier versions than 1.2.15, but why shouldn't it work - check out the "parser.php" if it have the same arrays, I think it will work.

Re: Easy BBCode Visual & Video Extended

Hey looking for some help. I have the newest punbb. My members and I are an Xbox clan we post gaming trailer, eCountdowns, you tube and ING are some of the ones we use and every code i try and that have been posted has not worked. Or I guess in a way it has it allows  the code but in the final post on the forum it is just posting the embed code and not the viedo.

Yes im a first timer to forum. And could use any suggestions anyone can give i would really appericate it.

Thanks for your time
Copper