Good work, but you may not be out of the woods just yet... Did you notice the s172 and vid172? You should check a lot of different photobucket videos and see if this changes - it does! I have one that uses s178! This means two things need to be extracted...
It might be better to extract just enough info to use in the bbcode rather than the entire URL (this is what I usually do). This particular bbcode will need to use the option option in order to pass the second bit of information.
Note how I've changed things below:
Code:
<embed width="430" height="389" type="application/x-shockwave-flash" wmode="transparent" src="http://vid{option}.photobucket.com/remix/player.swf?videoURL=http://s{option}.photobucket.com/{param}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
[photobucketvid=172]albums/w11/77086dm/89fc6002.pbr[/photobucketvid]
Notice that I am using the convention with vid on the end of bbcode tags. This is to make sure there is no conflict with other tags with the same name!
I would then make a regular expression to pull out the data and feed it into the bbcode tag. This is why it is also important for each service to figure out if other domain names or host names are also possible from the same domain - for example youtube can be:
youtube.com,
www.youtube.com, or in future it may even be youtube.de, youtube.co.uk, etc. This also happened with google. Youtube also uses two completely different formats, so I have to trap both of those as well.
That's why for some of these services you have a try a few different ones and see if the details change slightly!
For these codes it's probably best if you start to put them all into a text file, rather than posting them one by one. They won't be of any use to anyone in this mod until I write the regular expressions to match them. If you see post #1 I wrote some info on this - but to be honest they are a little tricky, so probably best if I do the regular expressions for the bbcode you make :-)
That way it would be better not to clutter up the thread - or maybe send me a PM with the details. When they are in a forum that others can use, the best thing is that I roll them up into a new version.