no, it only works for youtube.. you could modify the code to make it work with flash though, would be a very simple modification

haha intriguing... i will have a look at this punbar for you and see if i can make any sense of what's going on

Sorry mate, I've not used PunBB for more than an hour in total and i've not coded in it since i posted this mod so not quite sure about the puntoolbar stuff.. just to clarify, why are you looking for

'<span class="bbu">$1</span>',

when my mod says look for

<span style="color: $1">$2</span>

??

if you email your source for parser.php i'll be happy to install it for you? goglgourd <at> gmail.com wink

muhahaha! thanks, sorted.

No problem, hope you find it of use (if you decide to use it that is tongue).

Makes it load slower but use it; it'll be too small to notice. While I can't deny it does make it load slower, I can assure you won't notice a difference unless you have some very, very, VERY accurate timing methods tongue. It's just not worth fussing/worrying about. Try it and I'll bet you don't notice a thing.

well if you do it that way it'll be a pain for your users when there are such easy alternatives. to be honest 2 lines of code is going to have a tiny effect and if your forum is popular enough/uses a lot of youtube videos you'll save some space - but again, tiny amounts..

lol ah well, ty ;)

..found a slight problem with the one already created

"#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s"

would mean the user has to have visited via www. mine offers that optionally. Hmm, will try to think of something original then :P

##
##
##        Mod title:  YouTube BB Mod
##
##      Mod version:  1.0.0
##   Works on PunBB: 1.2.1, ?
##     Release date:  2005-02-06
##           Author:  GoglGourd (myLBFH.co.uk)
##
##      Description:  This mod allows users to wrap youtube links in [youtube]
##                    then embeds the player on the forum
##
##   Affected files:  include/parser.php
##                   
##
##       Affects DB:  No
##
##            Notes:   Only began using punBB 30mins ago, really enjoying it! Hope
##                    this is of use to someone! Enjoy!
##                    to use, find your youtube link eg.
##                    http://youtube.com/watch?v=pJM39EytAYU
##                    and place [youtube][/youtube] tags around it.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Sorry if it's rubbish or been done before: this is my first mod, I only discovered PunBB about 30 minutes ago and just thought I'd have a try.

http://www.goglgourd.co.uk/punbb/youtube.txt