Hexsplosions Posted August 13, 2015 Share Posted August 13, 2015 Limiting something to only specific member groups Returning a member name (the member who is logged in) I knew how to do this on 3.4.8 but I'm not a coder and I'm having trouble figuring it out. Link to comment Share on other sites More sharing options...
-FP Posted August 13, 2015 Share Posted August 13, 2015 {{if \IPS\Member::loggedIn()->inGroup( array(x, y, z) )}} Your code limited to x, y and z user groups. {{endif}} Where array(x, y, z) defines the user group IDs, if you want it for single member group, then replace array(x, y, z) for the member group id.To get the name of the logged in member, I think you can just use {member="name"} Link to comment Share on other sites More sharing options...
Hexsplosions Posted August 13, 2015 Author Share Posted August 13, 2015 Thank you @-FP, I'll give it a try. Link to comment Share on other sites More sharing options...
Hexsplosions Posted August 13, 2015 Author Share Posted August 13, 2015 Worked! Link to comment Share on other sites More sharing options...
-FP Posted August 13, 2015 Share Posted August 13, 2015 Nice! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.