Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorSaS
    • CommentTimeNov 26th 2006
     
    Dear All,

    Perhaps you can help me on this one. I understand this is a bit more than just an information query as it implies some customization of Plogger. However, this little local project has some budget to give a reasonably fair retribution to the person who would code this.

    I need a form allowing users to upload their own pictures but there are a limited number of constraints I need to take into account. Sadly, I am not a that techie literate and I have reached my limit ! Actually, I feel able to code each of these requirements individually, but when they have to come all together... what a mess !

    This is the context :
    1.
    when a user lands onto the (to come) public upload page, an existing session will "follow" him/her bringing the $_SESSION['email'] as a unique ID (basically, this upload page will be located into the existing ID/password protected are of the website).
    It would be great if this upload page can be built according to the index.php page of Plogger : i.e., basically, an empty page including other pages and functions [see "Integrating a Plogger gallery" on this page http://www.plogger.org/docs/config/#configuration ]

    2.
    the pictures to be uploaded should not exceed a certain size (in pixels) and a certain weight (in Kb)

    3.
    nice to have : there should be a validation for the upload (for instance, asking the user for his ID/password that then should be equal to the $_SESSION['email'] and $_SESSION['md5(password)'] coming together with the session)

    This is the problem (my requirements) :
    1.
    If the user has never uploaded any picture before, a new collection must be automatically created for him into the 'images' folder (user's email address --cleaned/reformatted as blabla[at]domain[dot]com-- must be used as the name of the collection)

    2.
    if the user has already made previous uploads (i.e., if a folder having his email as name already exists in the 'images' folder), s/he can upload into his/her collection (but not into collections belonging to others).

    3.
    The previous point implies user cannot select collections to upload to but have only the choice of uploading into existing albums or create a new album into his/her own collection. [[Please, note than everybody can see all the collections/all the albums/all the pictures in the public gallery]]

    ### I guess all of this would imply some alteration to the standard plogger tables in order to introduce additional fields

    4.
    Then, upload.

    5.
    HOWEVER, because of the law in the country I live in, the pictures cannot be published without having been validated. Therefore, the upload process must allocate by default the value, say, 'N' to a 1-character validation field somewhere in the 'pictures' table. The upload script should also inform by email the webadministrator that a new picture was posted.
    The validation process could be added into a new tab in the admin pannel : a list of non-validated pictures would appear, perhaps with a reasonably big thumbnail allowing to see the whole picture, and a 'validate' button next to each picture. Clicking that button would turn the validation field into, say, "Y". (In case of doubt, clicking on the picture would open it a bigger size, allowing the webmaster to decide whether validate or not. Non validate pictures would be cancelled from the DB and from the 'image' folder every once in a while).

    6.
    in the public gallery, only the validated='Y' pictures are displayed, and can be searched, etc

    This is the big picture of my requirements. If you are interested in coding this, feel free to contact me salvino[dot]salvaggio[at]gmail[dot]com

    all the best
    ---SaS
    • CommentAuthorSaS
    • CommentTimeNov 30th 2006
     
    Any reaction ?

    ---SaS
    •  
      CommentAuthormike
    • CommentTimeDec 1st 2006
     
    Looks like a fun project. Wish I had time to help you man =)