ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Seemingly simple Image Upload problem

July 02, 2007 11:04am

Subscribe [3]
  • #1 / Jul 02, 2007 11:04am

    Eric Shepherd

    8 posts

    Hi everyone,

    Hopefully someone can help me here 😊

    I’m running nearly v 1.6 (1.5.2 only for the languages dir, because my install broke when I tried updating that to 1.6 for some reason). Everything seems to be running fine aside from that little problem.

    Anyway, we’re doing a website with an online car database. Most of our database stuff is written with phpME and just runs on top of EE. We have a form for registered users to add the details about their car and it’s not approved until an admin checks out the listing and modifies it if necessary and then approves it. My problem is, I want to allow users to upload 1 image to go along with their car details they submit. I can’t find an easy way to do this. These are registered members, but not site admins, so it can’t be via the control panel

    I read last night that there’s a member image field with I think would be exactly what we need for this, but I don’t know how to add the image upload field to our form.

    Obviously there are things we’d need for this to be done *right*, like a file manager, or at least a way to view the image when approving the car listing, etc. But if someone could just point me in the right direction, preferably without having to write a bunch of code, buy an add-on, etc, etc, that would be great!

    Thanks in advance!
    Eric

  • #2 / Jul 02, 2007 6:04pm

    Eric Shepherd

    8 posts

    8 reads so far.. Anyone? please?  :red:

  • #3 / Jul 03, 2007 7:31am

    Eric Shepherd

    8 posts

    14 views? Please? someone?  :roll:

  • #4 / Jul 03, 2007 8:21am

    Ingmar

    29245 posts

    My problem is, I want to allow users to upload 1 image to go along with their car details they submit. I can’t find an easy way to do this.

    Try Solspace’s “Freeform” or “File Upload” module, two possible ways. Freeform is free, too.

  • #5 / Jul 03, 2007 9:01am

    Eric Shepherd

    8 posts

    Thanks Ingmar,

    Is there any built in way to do it though? Just to add upload and browse buttons to a form, and then have the image stored as the member image? How are member images stored currently? I would think just using the same mechanism would do what I need. All of these would get a standard size (say 320x240 offhand), so something that scales like a thumbnailer for avatars would be perfect.

    Is this documented somewhere? 😊

    Thanks again!
    Eric

  • #6 / Jul 03, 2007 9:09am

    Ingmar

    29245 posts

    Well, you can allow your users to upload a “profile” photo, but they’d need to go into the backend for that. If, on the other hand, you want to use a SAEF, do take a look at File Upload. Documentation, both on EE and on Solspace’s offerings is plenty.

  • #7 / Jul 03, 2007 3:26pm

    Eric Shepherd

    8 posts

    Would FreeForm allow me to use my existing custom form code, writing to a separate table, etc, to upload a photo?

    How are the images uploaded for avatars in the forum? I don’t imagine everyone here has backend access?

    Thanks,
    -Eric

  • #8 / Jul 03, 2007 4:27pm

    Ingmar

    29245 posts

    Freeform does allow file uploads in recent versions, yes. Avatars are uploaded via the member templates.

  • #9 / Jul 03, 2007 4:32pm

    Eric Shepherd

    8 posts

    Thanks for the info Ingmar 😊

    Can I access the member templates page without having forums enabled on our site? I think eventually we might, but I basically just need to get a photo uploaded by each member, to go with their stored car info. But it’s all in custom database code. I don’t know if Freeform will support using entirely custom code?

    Eric

  • #10 / Jul 03, 2007 4:37pm

    Ingmar

    29245 posts

    Yes, the member templates work without the forum, too. Freeform is an EE module, it will take form data, optionally do something with it (like signing someone up to a mailinglist, sending an email), then store it in the database and display it again on demand. I have no idea what “custom code” you’d like to have supported.

  • #11 / Jul 03, 2007 4:41pm

    Eric Shepherd

    8 posts

    Okay maybe the member templates would be the way to go then? Where can I find info on that? This search doesn’t help, and without the quotes I get the wrong results:
    http://www.google.com/search?num=100&hl=en&newwindow=1&safe=off&q="member+template"+site:expressionengine.com/docs/&btnG=Search


    Custom code in that it uses a lot of PHP stuff (with phpME), a separate set of tables from the EE standard tables, etc. I didn’t know if it was written to work only with the default EE tables possibly?

  • #12 / Jul 03, 2007 4:49pm

    Ingmar

    29245 posts

    Information about the member module can be found, perhaps not surprisingly, in the docs. Freeform uses its own db tables.

  • #13 / Jul 03, 2007 4:52pm

    Eric Shepherd

    8 posts

    So Freeform wouldn’t integrate with all of our existing code then?

    Thanks for the link to the member module. The search didn’t work as expected on that I guess. I didn’t realize it was a module.

    Thanks again,
    Eric

  • #14 / Jul 04, 2007 3:23am

    Ingmar

    29245 posts

    It will, obviously, depend on your code. I am afraid it’s a bit like asking whether, I dunno, the image gallery or the weblog module will work with your existing code. It’s a simple form generator, it will take filled out forms, store them, and display them again. Since it’s a free module, though, why not simply try it to see if it fits your needs?

  • #15 / Jul 04, 2007 3:32am

    Eric Shepherd

    8 posts

    I follow your logic.. My problem is, I’ve put a TON of time into this already, spinning my wheels trying to figure out a lot of things with EE. So I’m trying to find something that I can just use. Instead of experimenting so much and not really getting any results. I already have all of the forms done in phpME code, and everything works. I just need to add a browse button and upload button to what I have written. This seems like such a simple thing.

    I guess it actually needs to be tied to the data, and not the member providing the data, so that rules out the member photo thing. I’ll talk to my friend who did most of the phpME coding when he gets back from vacation and see if we can figure something out.

    Thanks for your help 😊
    Eric

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases