Questions tagged [discourse]

Discourse is the 100% open source discussion platform built for the next decade of the Internet. It works as: a mailing list, a discussion forum, a long-form chat room.

About Discourse

Discourse is a Civilized Discourse Construction Kit, an 100% open-source discussion platform that is free for everyone to use and contribute to -- forever. Key mission goals:

  • A flattened, endlessly scrolling discussion, avoiding the awkardness of traditionally threaded and paginated discussion, while allowing replies to be expanded in place for additional context.

  • A user trust system that grants users additional rights to assist in moderating the forum as they participate in good faith over time. The goal is for the forum to be nearly self-moderating in the absence of any formal moderators, although excellent moderators accelerate the process greatly.

  • An advanced JavaScript app which runs in modern browsers and works identically on desktop and tablet, without the need for a native app.

  • A contemporary, robust technology stack, free of legacy PHP and MySQL constraints limiting developers and administrators.

The Discourse team wishes to foster an active community of contributors, all of whom commit to delivering this continued vision, ensuring that free, unfettered online discussion can grow and thrive in an Internet age dominated by micro-blogging, and diminishing attention spans. Online discussion belongs to all of us, not just huge corporate websites.

This vision translates to the following functional commitments:

  1. Support only modern browsers on the desktop:
    • Internet Explorer 9.0 (may not be fully functional), 10.0+
    • Firefox 16+
    • Google Chrome 23+
    • Safari 5+
  2. Support the latest generation of tablets, 7" or larger
    • iPad 2+
    • Android 4.1+
    • Windows 8
  3. Deliver support for the latest generation of small screen mobile/smartphones as soon as possible:
    • Windows Phone 8
    • iOS 5+
    • Android 4.0+

Expertise

Discourse is built from the following open source components:

  • Ruby on Rails - Our back end API is a Rails app. It responds to requests RESTfully and responds in JSON.
  • Ember.js - Our front end is an Ember.js app that communicates with the Rails API.
  • PostgreSQL - Our main data store is in Postgres.
  • Redis - We use Redis for our job queue, rate limiting, as a cache and for transient data.
178 questions
0
votes
1 answer

discourse can't send email

i installed a discourse on AWS bitnami edu3d.co. I did the following things but still can't send the login verification email. config the discourse by this instruction https://docs.bitnami.com/bch/apps/discourse/configuration/configure-smtp/ in…
Shark Deng
  • 960
  • 9
  • 26
0
votes
1 answer

How do I use XPath to capture a portion of a p tag

I've seen plenty of similar questions on here but still can't get my particular use case working. XPath newby here. I have the following snippet of ruby code post_html = Nokogiri::HTML(post.raw) @restricted_file_types =…
0
votes
0 answers

Is it possible to retrieve the URL from Chrome Customs Tabs after the user has authenticated within a NativeScript-Vue Mobile App?

I have created an app that generates user api keys using a discourse site. They are returned as an encrypted payload as a parameter within the return url. Initially I was using WebView which worked fine but wouldn't allow users to login using Google…
0
votes
1 answer

discourse email activation no longer works due to Content Security Policy violation

I boostrapped discourse using my custom app.yml which uses the cloudflare template like so: templates: - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/web.template.yml" -…
JohnJ
  • 6,736
  • 13
  • 49
  • 82
0
votes
2 answers

Discourse email configuration for AWS SES

I'm trying to get Discourse set up on an AWS EC2 instance, but am having problems getting the emails to send via AWS SES. Firstly I have an email and a domain set up and confirmed (not in sandbox mode) on AWS SES and I can successfully send test…
Alex Little
  • 502
  • 6
  • 21
0
votes
1 answer

Markdown Validator

I am migrating a discussion forum from OSQA to Discourse. I am stuck at one problem in doing so. Since its a discussion forum for coding related topics, much of the posts contains code snippets. Many of the users being beginners do not format their…
0
votes
1 answer

Rendering of a quote of another discourse post

I've created a WordpressComment class that checks if the comment is referencing another comment. If it does it adds a reference in the same pattern as the UI def body(lookup) quoted = nil parent = nil if parent_import_id != nil then …
Keith John Hutchison
  • 4,955
  • 11
  • 46
  • 64
0
votes
0 answers

How to use Discourse comments in VueJS?

I have a website that uses Vuejs. And a forum in Discourse. I am trying to insert a javascript in the template file that will connect comments from the forum to a specific page on Vuejs site. But I get the error: Templates should only be responsible…
Artem
  • 45
  • 2
  • 9
0
votes
1 answer

Case-insensitive search within discourse console

I discovered that using title = 'lowercase and More' topic = Topic.find_by(title:title) will always return nil as the topic title when saved becomes Lowercase and More I tried using topics = Topic.find_by_sql("select * from topics where…
Keith John Hutchison
  • 4,955
  • 11
  • 46
  • 64
0
votes
0 answers

Checking for a Discourse topic title

I have a ruby function that creates a discourse topic if the title is not found. def get_topic(user,title,created_at,bumped_at,last_posted_at,excerpt) title = title.gsub(/ /,' ') puts "get_topic.title:'#{title}' user.id:#{user.id}…
Keith John Hutchison
  • 4,955
  • 11
  • 46
  • 64
0
votes
1 answer

Ruby getting undefined Method error, and i am not sure if i fully understand how methods are working for my plugin

i am trying to create a plugin for Discourse, which is written in Ruby. As normal blank files my program is working perfect and without errors, but when i try to adapt my code into the plugin context i run into issues and i am not sure if i really…
Sebastian
  • 61
  • 6
0
votes
1 answer

ldap filter in omniauth ldap module not working in discourse

I currently try to configure Discourse to only allow users in a specific ldap group to log in. Discourse has a plugin called discourse-ldap auth ( https://github.com/jonmbake/discourse-ldap-auth ). This plugin uses the omniauth ldap module:…
Marvin Klar
  • 1,869
  • 3
  • 14
  • 32
0
votes
0 answers

Host 2 different websites in the same EC2 instance and on the same port

I've currently a discourse container running and working at port 80. This is his nginx configuration: server { listen 80; listen [::]:80; server_name discourse.name.com; # <-- change this location / { proxy_pass…
Filnik
  • 352
  • 1
  • 12
  • 33
0
votes
1 answer

Changing a discourse topic slug via api

We’re moving a Wordpress Sabai Discussion forum to Discourse. Within Sabai, a title can be substantially different from the slug. I’ve tried passing in a different slug and tried a topic_slug on a POST. I’ve tried passing in a different slug and…
Keith John Hutchison
  • 4,955
  • 11
  • 46
  • 64
0
votes
1 answer

Bitnami Discourse and Wordpress standalone in Same AWS EC2 server

We are using Bitnami Discourse in AWS EC2 which is using default port 80. And the DNS is mapped to as domain eg: http:\\sample1.com which is working fine. In the same AWS EC2 instance, we installed Wordpress standalone (without Bitnami) and it is…