# Steam Profile Onebox plugin

**URL:** https://meta.discourse.org/t/steam-profile-onebox-plugin/35792
**Category:** Plugin
**Created:** [November 19, 2015, 12:51pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792 "2015-11-19T12:51:49Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [November 19, 2015, 12:51pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/1 "2015-11-19T12:51:49Z")

</div>

I make a simple plugin based in [Steam Store Plugin](https://meta.discourse.org/t/steam-store-onebox-plugin/35723) to show a barner of steam profile using [http://steamsignature.com/](http://steamsignature.com/)

[https://github.com/MiguelAngelLV/steamuser-onebox](https://github.com/MiguelAngelLV/steamuser-onebox)

Transform the url of profiles [Steam Community :: MiguelAngelLV](http://steamcommunity.com/id/miguelangellv) or [Steam Community :: yayimg](http://steamcommunity.com/profiles/76561198099482018) in

[![](http://steamsignature.com/status/spanish/miguelangellv.png)](https://steamcommunity.com/id/miguelangellv)

You can see a demo in [here](http://almeriaenfriki.es/t/lista-de-usuarios-de-steam/55)

For now, show the data in spanish, but changing the url of image change the language. I would like add “auto” language, but I don’t kwow how. Pull Request are wellcome.

I would like remove “click counter” too.

---

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [November 19, 2015, 10:40pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/2 "2015-11-19T22:40:35Z")

</div>

Added “custom css” to hide the “click counter”

---

<div class="post-metadata">

### Author: ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)
#### Post date: [November 19, 2015, 11:13pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/3 "2015-11-19T23:13:41Z")

</div>

> [@MiguelAngelLV](#):
>
> I would like add “auto” language

Nice!

I don’t think there is anything in the Onebox engine that tells you server locale info that would allow you to form that URL dependent on default site language. The alternative would be something from the client like Accept-Language headers on the request, but they aren’t always reliable or 1 to 1 mapping. Defaulting to Spanish isn’t ideal for some.

How about using a config settings list, and let the plugin set-up in the plug config menu UI choose the languages that [steamsignature.com](http://steamsignature.com) support? I think the spoiler plugin has a nice clean and simply config example here:

[https://github.com/discourse/discourse-spoiler-alert](https://github.com/discourse/discourse-spoiler-alert)

So in summary, use a

```
enabled_site_setting :steam_signature_language

```

and something like:

```
<img src='http://steamsignature.com/status/#{SiteSetting.steam_signature_language}/#{steamid}.png'

```

Simplest way I can think of that it could work.

---

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [November 20, 2015, 7:23am UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/4 "2015-11-20T07:23:12Z")

</div>

@fearlessfrog updated!

Thank you 😄

![](https://global.discourse-cdn.com/meta/original/3X/c/8/c8c969493212aa44a6f92aafed2571fc0f87de5a.png)

---

<div class="post-metadata">

### Author: ![Alankrit\_Choudh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alankrit_choudh/32/119698_2.png) [@Alankrit\_Choudh](https://meta.discourse.org/u/Alankrit_Choudh)
#### Post date: [November 20, 2015, 8:55am UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/5 "2015-11-20T08:55:20Z")

</div>

Really nice. Can we have a pr to one box sir? So all of us could use your amazing code?

---

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [November 20, 2015, 10:06am UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/6 "2015-11-20T10:06:48Z")

</div>

Sorry, I thingk that I don’t understand you.

One box is a project? Do you want that I make a PR to a other project?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [November 20, 2015, 11:08am UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/7 "2015-11-20T11:08:45Z")

</div>

[quote=“MiguelAngelLV, post:6, topic:35792”]  
One box is a project? Do you want that I make a PR to a other project?  
[/quote]Yes please! 😃 He is referring to this:

[https://github.com/discourse/onebox](https://github.com/discourse/onebox)

The exact same thing happened with this plugin:

[https://meta.discourse.org/t/steam-store-onebox-plugin/35723](https://meta.discourse.org/t/steam-store-onebox-plugin/35723)

---

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [November 20, 2015, 11:38am UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/8 "2015-11-20T11:38:04Z")

</div>

Oh! Ok 😄

One question:  
When I have put my css’s styles in onebox?

---

<div class="post-metadata">

### Author: ![Alankrit\_Choudh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alankrit_choudh/32/119698_2.png) [@Alankrit\_Choudh](https://meta.discourse.org/u/Alankrit_Choudh)
#### Post date: [November 20, 2015, 3:50pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/9 "2015-11-20T15:50:21Z")

</div>

Was to discreet on my earlier post, was on a cellphone at work so couldn’t type many words 😛 But yea exactly what @erlend_sh said 😄

---

<div class="post-metadata">

### Author: ![marcospreviato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcospreviato/32/54766_2.png) [@marcospreviato](https://meta.discourse.org/u/marcospreviato)
#### Post date: [May 18, 2016, 1:10pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/10 "2016-05-18T13:10:54Z")

</div>

Hi, great plugin, one question, how to increase width of profile box?

---

<div class="post-metadata">

### Author: ![repz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/repz/32/121758_2.png) [@repz](https://meta.discourse.org/u/repz)
#### Post date: [May 27, 2016, 1:08pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/11 "2016-05-27T13:08:54Z")

</div>

seems like it’s “half” working:

> **[Gyazo](https://gyazo.com/4321f555bc008a23ee050b72ecf5d98d)**
>
> Gyazo is the easiest way to record screenshots & videos you can share instantly. Save time with async visual communication that's effortless and engaging.

Sometimes it works, sometimes not and sometimes half.

---

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [May 30, 2016, 8:09am UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/12 "2016-05-30T08:09:13Z")

</div>

@repz Steam Signature server fail some times.

@marcospreviato sorry, is the size of images of Steam Signature website.
