1 (edited by Azakur4 2005-10-13 05:53)

Topic: ImageShack

well, this is a simple mod for punbb, with this you cand upload your pictures while you are post a message oki.

the mod

open post.php and find this if you have easy_bbcode

<?php endif; require PUN_ROOT.'easy_bbcode.php'; ?>                        <label><strong><?php echo $lang_common['Message'] ?></strong><br />

if you don't have easy bbcode installed find this

<?php endif; ?>                        <label><strong><?php echo $lang_common['Message'] ?></strong><br />

and replace with this if you have a easy bbcode installed

<?php endif; require PUN_ROOT.'easy_bbcode.php'; ?>    
<!-- begin imageshack mod -->
<iframe src="http://www.imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="300" height="100"></iframe>
<!-- end imageshack mod -->
<label><strong><?php echo $lang_common['Message'] ?></strong><br />

if you don't have installed the easy bbcode replace with this

<?php endif; ?>    
<!-- begin imageshack mod -->
<iframe src="http://www.imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70"></iframe>
<!-- end imageshack mod -->
<label><strong><?php echo $lang_common['Message'] ?></strong><br />

now, in edit.php

Find this: if you have installed the easy bbcode

<?php endif; $bbcode_form = 'edit'; $bbcode_field = 'req_message'; require PUN_ROOT.'easy_bbcode.php'; ?>

if you don't have installed the easy bbcode find this:

<?php endif; $bbcode_form = 'edit'; $bbcode_field = 'req_message'; require PUN_ROOT.'easy_bbcode.php'; ?>

well, add after:

<!-- begin imageshack mod -->
<iframe src="http://www.imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70"></iframe>
<!-- end imageshack mod -->
El Mejor Lugar de la Red - Corporación Azakur4

Re: ImageShack

Neat, didn't know ImageShack allowed remote uploading.
Good work!