Quote:
Originally Posted by Digital Jedi
The conflict I was referring to, (if there is a conflict, admitedly, I haven't had a chance to test this yet) would come, not from the video, but from the image embed code. You had asked if we could use this to embed images. The problem I see is people grabbing the image forum code with the [img]https://vborg.vbsupport.ru/[/img] tags and either getting an image with the IMG tags on either side, or no picture at all. Like I said, though, I will have to test this to be sure.
|
yeah, I assumed you were talking about the IMG embed codes.
The IMG embed code is the same format for just an image alone, as the IMG embed code I pasted above that is part of the video string.
But if the replacement was only looking for a URL= with photobucket and action=view it could replace everything between the opening URL tag and closing URL tag so the IMG embed would be irrelevant and never cause a conflict on an image emb used alone.
URL image tag:
[URL=http://i203.photobucket.com/albums/aa229/h20junkie/Misc/IMG_1927.jpg][img]https://vborg.vbsupport.ru/[/img][/URL]
URL video tag
[URL=http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/?action=view¤t=100_2877.flv][img]https://vborg.vbsupport.ru/external/2008/12/103.jpg[/img][/URL]
As you can see, the action=view is the defining part of the string to separate a IMG from a Video, so there should be no issue with a replacement that looks for that action=view
I wish I was good enough at regex to try and write one myself.
But if I can't do that, I figure the least I can do is T it up for someone that actually can write regex...:P