![]() |
Wordpress integration: usergroup sync I have a brand new installation of PP and try to integrate it with wordpress 3.2.1. The installation went fine ( I am used to PP for 5 years with a VB integration) so far, and logging in with WP user information works. BUT: I only see the usergroups "unregistered", "registered" and "administrator". Refreshing usergroups didn't help either. What I need is to have at least a moderators group (which is a WP basic). Can that be achieved somehow? |
When I get into the office I will take a look at my test site I used to create the integration. To my knowledge we pull the wordpress groups although we may have to add a specific unregistered group since I seem to remember they do not have a specific group for that |
Great, thanks. |
No problem will post in a bit |
Any updates? :) |
I do not see ant issues feel free to send all relevant data through our contact us link in the header and I will look |
ok, will do soon. |
not a problem |
Infos sent :) |
I will respond via email |
you didn't sent an email regarding that issue, did you? Actually that's my only problem preventing me to go live for now, because I'm not able to assign moderators to categories. From what I have found is that in wp-php the refresh usergroups cannot work, as the function is empty in line 275: Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Right because on my wordpress install there is no groups table You have any idea what table name it is? I wrote an integration based on what I saw in wordpress which has no usergroup table like most software so we have three groups we install to make it work with ours |
mmh, no. have to search myself. |
yeah thats the issue wordpress does not appear to have a usergroups table. I can not import usergroups if there is group to import. ;) |
so if I add a usergroup moderators manually you think that would do the trick? I mean thats all I need, not necessarily a sync. |
Right but how is a moderator defined that's what I would need to add a check to push them where they need to be. I will try and look into it |
ok, i have added an entry "moderator" to the database and it also shows up in the edit usergroups panel, but it doesn't seem to have an effect, i.e. the users assigned to that usergroup still don't have moderator rights. I also tried with other WP roles such as editor, author etc., as I think it doesn't matter (?) if a user is a moderator in WP but can be assigned moderator rights in PP (basically). Moderators global rights are turned on. Seems as if WP doesn't come with a dedicated "moderator" role, but with "editor". I have defined a moderator role though through a membership plugin (s2member) which is accepted by WP. What would also help is if I was able to manually assign users as moderators to a category, but that also doesn't work. *CHALLENGE* :) |
Correct it would have no effect because usergroups are not part of wordpress. I have written the integration to support what I see in the default wordpress. I know noting about the plugin your using. Now you can try placing this in bold in your wp.php file to see if it bumps your editor into a mod group in photopost you made. Code: Content visible to verified customers only. |
Ha! First I got a parse error, but it's fixed now an it is *WORKING* Still have to figure out a few things but that did the trick. wp_user_level - why can't the guys at WP just not work with a *normal* usergroup table ... Thanks Chuck, good work! |
Exactly there software while is popular is so outdated |
| All times are GMT -5. The time now is 11:41 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0