Results 1 to 7 of 7

Thread: How to Add Documents in the Image Unloader

  1. #1
    Thread Starter
    Newbie rhill's Avatar
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to Add Documents in the Image Unloader

    Is there a way to add documents and images through the "Post a Classified" page where it says, "Add images (images must be under 1 MB)" - I would like to be able to allow users to upload .pdf and .doc, etc.

  2. #2
    jschodde's Avatar
    Join Date
    Apr 2009
    Location
    Anthem, AZ
    Posts
    154
    Thanks
    3
    Thanked 1 Time in 1 Post

    Re: How to Add Documents in the Image Unloader

    Me too!

  3. #3
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: How to Add Documents in the Image Unloader

    Yes, if you go into the form_process.php file and search for this line you can add other file types.

    Code:
    $limitedext = array(".gif",".png",".jpg",".jpeg");

  4. #4
    dubya's Avatar
    Join Date
    May 2009
    Location
    Canada
    Posts
    1,000
    Thanks
    115
    Thanked 107 Times in 93 Posts

    Re: How to Add Documents in the Image Unloader

    Neat trick.
    Useful for .pdf & .bmp etc... but I'm not sure I'd want users to share .doc files.
    The search button. Your new best friend.
    - Dubya

  5. #5
    Thread Starter
    Newbie rhill's Avatar
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to Add Documents in the Image Unloader

    Thanks for the help ... a very easy fix.

    Now for one more question ... how would I go about viewing the .pdf file I have uploaded? If I right click and open in a new tab or window, it displays correctly but it will not load through the lightbox. Thoughts?

  6. #6
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: How to Add Documents in the Image Unloader

    That is a bit more tricky. Since the file uploader was designed only for images, the fancybox obviously won't work. You'd have to write some code to detect that it's not an image and then don't include it in the fancybox display. I didn't think about that when I answered your question. In short, it won't really work unless you do some custom development.

  7. #7
    Rookie
    Not a Verified Customer
    ketok's Avatar
    Join Date
    Aug 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to Add Documents in the Image Unloader

    It would be great to see this capability added in a coming update.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Displaying a Main Image or Large Image for listings
    By kwave12 in forum ClassiPress General Discussion
    Replies: 20
    Last Post: December 10th, 2010, 03:47 PM
  2. Remove small image thumbnail when using only 1 image.
    By maggisam in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 25th, 2010, 04:46 PM
  3. How to disable Image1, Image 2, Image 3 from a form.
    By QM360 in forum Help Using ClassiPress
    Replies: 3
    Last Post: April 15th, 2010, 03:16 AM
  4. [SOLVED] Option to change No Image Available image
    By kiltin in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 12th, 2010, 10:50 PM