How do I link forum topics like the vanilla plugin pages?
Hi guys, I was wondering how I could like my vanilla forum topics in the same way as done on this site. I'e provided screenshots as examples:
The discussion page
The plugin page
Note the highlight in red. It somehow knows which page this discussion relates to:
How can I do the same thing? I would like to link fourm chat topics to specific pages just like shown above. Is this something baked into the general software, or have the site devs built this custom functionality?
Thank you
S
Best Answer
-
Tim Vanilla Staff
Our addon app adds a column to the GDN_Discussion table that relates discussions to addons. When you click "Ask A Question" on a plugin page, the plugin's ID is inserted into that field. When a discussion is rendered, our addons app hooks into an event and checks for that field. If it has an ID in it, we render the text you see there.
You can write a plugin which does this.
2
Answers
Our addon app adds a column to the GDN_Discussion table that relates discussions to addons. When you click "Ask A Question" on a plugin page, the plugin's ID is inserted into that field. When a discussion is rendered, our addons app hooks into an event and checks for that field. If it has an ID in it, we render the text you see there.
You can write a plugin which does this.
Vanilla Forums COO [GitHub, Twitter, About.me]
And that addons app is open source here for reference: https://github.com/vanillaforums/VanillaAddonsApp
Tim,
Thanks for the quick answer. I think I'm going to try an integration into one of my sites.
Sheraz
How to use this addon app?
Download it, copy to your applications folder and active in in your dashboard