Quote:
Originally Posted by h2ojunkie
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]http://i203.photobucket.com/albums/aa229/h20junkie/Misc/th_IMG_1927.jpg[/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
|
Hrm, I'm not sure we're on the same page then. See, I have a Photobucket (Videos) definition in my Add-On thread, but videos are converted based on the page URL. Are you suggesting a conversion of the offered image embed codes, or the permalink/page URL?