This plugin allows your Users to register and log in on your forum using their Steam ™ identity. It uses OpenID plugin built-in in Vanilla Forums to communicate with Steam OpenID Server, which takes care of handling User’s credentials.
Note
Vanilla’s OpenID plugin has a bug. When Users register to the forum passing through Steam (or any OpenID provider who doesn’t return a User Name and an Email address for the User), they are prompted to enter the User Name and Email Address they wish to use on the forum. However, when they do so, the Email address is accidentally deleted before the registration occurs. This results in the error message “Email is required” being displayed to the User and the registration failing. The issue is being discussed on Vanilla Community, but it doesn’t have an official solution, as of November 2012.
Unofficial fix for the OpenID plugin issue
Important: this fix is unofficial and it has not been provided by Vanilla Team. Use it at your risk.
- Find file class.openid.plugin.php in your Vanilla installation directory.
- In the file, find the following code:
$Form->SetFormValue('FullName', GetValue('namePerson/first', $Attr) . ' ' . GetValue('namePerson/last', $Attr)); $Form->SetFormValue('Email', GetValue('contact/email', $Attr));
- Replace the code with the following:
if($Form->GetValue('FullName', null) == null) { $Form->SetFormValue('FullName', GetValue('namePerson/first', $Attr).' '.GetValue('namePerson/last', $Attr)); } if($Form->GetValue('Email', null) == null) { $Form->SetFormValue('Email', GetValue('contact/email', $Attr)); }
The new code simply checks if the fields already contain a value before overwriting them. Since they are not empty after the User entered his details, they won’t get overwritten anymore.
Requirements
- PHP 5.3+
- Vanilla Forums 2.0
KasperIsager (verified owner) –
An extremely well-written and -documented plugin that works perfectly right of the box. It seamlessly integrates with Vanilla both in the dashboard as well as on the front-end and is a perfect extension of the already existing authentication options. Definitely worth the few cups of coffee!