Support Forum
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.
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)
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.
Visit Cruise Talk Central and Mr Papa's World
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.
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?
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 🙂
1 Guest(s)