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

1468910

Comments

  • OK. Navigate (via your FTP Client) to the folder 'extensions' inside this folder there's a folder called 'Attachments' - open it. Inside this 'Attachments' folder there's a file called 'default.php' - open it (any Text Editor should do). There you see lines like: 'application/zip' => array('zip', 'ZIP'), Add your disired filetypes. (^ This line, if it isn't there) Also, inside this same file (default.php) search all instances of 'MINE' and replace them with 'MIME', it's a typo. Maybe that's why it doesn't work for you 'cause ZIP should be a default. Save the file and try again to upload a .zip. I have no idea if this will work since I learned all that by reading THIS thread... Maybe someone could confirm I'm not talking bs...?! Good luck.
  • @Toni thanks a lot for ur help i got it working :) the line u provided was already there in default.php, but it dit help me, i checked out the error it gave and edited the line application/download and added .zip extension to it. thx a lot dude ur a life saver
  • Alright, I got another one that's a little tricky, thus for I need help. Please. What I want to do is upload files with the Attachment plugin and define that, if it's a certain filetype it posts the path (URL) to the upload instead of a postbackaction. Then the result should be that, if someone uploads an Mp3, the JQmedia plugin turns it into a Player. Am I on the right track? Do you think it's possible? If I would accomplish this I would be one step closer to the perfect board. We certainly need a player for uploaded files. Any alternative solutions? Thanks!!!
  • Chris Passeno:
    Is there an easy way to change the CSS for Attachments to allow my images (I've got inline images, jquery, thickbox, attachments, mulitple files) to show up in two columns?

    I'm trying to use it as an impromptu gallery.

    http://www.passeno.com/community/?CategoryID=14
    In response to this question, it would be nice as an option.

    It currently makes sense as it is since when you have non-pictures, a vertical list makes the most sense, but it would be a great little switch to flick :) Maybe even have it conditional - if attachments are only pictures, float the thumbnails inline.

    Nice idea - any chance of this as an update Jazzman?
  • Minor (very minor) complaint: The add-on doesn't have a readme.html file.
  • Edited to delete previous post. Problems have been healed.
  • Thank you for the Attachments and the In-Line Images extensions. I installed them without incident and they work beautifully. My forum membership is raving about the added functionality. Now I may need to purchase more server hard drive space. :) Thanks!
  • Found an issue with two Vanilla forums using a single DB. The retrieve or links use the standard database extension, regardless of which database has attachments installed. Hard to describe, but let me attempt. One forum has a database extension of Issues_ and the other the standard LUM_ I've enabled the extension in the Issues forum, and upload files, uploads fine. Trying to download the extension fails, because there is no record in the database (the record is in the Issues_ database, but not the LUM_database) its strange, any suggestions?
  • It seems as thought 1.4 had thumbnial functionality, but this one does not. Can anyone suggest the best thumbnail addon in their opinion to work with this mod please? Cheers.
  • Are you using inline images?
  • Yes i am.
  • Does that not do thumbnailing? I'm pretty sure it will.
  • If it's setup correctly, Inline Images (with Attachments 2) does and will do thumbnailing of images. Just go to the Inline Images extension settings and change the Max Width to something like 125 - that will give you nice thumbnails.
  • Okay... I'm getting this error when I try to access a discussion after I turn on this extension...

    -----------------

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Functions.php on line 522

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117

    Notice: Undefined index: Attachment in /home/pushing1/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 251
    A fatal, non-recoverable error has occurred
    Technical information (for support personel):

    Error Message
    An error occurred while retrieving attachments.
    Affected Elements
    AttachmentManager.RetrieveAttachments();

    The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as AttachmentID, a. as UserID, a. as DiscussionID, a. as CommentID, a. as Ti' at line 1

    For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs

    -------------------

    Any ideas on what could cause this?
  • look in your conf/database.php file. you should see these lines:
    $DatabaseTables['Attachment'] = 'Attachment'; $DatabaseColumns['Attachment']['AttachmentID'] = 'AttachmentID'; $DatabaseColumns['Attachment']['UserID'] = 'UserID'; $DatabaseColumns['Attachment']['DiscussionID'] = 'DiscussionID'; $DatabaseColumns['Attachment']['CommentID'] = 'CommentID'; $DatabaseColumns['Attachment']['Title'] = 'Title'; $DatabaseColumns['Attachment']['Description'] = 'Description'; $DatabaseColumns['Attachment']['Name'] = 'Name'; $DatabaseColumns['Attachment']['Path'] = 'Path'; $DatabaseColumns['Attachment']['Size'] = 'Size'; $DatabaseColumns['Attachment']['MimeType'] = 'MimeType'; $DatabaseColumns['Attachment']['DateCreated'] = 'DateCreated'; $DatabaseColumns['Attachment']['DateModified'] = 'DateModified'
    if you don't see them, check the permissions on that file. make sure it is writable, and try disabling and re-enabling the extension.
  • I think I know the problem, I have my database.php in a different location. Guess it doesn't know that! Doh! ^_^

    I'll do that now...

    ----

    It worked by the way... Sweet, thanks.
  • When posting a new discussion, I get a blank page if the Attachment Extensions hits an error. After some digging, I found that the function in question wasn't calling the WarningCollector.

    To get the expected warning/error message, change the following code in default.php from:
    // Save Attachments function DiscussionForm_SaveDiscussionAttachments(&$DiscussionForm) { $Discussion = &$DiscussionForm->DelegateParameters['ResultDiscussion']; $AttachmentManager = &$DiscussionForm->DelegateParameters['AttachmentManager']; $AttachmentManager->DiscussionID = $Discussion->DiscussionID; $AttachmentManager->Comment = &$Discussion->Comment; $AttachmentManager->SaveAttachments(); }
    to:
    // Save Attachments function DiscussionForm_SaveDiscussionAttachments(&$DiscussionForm) { $Discussion = &$DiscussionForm->DelegateParameters['ResultDiscussion']; $AttachmentManager = &$DiscussionForm->DelegateParameters['AttachmentManager']; $AttachmentManager->DiscussionID = @$Discussion->DiscussionID; // Call WarningCollector if we don't have a DiscussionID if(empty($Discussion->DiscussionID) || $Discussion->DiscussionID == ''){ return $Context->WarningCollector->Iif(); } $AttachmentManager->Comment = &$Discussion->Comment; $AttachmentManager->SaveAttachments(); }
  • Stash said:"If it's setup correctly, Inline Images (with Attachments 2) does and will do thumbnailing of images. Just go to the Inline Images extension settings and change the Max Width to something like 125 - that will give you nice thumbnails. " -- it will resize the image, but doesn't allow for user to click on it to show full size image. Is there a way to do this too?
  • Works just like that for me...

    Either I'm misunderstanding what you're trying to achieve, or you've got a busted install. Might be worth deactivating the extension, deleting it and then reuploading a fresh download of it from the addons site.
  • Hello! I think, I need your help. I can upload all files without any errors and I'll see this files on my server. But I don't see downloaded files. Besides, my browsers think (Opera, IE7), that it is all .jpg files. http://forums.entropia.us/discussion/1/testovaya-tema/#Item_8 I'm not sure, but I think it is after php upgrade from 5.2.0 to 5.2.4.
Sign In or Register to comment.