Jump to content

Adding members to a certain secondary group


Recommended Posts

With a plugin, of course you could. You'd do something along the lines of (untested)

\IPS\Member::loggedIn()->mgroup_others = implode( ',', array_unique( array_merge( array( X ), explode( ',', \IPS\Member::loggedIn()->mgroup_others ) ) ) );

Replacing X with the special group ID you want to use. Make sure to test, etc.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...