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.
Photo Gallery w/User Upload Using Multi File Upload
Ok I'm very new to PHP so I usually just paste my various extensions together to get what I want so here's my almost coding free idea for a photo gallery.
Features:
Displays a gallery of images on each users account page
Users can upload to a personal directory to change the images on their account page
Obviously other users need see the images in the gallery of the account they are currently viewing not their own images
When a thumbnail is clicked it gets repositioned in the center display area and increased in size
My approach so far:
I have a nice bit of code which does the resizing and displays the images nicely. I can share a link to the code if anyone cares, but it's just basic stuff to display a certain set of named images from a directory.
I also have Multi File Upload set so that all user files uploaded go into directories using their UserID so they could post their images in a discussion and the display extension could simply read them from the UserID directory.
That little bit of coding that seems to be getting in my way:
I don't know how to make the display extension read the UserID of the account page being viewed so that it displays the gallery for that person.
I think I might need a modified version of Multi File Upload so that it only displays on the User Wall (is that possible? Is it a discussion too?) and it only allows certain file names to be given to the uploaded files. i.e. A drop down selection for Picture1 through Picture36, for each attachment. Of course if you updated your pictures while on somebody else's account page since Attachments takes your UserID it would still end up in your directory and not theirs so it should keep people from changing gallery images that aren't their own. Perhaps easier might be to make the User Wall comment posting box have a fixed number of attachment boxes displayed with fixed names for each one and a line of text saying "place images in order from position 1 through x", etc.
It feels close to working but I lack any experience referencing UserID's, and what not. Any thoughts? Oh and as I said I'm new to PHP (I have other programming experience though) so I pretty much lack an understanding of the language and operators so I'll need pretty concrete examples of what to insert. i.e. I'm not going to know what to do if you say something like "overload the UserID".
Features:
Displays a gallery of images on each users account page
Users can upload to a personal directory to change the images on their account page
Obviously other users need see the images in the gallery of the account they are currently viewing not their own images
When a thumbnail is clicked it gets repositioned in the center display area and increased in size
My approach so far:
I have a nice bit of code which does the resizing and displays the images nicely. I can share a link to the code if anyone cares, but it's just basic stuff to display a certain set of named images from a directory.
I also have Multi File Upload set so that all user files uploaded go into directories using their UserID so they could post their images in a discussion and the display extension could simply read them from the UserID directory.
That little bit of coding that seems to be getting in my way:
I don't know how to make the display extension read the UserID of the account page being viewed so that it displays the gallery for that person.
I think I might need a modified version of Multi File Upload so that it only displays on the User Wall (is that possible? Is it a discussion too?) and it only allows certain file names to be given to the uploaded files. i.e. A drop down selection for Picture1 through Picture36, for each attachment. Of course if you updated your pictures while on somebody else's account page since Attachments takes your UserID it would still end up in your directory and not theirs so it should keep people from changing gallery images that aren't their own. Perhaps easier might be to make the User Wall comment posting box have a fixed number of attachment boxes displayed with fixed names for each one and a line of text saying "place images in order from position 1 through x", etc.
It feels close to working but I lack any experience referencing UserID's, and what not. Any thoughts? Oh and as I said I'm new to PHP (I have other programming experience though) so I pretty much lack an understanding of the language and operators so I'll need pretty concrete examples of what to insert. i.e. I'm not going to know what to do if you say something like "overload the UserID".
0
Comments
One thing which needs thinking about is server storage if your site gets busy, or a few members become overly enthusiastic about uploading. It occurs to me that Google, Flickr, etc., probably have easy ways to integrate a user's images into your own site, so the storage issue is resolved if users upload to one of those sites and you integrate the services into yours.
There are threads here about creating a plugin to allow image/video embedding, and if that works then users can embed in posts without storage issues. Or weeks of coding on your part, come to that.