# Using Discourse to power comments in an event system or blog?

**URL:** https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308
**Category:** Support
**Created:** [6월 20, 2018, 1:22오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308 "2018-06-20T13:22:56Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 20, 2018, 1:22오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/1 "2018-06-20T13:22:57Z")

</div>

Now that Disqus has been taken over by Zeta Global a big marketing and harvesting firm, a lot of developers are hesitant to keep using it, leaving those needing a modular comments system without an obvious alternative. Lots of small projects but nothing i can see that’s established yet.

Our community use Discourse, and we also have an event system with a comments section in each event created. I’d love to be able to use Discourse to power that.

I believe that the current plugin would need to be manually configured to create a comments system each time a new event was created, so it wouldn’t be scale-able.

Has anyone set up something similar?

---

<div class="post-metadata">

### Author: ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)
#### Post date: [6월 20, 2018, 3:21오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/2 "2018-06-20T15:21:22Z")

</div>

+1 to this request - I would imagine it would essentially be modeled after the Wordpress plugin

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6월 20, 2018, 3:25오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/3 "2018-06-20T15:25:48Z")

</div>

I don’t get this request 😕

You can drop the [Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963) in literally **any page** and it will create a comment topic for you automagically.

What’s the problem with that?

---

<div class="post-metadata">

### Author: ![Carlo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlo/32/79036_2.png) [@Carlo](https://meta.discourse.org/u/Carlo)
#### Post date: [6월 20, 2018, 5:48오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/4 "2018-06-20T17:48:47Z")

</div>

> [@Andy02](#):
>
> Now that Disqus has been taken over by Zeta Global a big marketing and harvesting firm, a lot of developers are hesitant to keep using it

OMG, I thought for a second you were talking about Discourse… 🤣 Sorry false alert

As for the commenting system ( as mentioned [here](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963/262)), I willing to bring my help.

Small issue I am a designer 🙄. But still willing to help ( planning, tutorial, design… )

The idea I had in mind was something similar to [techcrunch.com](http://techcrunch.com) commenting system, example:  
[https://techcrunch.com/2018/06/20/europe-takes-another-step-towards-copyright-pre-filters-for-user-generated-content/](https://techcrunch.com/2018/06/20/europe-takes-another-step-towards-copyright-pre-filters-for-user-generated-content/)

First questions that come to my mind are:

- Should we use an api or web hooks ? Some kind of a plugin maybe ? Or even an iframe ( security risks ) ?
- What about registering new users ? Is there a way to connect/merge users with SSO for each CMS

---

<div class="post-metadata">

### Author: ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)
#### Post date: [6월 20, 2018, 6:44오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/5 "2018-06-20T18:44:00Z")

</div>

I literally have never seen this glorious thing…

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6월 20, 2018, 6:50오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/6 "2018-06-20T18:50:47Z")

</div>

It’s **very** flexible.

If you already have a Discourse instance around, you can drop that few lines of JS into any HTML page and it just works.

---

<div class="post-metadata">

### Author: ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)
#### Post date: [6월 20, 2018, 6:51오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/7 "2018-06-20T18:51:48Z")

</div>

It looks to be just one way (discourse to webpage) - can it do webpage-to-discourse to be used a comment system?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6월 20, 2018, 6:54오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/8 "2018-06-20T18:54:15Z")

</div>

You lost me there.

Let’s say I have a webpage at: `https://falco.muito.ninja/awesome-page.html`.

You add the JS snippet to the page, and Discourse will provide comments right at the page.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6월 20, 2018, 11:14오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/9 "2018-06-20T23:14:50Z")

</div>

