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
myforum.com 192.168.1.2 - - [24/Jun/2006:11:11:36 +0100] "GET /discussion/###/#/title/extensions/Attachments/lightbox/images/closelabel.gif HTTP/1.1" 404 1181 "http://myforum.com/discussion/###/#/title/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4"
discussion/###/#/title/extensions/Attachments/lightbox/images/closelabel.gif need to be change in extensions/Attachments/lightbox/images/closelabel.gif. I added these rules at the end of Friendly Urls rules:
#Prevent some little bad effects of Friendly Urls # on relative links in some extensions RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L] RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L]
And it seems to work, but they are the first rewrite rules I write, so I can't be sure it is good enought.
Have you created uploads/ with write permission for the apache user?
$Configuration['ATTACHMENT_CHMOD'] = '0644';
Add it if you can't find it
Have you tried to upload a picture (get an error message) and try again to change the setting. Like I said, after a first upload, the attachment setting wasn't not blank.
... $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'; ...
I just installed Vanilla 1. Created uploads and uploads/thumbs/. Checked the owner (apache user or cgiwrapper user) and the mode (2750). Enable the extension. Create a message with an attachment. Finally I changed the "image processing" setting to lightbox (Thickbox is buggy in the 1.4version of this extension).
I tried to change the File Permissions setting and couldn't. I had to add it directly in setting.php (sorry stinger). However the default mode is 600 and should be enought in most of the case. If it need to be changed add "$Configuration['ATTACHMENT_CHMOD'] = '0666';" in conf/setting.