Create a filter to display the existance of pdf's in an album. Displays a generic image instead so users can access them. Since i use ZP as a private area for my photography i needed a way to give users access to these files.
Anyways the details are on my blog @
http://draekko.org/?e=59Thanks for ZP.
Have fun.
Comments
The file is available on my blog @ http://draekko.org/?e=59
Enjoy
Base your plugin (not filter) on the class-textobject plugin as text most closely resembles PDF files. You have to generate the appropriate HTML for a browser to display the PDF file. Since we don't know what you generated we can't make much of a comment.
As for what i did well it doesn't generate anything. It does display a place holder image. It lets me add pdf files to an album. I needed that. My users know what to look for so its not an issue. Sorry for using the wrong terminology.
Figured it could be useful to others.
Sorry to have wasted my time.
However, sbillard is right as it should be based on the text_object plugin as this is the template plugin for adding other filetypes like pdf. You might want to do it right, don't you..;-)
As explained on my blog i do not need to render anything as i let the browser & plugin handle that. All i needed was a place holder image to let people know that the file was a pdf and to click the download link beneath it. Personally i don't know that i'd want to have my server take the kind of hit that converting a multipage pdf document would have.
So i spent part of the morning looking at both class-video.php and class-textobject.php as well as what i did. Not sure what i would need to change to make it right. Both are very similar.
(Regarding invisible comments. New user's post are moderated as stated and are approved if we don't find spam. So everything gets visible then as we of course don't edits comments itself..;-))
lol yeah i figured it out after my second post. like i said my head was lost somewhere, there wasn't any sunshine there
I need a vacation somewhere with drinks that have little hats or something