Previous Thread
Next Thread
Print Thread
Hop To
Show PDF #263230 10/09/2019 12:33 AM
Joined: Aug 2006
Posts: 95
Geoff Offline OP
Journeyman
OP Offline
Journeyman
Joined: Aug 2006
Posts: 95
I am not sure what the issue may be for the Show PDF feature for attached PDF files. When you click on it, it gives message “No Preview Available.” When you click on the icon with arrow point out of a box, it takes you to Google doc which also says, “No preview available”. Any idea which what I am doing wrong?

Attached Files 5866373E-39DF-49F5-8743-C68EFDBBED96.pngEA2EAAE9-E0B2-43B5-AC71-098F51F080A1.png

I am a Superstar! Testing signature here
Re: Show PDF [Re: Geoff] #263231 10/09/2019 7:26 AM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Could it be a broken PDF? one that was not completely uploaded/attached?
Do you have a browser extension blocking the third-party domain communication?

Attached Files
Attached PDF document
ALLIGATOR CRAFT.pdf (408.08 KB, 13 downloads)

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF [Re: Geoff] #263232 10/09/2019 4:02 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
The odd part is the download links work but not the preview.
Could it be that pdf is not a allowed attachment file?
Even though it is saved.

Or could it be it was originally saved in google docs. And uploaded from there.

Last edited by Ruben; 10/09/2019 4:05 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Show PDF [Re: Geoff] #263233 10/09/2019 4:11 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
This is the error displayed when attempting to attach a file that is not configured within the "Allowed Attachment File Extensions" setting -

an *.swf (ShockWave/Flash) file, for example -
[Linked Image]


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF [Re: Geoff] #263234 10/09/2019 4:12 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Attached are the first 6 pages from a book. There is a password on the pdf. That password is, "abc123"

Attached Files
Attached PDF document

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF [Re: Geoff] #263235 10/09/2019 4:15 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
I understand.that
Just thought there may be a hole for a pdf or if it is a google doc file.
That is the only thing I came up with thinking out of the box.
What is weird is the download link works just not the preview.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Show PDF [Re: Geoff] #263236 10/09/2019 4:17 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Attached is a regular text file with the content being only, "hello world"
The file extension was changed from "txt" to "pdf"

Attached Files
Attached PDF document
New Text Document.pdf (11 Bytes, 7 downloads)

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF [Re: Ruben] #263237 10/09/2019 4:19 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Originally Posted by Ruben
What is weird is the download link works just not the preview.


Do you have a link to the page with the attachment, so I can inspect it?

thanks

Last edited by isaac; 10/09/2019 4:19 PM.

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF [Re: Geoff] #263238 10/09/2019 4:38 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
After a bit of searching through your forums, I was able to find this post.
https://firstgenfirebird.org/forums/ubbthreads.php?ubb=showflat&Number=324127

I assume this is the post you were having issues with?

Im able to view the PDF inline just fine.

My browser's user-agent string is
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

[Linked Image]


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF [Re: Geoff] #263239 10/09/2019 5:21 PM
Joined: Aug 2006
Posts: 95
Geoff Offline OP
Journeyman
OP Offline
Journeyman
Joined: Aug 2006
Posts: 95
I had a chance to look at it today. Your post gave me an idea what this issue might be. I use a WordPress plugin for security and part of it I have set up to block hotlinking.

# CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE - Your Custom htaccess code will be created here with AutoMagic

# BLOCK HOTLINKING TO IMAGES
SetEnvIfNoCase Referer "^(http|https)://.*\.firstgenfirebird\.org$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*firstgenfirebird.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*oakmediacreations.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*firstgenerationfirebird.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.google\.com$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.yahoo\.com$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.bing\.com$" whitelist

<FilesMatch "\.(gif|jpg|jpeg|png|bmp|pdf)$">
Order Allow,Deny
Allow from env=whitelist
# Add Your Server IP Address
Allow from xxx.xxx.xxx.xxx
</FilesMatch>

I removed the pdf part and it resolved this issue.

Thank you - Geoff


I am a Superstar! Testing signature here
Re: Show PDF [Re: Geoff] #263240 10/10/2019 9:10 AM
Joined: Aug 2006
Posts: 95
Geoff Offline OP
Journeyman
OP Offline
Journeyman
Joined: Aug 2006
Posts: 95
Thank you for your help and apologize for my delay in testing what you suggested at first as I wasted your valuable time. Geoff

https://forum.ait-pro.com/forums/to...-google-bing-or-yahoo/page/6/#post-38005


I am a Superstar! Testing signature here
Re: Show PDF [Re: Geoff] #263241 10/10/2019 9:55 AM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
No Thank you Geoff.
All to often people post a problem, they get responses but the original poster never replies if it was resolved or not and what they did to resolve the issue.

This post helps every one.
Even if not a UBB issue it was a issue that future users will find helpful.
Including the programmers.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
0 registered members (), 71 guests, and 423 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)