Linking to Greenlight
Willem came across an interesting article about Greenlight over at Gamasutra, which contained a useful tip I wanted to share with you.
By linking to a URL using the steam:// protocol and an undocumented feature of the Steam client, you can link directly to a game's Greenlight page, inside Steam. The user is generally already logged in to Steam, making it much easier for them to vote.
First, an invisible iframe to do the loading in. In several browsers, this prevents an error message if Steam is not installed.
<iframe id="loader" style="display:none"
var loader = document.getElementById("loader");
That's it! I tried to get fancy and make it load the normal Greenlight page if the user doesn't have Steam installed, but making that work across different browsers turned out to be a pain in the neck. Instead, I just included a regular link people will have to click themselves.
That's all, maybe it'll be of use to someone!
We're Michiel and Willem. Hi!