Quote:
Originally Posted by NuclioN
Would be great if it does what promiced  I've editted an already placed oversized image that whas reduced with the 3.xx BIMG tags but it did not turn into a link. Maybe it will only work with new posted images.
|
It should work with all [img] tags providing that they are [img]url[/img] or [IMG]url[/IMG].
The only thing it won't work with is pure HTML. But no-one allows users to post HTML because of security risks, right?
Anyhow, so long as you have a DOM capable browser that supports XmlHttp and either element.parentElement (IE6) or element.parentNode (Mozilla and the others, this is the W3C implementation)... then it will call the script.
Oh, but if you have edited your templates from the vb default and nuked the following from the postbit templates, then you will prevent the hack from working:
Code:
<div id="post_message_$post[postid]">$post[message]</div>
That's where I get the postId from... by walking up the DOM back to that DIV.