Topic: Adding ImageShack Image uploader to your PunBB
Hi,
I was looking for a way to minimize my server load but again offer an easy way for people to upload and post image(s). I was looking over some options and I came up with this. I hope it you will like it guys.
First step, BACK UP! BACK UP! BACK UP!!! (hehe)
1. open post.php and locate (approx line 516)
if (!empty($checkboxes))
{
?>
</div>
Add after....
<div class="inform">
<fieldset>
<legend>Upload Images using ImageShack(tm)</legend>
<div class="infldset">
<div class="rbox">
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="80">Update your browser for ImageShack.us!</iframe><br /><br />
Note: To include image on post, use the form above and after it is uploaded, choose option "<b>Hotlink for forums (1)</b>, copy and paste inside message box.
</div>
</div>
</fieldset>
</div>
Save file.
2. open viewtopic.php and locate (approx line 382)
<p><input type="submit" name="submit" tabindex="2" value="<?php echo $lang_common['Submit'] ?>" accesskey="s" /></p>
Add before...
<div class="inform">
<fieldset>
<legend>Upload Images using ImageShack(tm)</legend>
<div class="infldset">
<div class="rbox">
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="80">Update your browser for ImageShack.us!</iframe><br /><br />
Note: To include image on post, use the form above and after it is uploaded, choose option "<b>Hotlink for forums (1)</b>, copy and paste inside message box.
</div>
</div>
</fieldset>
</div>
Save and upload both files.
This will include a small box that allows users to upload images through ImageShack(tm) through your website.
I find this cool since it allows people to post images and likewise saving you lots of bandwidth because of images being hosted on another server.
I hope it helps.
you will be able to find samples from my PunBB project
I hope it helps.
Paul