John L.
Well-known member
Going to admit, I'm way over my skies here. However I'm trying to learn new things and trying to update a pretty old addon to work with the latest version of XenForo. Here is my problem, I'm trying to figure out how to replace getIdentities with getting the data from the External Auth table. Here is the example code:
I'm trying to figure out how to replace this code since the identities are no longer used and replaced with custom fields. However the data I'm trying to grab lives in the external auth field now. What would be the best way to grab the steam provider from external auth? Is there a getExternalAuth function? Sorry if I'm not asking this in the best way and appreciate any help!
PHP:
$identities = $xfUserModel->getIdentities($user);
// pay attention to this user, they have a steam id
if ($identities && array_key_exists('Steam', $identities))
{
// check to see if the user exists in source bans
$sbUser = $sbAdminModel->fetchBySteamId($identities['Steam']);