bad thing.... I thought it was that

... I think some "smilies" need a whitespace before and after to be recognized...

try that.

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

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

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

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

... glad I could help

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

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

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

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

    
//****** embed TED Videos ***************************************************    
'<div class="bbvideo"><object width="500" height="445" align="top" data="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><embed src="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" width="500" height="445" quality="best" align="top" wmode="transparent" allowScriptAccess="sameDomain" allowfullscreen="true"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end TED Videos *****************************************************

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

[ted]EDBURTYNSKY_high.flv[/ted]
onecut wrote:

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

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


Thx a lot!

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

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

if you have the JW Mediaplayer installed.

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

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

It is directly in the "flashvars"

Ok,... thank's Smartys

Error: Unable to connect to MySQL server. MySQL reported: Lost connection to MySQL server at 'reading initial communication packet', system error: 111.

If trying to post or preview a post, I got this error.


Could it have something to do with changes of the URL I made. The forum URL has been changed to a sub domain.

a little "update" here:

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

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

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

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

AC_RunActiveContent.js
AC_ActiveX.js

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

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

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

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

onecut wrote:

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

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

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

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

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

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

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

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

Thats it, now you can use:

[vimeo]739858[/vimeo]

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

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


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

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

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

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


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

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


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

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

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

onecut wrote:

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

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

Thank you onecut ...

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

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

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

That file is the first step to localize...


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

Has anybody made a Joomal integration yet - for Joomla 1.0.13 or Joomla 1.5 ?

I have to set up a site using Joomla and I need a good Forum for it too, so - of course - I thought using PunBB smile

Sounds good, glad I could help


... har det so bra Fredrik

Do you also have the latest version of this mod?

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

especially the parser.php

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

...make a linebreake after the video BBCode

Copper,

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

[youtube]jlmDVL5loYI[/youtube]

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


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

embed like this:

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

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


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

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

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


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

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

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

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

[gTrailers]12604[/gTrailers]

[UgTrailers]12604[/UgTrailers]

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


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

Copper,

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

[youtube]jlmDVL5loYI[/youtube]

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


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

In that case you use the swf bbCode:

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

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

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

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