• Hey Groups team!

    After the next release (this week) I’d like to add support for Groups in my plugin (https://www.ads-software.com/plugins/view-admin-as/) so developers can view their sites as a group member without the need of actually being a group member.
    This prevents the hassle of logging in and out constantly.

    Are there any roadblocks I need to be aware of when working with Groups or is it all fairy straight forward?
    I’ll be diving in your plugin next week. Let me know!

    Regards, Jory

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Kento

    (@proaktion)

    Hi Jory,

    That sounds like a great idea, I’m looking forward to give it a try!

    Do you plan on doing this with a temporary assignment to the desired group? I think that would be the most simple way to approach it.

    Cheers

    Thread Starter Jory Hogeveen

    (@keraweb)

    Hi @proaktion,

    Yes, I hook into WP at a very early stage and change the known values like current user, role or anything while making a backup in my class files.

    I already got it working for a bit:
    – Getting the groups, no problem
    – Filter the groups_user_can seems to work aswell (groups capabilities)

    The only problem I get is that I can’t find a filter to set group of the current user. (I don’t want to store any information into the database.)

    Is there a simple filter like groups_is_member or something?

    Thanks!

    Thread Starter Jory Hogeveen

    (@keraweb)

    Thread Starter Jory Hogeveen

    (@keraweb)

    Hi @proaktion,

    I’ve made a new branche on GH for this integration.
    The current version requires PR 59 (see comment above) so it can filter the user-group relations.

    https://github.com/JoryHogeveen/view-admin-as/tree/module-groups

    Shortcodes and page restrictions are working, are there any other features I should know about?
    Currently all other capabilities are set from the current user (site admin) so all normal WP capabilities are “true”.

    How does your plugin integrate with other roles? Does it work side-by-side or does it fully integrate in the existing capabilities?

    NOTE: Currently the selected group is set within PHP (not the dropdown).
    See: view-admin-as/modules/class-groups.php Line 60

    Will make a commit that enables the dropdown a.s.a.p. (Not sure wether to add a new .js file for this or not..)

    Let me know!

    Cheers, Jory

    Thread Starter Jory Hogeveen

    (@keraweb)

    All functionality for now updating works. You can ignore the note on the PHP file.

    Thread Starter Jory Hogeveen

    (@keraweb)

    @proaktion

    Is there a way to contact you or another dev directly? If possible I’d like to have this integration ready for the nest “major” release!

    Regards, Jory

    Thread Starter Jory Hogeveen

    (@keraweb)

    Hi @proaktion,

    You still there? ??

    Cheers, Jory

    Thread Starter Jory Hogeveen

    (@keraweb)

    Hi @proaktion,

    Any chance my questions and PR’s get a reply?
    If not that’s ok as well, I’ll scrap it from my whishlist then.

    Cheers, Jory

    Jory, the developers might be missing your question because you are reviving an old thread – but their web site is https://www.itthinx.com/ and their email is written on the “Contact” page of their site — so that is probably the best way to initiate communication.

    I like your idea, by the way. It is definitely something I would use.

    Thread Starter Jory Hogeveen

    (@keraweb)

    @abigailm

    I did that at that time as well, also created two pull requests on GH so you might thing someone must have seen it ;).
    But fair enough, I’ll try it again!

    Regards, Jory

    Thread Starter Jory Hogeveen

    (@keraweb)

    Still nothing..

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Integrate Groups with View Admin As’ is closed to new replies.