Results 1 to 11 of 11

Thread: User upload image when adding link

  1. #1
    Join Date
    Sep 2004
    Posts
    162

    Default User upload image when adding link

    Any way to have the user upload an image when they are adding a link. They admin should then be able to approve the image AND link at same time. I think the current system makes it so you add a link and then after you are approved you can add a image but i need the user to do it all at the same time. Any ideas? Also, Will pay $ for such a feature.

    brick
    Last edited by brickholius; 03-03-2005 at 11:54 AM.

  2. #2
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    the problem is that the image filename is taken from the listings ID number, and you dont get an ID number until the listing is accepted.

    Maybe it could be done, but you would need to name the pictures differently not using the ID, then write the information to the temp_table ready for approval...
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  3. #3
    Join Date
    Sep 2004
    Posts
    162

    Default

    good point. This throws a wrinkle in my plans for indexu. Do you think you could come up with a solution inspireme to this issue or anyone else? brick

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by brickholius
    good point. This throws a wrinkle in my plans for indexu. Do you think you could come up with a solution inspireme to this issue or anyone else? brick
    the problem is that there needs to be a way to "link" the link listing to the image. In other words you need a unique identifier for both the link listing and the image itself. The link_id serves as that unique identifier. And the unique identifier between the two must be created simultaneously at the time the listing is being added with uploading of the image.

    Kind of like creating a message here on the forum and attaching a file or image.

    I see only two options. One, turn off the feature that requires link approval. this way the link is automatically added and the link_id is created for use with the image filename. the code would still need to be changed to allow for this.

    Second, add another field (probably numeric) to the idx_link table that is always going to be unique. Once again the code would need to changed to use this number.

    And merging the add link listing code with the upload image code looked messy...



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Would this work?:
    remove the need to except links, this allows people to upload images straight away, now add a hidden field to the add_form, called "suspended"=yes allowing the image to be created, uploaded, but not seen until you unsuspend?

    just a though, it may cause some other problems.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  6. #6
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Never played with this feature, but why not only upload the image and save the image name as filed info.
    Than use this field in image-tag ?
    Problem could be double names for images, but by example you could only take images named as the domain ?

    Frank

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by inspireme
    Would this work?:
    remove the need to except links, this allows people to upload images straight away, now add a hidden field to the add_form, called "suspended"=yes allowing the image to be created, uploaded, but not seen until you unsuspend?

    just a though, it may cause some other problems.
    yep, you could do it that way. there is already a suspended field os you could just use that if you want.

    you would need to decide how certain things are done. For example, would it count as a link? how would its status as a "new" link be affected? then look for all of the SQL statements using the link table and add the suspended field if it it not already there.


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  8. #8
    Join Date
    Sep 2004
    Posts
    162

    Default

    So im having a programmer make it so my users can upload an image when adding a link. The admin can view the image and link when approving the listing. From my admin setup menu i can globally select the max dimensions of the image for upload. Once approved the user can then logon to their account and go to edit links and see the link and image. Most of it is complete just waiting on a few more detail changes.

    And thanks to Saintsr's add multiple links mod people can add as many links as they want with admin approval of course.



    Brick

  9. #9
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Sounds nice, please let me know if you have working version

    Frank

  10. #10
    Join Date
    Jun 2005
    Posts
    25

    Default

    I would like to add 3 more custom fields , is it possible? if yes please post herre. And also i request you regd image upload feature.

  11. #11
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    You can simple add own fields in admin area.

    Frank

Similar Threads

  1. upload image problem >script not open
    By karel in forum v5.x
    Replies: 0
    Last Post: 08-08-2004, 01:59 PM
  2. Image upload for modifier
    By lordkinjo in forum v5.x
    Replies: 4
    Last Post: 10-09-2003, 06:38 AM
  3. Getting full control of image uploader
    By dody in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 08-20-2003, 05:14 PM
  4. INDEXU FEATURES
    By Hart_House in forum Pre-Sales Questions
    Replies: 13
    Last Post: 06-30-2003, 11:57 AM
  5. Image upload problem
    By tariqali in forum v5.x
    Replies: 7
    Last Post: 07-13-2002, 09:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •