SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 09:45:55 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 44
Total: 44
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Downloads Pro with SMF 2.0Rc4  (Read 2680 times)
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« on: November 25, 2010, 02:51:07 am »

Just upgraded everything to the latest versions, and now every file area I have is displayed twice - Even though they are only listed once in the database....

I also use membergroups to limit access - those with less than 3 posts are "newbie" and they should only be able to view files, NOT download - That worked fine with my previous version of Downloads Pro, but with 2.0 they can now download, which shouldn't be allowed!

www.paddleducks.co.uk

Any help would be appreciated...

Regards
Eddy
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #1 on: November 25, 2010, 02:55:31 am »

I've just noticed that the file areas are only being displayed twice for Admins - If I login as a normal user they are only displayed once....

The bug which is allowing people to download is still there however Sad

Regards
Eddy
Logged
Hally_89
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: November 25, 2010, 07:55:49 am »

Hi i bought the downloads pro system back in july but only registered now to get the updated version. Do i need to make 3 posts before i can download the latest version? If not can you please tell me where to get it. I have added my license key under the licence tab in the menu. Thanks
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: November 25, 2010, 09:47:32 am »

Hi i bought the downloads pro system back in july but only registered now to get the updated version. Do i need to make 3 posts before i can download the latest version? If not can you please tell me where to get it. I have added my license key under the licence tab in the menu. Thanks
You can download it at
http://www.smfhacks.com/index.php/topic,3489.0.html
Logged
Hally_89
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #4 on: November 25, 2010, 09:50:05 am »

Thank you i overlooked that topic somehow
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #5 on: November 25, 2010, 11:03:54 am »

Eddy try this file for duplicate categories/files attached

Category level permisions work like this
First checks additional membergroups that a user will have. If any of those return true the permission is allowed.
Then checks the main primary group. If any of those return true the permission is allowed.
Last it checks Post Group if that returns true then it is allowed.
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #6 on: November 25, 2010, 11:16:12 am »

Thanks SMF - The upgraded file sorted the duplicate categories perfectly.....

I'll double check all the permissions to make sure I don't have anything setup wrongly, and let you know how that goes...

Regards
Eddy
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #7 on: November 26, 2010, 04:13:05 pm »

Eddy try this file for duplicate categories/files attached

Category level permisions work like this
First checks additional membergroups that a user will have. If any of those return true the permission is allowed.
Then checks the main primary group. If any of those return true the permission is allowed.
Last it checks Post Group if that returns true then it is allowed.

Hmmm...

I don't use additional membergroups, so that doesn't apply....

In Downloads Pro I have "Regular Users" set to allow 2 downloads per day, as it doesn't allow me to set that for "Post groups".

Then I have numerous "Post groups" set depending (obviously) on how many messages have been posted - The first one is "Newbie" for new users that have posted less than 3 messages - Downloads Pro is set to allow them to view the files, but NOT download.

But sadly they CAN download with Downloads Pro v2.0 Sad

The previous beta version I used worked perfectly (sorry I cannot remember the version number), and apart from upgrading to SMF v2.0 RC4 and Downloads Pro v2.0, I haven't changed any settings, so I can only assume that the code in Downloads Pro has been changed and it no longer works as it did....

So from what you've said I'm assuming it should work as follows....

Additional membergroups - Don't exist, so ignore...
Primary membergroup = Regular user - So allow....
Post Group = Newbie - So deny downloads...

But that isn't what's happening Sad

Can you take a look at this please SMF?

Regards
Eddy
« Last Edit: November 26, 2010, 04:19:26 pm by Eddy Matthews » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #8 on: November 27, 2010, 04:26:47 pm »

Just spent a couple hours going to have to rework it completely. Turns out the additional checks for other membergroups include post based groups as well so going to have redo it.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #9 on: November 27, 2010, 05:06:36 pm »

Try this file and let me know the results
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #10 on: November 27, 2010, 05:07:14 pm »

Just spent a couple hours going to have to rework it completely. Turns out the additional checks for other membergroups include post based groups as well so going to have redo it.

Sorry to give you extra work SMF Sad

Thanks for checking it all out....

Regards
Eddy
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #11 on: November 27, 2010, 05:08:06 pm »

Try this file and let me know the results

I'll take a look at that tomorrow afternoon, just about to go to bed now....

Many thanks
Eddy
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #12 on: November 28, 2010, 02:26:52 am »

I've just installed the latest downloads2.php file, and it appears to have sorted the problem SMF.... Admittedly I've only done a few quick tests, but it looks good so far.

Many thanks
Eddy
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #13 on: December 01, 2010, 03:15:16 am »

Another small problem SMF.....

I have a Primary Membergroup called "No Downloads" to block those that are only there to take and take.....

In category permissions, this membergroup can view files, but CANNOT download. But Downloads Pro v2.0 is allowing them to download because their Post Count group says they have posted enough messages.

I think that Downloads Pro should check Primary Group, Additional Groups, and then Post Count Groups.... If ANY of those say "Deny" then it should exit the checking routine...

ie:

Check Primary membergroup - If "allowed" OR if no primary group exists then check Additional membergroups, if "Deny" then exit...

Check Additional membergroups - If "Allowed" OR If no Additional membergroup exists then check Post groups. If "Deny" then exit....

Check Postgroups - If "Deny" then exit....

In other words, if ANY of the groups say the member is "Denied" downloads, then they should NOT be able to download.

I hope that makes sense? This all worked perfectly in an earlier beta release, and none of my settings have been altered since upgrading.

Regards
Eddy
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #14 on: December 01, 2010, 07:51:59 pm »

I have to think about that case a little more. By default with SMF I think is if any group has access to it they are marked as allowed.
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 4.776 seconds with 22 queries.