Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 16, 201510 yr 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.
March 16, 201510 yr 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.
March 16, 201510 yr Take a look: http://community.invisionpower.com/topic/404331-get-user-information/?do=findComment&comment=2508852
Archived
This topic is now archived and is closed to further replies.