Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Attachments 2.0 and Inline Images 1.1
I've released the new and improved Attachments 2.0 which now uses a SQL table to store attachment information. You can import your old attachments with just a click on a button.
Inline Images is the first of many which is an extension for Attachments 2.0. It will display all uploaded image attachments and resize them on the fly if they exceed a maximum width. Users can also display those images inside their comments by using an image tag (e.g. [Image_123]).
Download: Attachments 2.0
Download: Inline Images 1.1
If you find any bugs, let me know
Enjoy
Inline Images is the first of many which is an extension for Attachments 2.0. It will display all uploaded image attachments and resize them on the fly if they exceed a maximum width. Users can also display those images inside their comments by using an image tag (e.g. [Image_123]).
Download: Attachments 2.0
Download: Inline Images 1.1
If you find any bugs, let me know
Enjoy
0
This discussion has been closed.
Comments
I've changed:
...->NewContextObject(&$DiscussionForm->Context, 'AttachmentManager');
into:
...->NewContextObject($DiscussionForm->Context, 'AttachmentManager');
Stupid little '&' sign :P
Also updated the zip file
Fancy options like image processing - that could be buggy - will be added with other extensions.
I'll give it a shot on my test forum and see if its stable enough for the live forum.
'application/download' => array('rar', 'RAR')
to this:
'application/download' => array('rar', 'RAR', 'pdf', 'PDF')
if you want to move it up, open up Attachments/Default.php and change these two lines:
line 728: change "PreButtonsRender" to "PreCommentRender"
line 733: change "PreButtonsRender" to "PreCommentsInputRender"
I hate to be dense, but I'm not getting the [Image_1] syntax. Where do I find the image number?
I can see the image I uploaded at the end of the comment...What is the purpose to access it via [Image_###] in the message, if that's the only one I can use? If I use [Image_###] then will this one at the end not appear? Being at the end seems perfectly ok for ZIPs, PDFs, and the like.
Hmmm... Maybe I'm thinking of the extension's function in the wrong way.