Bannière d'application personnalisée pour Discourse

Si vous disposez d’une application Discourse personnalisée ou peut-être d’une application pour votre entreprise, vous voudrez peut-être afficher une bannière d’application personnalisée à vos utilisateurs. Discourse ne permet que de rediriger les utilisateurs vers l’application Discourse via le paramètre du site Other → native app install banner, comme illustré ci-dessous :

afbeelding

Le plugin discourse-custom-app-banner vous permet de configurer vos propres applications iTunes / Android et d’afficher une bannière pour celles-ci à la place.

Le plugin est disponible sur GitHub - communiteq/discourse-custom-app-banner · GitHub

Ce plugin a été développé pour RZIM Connect et @outofthebox a eu la gentillesse de nous autoriser à le rendre open source.

9 « J'aime »

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 « J'aime »

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 « J'aime »

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 « J'aime »

Un rapide tutoriel pour ceux qui souhaitent utiliser ce plugin. La fonctionnalité est désormais intégrée au cœur du système.

Il existe deux paramètres de site masqués : ios_app_id et android_app_id.

Pour les définir, ouvrez une console Rails et saisissez :

SiteSetting.ios_app_id = XXX
SiteSetting.android_app_id = YYY

où XXX et YYY sont les identifiants d’application respectifs.

Ensuite, vous pouvez activer les paramètres native_app_install_banner_ios et native_app_install_banner_android depuis l’écran Admin - Paramètres.

4 « J'aime »