Works thanks. But I was wandering if you could do something with tinypic? I know alot more people will use them to host images. I had a smf forum that I placed a pic in the post edit box and it worked great. But is is php based. Opened up a separate window for tinypic. Heres code if you can do anything with it.
Code:
<br /><a href="javascript:void(0);" id="tinypic_show_plugin" onclick="showTinypicPlugin(); document.getElementById(\'tinypic_show_plugin\').style.display = \'none\';"><img src="http://www.mywebsite.comto host image/img/uploadimage.gif" title="'.$txt['tinypic_upload'].'" alt="'.$txt['tinypic_upload'].'" border="0"/></a>
<script type="text/javascript">
tinypic_layout = "wide";
tinypic_type = "both";
tinypic_links = "forum";
tinypic_language = "en";
tinypic_search = "true";
tinypic_autoload = false;
tinypic_callback_url = document.location.href.substr(0,document.location.href.lastIndexOf("/"))+"/callback.html";
tinypic_callback_text = "'.$txt['tinypic_add_to_post'].'";
</script>
<script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script>