Jump to content

check if logged in


Recommended Posts

Yes. If you include the init.php from the forum after that like this.


/* Require the init.php file from the Community Suite root directory */
require 'init.php';

/* Initiate the session to verify who this user is */

echo \IPS\Member::loggedIn()->name;

After you include the init.php you can use most of the forum function 😄 

Link to comment
Share on other sites

On 3/23/2019 at 5:44 PM, Tom S. said:

Just for my info, could you explain the difference between the two? 

The external dispatcher sets up a few things under the premise that you're executing code but not within the Suite itself (using the framework, but in a standalone script). This is safer than simply loading the session handler, which may rely on other classes).

Consider it a best practice tip.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...