WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

could pdf's be included in the gallery?

Version:
printPrint


could pdf's be included in the gallery?
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 01/18/05 - 05:50 PM:
quote post
#1
How much of a stretch would it be to include adobe pdf's as upload types? I added the pdf extension to the list of allowed extensions, whick allowed the upload, but no luck on getting them to display. I have a fair amount of users who submit their photos in pdf format (for whatever reason, it's definitely not the most logical choice) and it would be great to be able to display those.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5974
Posted 01/19/05 - 12:46 PM:
quote post
#2
They won't show thumbnails of the actual PDF content, but you can create a default thumbnail for them. Read bottom section of http://scripts.webmastersite.net/wsngallery/manua...

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 01/20/05 - 01:55 PM:
quote post
#3
The thumbnail wouldn't be a problem (your default thumbnail image suggestion would work fine) but, when I click on the pdf that I uploaded now, it won't display in the resulting page. I can click on the File Details: link on the resulting page that allows me to download the pdf but, that's not really what I am looking for.

How could I get the pdf to open in a browser window (providing that they have the pdf browser plugin, of course) when someone clicks on the default thumbnail image for a pdf? Also, could I designate a specific folder that only pdf's get uploaded to, maybe a seperate upload form for pdf's?

Thanks!
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5974
Posted 01/20/05 - 05:29 PM:
quote post
#4
Ah. All non-images are presumed to be downloads when using download.php. Have you tried linking directly, with {IMAGETITLE} ?

Also, could I designate a specific folder that only pdf's get uploaded to, maybe a seperate upload form for pdf's?

No way to do that in the near future. (A separate upload can be done with a custom field field, but there's no way to make it upload to a different directory.)

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 01/22/05 - 12:04 PM:
quote post
#5
No, I haven't really tried anything more than uploading a pdf the default way (I'm doing major changes to my databases before integrating the scripts).

Thanks, Paul (I'll let you know if the {IMAGETITLE} linking works).
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5974
Posted 01/23/05 - 08:07 PM:
quote post
#6
<img src="attachments/{IMAGEFILENAME}"> is actually what a direct display would be, don't know why I said {IMAGETITLE}.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.