# Guest Gate (Sign Up Popup Plugin)

**URL:** https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625
**Category:** Plugin
**Tags:** deprecated
**Created:** [January 30, 2017, 11:39pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625 "2017-01-30T23:39:37Z")
**Posts on this page:** 12
**Page:** 6

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [April 20, 2022, 3:11pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/108 "2022-04-20T15:11:25Z")

</div>

Hello,  
Thanks 🙂

Did you checked the `x button disabled` and `redirect to home` option?

---

<div class="post-metadata">

### Author: ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)
#### Post date: [April 20, 2022, 3:34pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/109 "2022-04-20T15:34:13Z")

</div>

Yes, of course. But I think it’s a little bit paradox to show a banner that the user should login or sign-up, but on the other hand they can still click it away and read on.  
Or should this option used to be as a little hint to not force and annoy them to register an account?

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [April 20, 2022, 5:59pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/110 "2022-04-20T17:59:16Z")

</div>

> [@Don](#):
>
> I forked this plugin and made a theme component from this.

You are a hero. This is what I wanted to do as well - and why it took me so long. You beat me to it. Thank you!

I propose that we deprecate the plugin now. This is so much better.

The theme component does have one issue: a flash of unhidden content, if you press Refresh on an admin screen, you will see the close button appear and disappear. This issue was already present in the plugin a long time ago.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [April 20, 2022, 6:20pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/111 "2022-04-20T18:20:10Z")

</div>

> [@michaeld](#):
>
> The theme component does have one issue: a flash of unhidden content, if you press Refresh on an admin screen, you will see the close button appear and disappear. This issue was already present in the plugin a long time ago.

I try to find this issue but on my admin I can’t repro this. Can you check this issue is still appear with the theme component?

Thank you!

Ah ok I found it. 🙂 I use the Discourse Loading Slider component that is why I didn’t see it. When I disable the Slider TC the X appear on refresh.

Edit: I fixed it. Thank you Michael!

---

<div class="post-metadata">

### Author: ![Decorbuz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/decorbuz/32/235124_2.png) [@Decorbuz](https://meta.discourse.org/u/Decorbuz)
#### Post date: [April 20, 2022, 7:09pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/112 "2022-04-20T19:09:57Z")

</div>

Do you plan on making a dedicated topic for it?

---

<div class="post-metadata">

### Author: ![daemon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daemon/32/256632_2.png) [@daemon](https://meta.discourse.org/u/daemon)
#### Post date: [April 20, 2022, 8:04pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/113 "2022-04-20T20:04:10Z")

</div>

Instead of using an url for an image let the admins directly upload an image.  
So instead of this:  
`custom gate image url:`  
use this in the settings:

```plaintext
guest_gate_image:
  type: upload
  default: ""
  description: guest gate image

```

And in yuour scss file something like this:  
`background-image: url(#{$guest-gate-image});`

With this the image will be uploaded directly to the forum and they don’t need an image hoster (and the image maybe will be gone some time later).

Or another possibility is to use fontawesome.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [April 20, 2022, 8:29pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/114 "2022-04-20T20:29:44Z")

</div>

Thanks for the suggestion. I changed it to upload type.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [April 22, 2022, 8:26pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/115 "2022-04-22T20:26:36Z")

</div>

Hello,

I made some changes in the theme component.

Previously Guest Gate overwrite `modal.hbs` now I cleaned this up and use `dismissable=false` in `guest-gate.hbs`. I removed the `modal.hbs` and `components/d-gate.js` files because now we handle the guest gate modal separate, from the other modals. I also removed from `guest-gate.hbs` and move the css’s to the `common.scss` because it will not affect other modals anymore.

I changed the `x_button_disabled` settings name to `dismissable_false` .

[https://github.com/VaperinaDEV/discourse-guest-gate-theme-component/pull/1](https://github.com/VaperinaDEV/discourse-guest-gate-theme-component/pull/1)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [April 23, 2022, 7:21am UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/116 "2022-04-23T07:21:16Z")

</div>

Great work. You should definitely move the TC to a dedicated Topic in #Customization > Theme?

Perhaps the Plugin can be deprecated?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [April 23, 2022, 7:34am UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/117 "2022-04-23T07:34:53Z")

</div>

Thanks Robert! I will move this to #Customization > Theme soon.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 25, 2022, 1:35pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/118 "2022-04-25T13:35:05Z")

</div>

And it’s done! Check out [Guest Gate Theme Component](https://meta.discourse.org/t/guest-gate-theme-component/225107)

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [April 25, 2022, 9:39pm UTC](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625/119 "2022-04-25T21:39:35Z")

</div>



[Previous page](https://meta.discourse.org/t/guest-gate-sign-up-popup-plugin/56625.md?page=5)
