The discussion revolves around automatically sending private messages (PMs) to users upon reaching specific trust levels in Discourse, particularly to invite them to Slack or congratulate them. cryptominded initiated the request, seeking a personalized, automated DM for Trust Level 2 users. While Mittineague suggested using a pinned topic, cryptominded preferred a more personal touch. erlend_sh noted no built-in feature exists but suggested a plugin could be developed, possibly via the Marketplace. codinghorror confirmed automatic “congrats!” PMs for Trust Levels 1, 2, and 3 are already implemented — including TL1 41f76a7, TL2, and TL3 (“welcome to the lounge”). cryptominded later inquired about retrieving trust level via JavaScript to trigger UI changes, to which Mittineague replied it’s possible via plugin, referencing an old test plugin. Hugo_L asked how to customize these messages to match their tone of voice, and Moin provided a guide: Customizing Trust Level Promotion Messages. The feature is now completed and available in core Discourse.
We have a discourse forum and a slack and would love to invite people to our slack only when they have reached trust level 2.
I would love to be able to automically send a DM once someone reaches trust level 2 with an invitation link to slack. How can I configure this in Discourse?
There’s no built-in way to do this, but it shouldn’t be hard to make a plugin for this. You can post in our Marketplace if it can’t be created internally.
We have discussed sending an automatic “congrats!” PM at trust level 2 and 3, also inviting users to try the advanced discobot tutorial as well @erlend_sh
@codinghorror That be great. For now, is there any way to retrieve a user’s trust level through JS so that we could assign a css class to the <html> tag and show a banner message or button once they reached a certain level?
It should be doable as a plugin if it doesn’t happen in Core. I think you could assign any currentUser property to any tag’s attribute. This is old, crude and not recently tested, but it might help as a start https://github.com/Mittineague/test-plugin
Edit: also in place for Trust Level 2 as well for quite a while now, and the congratulations for TL3 (“welcome to the lounge”) has been in place for some time.