Previous Thread
Next Thread
Print Thread
Hop To
Show PDF
#263230 10/09/2019 1: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
Geoff #263231 10/09/2019 8:26 AM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
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, 2 downloads)

Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
Geoff #263232 10/09/2019 5:02 PM
Joined: Dec 2003
Posts: 6,144
Likes: 22
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 22
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 5:05 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Show PDF
Geoff #263233 10/09/2019 5:11 PM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
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.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
Geoff #263234 10/09/2019 5:12 PM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
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.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
Geoff #263235 10/09/2019 5:15 PM
Joined: Dec 2003
Posts: 6,144
Likes: 22
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 22
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
Geoff #263236 10/09/2019 5:17 PM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
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, 9 downloads)

Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
Ruben #263237 10/09/2019 5:19 PM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
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 5:19 PM.

Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
Geoff #263238 10/09/2019 5:38 PM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
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.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
Geoff #263239 10/09/2019 6: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
Geoff #263240 10/10/2019 10: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
Geoff #263241 10/10/2019 10:55 AM
Joined: Dec 2003
Posts: 6,144
Likes: 22
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 22
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
Re: Show PDF
Geoff #263453 02/03/2020 11:07 PM
Joined: Sep 2006
Posts: 149
Member
Offline
Member
Joined: Sep 2006
Posts: 149
I am having this issue also. I'm not savvy about code like you guys. Is there a fix that I can do and can you tell it to me in plain English smile . If not can you tell it to me so I can pass it on to my server guy.

Thank you

Re: Show PDF
Larry Miller #263454 02/03/2020 11:17 PM
Joined: Apr 2004
Posts: 1,705
Likes: 51
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,705
Likes: 51
Originally Posted by Larry Miller
I am having this issue also.

do you have a link to this issue in your website? also, http or https?

can you view or download the attached pdf from earlier in this thread?

is your browser updated? chrome will not display PDF or flash or other add-ons if you are using an outdated version of chrome -- restart your browser.

what browser add-ons are you using? are they blocking Google servers or third-party servers... such as Google's?

does this happen when you try viewing on a different browser?

these are the first steps in debugging your issue.

EDIT: Have you tried the .httaccess steps as previously discussed in this thread?

Last edited by isaac; 02/03/2020 11:26 PM.

Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Show PDF
isaac #263455 02/04/2020 12:28 AM
Joined: Sep 2006
Posts: 149
Member
Offline
Member
Joined: Sep 2006
Posts: 149
I just saw this...I'm off to sleep as I'm on the East Coast...thank you this reply..so far, it is happening in Chrome and Safari...I will post an additional reply with fresh eyes in the morning. Again, thank you for your reply


Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Followed Threads
by FREAK - 07/13/2020 9:13 PM
Can't Delete or Add New Forum
by FREAK - 07/13/2020 8:25 PM
Non-Admin users can't see attached pictures
by jjjjj - 07/11/2020 8:09 PM
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Who's Online Now
4 members (Gizmo, auelboard, FREAK, 1 invisible), 79 guests, and 39 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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