Hi. First post & It's kind of complicated.
I have a JS code here - http://jsfiddle.net/QKEVc/13/
That will "try" to limit the image size in my DVZ Shoutbox. (Anti-spam)
The code to post images in shoutbox as most of us know is [img]URL[/img]
But I want to replace these with what I have in that JS like so :
<img class="thumb" src="URL"/>
So the process is as follows :
They click the "Add Image" button, then an input pops up where they insert the image url;
After pressing done, the HTML code goes to DVZ Input like so : [img]THEIR-IMG-URL[/url]<br />So here's where I need the help, I want that to be converted to <img class="thumb" src="THEIR-IMG-URL"/><br />in order for the JS to work.<br /><br />So far, this is what I have :<br />Regular Exp : [img](.*?)[/img]<br />Replacement : <img class="thumb" src="(.*?)"/><br /><br />But this thing won't work and I'm lost. Please help. Thanks in advanced<br />@devilshakerz[/img]
I have a JS code here - http://jsfiddle.net/QKEVc/13/
That will "try" to limit the image size in my DVZ Shoutbox. (Anti-spam)
The code to post images in shoutbox as most of us know is [img]URL[/img]
But I want to replace these with what I have in that JS like so :
<img class="thumb" src="URL"/>
So the process is as follows :
They click the "Add Image" button, then an input pops up where they insert the image url;
After pressing done, the HTML code goes to DVZ Input like so : [img]THEIR-IMG-URL[/url]<br />So here's where I need the help, I want that to be converted to <img class="thumb" src="THEIR-IMG-URL"/><br />in order for the JS to work.<br /><br />So far, this is what I have :<br />Regular Exp : [img](.*?)[/img]<br />Replacement : <img class="thumb" src="(.*?)"/><br /><br />But this thing won't work and I'm lost. Please help. Thanks in advanced<br />@devilshakerz[/img]