Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Attachment Extension 1.4

145679

Comments

  • I don't know. I can delete them by editing them.

    But a global document manager would be good.
  • This is not good, I really love the attachment mod but I hope it isn't this flakey, wonder how I can delete other users files then, I can do my own...
  • Oups, you are right. I tried and the delete attachment is away when i try to edit a post from someone else
  • whoah, that doesn't sound good. also after my install now the avatars on the blogs seem to be effed up: they are much heigher than they were before, but in e.g. the userlist they are fine. could this have anything to do with this attachment add-in?
  • I can't seem to get this working at the moment, despite not having any other potentially conflicting extensions (I only have the Textile one installed). But when I enable the extension and open the Attachment Settings screen, it doesn't matter what values I enter in the form, hitting save doesn't update the conf/settings.php :( the screen refreshes after submission, at which point all the fields are blank! File permissions for my settings.php are set to 611 (rw-r--r--) so I don't think it's a permission problem.... any ideas?
  • I had to set the permissions to 646 to get it to work...
  • aahh I see it now, I had actually skimmed that post already, I just didn't pick up on the relevance! Many thanks Dinobuff
  • noinfo.de, 3 days ago
    <snip />After reading this thread I stumbled upon the "improved" code and managed to change it back to the non-resizing version. While I could do it, I know a lot of people who couldn't.

    So I ask if it may be possible to provide a configuration option for this behaviour so everyone can toggle the resizing on and off as they like.
    I 2nd that emotion.

    It would be nice to have a simple check box to turn this behaviour on and off, perhaps even with a text box after which specifies longest side size for resizing.
  • And just for another feature request... :D

    I don't suppose it is possible to make the ATTACHMENT_ALLOWED_FILETYPES editable in the "admin" section as well is it? I will look at being able to do it myself, but I suck at PHP, and I'm not just being modest ;)

    Oh yeah, and it currently hates spaces and full stops in file names. Is there a way to stop it choking on that?
  • I'm working on Attachments version 2.0..... it will have many more configuration options so you can change it to your needs. Also, it will have a testing option to check if all permissions are set, folders exist, etc. Also, I will build it more efficient so it won't have this much trouble installing it. I'll keep you informed on the progress.
  • Thanks Jazzman, the release of my forum depends on this! Also, is this something I'm doing wrong with the current version? All my members jpg attachments won't be resized... only attachments I make get resized with GD, none of 'members' do... theres no permission or anything though is there?
  • I've noticed that big pictures can't get resized for some reason. Maybe because of their size, or dimensions bigger than 1280x1024.. dunno... I'm also thinking of adding ImageMagick as an option.
  • ImageMagick as an option would be absolutely awesome.
  • Don't forget integrating .swf posting support if you can! This is essential to my boards... Thanks in advance. Hey, maybe I can do some animation for you in exchange for all your hard work. Let me know: contact me @ www.cartoonmonkey.com c
  • Also these were 640 x 480 images, I as an admin can post big images, all mine are 800x600 and yet they use the GD correctly. I think it has to be linked to the roles some how.
  • Yep, so all I'm doing to fix it right now is deleting the files directly from the ftp which gets rid of it from the posts and then reuploading the exact same images. When I do it, it sets them in my nice 200 x 200 thumbnails. Whats going on there?? Otherwise for me this works beautifully. Its really quite annoying that it does that however. Because otherwise I think this is probably my favourite extension out there! :)
  • Interesting however that I signed in as a member on another account I have, posted a new discussion with pics and it resized absoloutely fine. So I have no idea what gives, the image I attached was 1410x990 dont get much bigger than that!!! Yet it handled it perfectly. But some users when they post it's just skipping the thumbnails and displaying the huge images.

    Note: I did change a few things in default.php before doing this. Like the chmod line to '777' instead of leaving it blank

    AddConfigurationSetting($Context, 'ATTACHMENT_MAXIMUM_FILESIZE', '9999999999999');
    AddConfigurationSetting($Context, 'ATTACHMENT_CHMOD', '777');
  • AddConfigurationSetting($Context, 'ATTACHMENT_MAXIMUM_FILESIZE', '9999999999999');

    depend of your php setting as well (2Mo by default)
  • @bugme

    I believe you can just add this line to default.php:

    'application/x-shockwave-flash' => array('swf', 'SWF')

    at the bottom here:

    $Configuration['ATTACHMENT_ALLOWED_FILETYPES'] = array (
    'image/png' => array('png', 'PNG'),
    'image/jpeg' => array('jpg', 'jpeg', 'JPG', 'JPEG'),
    'image/pjpeg' => array('jpg', 'jpeg', 'JPG', 'JPEG'),
    'application/pdf' => array('pdf', 'PDF'),
    'application/x-pdf' => array('pdf', 'PDF'),
    'application/zip' => array('zip', 'ZIP'),
    'application/x-zip-compressed' => array('zip', 'ZIP'),
    'application/octet-stream' => array('rar', 'RAR'),
    'text/plain' => array('txt', 'TXT'),
    'application/x-gzip' => array('gz', 'GZ', 'tar.gz', 'TAR.GZ'),
    'application/download' => array('rar', 'RAR'),
    'application/x-shockwave-flash' => array('swf', 'SWF')
    );


    But this is untested, and I'm not sure how it'd render, or if it'd just download.

    If you want to be able to embed swf's into your posts, and your using the htmlformatter extension, there are a couple of lines you can take out of that default.php to allow embeding of that filetype, while still disallowing script.
  • @ a_j:  I did exactly this for .mht files and it worked perfectly, simply listing the file as a text UL link.And yes, yes I know, .mht is a heathen proprietary format, but this is for an intranet, so ner :P

    @ jazzman:  If I can be of any assistance with anything what-so-ever, just give me a shout ;)
  • Hi..i got this error when using File Attachment plugin:

    Notice: Undefined variable: Whispered in
    /home/u3769/domain/client.zeusbox.org/web/extensions/Notify/default.php on line 154


    I think it's conflict with the Notify add-on. Not sure which one to blame..i am just using Vanilla less than a week :-p

    Sorry if this error has been reported or commented, just want a quick answer.
  • can anyone tell me how i can go about modifying the allowed file formats that can be attached. i'd like to allow mp3 files specifically.
  • As far as resizing goes, my server times out from time to time when resizing with filebrowser--maybe that is what is keeping the large images from being thumbnailed?
  • weird jazzman. it uploads images but on clicking it will show a grey area, it will show the picture fine, if you open it 'in other tab' [... deleted ...] aah, what are these? how should I use them? image processing: lightbox etc
  • how to set permission? like create new role that has abilities to upload pictures? not possible now?
  • i am using lightbox with the attachment extension for vanilla. i load the image fine...it has a thumbnail. when i click on the thumbnail, it loads the iamge on the transparent background, as it should, then it disappears after loading, leaving the transparent background. i think it has to do with the css applied through a theme across the forum...is there any way i can force attachments to use lightbox.css to work properly? i am very new to all of this css stuff...thanks
  • I've just downloaded Attachments 1.4, and I can't seem to get it to work. Specifically, when I attach a file and hit &amp;quot;add your comments&amp;quot;, the comment is posted and the attachment is nowhere to be found, no matter the filetype. No errors show up, no files appear in the upload directory. I set up the absolute paths to directories chmod'd 777 and left the other settings at their defaults, which as best I can tell should have worked fine. No .htaccess editing was done. I've got a ton of other extensions enabled, so maybe a conflict occured? With no error showing up, it's hard to say. Anyone have any ideas what's up? EDIT: Apparently, this extension doesn't work with Safari. It works under Firefox just fine. Anyone know why?
  • Thanks for your extension Jazzman. I was hoping someone would create something like this, and couldn't have asked for anything more elegant than your implementation. Why no Safari support though? I know the incompatibility is in the MultiSelector(), but I'm pretty sure I've used ones that work fine in Safari in the past. I'd try and help-out myself, but as soon as you add JavaScript to the mix I get a bit lost.
This discussion has been closed.