# Is there a battle for the net plugin?

**URL:** https://meta.discourse.org/t/is-there-a-battle-for-the-net-plugin/66070
**Category:** Feature
**Created:** [2017年七月12日 18:22 UTC](https://meta.discourse.org/t/is-there-a-battle-for-the-net-plugin/66070 "2017-07-12T18:22:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dandrews](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandrews/32/122413_2.png) [@dandrews](https://meta.discourse.org/u/dandrews)
#### Post date: [2017年七月12日 18:22 UTC](https://meta.discourse.org/t/is-there-a-battle-for-the-net-plugin/66070/1 "2017-07-12T18:22:07Z")

</div>

I want to add a [battle for the net widget](https://github.com/fightforthefuture/battleforthenet-widget) to my discourse site for the day, is there a plugin I can can use or can someone show me how to install the widget?

---

<div class="post-metadata">

### Author: ![dandrews](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandrews/32/122413_2.png) [@dandrews](https://meta.discourse.org/u/dandrews)
#### Post date: [2017年七月12日 18:23 UTC](https://meta.discourse.org/t/is-there-a-battle-for-the-net-plugin/66070/2 "2017-07-12T18:23:50Z")

</div>

Here’s the script I want to install for the day:

```
<script src="https://widget.battleforthenet.com/widget.js" async></script>

```

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2017年七月12日 18:28 UTC](https://meta.discourse.org/t/is-there-a-battle-for-the-net-plugin/66070/3 "2017-07-12T18:28:16Z")

</div>

You can just put that code into a “theme component”.

- Go to your forum admin panel,
- “customize”,
- “themes”,
- choose your theme,
- “edit CSS/HTML”,
- `</head>`,
- paste the code in
- save

```plaintext
<script src="https://widget.battleforthenet.com/widget.js" async></script>

```

That code will only show on the date. If you want to test it now, use this code instead

```plaintext
<script type="text/javascript">
  var _bftn_options = {
    /*
     * Always show the widget. Useful for testing.
     */
    always_show_widget: true // @type {Boolean}
  };
</script>
<script src="https://widget.battleforthenet.com/widget.js" async></script>

```

---

<div class="post-metadata">

### Author: ![dandrews](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandrews/32/122413_2.png) [@dandrews](https://meta.discourse.org/u/dandrews)
#### Post date: [2017年七月12日 18:59 UTC](https://meta.discourse.org/t/is-there-a-battle-for-the-net-plugin/66070/4 "2017-07-12T18:59:43Z")

</div>

Thanks! That’s what I was looking for. Works great.
