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.
Attachment Extension 1.4
This discussion has been closed.
Comments
Now -I don't know how-, it works correctly enought 0655 (the default setting) set the files to 0600.
I replace "$this->Context->Configuration['ATTACHMENT_CHMOD']" by "octdec($this->Context->Configuration['ATTACHMENT_CHMOD'] )" and it works.
if( $this->Context->Configuration['ATTACHMENT_CHMOD'] != "" && file_exists($this->UploadPath . $FileName) ) { chmod($this->UploadPath . $FileName, octdec($this->Context->Configuration['ATTACHMENT_CHMOD'])); }
PHP: chmod - Manual
I've got another problem with this extension. When I upload images they're only thumbnailed as long they are below ca. 400 kB. And if they are bigger for example 800 kB they aren' thumbnailed and then the orginal image is shown in the thread...
Version 1.4 - 20.06.2006, Jazzman
- Removed prototype.js and scriptaculous.js from lightbox (they're already part of Vanilla)
- Moved filetype images to images directory and changed style.css accordingly
- Changed PNGs to GIFs because of transparency problems in IE
- Added extra check when looking for image size. If it fails, an image error will be displayed
- Error messages are now also part of the dictionary
- Fixed chmod with octdec (thanks to Dinoboff!!!)
- Upload path and thumbnail path should be an absolute path for download security. Files can now be stored outsite the webfolder!!
VERSION 1.4 REQUIRES AN ABSOLUTE PATH FOR UPLOAD AND THUMBNAIL DIRECTORY! PLEASE CHANGE YOUR CONFIGURATION SETTINGS!
Example:
uploads/thumbs/
should be:
/var/www/mysite/uploads/thumbs/
or for Windows:
C:\www\mysite\uploads\thumbs/
(depending where your upload and thumbnail folder are located)
Notice: Undefined index: ATTACHMENT_DISPLAY_IMAGE_PROCESSING in .../diskussion/extensions/Attachments/default.php on line 532
I can upload files;
It works fine without image processing;
With lightbox image processing, it works (but I can't see the close link);
With thickbox image processing, it doesn't work. Only the grey transparent window appear.
$Configuration['ATTACHMENT_UPLOAD_PATH'] = '/home/web/htdocs/vanilla/uploads/'; $Configuration['ATTACHMENT_MAXIMUM_FILESIZE'] = '512000'; $Configuration['ATTACHMENT_DISPLAY_IMAGES'] = '1'; $Configuration['ATTACHMENT_DISPLAY_IMAGE_THUMBNAILS'] = '1'; $Configuration['ATTACHMENT_THUMBNAIL_PATH'] = '/home/web/htdocs/vanilla/uploads/thumbs/'; $Configuration['ATTACHMENT_THUMBNAIL_X'] = '100'; $Configuration['ATTACHMENT_THUMBNAIL_Y'] = '100'; $Configuration['ATTACHMENT_DISPLAY_IMAGE_PROCESSING'] = 'Thickbox'; $Configuration['ATTACHMENT_SETUP'] = '1';
the error "Undefined Index" is away, but now no File Permissions value is saved
$Configuration['ATTACHMENT_UPLOAD_PATH'] = '/var/www/htdocs/uploads/'; $Configuration['ATTACHMENT_MAXIMUM_FILESIZE'] = '512000'; $Configuration['ATTACHMENT_DISPLAY_IMAGES'] = '1'; $Configuration['ATTACHMENT_DISPLAY_IMAGE_THUMBNAILS'] = '1'; $Configuration['ATTACHMENT_THUMBNAIL_PATH'] = '/var/www/htdocs/uploads/thumbs/'; $Configuration['ATTACHMENT_THUMBNAIL_X'] = '100'; $Configuration['ATTACHMENT_THUMBNAIL_Y'] = '100'; $Configuration['ATTACHMENT_DISPLAY_IMAGE_PROCESSING'] = 'None'; $Configuration['ATTACHMENT_SETUP'] = '1'; $Configuration['ATTACHMENT_CHMOD'] = '0644';
and it works (except what I mention earlier), but it is not fresh installed.
Add it manually
Wiith thickbox image processing, it doesn't work. Only the grey transparent window appear in firefox, not grey transporent window in IE but a white icon with a red cross in the midal of the window.
I just get this message in my access log:""GET /images/circle_animation.gif HTTP/1.1" 404" .
RewriteRule ^discussion/([0-9]+)/(.*)/extensions/(.*) extensions/$3 [QSA,L]
That might fixe similar problems with other extension like SpellShecker