Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (driv, M4TT), 45 guests, and 216 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Softrak
Softrak
Vancouver, BC
Posts: 72
Joined: January 2007
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 60
isaac 48
mmem700 44
Morgan 30
Zarzal 28
Jake 23
Ruben 14
Philipp 13
Kayjey 8
M4TT 5
Latest Photos
Big stuff
Test
Testing to drag photos
Comfortable Cats
Test
Previous Thread
Next Thread
Print Thread
Bug with PDF view #261680
09/30/18 01:54 PM
09/30/18 01:54 PM
Outdoorking  Offline
OP
Enthusiast
Joined: Jun 2006
Posts: 286
Sydney, Australia
Hi All,

Have just had the latest version installed and there appears to be a issue with guest, users and Registered Members.

  • Users Permissions
    They have permission to view all post areas but are not able to download, post, PM or view attachments.
  • Registered Members (subscription)
    They have access to all areas of the forum and are able to download, post, PM and view all atachments.

The issue since the install of the latest (7.6.2) version is that all guest, Users and Registered Members can view all pdf files and use the pop-out to view and print. Note that Guest and Users are unable to download the pdf files.

Any assistance on how to correct this issued would be appreciated as the subscriptions help pay for hosting and updates to the forum.

Express Hosting
Re: Bug with PDF view [Re: Outdoorking] #261681
09/30/18 02:01 PM
09/30/18 02:01 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,791
Portland, OR; USA
Please explain further, as your original message in PT indicated just an issue with Guests being able to view PDFs inline when their permission did not allow for it.

From what it sounds like in your post, you're having more issues than just with PDFs being allowed to be viewed by users without the proper permission.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Bug with PDF view [Re: Outdoorking] #261682
09/30/18 02:10 PM
09/30/18 02:10 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,791
Portland, OR; USA
Regarding the print page, it's simply a cleaned up/optimized version of the post template which is more friendly for printing; there should be a listing of attachments (if applicable) shown with a full link to where the file exists (clicking on these links should send one through the permission matrix for the files). The print template hasn't been updated since v7.6.0.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Bug with PDF view [Re: Outdoorking] #261683
09/30/18 02:20 PM
09/30/18 02:20 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,842
Lutz,FL
Going to need a url for a offending post attachment..


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Bug with PDF view [Re: Ruben] #261684
09/30/18 02:25 PM
09/30/18 02:25 PM
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,298
California
Originally Posted by Ruben
Going to need a url for a offending post attachment..


https://www.outdoorking.com/forum/u...en-30-bowling-green-mower.html#Post92964

The issue he is having, is that since PDF files can now be displayed inline, they are not respecting the group permissions setting (just the inline pdf display). But all the other permissions are being respected exactly the same way they were in 761 and prior.


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.1 Released
Re: Bug with PDF view [Re: Outdoorking] #261685
09/30/18 02:35 PM
09/30/18 02:35 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,842
Lutz,FL
AHH!
I see said the blind man.
This is my first attempt to view this feature.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Bug with PDF view [Re: Outdoorking] #261686
09/30/18 02:50 PM
09/30/18 02:50 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,842
Lutz,FL
I guess I need to install 7.6.2.
Maybe there is a new permission for those files.
I see several inline images (JPG) that appears in the post so why not PDF should appear..
If it is just part of the allowed file formats.
How would you segregate them?

Will this be a bug?
Refresh?
Future release?
Mod till future release?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Bug with PDF view [Re: Outdoorking] #261687
09/30/18 02:54 PM
09/30/18 02:54 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,791
Portland, OR; USA
Well, we're going to stay on topic and see why the permission system is allowing guests to see the attachment and patch it in the next release; but we'll need to find the cause first.

It's likely something minor such as a misplacement of a variable in the script.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Bug with PDF view [Re: Outdoorking] #261688
09/30/18 03:27 PM
09/30/18 03:27 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,842
Lutz,FL
I think I am on topic.
what I am saying is if you view the post as a guest that isaac posted.
There are many jpg files that appear inline. As well as the pdf attachment.
So what would be the difference if it were a txt file?
In 7.6.0 there is not a permission to not allow viewing attachments, just downloading them.
So if a guest has view rights to a forum then they can view everything. Including attachments.
All you can do is disable downloads.

Unless there is a net new permission in 7.6.2.?????


Does not give a clue that the pdf is following the same permission as the normal attachments.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Bug with PDF view [Re: Outdoorking] #261689
09/30/18 03:28 PM
09/30/18 03:28 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,791
Portland, OR; USA
Embedding images via the [img] tag is not an attachment. This issue only affects PDF files which are attached to a post.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Bug with PDF view [Re: Outdoorking] #261690
09/30/18 04:06 PM
09/30/18 04:06 PM
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,298
California
This permissions correction will be in the next release version of UBB.threads. If anyone needs this fixed right now and cannot wait until the next release, the fix is simple:

in /scripts/showflat.inc.php
FIND
Code
if ($ext == "pdf") {


REPLACE WITH
Code
if ($ext == "pdf" && $userob->check_access("forum", "CAN_DOWNLOAD", $topic_info['FORUM_ID'])) {


thats all.

Outdoorking - thank you for this thumbsup


Attached Files 20180930_14-01-27.PNG20180930_14-01-13.PNG

isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.1 Released
Re: Bug with PDF view [Re: Outdoorking] #261691
09/30/18 04:07 PM
09/30/18 04:07 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,791
Portland, OR; USA
Bruce, I updated your forum with the posted fix.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Bug with PDF view [Re: Gizmo] #261692
09/30/18 04:16 PM
09/30/18 04:16 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,842
Lutz,FL
Originally Posted by Gizmo
Embedding images via the [img] tag is not an attachment.

I guess Gizmo is to busy to read the complete post before he replies.
Inline images was just part of my post.
But anyway isaac answered the question correctly.
It is the "can download attachment permission" that is the issue.

I never knew that permission included viewing..
I guess it makes sense. If you open the attachment then you are actually downloading it.

Thanks Isaac for the proper answer and a interim fix.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Bug with PDF view [Re: isaac] #261693
09/30/18 11:15 PM
09/30/18 11:15 PM
Outdoorking  Offline
OP
Enthusiast
Joined: Jun 2006
Posts: 286
Sydney, Australia
Originally Posted by isaac
This permissions correction will be in the next release version of UBB.threads. If anyone needs this fixed right now and cannot wait until the next release, the fix is simple:

in /scripts/showflat.inc.php
FIND
Code
if ($ext == "pdf") {


REPLACE WITH
Code
if ($ext == "pdf" && $userob->check_access("forum", "CAN_DOWNLOAD", $topic_info['FORUM_ID'])) {


thats all.

Outdoorking - thank you for this thumbsup



Thank you very much for the quick fix it is really appreciated.


ShoutChat Box
Today's Birthdays
No Birthdays
Recent Topics
Email authentication
by driv. 02/20/19 05:30 PM
ShoutChat Box
by M4TT. 02/20/19 04:15 PM
Custom island for donations
by Jim0421. 02/20/19 01:07 PM
NO AVATAR
by Jim0421. 02/20/19 10:51 AM
Forum Statistics
Forums35
Topics35,242
Posts192,148
Members12,141
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.7.1