> [@Andy02](#):
>
> Now that Disqus has been taken over by Zeta Global a big marketing and harvesting firm,

Oh I had missed that I guess?

> **[Zeta Global acquires commenting service Disqus | TechCrunch](https://techcrunch.com/2017/12/05/zeta-global-acquires-commenting-service-disqus/)**
>
> Marketing tech company Zeta Global is making good use of its recent $140 million Series F funding round. After acquiring Boomtrain, the company today announced it has acquired Disqus, a service you're probably familiar with thanks to its ubiquitous...

> [@Falco](#):
>
> You add the JS snippet to the page, and Discourse will provide **READ ONLY** comments right at the page.

Just a bit of clarification to the above though, in bold 😉

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 20, 2018, 11:35오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/10 "2018-06-20T23:35:49Z")

</div>

yes, that looks lovely @Carlo clean and simple.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 20, 2018, 11:43오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/11 "2018-06-20T23:43:18Z")

</div>

To comment users need to login and visit the forum, which most won’t want to do.

Also this is only really scale-able for a few comments section. If we post 500 articles and 300 events/ year, manually adding a comments section is going to be painful, it needs to have the function to be automatically created as it would do on an events system of blog.

Lots of others are discussing this same issue since the the Disqus take over, for example the 94 comments on here: [Alternative to Disqus Needed More Than Ever - #93 by TotallyInformation - support - HUGO](https://discourse.gohugo.io/t/alternative-to-disqus-needed-more-than-ever/5516/93)

Any objections if i create a thread specifically for creating this, or building on the official app, and invite everyone i find complaining about the issue to join in.

People can either join the build, or chip in a few coins to create a bounty to pay for other devs to create.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6월 20, 2018, 11:48오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/12 "2018-06-20T23:48:03Z")

</div>

> [@Andy02](#):
>
> manually adding a comments section is going to be painful

Why would you do this manually?

You just use the server-side template language to fill the variables in the comment JS snippet.

For example:

```plaintext
discourseEmbedUrl: 'http://example.com/blog/entry-123.html' };

```

becomes:

```plaintext
discourseEmbedUrl: 'http://example.com/blog/<%= @my_page_slug %>.html' };

```

---

<div class="post-metadata">

### Author: ![Carlo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlo/32/79036_2.png) [@Carlo](https://meta.discourse.org/u/Carlo)
#### Post date: [6월 21, 2018, 7:38오전 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/13 "2018-06-21T07:38:46Z")

</div>

Hello @Falco, how are you? Will Brazil win the World Cup?

_Sorry, I know some Portuguese; I felt the need to show off 😁_

> [@Andy02](#):
>
> Also, this is only really scalable for a few comment sections. If we post 500 articles and 300 events per year, manually adding a comment section will be painful; it needs the function to be automatically created, as it would on an events system or blog.

@Andy02 Rafael is right on that one; you don’t have to post the embed JavaScript on each page. You should be able to do that automatically if you’re using a CMS.

Going back to the plugin idea, **people will be responding directly on the blog post** , without visiting the forum.

Right now, my three main questions are:

- How will users register? (iFrame, SSO login, etc.)
- Can an external website post on Discourse?
- How secure is it?

---

<div class="post-metadata">

### Author: ![Cameron\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cameron_d/32/97535_2.png) [@Cameron\_D](https://meta.discourse.org/u/Cameron_D)
#### Post date: [6월 21, 2018, 7:51오전 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/14 "2018-06-21T07:51:43Z")

</div>

> [@Carlo](#):
>
> Can an external website post on Discourse ?

If you use the standard embedding code then it will automatically create a thread for a page/topic the first time it gets viewed. Otherwise, there’s always the API: [https://docs.discourse.org/](https://docs.discourse.org/)

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 21, 2018, 9:20오전 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/15 "2018-06-21T09:20:52Z")

</div>

[Discourse SSO](https://meta.discourse.org/t/13045?silent=true) works excellently, we have it set up on different parts of our site. Users log in once and remain logged in across different areas outside of discourse.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6월 21, 2018, 7:46오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/16 "2018-06-21T19:46:32Z")

</div>

> [@Carlo](#):
>
> Hello @Falco, how are you? Will Brazil win the World Cup?
> 
> _Sorry, I know some Portuguese; I felt the need to show off 😁_

Well done! I certainly hope so! 🇧🇷

> [@Carlo](#):
>
> How will users register? (iFrame, SSO login, etc…)

If you want users to be able to post comments directly on the page, [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) is a must. Things will be much easier to manage if you can guarantee user identity on both sites and easily map between them.

> [@Carlo](#):
>
> - Can an external website post on Discourse?

Use the Discourse API on the server side. It’s as easy as pie to grab a form POST and send it to Discourse.

> [@Carlo](#):
>
> - How secure is it?

100% secure. SSO on both sites plus server-side processing for comments will ensure security.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 27, 2018, 6:08오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/17 "2018-06-27T18:08:11Z")

</div>

i’m going to be away on a 950km walk from next Friday to promote the launch of our app to help people who are homeless around the world, so i’m not going to be able to contribute on this for over a month. i think there are more than enough people interested in this, if someone creates a thread inviting others to join a collaborative build it’ll draw people and be complete in almost no time.

where is the best place to post it, and should we plan the requirements now so we can add them in the 1st post?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 28, 2018, 12:25오전 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/18 "2018-06-28T00:25:54Z")

</div>

Good luck with your 🚶‍♂️ sounds like an adventure.

> [@Andy02](#):
>
> interested in this

I am having trouble with what “this” is, if “this” is relating to a “read-write” it is going to have to be a plugin and nobody from core will be working on it.

If “this” is relating to a “readonly” embed, it is already completely supported.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 28, 2018, 3:07오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/19 "2018-06-28T15:07:08Z")

</div>

thank you 🙂

yes, its a plugin we’re talking about. i’m not sure where to post the proposal for one to invite people into building it.

i think we’ve established there is wide enough interest in creating it for people to get behind building it though, especially now there is a huge space left by Disqus’s sell out, and that it is technically feasible.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 30, 2018, 4:16오후 UTC](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308/20 "2018-06-30T16:16:31Z")

</div>

Thanks for your replies to the new discourse comments. It looks like the marketplace here is the right place to begin coordinating that, even if its probably a mostly unpaid build so i’ve created a thread there to invite everyone i can find that might be interested along to.

If you’re interested in being a part of it please join in 🙂

> [@New plugin build: Discourse 2-way API Comment System](https://meta.discourse.org/t/new-plugin-build-discourse-2-way-api-comment-system/91271):
>
> The Plugin This is a thread for designing and developing a new plugin, one that creates a 2-way comments system so users can use our beautiful discourse forums to comment on external pages, like blog posts without having to leave the page they are on to visit the forum There are 2 ways to join in the build, either by joining the coders below. Or if everyone interested throws a few coins in we can create a bounty and hire someone to create the plugin. Post below if you’re interested in either …

[Next page](https://meta.discourse.org/t/using-discourse-to-power-comments-in-an-event-system-or-blog/90308.md?page=2)
