mkdevo |
12-17-2005 10:00 PM |
ImageShack upload option when posting
Personally, I have attatchments disabled for regular users, and I always get asked the question, 'where can I host a picture?'.
ImageShack actually provides code to enable you to add an ImageShack upload form on your forum. NOTE: The following code was NOT written by me. It was provided by ImageShack ( here), and I am simply passing it on for those of you who don't know about it.
Install time: < 2 minutes.
INSTRUCTIONS:
In your newreply, newthread, editpost, or pm_newpm templates, FIND:
HTML Code:
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
$disablesmiliesoption
</div>
</fieldset>
ADD AFTER:
HTML Code:
<fieldset class="fieldset"><legend>Upload your images to ImageShack</legend>
<div style="padding:$stylevar[formspacer]px">
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70"> You must
have an iframe-compatable browser to view the ImageShack.us upload form.</iframe></div></fieldset>
Note that this code can be added to any or all of the above templates ( newreply, newthread, editpost, or pm_newpm).
That's it. Enjoy!
|