flup
05-06-2003, 10:00 PM
This modication to the postbit_attachment template will make your image attachment smaller, so it doesn't mess op the forumlook, after clicking it will apear bigger.
__________________________________________________ _
Open your adminCP and scroll down to Templates > Edit > Expand > Postbit Templates > Postbit_attachmentimage
Replace the whole code with:
code:
<!--<p>--><smallfont>$post[username] has attached this image:<br>
<a href="attachment.php?=$session[sessionhash]&postid=$post[postid]" target="_blank"><img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" border="0" alt="" width="200" vspace="8" hspace="4"></a>
</smallfont><!--</p>-->
__________________________________________________ __
In this example the width of an attached image is 200, edit it the way you would like to have it ;x
__________________________________________________ _
Open your adminCP and scroll down to Templates > Edit > Expand > Postbit Templates > Postbit_attachmentimage
Replace the whole code with:
code:
<!--<p>--><smallfont>$post[username] has attached this image:<br>
<a href="attachment.php?=$session[sessionhash]&postid=$post[postid]" target="_blank"><img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" border="0" alt="" width="200" vspace="8" hspace="4"></a>
</smallfont><!--</p>-->
__________________________________________________ __
In this example the width of an attached image is 200, edit it the way you would like to have it ;x