![]() |
[Release] Attached Image will be small..
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> In this example the width of an attached image is 200, edit it the way you would like to have it ;x |
For this modification, in your adminCP goto:
Options > Attachments: Preview images in thread; this MUST be on!! |
1 Attachment(s)
Here's a screenshot, enjoy ;p
|
flup this was released [url=https://vborg.vbsupport.ru/showthread.php?s=&threadid=52344] here and you even posted in the thread :S?
- miSt |
This is a VBcode
Mine is a template mod ;x |
This is not serious.
|
thx
|
flup, go ahead and attach a smilie and see what it does. ;)
|
Precisely; it will fail for small images.
|
Is there a way to have the image stay the same size on up until a set size and it will automatically go into a link instead of being viewed?
|
bit of a stupid mod indeed, forgot to look @ small images :)
|
Installed all good on my test forum. Works nice! Does exactly what I want since most of my users with be using the "attach" option for their pictures rather than the vbcode.
Thanks! Chris |
np
|
I just tried the smaller image test and now I also would be interested if there is a way to get it to ignore the pictures up to the size you set. I really know nothing about coding so I can only sit here and wish I could contribute. LOL
Thanks, Chris |
There's a way with php functions, i'll try to make another version soon :)
The code wud become: PHP Code:
|
Dont know if you are still checking in with this thread but I have installed the vB Attachments - Including Multiple Attachements hack (https://vborg.vbsupport.ru/showthrea...ght=vb3+images).
The problem is that with that hack I have to modify the postbit_attachment template with that hacks code and the 2 dont play well. Not knowing too much at what I am looking at to figure out what is wrong, I can get it to a point where it still thumbnails the pictures, and lets me do the multiple attachments, but all the links to the larger picture all point back to the 1st picture in the post. Any ideas? Here is the code I have mashed together so far: ******* <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]&attachmentid=$value[attachmentid]" border="0" alt="" width="150" vspace="8" hspace="4"> </smallfont></p> ******* Thanks in advance. I will also post in the vB3 Attachment thread to see if I get any input from that author. |
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|