 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
December 22nd, 2005, 01:15 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
| How Do I add PDFs?
I have added the PDF file type to the file-types configuration table and it now uploads okay but it fails to build a thumbnail. That's no surprise.
I've seen suggestions here that one should manually upload thumbnails in such cases. I'm already doing this with most of my larger images anyway using FTP and putting them in uploads/1. Then I process them from there.
I'm assuming an uploaded thumbnail for a PDF would ALSO go into uploads/1. Is that correct or does it go in a subdirectory? In short, where do I put it so that the upload process will find it?
And for the wise guys out there... they won't FIT in the usually-suggested orifice. I already TRIED that! ;-)
Finally, none of the posts I could find say how to NAME an uploaded thumbnail. What file type should a manually-created uploaded thumbnail BE and how should it be named?
Thanks... And Happy Holidays!
Best Professional Regards,
WebSissy
|
| |
December 22nd, 2005, 01:25 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
well it will display the default multimedia file if you dont specify a thumbnail
On a multimedia upload on upload processing it will give you an optional thumbnail upload prompt and you would select a thumbnail then.
|
| |
December 22nd, 2005, 11:30 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
|
Chuck,
Your response seemed to imply that to make the PDFs work I needed to define them as "multimedia" files rather than as "image" files in the Photopost configuration area. I say that because that's the only case where I get prompted for a thumbnail name.
I changed that and now my PDFs upload okay but show up as "multimedia" files using the multimedia icon rather than some sort of PDF icon. But at least the program no longer complains about an inablility to create a thumbnail for the PDF.
But when I try to use another file as the thumbnail for the PDF when uploading, there IS no thumbnail shown for the PDF in the 4 col x 3 row image gallery. Instead, I get a red "x" where the thumbnail should be. However, when I click that "red x" in the gallery display and it shows me the "mid-sized" image, that image is the one I selected as my "optional" thumbnail.
Is that the way it's intended to work? Or is there some way to change that?
Is there an easy way to get the PDF to use it's own ICON type like the multimedia does?
Thanks!
|
| |
December 23rd, 2005, 06:52 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
Well your thumbnail should show
You have a link to your gallery. what version?
|
| |
December 23rd, 2005, 07:38 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
| Quote: |
Originally Posted by Chuck S Well your thumbnail should show
You have a link to your gallery. what version? | Version is 5.14, Chuck.
You are already registered on our site using your comcast addy. I assume you know your password. I have upgraded your account to supermod so that you can look at our settings in the gallery.
IF YOU CHANGE ANY SETTINGS, PLEASE KEEP A CAREFUL RECORD! I WANT TO KNOW EXACTLY WHAT YOU DID!
The gallery you're looking for is one I use solely for testing. it is hidden to normal users. It's name is "test gallery". There are presently 2 PDFs at the front of that gallery. The first was uploaded moments ago with a thumbnail. The second was uploaded with NO thumbnail.
Site url is: www.sonewmex.com |
| |
December 23rd, 2005, 07:46 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
|
One more thing, Chuck,
Again, I ask how do I change the DEFAULT icon for PDFs so it doesn't say "MultiMedia"?
Thanks.
|
| |
December 23rd, 2005, 08:36 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
I would suggest you upgrade to 5.21 as I beleive this was a bug already fixed.
You can not change the default icon without code modification. You would have to make a image and say modify pp-inc.php Code: Content visible to verified customers only.
Last edited by Chuck S; February 14th, 2006 at 08:34 AM.
|
| |
December 23rd, 2005, 10:25 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
|
Thanks, Chuck. I'll try that and let you know what happens. |
| |
December 30th, 2005, 05:53 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
| It worked...
Well, it took me a week to find time to install the upgrade to 5.2.1 but once I installed it, the user-selected thumbnails for PDFs now work correctly. Hurray!!
Thanks for the help, Chuck! And Happy New Year to you too.
|
| |
January 3rd, 2006, 12:42 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Aug 2005 Location: Socorro, NM
Posts: 54
| Hurray... It works! Quote: |
Originally Posted by Chuck S I would suggest you upgrade to 5.21 as I beleive this was a bug already fixed.
You can not change the default icon without code modification. You would have to make a image and say modify pp-inc.php Code: Content visible to verified customers only.
| Chuck...
Just for the record, there was something not quite right about this patch. It gave me a runtime error when I copied it and then installed it in pp-inc.php. However, when I copied the realmedia code that was directly above it and changed it to refer to PDF files instead, that worked fine.
Here's the final code change I made -- taken directly from my now working program. Code: Content visible to verified customers only.
And here's the PDF icon I created and placed into the photopost images directory for this code to access... Code: Content visible to verified customers only.
Just right click and save it with the name pdf.gif in your images directory and you should be good to go!
Thanks very much for the guidance, Chuck. And happy New Year too!
Last edited by websissy; January 3rd, 2006 at 12:47 PM.
|
| |
February 4th, 2006, 10:32 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jan 2006
Posts: 81
|
< This worked for me.
Still gives the Multimedia thumb on image list, but pdf thumb shows in gallery.
|
| |
February 13th, 2006, 11:21 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Feb 2005
Posts: 167
| Quote: |
Originally Posted by ToyotaDiesel < This worked for me.
Still gives the Multimedia thumb on image list, but pdf thumb shows in gallery. | Me to how do we make it so all the thumbnail images are replaced with the .pdf file?
|
| |
February 13th, 2006, 12:02 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
|
Do the same thing in the following function you did above in pp-inc.php
function get_imagethumb
|
| |
February 14th, 2006, 12:14 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Feb 2005
Posts: 167
| Quote: |
Originally Posted by Chuck S Do the same thing in the following function you did above in pp-inc.php
function get_imagethumb |
Humm I must be missing something... I tried adding this
elseif( stristr($bigimage,".pdf") ) {
$thumbtag = "{$Globals['idir']}/pdf.gif";
$imgtag = "<img border=\"0\" $imgsize src=\"{$Globals['idir']}/pdf.gif\" alt=\"\" />";
Under the function get_imagethumb section but all I got was errors. Anyother tips?
Thanks
|
| |
February 14th, 2006, 08:34 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,695
| Code: Content visible to verified customers only.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:45 PM. | |