Fidde Posted March 16, 2015 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.
Adriano Faria Posted March 16, 2015 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.
Adriano Faria Posted March 16, 2015 Posted March 16, 2015 Take a look: http://community.invisionpower.com/topic/404331-get-user-information/?do=findComment&comment=2508852
Recommended Posts
Archived
This topic is now archived and is closed to further replies.