 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
August 8th, 2005, 06:10 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
| SMF - does not follow post count membergroups?
RH / php 4.3.10 / mysql 4.0.25 / Photopost 5.13 / SMF / Dedicated
I'm using SMF with Photopost pro. In SMF there are normal membergroups and post count membergroups. I noticed Photopost does not follow membergroups based on post count, but rather normal membergroups.
I currently want user account size (storage) to follow the post count membergroups. Since members in those groups are automatically changed to the an 'upgraded' group once they hit a certain post count. The normal membergroups do not do that as you have to manually add a user to a group, which is tedious when there are thousands.
Any ideas on how to work this?
Last edited by GX; August 8th, 2005 at 06:13 PM.
|
| |
August 8th, 2005, 08:26 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Photopost should work with all membergroups that you import into photopost. You would set the permissions for usergroups in your photopost usergroup editor.
As always the member will obtain the BEST CASE scenerio if they belong to multiple usergroups
Try this in your SMF file although you may need to tailor. I do have one question how does the usergroup entry get stored in the users ID_GROUP field in the members table. That are they separated by when they belong to multiple groups
in smf.php find this Code: Content visible to verified customers only.
replace with this Code: Content visible to verified customers only.
|
| |
August 8th, 2005, 09:25 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Not sure what to edit in the code you gave me
The ID_GROUP field in members uses the highest membergroup id. For example, I tested with a user and I gave him Global Moderator (ID_GROUP = 2) and the default (ID_GROUP = 4). The Global Moderator (2) took over the ID_GROUP field for that member. I assume it just takes the highest group and gives it to the user if it's allowed to.
It seems the groups based on post count are not even considered for ID_GROUP, which might explain why Photopost doesn't even recognize it.
|
| |
August 8th, 2005, 09:34 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay if you look in your database tables for smf the members table in the ID_GROUP field when a member belongs to multiple groups how is it stored? If you answer this I may be able to post a new smf.php file for you to try
|
| |
August 8th, 2005, 10:29 PM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
There is only 1 single digit in that ID_GROUP field for every member.
I attached a screenshot for you, hope that's what you were looking for.
Last edited by GX; August 8th, 2005 at 10:33 PM.
|
| |
August 8th, 2005, 10:34 PM
|
#6 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Just to clarify a bit, here's an updated screenshot where I made a test account in SMF and made it a member of 3 different groups. The first ID_GROUP you see is the user in question.
Hope this helps!
PS: I'm going to assume 2 = global moderator and 1 = administrator for SMF?
|
| |
August 8th, 2005, 11:03 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay well then simple machine forums does not allow you to set secondary usergroups from what your picture is showing.
A user belongs to only one usergroup as your picture shows. I dont know how your assigning him to many groups as his ID_GROUP is set to 4 which is one group from what your picture is showing.
|
| |
August 8th, 2005, 11:09 PM
|
#8 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Oh, wait. I found another field called additionalGroups as seen in attachment.
I assume ID_GROUP is for the primary membergroup that the user is in and whatever other groups are listed in additionalGroups.
|
| |
August 8th, 2005, 11:12 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Btw, I appreciate the help, SMF is pretty new to me so I'm learning as I go along |
| |
August 8th, 2005, 11:56 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay download this file and rename to a php file and overwrite your smf.php integration file for photopost and this should do the trick for ya
Yeah any forum we integrate that users multiple usergroups stores it all imploded in one field so no one every thought to look for another field |
| |
August 9th, 2005, 07:48 AM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
The file doesn't throw an error, looks good. However, groups based on post count is still not acknowledged by photopost.
I did a bit more testing and I noticed that a membergroup based on post count does not even use an ID_GROUP. I believe it uses the amount of post you have instead, which makes Photopost not give the right permissions to the user (no upload link etc.).
I attached a screenshot of a user who does not have a primary group and is ONLY going by the post count group. It stays at zero no matter how many posts I manually give to the user. Is there a way to have Photopost recognize this somehow?
PS: The posts given to the user was done through SMF. This 'should' bump the user to a new post based group as I have it set at 30 posts to advance up.
|
| |
August 9th, 2005, 08:15 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
There is no problem with our file as it is reading the multiple group permissions based on what you have set in usergroup permissions.
What do you except our program to do? What do you mean by Quote: |
This 'should' bump the user to a new post based group as I have it set at 30 posts to advance up.
| If you expect user uploads and post counts to increase with photopost uploads then you need to set these in your options
Photo uploads increment user post count?
Comments increment user post count?
We dont bump anybody anywhere since we aren't SMF.
|
| |
August 9th, 2005, 08:52 AM
|
#13 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
I think I may have explained it wrong.
In SMF, there are primary membergroups and post count based membergroups. For primary membergroups, you have to manually put people into these groups.
For example, if JoeSmith registers, I can make his primary membergroup 'Registered' or 'Global Moderator' or whatever I decide to make. JoeSmith also automatically belongs to a post count based membergroup that I've created. At registration, he is at 0 posts, which makes him 'newbie'. At 30 posts, he becomes 'Member'. At 100 posts, he becomes 'Senior Member'. All this is done automatically in SMF as opposed to the manual process associated with the primary membergroup.
Post based membergroups do not seem to utilize the ID_GROUP field. The primary membergroup however, does use the ID_GROUP field as well as additionalGroups. So my question is, can Photopost follow post based membergroups?
Here is what I envisioned happening:
JoeSmith registers, he is in 'newbie' post count MG, I alloted him 5MB of space in PP.
JoeSmith now has 34 posts, he is now in 'member' post count MG. In PP, this group is given 10MB of space. JoeSmith is automatically upgraded in PP because of this.
And so on...
Hope that makes better sense.
|
| |
August 9th, 2005, 09:32 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Yes and you would need to set permissions based on usergroups in Photopost usergroups. All usergroups in SMF are imported into photopost and as I stated a users limits are set BEST CASE SCENERIO.
The file I gave you reads every usergroup both primary and secondary usergroups a user belongs to and assigns the best case scenerio. Its that simple.
So if you have a user who belongs to say ID_GROUP 8 and then additional usergroups 2,5 say we will do a pass over all 3 groups and the best permissions set accordingly
|
| |
August 9th, 2005, 09:37 AM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Yes, I understand that part where it reads both primary and additional groups. I can create those groups and it works, that is confirmed.
But the issue here is, Post Count based membergroups do NOT have a ID_GROUP so it is NOT acknowledge by PP. I want users to be grouped by post count only, not by their primary or additional groups as I do not group my users that way.
|
| |
August 9th, 2005, 09:44 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Well we cant assign permissions for something that does not exist.
We assign permissions for actual usergroups. There are 8 actual groups imported into Photopost from a SMF default install all the way to Hero Member
I do beleive groups 4-8 are the post count membergroups which we import and you can assign permissions to.
If SMF forums does not change the users primary usergroup or at the very least through them into the proper additional usergroup when they pass a certain post count say from Jr. Member to Full Member then I suggest you take that up with SMF as that would be a bug in there software not ours.
Our software is coded to read all usergroups that physically exist in the smf forum.
I hope this is a little clearer now for you as I know what your trying to do and there is nothing in our software that stops this if a user is placed into the proper usergroup. It appears if anything as I stated you found a bug with this new SMF forum if they do not set the proper usergroup
|
| |
August 9th, 2005, 09:50 AM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Sigh, that was what I was afraid to hear
I do have a question for you (again  ).
I noticed right next to the additionalGroups field is another field called:
ID_POST_GROUP
Which I believe stores the post count based group info. Is that read by the SMF integration file?
|
| |
August 9th, 2005, 10:00 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Simple machines is the whackiest coded software in the planet. There is set again a 3rd usergroup field in the users table
Try this file and see if you get what you want it scans these tables
I have checked and we parse these
ID_GROUP , additionalGroups and ID_POST_GROUP
Last edited by Chuck S; August 9th, 2005 at 10:08 AM.
|
| |
August 9th, 2005, 10:02 AM
|
#19 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002
Posts: 20
|
Did you attach a file? I can't see it |
| |
August 9th, 2005, 10:09 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
fricking attachments. Yeah it didnt attach it should be there now
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:31 PM. | |