Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Password Protect forum?
Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Nov 1, 2011 - 3:57 pm

Thanks, I've had a terrible time with usergroups today.  Even when I delete the users and re-add them manually through the Usergroup area, some still don't have access (but some do).  If I do it a few times (delete member and add again), it seems to fix the problem most of the time. 

Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2011 - 12:48 pm

Yellow Swordfish said

Not ignoring you. Want to get Steve involved in this one and he should be around later.

Just bumping this in case Steve missed it...any idea why this sfc_add_membership() function isn't working properly? (Users all show up in the usergroups, but some can't access the forum) 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2011 - 7:04 pm

yeah, missed it... sorry...

I just tested it again within normal forum operation (ie from the manage usergroups panel) and cant find anything not working...  havent tried from a non standard place but should behave the same...

what do you mean by it adds them to the usergroup but they dont get the permissions? by that, I mean how are telling this?

are you limiting usergroup membership to a single usergroup?  are you using forum ranks for auto promotion to usergroup?

does the user have multiple usergroup permissions? because there was a bug in this area fixed this past weekend so need to make sure you are on latest version in trunk.

Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2011 - 11:27 am

Basically, after a user pays for access to a specific forum, a file runs that calls this function and adds the user to the usergroup he or she paid for.  Several people were automatically added this way.  Some were able to get into their forums, some were not.  For instance, user Jennifer signed up and was added to the "Photographer" usergroup (which gives permission to view the "Photograher 1 Forum".  I could see her name listed in the "Photographer" usergroup, but when I logged in as her, I confirmed that I could not access the "Photographer 1 Forum."  I had to remove her from the usergroup and manually add her again for her to actually have access.  In some cases, I had to create a whole new usergroup in order for them to be able to get access (simply removing and adding again didn't help in every case). 

 

Sorry if this sounds confusing.  I will test the fix and see what happens. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2011 - 8:22 pm

please let us know...

Avatar
JohnnyNT
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 6:34 am

Hi guys, i am trying to do similar thing as people posted here, i want to automaticaly add member to usergroup so he can acces some part of forums.

So, i find out that name of function si not sfc_add_membership(), it is  sp_add_membership() and it is located in "wp-content/plugins/simple-press/sp-api/sp-api-users.php".

 

I tried to call this function in outside file (i included  sp-api-users.php), and - doesnt work. Then i "followed" errors and  included "sp-api-auths.php", "sp-api-primitives.php" and "wp-includes/load.php". But then i got this error: 

"PHP Fatal error: Call to a member function get_var() on a non-object in blahblah/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php on line 235 " 

 

So, i have no idea what to do next 😀 And is this correct way to call this function? 

Avatar
JohnnyNT
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 7:34 am

It's ok, i find out that i can write plugin for this, and i did that, and everything works. Resources: https://simple-press.com/suppo.....a-plugins/

 

And tnx for the creators of this wonderful software 🙂 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 8:45 am

glad you figured it out...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626