PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 6th, 2008, 02:52 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Location: /home/mrteck
Posts: 106
Upload limit problem

Hi.
I'm having a problem with the upload limits.

With previous version 6.0.1, I had 2 photos as limit and was working fine... then I restric to 1 photos per day and suddendly this limit isn't working.

I upgrade to 6.2 uploading the entire script and run upgrade.php of 6.1 and then 6.2, but the limit still not working.

I deleted the usergroups and re-read again from the forum (integrated with SMF), set up again the permisions but that limit isn't working.

The funny thing is that the limit is applied to me, the admin, but not for the rest of users. Trying to explain it, I find that:

1 - If the user is not into a special group in SMF (like moderators, admin, etc...) the limit isn't applied.

2 - If the user is into a special group but their Nš of messages is < of the minimum to upload, then limit isn't applied again.

Maybe is a problem with the file /forums/smf.php?
Teck is offline   Reply With Quote
Old October 6th, 2008, 05:23 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Most likely something to do with how you have it set as this has not changed to my knowledge.

Now with SMF we pull all a users usergroups so for example I know in SMF they have post based groups and those values are stored in a field in their database called ID_GROUP and the post based groups are stored in a field called additionalGroups.

Now see if you have a user belonging to a group that has no restrictions and one that does the best possible scenerio is taken meaning they have no restriction so without knowing all the groups they belong to in SMF by you looking at the database entry for that user I can only assume this is the issue.

I would be glad to look at it but this sounds exactly what your issue is. We pull all SMF usergroups for a user and assign permissions on all and take the best scenerio's for any permission whether its upload commenting or limits.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 6th, 2008, 06:28 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Location: /home/mrteck
Posts: 106
Well, what I see is:
Table smf_members:

Field ID_GROUP: This is the primary group and all users have one assigned. For normal users is where they have their postcount group (some users have there a special group as admins, mods...)

Field additionalGroups:
Extra groups for the users. Excluding special groups (moderators, admin....) is empty for the rest.
In this field never seen an ID for countbased group. Its only for special groups.

So, maybe the problem is that PP is trying to get the usergroup from additionalGroups?

The restriction is applied only for those who have additionalGroups
Teck is offline   Reply With Quote
Old October 6th, 2008, 06:46 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Right if I understand what your saying above you confirm that I am saying. You do not have a restriction on the main ID_GROUP and your placing a restriction on an additional group then they are never going to be limited.

Let me explain this again. If all your regular users belong to say ID_GROUP 4 which is newbie if ID_GROUP is empty for users which it normally is we set users to this group in photopost because you must have a usergroup to assign permissions. Now if your not setting newbie to 1 upload limit per day and only setting the additional group to a limit then they will have no limit because one of the groups they belong to has no limit.

See in the code below if their usergroup is empty we assign to newbie.

Code:
Content visible to verified customers only.
Do you follow what I mean? You can not only apply a restriction to one group if they belong to many groups because we will take the best possible permissions. Thus if one group they belong to has a restriction and one group does not then they will not have a restriction as thats the best possible scenerio.

I hope that clarifies how things work.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 6th, 2008, 07:26 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Location: /home/mrteck
Posts: 106
A sample of an user and groups:

Countbased groups:
1 = People under 25 posts (Do not allow uploads in PP)
2 = Users over 25 posts (Allow 1 upload in PP)

Special groups:
3 = admin (allow 1 upload in PP)
4 = Specialgroup (allow 1 upload in PP)

Normal_user_under_25posts - ID_GROUP (1) - additionalGroups()
No daily limit applied, can upload toons of photos

Normal_user_over_25posts - ID_GROUP (2) - additionalGroups()
No daily limit applied, can upload toons of photos

Admin_under_25posts - ID_GROUP (3) - additionalGroups()
No daily limit applied, can upload toons of photos

Admin_over_25posts - ID_GROUP (3) - additionalGroups()
=> Daily limit applied, only can upload 1 photo.

Special_group_under_25posts_ - ID_GROUP (4) - additionalGroups()
No daily limit applied, can upload toons of photos

Special_group_over_25posts_ - ID_GROUP (4) - additionalGroups()
=> Daily limit applied, only can upload 1 photo.

Look the attachment
Attached Images
File Type: jpg limitPP.jpg (96.8 KB, 5 views)
Teck is offline   Reply With Quote
Old October 6th, 2008, 07:27 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Location: /home/mrteck
Posts: 106
Sorry, reply after your response.

I had all groups in PP with restrictions, and all are the same restrictions (less 2 groups and Guests that have no upload permisions)
Teck is offline   Reply With Quote
Old October 6th, 2008, 08:19 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Location: /home/mrteck
Posts: 106
Okay Chuck, you are right.

The problem was that I setup nouploads and #0 daily uploads for the basic categories, and 0 means unlimited :S

If I setup with #1 daily uploads but no upload permission works fine.

Sorry for my mistake.
Teck is offline   Reply With Quote
Old October 6th, 2008, 06:48 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Not a problem yep as noted each permission takes the best scenerio so ID GROUP 4 which is newbie and the base usergroup needs a restriction as all users belong to this.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with upload limit for some users Charles_cz Photopost Pro How Do I...? 5 July 4th, 2007 07:15 AM
upload limit problem(fixed) quasan Photopost Pro Bug Reports 30 June 9th, 2006 01:35 PM
Upload limit Mrfixit Photopost Pro How Do I...? 1 February 15th, 2006 07:01 PM


All times are GMT -5. The time now is 12:14 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0