2007-12-10, 05:27 PM
In member.php in the 'else if($mybb->input['action'] == "do_login" ' sectioon around line 918 there are the following lines:
What's that for and is it possible for us to use that as some sort of SDK to login to external apps or something? Where does that function have to be defined? I tried defining it in a plugin but it wasn't called.
I am trying to make multiple sites validate a login against a main site, eg
MainSite.com
MiniSite1.com
MiniSite2.com
The users are all on MainSite.com and so are the forums.
MiniSite1.com and MiniSite2.com contain no MyBB code, but I want them to be able to login via mainsite.com/member.php so that all three sites use the same login, how could I do this?
if(function_exists("loggedIn"))
{
loggedIn($user['uid']);
}
What's that for and is it possible for us to use that as some sort of SDK to login to external apps or something? Where does that function have to be defined? I tried defining it in a plugin but it wasn't called.
I am trying to make multiple sites validate a login against a main site, eg
MainSite.com
MiniSite1.com
MiniSite2.com
The users are all on MainSite.com and so are the forums.
MiniSite1.com and MiniSite2.com contain no MyBB code, but I want them to be able to login via mainsite.com/member.php so that all three sites use the same login, how could I do this?