PDA

View Full Version : [Release] Attached Image will be small..


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

flup
05-07-2003, 07:51 AM
For this modification, in your adminCP goto:
Options > Attachments:
Preview images in thread; this MUST be on!!

flup
05-07-2003, 07:53 AM
Admin plz move post, this is a postbit modification ;x Sorry for that.
Here's a screenshot

Black Vivi
05-07-2003, 03:28 PM
why don't u just set a max images size limit in the display attachment image options?
this can make tiny images look really horrid aswell...

flup
05-07-2003, 04:49 PM
Correct ;x
Didn't mention that one

Tony G
05-08-2003, 12:15 AM
At your request, off to postbit modifications.
I suggest you document this mod.

MustangBST
05-12-2003, 10:59 PM
I know for a fact you did not write this. I have used this for over 6 months myself

Larry

$ebi
05-13-2003, 08:15 PM
can i see the life demo form this hack?

Tony G
05-14-2003, 05:59 AM
$ebi, the third post in this thread contains the screenshot to this modification.

$ebi
05-14-2003, 07:27 AM
I saw, am not not blind;) only is ask whether, which are also increased pictures with to click, and in such a way on the orginale size come