PDA

View Full Version : help with URLs and javascript


ChimeraRS
08-31-2011, 03:03 PM
Hi guys,

I'm migrating from UBB Threads 6.5 to VB 4.1.x and I've run into an issue. In UBB I have it integrated with Photopost and people can insert photopost images into their posts with a javascript popup that wraps the image in our branding. When these posts were imported into VB I've ended up with the following code (minus the spaces) :


[ url="javascript:openPictureWindow('http://domain.com/photogallery/watermark.php?file=214394','709','529')" ]
[ IMG ]http://domain.com/photogallery/data//500/thumbs/dis.jpg[ /IMG ][ /url ]


I'm lost as to how to make this work in VB. Obviously it mangles the code on output adding HTML special chars in place of < and > and breaks everything. Is there any way I can flag these posts and allow the javascript to work? Is there another way I can get this functionality?

Thanks

Grahame

--------------- Added 1314819890 at 1314819890 ---------------

Ignore this. Got it figured out with the mother of all regular expressions...but it works.