Guest Gate (Sign Up Popup Plugin)

你好,
谢谢 :slightly_smiling_face:

你检查了“x 按钮禁用”和“重定向到主页”选项吗?

是的,当然。但我认为,显示一个提示用户登录或注册的横幅,但另一方面他们仍然可以将其关闭并继续阅读,这有点自相矛盾。
或者,这种选择是否应该被用作一个小的提示,以避免强迫和惹恼他们注册账户?

你是英雄。这正是我想要做的——也是为什么我花了这么长时间。你抢先一步了。谢谢!

我建议我们现在弃用这个插件。这个主题组件好太多了。

主题组件确实有一个问题:内容闪烁未隐藏,如果你在管理屏幕上按刷新,你会看到关闭按钮出现又消失。这个问题很久以前在插件中就已经存在了。

3 个赞

我尝试查找此问题,但在我的管理员界面上无法重现。您能检查一下此主题组件是否仍然出现此问题吗?

谢谢!

啊,好的,我找到了。:slightly_smiling_face: 我使用了 Discourse Loading Slider 组件,所以没有看到它。当我禁用 Slider TC 时,刷新时会出现 X。

编辑:我已修复。谢谢你,Michael!

1 个赞

您是否计划为此创建一个专门的主题?

1 个赞

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:

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.

3 个赞

感谢您的建议。我已将其更改为上传类型。

4 个赞

您好,

我在主题组件中进行了一些更改。

以前 Guest Gate 会覆盖 modal.hbs,现在我已清理了此文件,并在 guest-gate.hbs 中使用了 dismissable=false。我删除了 modal.hbscomponents/d-gate.js 文件,因为现在我们将访客门模态框与其他模态框分开处理。我还从 guest-gate.hbs 中删除了内容,并将 CSS 移至 common.scss,因为这不会再影响其他模态框。

我将 x_button_disabled 设置的名称更改为 dismissable_false

5 个赞

干得好。你应该把 TC 移到一个专门的 Theme 主题中?

也许可以弃用该插件?

7 个赞

谢谢你,罗伯特!我很快就会把它移到 #theme。

4 个赞

完成了!快来看看 访客入口主题组件

8 个赞