straightvisions

Get online Status

Recommended Posts

Since IPS v4 and IPBWI API v4, online status isn't shared anymore. The reason is how SSO since v4 has changed:

v3 required cookie sharing for working SSO, while v4 has implemented a redirect method to allow SSO without domain or hosting limitations.

If you are using the same domains for your site and forum and have both installed on the same host, you can get the online status of a member with the following code snippet:

require_once(dirname(__FILE__).'/forum/init.php');

\IPS\Session\Front::i();

if(\IPS\Member::loggedIn()->member_id) {

}

Please note that our standard support does not include help with code snippets like this, as these are not part of the standard IPBWI functionality. This snippet is intended as quick start for your own research.

Share this post


Link to post
Share on other sites