Fidde Posted March 16, 2015 Share Posted March 16, 2015 I found this article (https://www.invisionpower.com/support/guides/_/advanced-and-developers/miscellaneous/check-if-a-member-is-logged-in-r91) and I was wondering how this would be done in IPS4?I would like to check if the user is logged in and what group the user belongs to. Link to comment Share on other sites More sharing options...
Adriano Faria Posted March 16, 2015 Share Posted March 16, 2015 IPS 4 ? Link to comment Share on other sites More sharing options...
Fidde Posted March 16, 2015 Author Share Posted March 16, 2015 IPS 4 ? IPS4/IPB4 Link to comment Share on other sites More sharing options...
Adriano Faria Posted March 16, 2015 Share Posted March 16, 2015 Data from a user:<?php require_once( init.php' ); $member = \IPS\Member::load( 1 ); // Member ID $group = $member->member_group_id; echo $group; ?>Let me try to find something to check if the user is logged. Link to comment Share on other sites More sharing options...
Adriano Faria Posted March 16, 2015 Share Posted March 16, 2015 Take a look: http://community.invisionpower.com/topic/404331-get-user-information/?do=findComment&comment=2508852 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.