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

..there you just need to write:

[youtube]UuBm0dvIzcc[/youtube]

52

(26 replies, posted in PunBB 1.2 show off)

really baaaad  - I was shocked.

Fixed version is uploaded - called "evbbc_fixed.zip"

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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//    
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
quaker wrote:

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


Q

...it should be!

Locky wrote:

is it possible to let the users post *.wmv and *.swf files into the forums. like we are chatting here. I've got the youtube modification installed, and would like to know if the .wmv / .swf is possible. It would be very helpful for me.

Try my mod - there are some BBCodes to embed wmv, swf, quicktime, divx, etc.:
http://punbb.org/forums/viewtopic.php?id=16653

..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 *************************************************

Is this on every movie or just some particular?

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

quaker wrote:

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


Q

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

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

...hmmm, and a bot would fill the textfield? Good idea, I think

63

(47 replies, posted in PunBB 1.2 troubleshooting)

you can download the mods from the links I posted -

click on download files - files - and choose the newest file

64

(47 replies, posted in PunBB 1.2 troubleshooting)

You can't install it?
If it says your version wont match with this mod
You can open up the "install_mod.php" file and find the line (somewhere at the beginning)

// One or more versions of PunBB that this mod works on. The version names must match exactly!
$punbb_versions    = array('1.2', '1.2.1', '1.2.3', '1.2.4', '1.2.5');

...and add your version in that array.

And if you are making modifications to your forum files, don't forget to comment your changes in that file - it will be easier to find those places later on if something went wrong.

I have found a solution!
I combined Tjalve's script and the script out of the "add Lightbox" Mod from http://www.punres.org/desc.php?pid=282 by Robert h

Now I can set the max width for images to be shown with the img_tag

If wider than my postarea it will be displayed resized with a link to be opened in original size - or (if set) with Lightbox
If smaller or exactly as my postarea it will be displayed in original size.

And, if using Lightbox, you can set the max width of the image to be opened with Lightbox - lets say bigger than 800 pixel width has not to be displayed with Lightbox, but resized and with a link to be opened in original size....

Replace the original img_tag in parser.php with this. If not using Lightbox you have to delete the Lightbox parts in this mod.

// ************************************************************************************************************************************* //
//********************** MOD extra Image Tag for bigger Pictures *****************//

function handle_img_tag($url, $is_signature = false)
{
    global $lang_common, $pun_config, $pun_user;

    $img_tag = '<a href="'.$url.'" onclick="window.open(this.href); return false;"><'.$lang_common['Image link'].'></a>';

    if ($is_signature && $pun_user['show_img_sig'] != '0')
        $img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
        
        
else if (!$is_signature && $pun_user['show_img'] != '0')
{
    if (@fclose(@fopen($url, "r")))
    {
        $imagehw = GetImageSize($url);
        $width = $imagehw[0];
        $height = $imagehw[1];
        $img_tag = '<center><img class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /></center>';
        
    if ($width > 680) //+++ this is your desired max width of images - also to be set inside the img_tag +++++++++++++++//
    {
    
//+++++ img_tag with Lightbox  - delete if not using Lightbox +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

        $img_tag = '<center><a href="'.$url.'" rel="lightbox"><img width="680" class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /></a></center>';
        
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//    


   
//+++++ without Lightbox ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
        //$img_tag = '<center><img width="680" class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /> <br> This image has been resized, click <a href="'.htmlspecialchars($url).'">here</a> to view the full-sized image.</center>';  
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//    

}


//++++++++++ you can use this to set a width limit for images to be show with Lightbox - delete if not using Lightbox +++++++++++++++++++//    

        if ($width > 800) //+++ max. width of images to be show with Lightbox - wider images will be shown resized and with link ++++//
    {
        $img_tag = '<center><img width="680" class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /> <br> This image has been resized, click <a href="'.htmlspecialchars($url).'">here</a> to view the full-sized image.</center>';
}
    
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//    

    
    }
    else
    {
        $img_tag = '<strong>error: image ' . $url . ' cannot be loaded.</strong>';
    }
}            
        return $img_tag;
}

// ******************************************************************************** //
// ************************************************************************************************************************************* //

66

(47 replies, posted in PunBB 1.2 troubleshooting)

well, you can use the normal "img_tag", but the photo has to be uploaded somewhere or you use some mods like:

http://www.punres.org/desc.php?pid=362
http://www.punres.org/desc.php?pid=77
http://www.punres.org/viewtopic.php?id=789&p=1  (I use this one)
http://www.punres.org/viewtopic.php?pid=16629#p16629 (very nice - and easy to install)

67

(18 replies, posted in Feature requests)

elbekko wrote:

This takes XSS to a whole new level hmm

...well, you're right....hmm, is it possible to make this only usable for administrators?

68

(47 replies, posted in PunBB 1.2 troubleshooting)

Do you mean the Title of the forum?
If so, you have to find in the CSS "#brdtitle" - or create, I don't think it is actually there

#brdtitle { margin-left: 300px }

...and set some stuff

69

(18 replies, posted in Feature requests)

What would I change to be able to set the height inside the BBCode?

[iframe height=xxx]URL[iframe]

If I set it to "auto" or "100%" in the parser, the iframe shows up much higher also if the site is smaller

70

(47 replies, posted in PunBB 1.2 troubleshooting)

What would you like to do with the name?
Do you have a link to your forum to see what's wrong?

ohh, that's how it works....of course just some rubbish stuff.

What about that "math sum" thing Savvy mentioned here
http://punbb.org/forums/viewtopic.php?id=14069&p=1

..that sounds good - a spam bot can't count, I think...
Where can I get that mod from?

72

(47 replies, posted in PunBB 1.2 troubleshooting)

...sorry you need this, if you want the forum centered on stage

#punwrap  { margin: 0 auto 0; width: 800px }

where the first "0" ist the margin on top and the last "0" ist the margin bottom. "auto" sets left and right margin to auto and center the "punwrap" div on stage (but that works only,if the div has an defined width)

73

(47 replies, posted in PunBB 1.2 troubleshooting)

your welcome, glad I could help - I got a lot of help here....

74

(18 replies, posted in Feature requests)

...don't understand

75

(18 replies, posted in Feature requests)

....found it:

 return '<iframe width="100%" height="100%" scrolling="auto" src="'.htmlspecialchars($full_url).'">You need iframes enabled to view this.</iframe>';

..tried to "reach" it with CSS, but wasn't lucky

Great Mod, Thank's a lot Reines