Discourse 自定义应用横幅

如果您有自定义的 Discourse 应用或公司应用,您可能希望向用户展示自定义应用横幅。Discourse 目前仅支持通过“其他”-> native app install banner 站点设置引导用户前往 Discourse 应用,示例如下:

afbeelding

discourse-custom-app-banner 插件允许您配置自己的 iTunes 或 Android 应用,并展示相应的横幅。

该插件位于:GitHub - communiteq/discourse-custom-app-banner · GitHub

本插件是为 RZIM Connect 开发的,感谢 @outofthebox 慷慨允许我们将其实体开源。

9 个赞

Richard, I’m grateful for your professionalism, speed, and expertise on the Discourse platform.

This plugin provides our members with a better experience. Thank you!

I’m also grateful that you wanted to share this plugin with the Discourse community, which speaks to your character and loyalty. I am very happy to be able, through your hard work, to contribute a tiny bit back to this outstanding product and community.

3 个赞

I think it’s very reasonable to merge this functionality into core.

Two hidden site settings, that allow you to input android_app_id and ios_app_id and default to the current values.

I thought about doing this way, but back then there was just one Discourse app :wink:

9 个赞

Agreed, this is totally fine to merge in. We do not want to forcefully tie people to the one app, that’s not intentional.

7 个赞

这是一个针对尝试使用此插件用户的快速教程。该功能现已集成到核心中。
有两个隐藏的网站设置:ios_app_idandroid_app_id

要设置这些,请打开 Rails 控制台并输入:

SiteSetting.ios_app_id = XXX
SiteSetting.android_app_id = YYY

其中 XXX 和 YYY 是相应的应用 ID。

然后,您可以在“管理 - 设置”界面中启用 native_app_install_banner_iosnative_app_install_banner_android 设置。

4 个赞