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
Mapping WP users to SP usergroups
Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Sep 1, 2013 - 11:36 am

While doing user mapping in "User Groups" -> "Mapp Users to User Group" -> 

the following showed up in error log:

file: /simple-press/admin/panel-usergroups/forms/spa-usergroups-map-users.php
line: 31
function: Unavailable
Notice | Use of undefined constant trur - assumed 'trur'

Seems to be a typo for "true" - correcting it and it's working.

Couldn't get this to work though:

We have a MU installation, each blog site in the network has its own administrator. All these users show up as "Members Not Belonging To Any Usergroup" on the "User Group" -> "Manage User Groups" option (presumably because WP automatically considers them subscribers users in the forum site), however, when selecting one or more of them to be added to the existing user groups, the action didn't really take place. They remain in "Not Belonging to Any Usergroup" and they don't show up in the intended User Group after "Add Member"

No error text was generated in Toolbox -> error log.

Would be nice to be able to add all those users in the network to be forum members without too much manual work as we have hundreds of them. Hope to get some help. Thanks!

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 1, 2013 - 1:15 pm

yes, its a notice not an error... and already fixed in the next version...  it wont impact anything...

keep in mind with multisite that users on networks sites dont get a role in the main site... its how wp works...  if you want your network site users to get a role in the main site, you need a wp plugin for that...  think its called multiisite user management or something similar...

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Sep 1, 2013 - 3:20 pm

Great... Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 1, 2013 - 4:55 pm

you are welcome...

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 2:50 pm

Mr Papa said
keep in mind with multisite that users on networks sites dont get a role in the main site… its how wp works…  if you want your network site users to get a role in the main site, you need a wp plugin for that…  think its called multiisite user management or something similar…

Just tried what you suggested. Here's what we got:

We got multisite user management plugin installed and ran it. Mapping all from all sites to the forum site as "Contributors." Confirmed in WP users list that they now all show up as users on the site. So the WP plugin is working.

Then we used "User Group" -> "Map Users to User Group" to set default SP User Group for WP role contributor, and then click "Map Users" button the bottom there.

Went back to "Manage User Groups" to check, none of the WP users showed up in the intended SP user group (or any user group for that matter).  They don't even show up as "Members Not Belonging To Any Usergroup" any more. They don't show up in the available user listing when clicking "Add Member" either.

No error text was generated in Toolbox -> error log. Hope you can help solve the puzzle. Thanks!

Wordpress version 3.6 MU Installation

Simple:Press version 5.3.1

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 7:50 pm

the mapping will only work on the one site in question...  it wont map across network sites...

can you explain what you are doing where?  by that, are you running the forum on main site?  or network site?  or both?  there is not correlation between one site and the other site in sp...  if you want to map on all network sites,  you will need to do it site by site...

when you see the users on the site you referred to, what role (wp) do they have on the site?

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 8:07 pm

We have one site in the network that has SP forum activated.  Currently it's the only forum site in the network.  This forum site, through the WP multisite user management plugin, just got hundreds of users (who are admin's of sites in the network) added as "contributors" role and these are the users we see in WP admin's user list. 

These new "contributors" from across the network on the forum site are the ones we are trying to map in SP to a SP User Group.

Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 9:56 pm

but you dont have it activated on the main site?  trying to remember if that is required...  there are some options only settable at the main site level...

so on the network site, take a look at the sfmembers table... that will be the users that sp knows about...

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Sep 3, 2013 - 10:44 am

On this MU installation, the SP forum IS on the main site. (i.e., domainname.net, not subdomain.domainname.net).

Perhaps there's a cron job that did something, found that two WP users showed up in members today (they were not yesterday). 

So on this main site, per your instruction, we turned on "spMembersList" in Tools -> Data Inspector, saw those two users in addition to the four seen yesterday. Nothing more when there should be hundreds, as listed in WP control panel's user list...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 3, 2013 - 9:21 pm

well as to users... if they are in the wp users table and have a role on that site, when they first visit the site, we will create their records...  its a fallback for when old wpmu didnt fire all the hooks that wp does for new users...  that has changed since they were merged but our fallback is still there...

but does make me wonder if that user plugin you used actually created the users properly via the wp api...  with the api, a hook is fired to notify plugins of a new user... if that plugin didnt fire the hook via the api, we wouldnt know about the new user...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625