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.

Account Pictures Extension 1.0

2

Comments

  • Any idea why I only get a blank page after I try to save an account icon or picture? I see the images appear in the upload folder (appearing like asd0034eo2k34o2k43o2k134.jpg) but that is all.
  • AccountPictures was working great at first in my test directory, but then I did a fresh install (moving to a root directory, and new database, vanilla install, and new AccountPictures install) and I keep getting this error now when I try to upload account icons and pictures: Warning: move_uploaded_file(.../uploads/AccountPictures/4cd353e1b3bee4df59c3db62a3252b22.gif): failed to open stream: No such file or directory in .../library/Framework/Framework.Class.Uploader.php on line 90 Warning: move_uploaded_file(): Unable to move '/var/tmp/phpiLBs7O' to '.../uploads/AccountPictures/4cd353e1b3bee4df59c3db62a3252b22.gif' in .../library/Framework/Framework.Class.Uploader.php on line 90 I made sure I had permissions set to 777 and even created the AccountPictures folder within uploads to try to help it. As for line 90 it is something in the upload code where it assigns a filename or something. I don't know PHP very well. Any ideas?
  • edited July 2006
    You should check again the path and the permission. That really looks like a permission problem.
    About the name, it is changed on purpose, that shouldn't be the problem.

    And the line 90 of the uploader class is this line : if (!move_uploaded_file($_FILES[$InputName]['tmp_name'], $NewFilePath)) $this->Context->WarningCollector->Add('Failed to upload the file: '.$FileName);
    This mean that $_FILES[$InputName]['tmp_name'] (/var/tmp/phpiLBs7O) is not a valid uploaded file or that he can't be moved (permissions problem or wrong path).
  • I use this extension and I like it.

    I have a simple question - What image types are compatible with this extension?

    My follow-up question would be - Why is there this restriction?

    I have only used PNG files so far.
  • TexTex
    edited July 2006
    I would also like to see PNGs supported. Otherwise the transparent color of those is set to black. At least my test resulted in this. :) The rest of the plugin is just great!

    EDIT: Just realised that the Internet Explorer is messing up transparent PNGs anyway. No need for PNG support from my side anymore. Thanks for the usefull extension, Jazzman!

    EDIT #2: Sorry for the mess. When I upload a GIF with a transparent background, the background is set to black. Bug? And the picture is overlapping a bit: image
  • lamentlament
    edited July 2006
    set the matte color on the .gif to match whatever background color it's going to be on.
  • @ lament: How? :(
  • I'm getting this error after uploading:

    Some problems were encountered
    An error occurred while attempting to copy the source image "talk/uploads/pics4cd353e1b3bee4df59c3db62a3252b22.gif". Your version of php (4.4.1) may not have gif support.

    And I definitely haev gif support. The image gets loaded to the right spot and everything, it just spits out this error and doesn't set the icon. The folder has 777 access and everything. Any ideas, this is driving me nuts.
  • You might want to add in validation incase somebody enters in a URL instead of a file location. Someone on my forum added a URL of a picture from facebook, which didn't work. Alex
  • Is this following functionality intended? Logged in as an admin user I would like to upload pictures for the users (In case they uploaded something I don't like to see in my forum;) But if I use the link "Account Pictures" in the users profil I get redirected to my own profil. Thanks Jan Doe
  • I have got this great extension too. It seems to work well except that icons in discussions are not always resized or cropped as set in the configuration page, and if they are then i can see a white block below it extending over the role description line. Do you know what I can do to avoid that ?
  • Is it possible to have the option of uploading an image from a local drive and from a link on one page? The way it is now is a little bit confusing for people who aren't accustomed with Vanilla.
  • After upgrading to 1.0.1, the fix above for mis-sized icons no longer works...
  • it never fixed mine... my icons have always been skewed even after i implemented the "fix"
  • The "problem" is actually theme-related. It's quite hard to have variable dimensions for icons. Maybe I'll add some theme files to the next release although I still think there should be a better solution :)
  • Would it be easier if it just inserted the icon with an <img> tag instead of trying to make it a background? Then it flows with the username, etc.
  • Yeah pbear, that what I was thinking about ;) But that requires a theme change...
  • Instead of overriding vanilla.css, you add an image (via delegate?) right before the name. Maybe that requires a new delegate. If the image is larger than 32x32 and top left position is the same, you don't even need to worry about removing the background image unless it's a transparent thingy. Or make default background icons pure white squares.
  • hmm... I'm running a theme... clouds...
  • OK, i have created the "uploads/AccountPictures" folder and chmod 777 on both folders. When i try to upload a pic, i get this error: Some problems were encountered You are not allowed to upload (avatar) the requested file type: application/octet-stream How do i correct this?
This discussion has been closed.