Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 7, 20168 yr Is there a way I can automatically add members to a certain secondary group if they visit a page?
December 7, 20168 yr 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 ) ) ) ); \IPS\Member::loggedIn()->save(); Replacing X with the special group ID you want to use. Make sure to test, etc.
Archived
This topic is now archived and is closed to further replies.