Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60642 articles
Browse latest View live

Where should I write this code in my controller for sso login?


Ignore certain tags when searching/filtering?

$
0
0

@MiGrandjean wrote:

Hi everyone!

I really enjoy our Discourse installation, so thumbs up to everyone involved :thumbsup:

We migrated from an old phpBB that also had a lot of german topics. We tagged those as "german" and encourage everyone to use english as preferred language. English topics don't have a tag. Now, a lot of new users just don't understand german (who can blame them? :yum:) and one asked if there's a possibility to exclude those german-tagged topics in their view. I couldn't find an obvious solution - the filtering can do all, none or one specific tag. The search offers "with tags:", but not "without tags:". Is there a possibility to do this?

Best regards,
Michael

Posts: 3

Participants: 3

Read full topic

When a group has exactly fifty members, pagination is activated, but the second page is empty

$
0
0

@barryvan wrote:

Pretty much what the topic says. In group admin, when a group has exactly fifty members, the membership pagination controls are enabled, but the second page contains nothing. I'd imagine it'd be a problem at all multiples of fifty, but I haven't checked. :slight_smile:

Posts: 3

Participants: 2

Read full topic

Use SSL OAuth Redirect URLs

$
0
0

@Horus wrote:

Hello,

I have activated the templates

  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"

The Docker container itself does not use SSL, but it is only bound to localhost and Apache proxies SSL request to it.

I have also enabled Facebook and Google auth. In FB auth you have to give valid OAuth redirect URLs. Can I change Discourse to give the https redirect URL to Facebook and Google? I had to enter http://forum.domain/auth/facebook/callback everywhere, instead of https.

I have seen just only place where it gives the protocol in the settings: "contact url", which is already set to https.

Thx!

Posts: 4

Participants: 3

Read full topic

Discourse admins - how addicted are you?

Does the use of private plugins breach the terms of the GNU GPL v2?

$
0
0

@angus wrote:

Having just re-read the GNU GPL v2 and currently thinking about how an 'app store' for Discourse would work, it occurred to me that it is arguable that the use of Discourse plugins for which the source code is not publicly available (e.g. in a private repository) breaches the terms of the GPL v2.

Taken together, these parts of the GPL v2 seem to require that the source code of plugins be publicly available:

...a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.
...
2. b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
...
[ All of section 3]
...

For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.

There are further parts I could cite, but this would get too long...

Maybe that is not the way people have understood the terms of the GPL v2 in the past, but it is seems eminently arguable from a contractual perspective.

Disclaimer: This is an impression based on a brief reading of the documents. This is not a formal legal opinion.

...

Doing some very preliminary research it seems that my impression may be shared by others, and by some courts.

Interestingly, it seems that the folks pursuing cases over the availability of GPL v2 source code are typically not the copyright holders.

Posts: 10

Participants: 5

Read full topic

Good use cases for groups (to better understand groups vs categories)

$
0
0

@tophee wrote:

I'm trying to get my head around possible uses of groups. Or rather: good uses, because the number of possible uses is virtually infinite. My basic question here is: how do you use groups?

My guess is that the most common use of groups is to use them a way of managing access to categories (and/or badges) and not much more. But with group mentions and messages there seems to be much potential for using them to communicate too. I imagine them group messaging like a little mailing list, though not necessarily with emails since those will only be sent to users who are watching the group, right? In contrast to categories, the group can be setup so that people can easily enter and leave groups.

When it comes to communicating through groups, a crucial seems to be Default notification level for group messages which is set to normal by default, which means that group members will no notice even the wildest discussions going on in their group unless they are mentioned, right? In other words, to make use of groups for messaging you probably want to change that setting to tracking or higher and you want to do it from the outset because it is not applied retrospectively to existing members.

But the point of this topic is: what does this look like in practice? And in cases where similar results can be achieved with both groups and categories, how did you decide which one to use?

Posts: 1

Participants: 1

Read full topic

Can't rebuild. Freezes midway through

$
0
0

@brunoedigital wrote:

I'm trying to rebuild my app to install a new plugin and it always stops in the same command:

I, [2017-05-17T13:37:38.472006 #13]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development'

It freezes right there and simply does not continue. Doesn't give any error or warnings at all. Just freezes.

I've already restarted the server with sudo shutdown -r now and then rebuild but still no go.

Any suggestions?

It's a Digital Ocean install with Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-77-generic x86_64)

Let me know! Thanks!

Posts: 3

Participants: 2

Read full topic


Discourse + Docker on existing VM with PHP site

$
0
0

@fregas wrote:

I have a VM setup for a new website I'm developing (Concrete5, PHP, MySQL) and I was wondering if I would run into any issues with running Discourse+Docker on the same box? Will Docker mess w/ my existing Nginx configurations?

Posts: 5

Participants: 3

Read full topic

Win10 keycap_star.png emoji still broken

Possible bug with 'Redirect After Discourse Login' field

$
0
0

@apautler wrote:

I've been chatting with Arpit about the some issues with the redirect URL after you login. Here is a little context:

Our forum is connected to WordPress via the WP Discourse forum. When you try to go to the forum before logging in, it redirects you to the WordPress login page (which is correct). After you login though, it redirects you to the WordPress homepage vs. the page I have set in the 'Redirect After Discourse Login' (see here: http://share.ptlrdsgn.com/1q2m2b25360h).

Arpit referenced this code (https://github.com/discourse/wp-discourse/blob/58546613b97497e9698b1a7110bdbb6f76baa2b8/lib/discourse-sso.php#L64) and said:

It seems like home_url('/dashboard') is not getting parsed correctly. This might be a bug in wp-discourse plugin, not sure though.

@Simon_Cossar, he said you might be able to take a look.

Ideally I'd have the user redirect back to the forum homepage after coming to the login page from that URL, but it doesn't appear the 'Redirect After Discourse Login' allows external links. If that is not possible, I'd like to at least redirect the user to the WordPress page I set in the 'Redirect After Discourse Login' field.

Posts: 1

Participants: 1

Read full topic

Plugins not loading. What am I missing?

$
0
0

@rohmann wrote:

I'm attempting to write a custom plugin. I've got a development environment setup with vagrant. I've created my own plugin

# name: my-plugin
# about: Customizations
# version: 0.0.1
# authors: Alex

I've also installed a couple official plugins. Although the plugin names appear on the admin plugin screen, their javascript isn't loading - even for the official ones. No connectors are being loaded through their respective outlets.

I've tried clearing tmp and restarting Rails with: rm -rf tmp; bundle exec rails s -b 0.0.0.0

Any thoughts on what I'm missing or doing wrong here?

Posts: 3

Participants: 2

Read full topic

Dealing with highly contentious discussions

$
0
0

@codinghorror wrote:

There's excellent moderation advice in this article, which is ostensibly about moderating challenging offline political discussions -- but I think can also apply to online discussions:


  1. A topic will be set for each meeting. It is permissible to post well-researched and sourced articles about the topic before and after the meeting only if you will be attending the meeting in person. The goal of this group is to take the conversations offline and to be neighborly. Therefore, articles should just be mostly suggested reading material. If comments get out of hand I will remove the post.

  2. We should avoid labels as much as possible such as Democrats think this and Republicans do that. We can talk about party platforms but not assume that a neighbor’s ideas and opinions can be defined or assumed solely by the political party or religion they align with.

  3. Participants goals should NOT be to try to influence or change their neighbor’s mind. The goal is to listen to understand and to speak to be understood. If we walk away from each meeting understanding the perspective of someone who does not share our ideas and opinions, that is a win!

  4. At the meeting, a person is not allowed to dominate the conversation. If you need to make a point that is going to take some time to explain, ask for 5 min. You will have 5 minutes to make your point with no interruptions. No one should speak for more than 5 minutes at a time.

  5. The focus will be on issues and policy — not on character traits of a politician. We may bring up how a politician spoke about or voted on an issue or policy, but not on anything unrelated to the issue or policy.

Some of this echoes what I have been thinking when looking at the most challenging, tumultuous discussions in Discourse. I want to elaborate on a few things in a reply and get your thoughts on this too.

Posts: 1

Participants: 1

Read full topic

Importing mbox files fails at creating forum topics due to invalid byte sequence

$
0
0

@yanokwa wrote:

I am using Discourse v1.8.0.beta12 +34 and I've used Icy's Google Group Crawler to generate mboxes of the various Google Groups I'm importing into Discourse. I've successfully imported a couple of groups, but I've run into an issue where the script errors with this message.

creating forum topics
     1359 / 5133 ( 26.5%)  [53 items/min]  /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/core_ext/object/blank.rb:24:in `blank?': invalid byte sequence in UTF-8 (ArgumentError)
	from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/core_ext/object/blank.rb:24:in `present?'
	from /var/www/discourse/lib/email/receiver.rb:238:in `try_to_encode'
	from /var/www/discourse/lib/email/receiver.rb:229:in `block in fix_charset'
	from /var/www/discourse/lib/email/receiver.rb:228:in `each'
	from /var/www/discourse/lib/email/receiver.rb:228:in `fix_charset'
	from /var/www/discourse/lib/email/receiver.rb:184:in `select_body'
	from mbox.rb:426:in `block (2 levels) in create_forum_topics'
	from /var/www/discourse/script/import_scripts/base.rb:432:in `block in create_posts'
	from /var/www/discourse/script/import_scripts/base.rb:431:in `each'
	from /var/www/discourse/script/import_scripts/base.rb:431:in `create_posts'
	from mbox.rb:419:in `block in create_forum_topics'
	from /var/www/discourse/script/import_scripts/base.rb:784:in `block in batches'
	from /var/www/discourse/script/import_scripts/base.rb:783:in `loop'
	from /var/www/discourse/script/import_scripts/base.rb:783:in `batches'
	from mbox.rb:413:in `create_forum_topics'
	from mbox.rb:57:in `execute'
	from /var/www/discourse/script/import_scripts/base.rb:45:in `perform'
	from mbox.rb:555:in `<top (required)>'
	from googlegroup.rb:51:in `load'
	from googlegroup.rb:51:in `import_to_discourse'
	from googlegroup.rb:73:in `<main>'

I know this isn't the most useful bug report and I'd love the community's help in making it more useful. My guess is that there is some Unicode character that is the problem, but I don't have a good idea on how I output what topic or mbox file is causing the problem...

Posts: 5

Participants: 2

Read full topic

Importing mbox files fails at creating forum topics due to html_to_markdown conversion

$
0
0

@yanokwa wrote:

I am using Discourse v1.8.0.beta12 +34 and I've used Icy's Google Group Crawler to generate mboxes of the various Google Groups I'm importing into Discourse. I've successfully imported a couple of groups, but I've run into an issue where the script errors with this message.

creating forum topics
     441 / 1429 ( 30.9%)  [104 items/min]  /var/www/discourse/lib/html_to_markdown.rb:117:in `visit_li': undefined method `name' for nil:NilClass (NoMethodError)
	from /var/www/discourse/lib/html_to_markdown.rb:63:in `visit'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `block in traverse'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:187:in `block in each'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `upto'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `each'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `traverse'
	from (eval):3:in `visit_div'
	from /var/www/discourse/lib/html_to_markdown.rb:63:in `visit'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `block in traverse'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:187:in `block in each'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `upto'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `each'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `traverse'
	from /var/www/discourse/lib/html_to_markdown.rb:63:in `visit'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `block in traverse'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:187:in `block in each'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `upto'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `each'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `traverse'
	from /var/www/discourse/lib/html_to_markdown.rb:63:in `visit'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `block in traverse'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:187:in `block in each'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `upto'
	from /usr/local/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.1/lib/nokogiri/xml/node_set.rb:186:in `each'
	from /var/www/discourse/lib/html_to_markdown.rb:48:in `traverse'
	from /var/www/discourse/lib/html_to_markdown.rb:42:in `to_markdown'
	from /var/www/discourse/lib/email/receiver.rb:198:in `select_body'
	from mbox.rb:426:in `block (2 levels) in create_forum_topics'
	from /var/www/discourse/script/import_scripts/base.rb:432:in `block in create_posts'
	from /var/www/discourse/script/import_scripts/base.rb:431:in `each'
	from /var/www/discourse/script/import_scripts/base.rb:431:in `create_posts'
	from mbox.rb:419:in `block in create_forum_topics'
	from /var/www/discourse/script/import_scripts/base.rb:784:in `block in batches'
	from /var/www/discourse/script/import_scripts/base.rb:783:in `loop'
	from /var/www/discourse/script/import_scripts/base.rb:783:in `batches'
	from mbox.rb:413:in `create_forum_topics'
	from mbox.rb:57:in `execute'
	from /var/www/discourse/script/import_scripts/base.rb:45:in `perform'
	from mbox.rb:555:in `<top (required)>'
	from googlegroup.rb:51:in `load'
	from googlegroup.rb:51:in `import_to_discourse'
	from googlegroup.rb:73:in `<main>'

I know this isn't the most useful bug report and I'd love the community's help in making it more useful. My guess is that there is some Markdown embedded in HTML or vice-versa that is the problem, but I don't have a good idea on how I output what topic or mbox file is causing the problem...

Related: https://meta.discourse.org/t/importing-mbox-files-fails-at-creating-forum-topics-due-to-invalid-byte-sequence/62889

Posts: 3

Participants: 2

Read full topic


SSO Confusion for Users with Impersonate options on origin platform

$
0
0

@RyanK wrote:

It's not uncommon for our support staff to impersonate a user within our core platform interface, which often results in them being logged in to the browser as a different user when they click over to the forum. This triggers creation of a discourse linked account and an email to someone who has never visited. While I like spreading the word to new people, this is very confusing to users and tedious for staff.

Is there any way around this other than using two different browsers at the same time and being careful?

Posts: 3

Participants: 2

Read full topic

WP + Discourse SSO Continuity Issue

$
0
0

@Muiran wrote:

Following a link from meta.discouse.org, I found and joined this Discourse instance
http://community.quirky.com/

All seemed well, untill in a hunt for more detail information I found my way to the primary domain, read through it and was asked to log in.
I tried myUser name and Password from the forum.
Failed and told me my email was already in use.
Eventually I saw that aonly and email can be used as an id from the wordpress area of the website while only a user name and password is required on the Discourse side of the installation.

How do avoid this hapening on my site?

Posts: 1

Participants: 1

Read full topic

Prompt to enable Force HTTPS in the wizard

$
0
0

@fefrei wrote:

When setting up a new Discourse forum, I recently forgot to enable the force https setting :frowning:
This isn't just a security issue, it also prevents internal HTTPS links from getting the onebox treatment.

Because this setting should usually be enabled anyway, I'd suggest that the setup wizard should prompt to enable it, at least if the user is viewing the wizard over HTTPS. (In that case, I'd even consider enabling it without prompting...)

Posts: 4

Participants: 3

Read full topic

Incorrect user avatar when oneboxing post link that was moved

$
0
0

@jomaxro wrote:

Sorry for the long title, this was difficult to explain succinctly. Currently on mobile so I haven't been able to test the repro, but here's what i just encountered.

User A made a post in a topic.
Users B, C, D, and A replied.
Admin E moved all posts to a new topic (F).
Admin E posted the link to topic F on its own line in a PM.
Admin E's avatar appears in the onebox for the topic.

Expected result: User A's avatar appears.

Posts: 1

Participants: 1

Read full topic

Mybb import skips importing posts

$
0
0

@smaffulli wrote:

hello folks, I'm trying to understand why the import script from mybb is failing to do its job on many posts. I'm trying to import from a forum that has around 190,000 posts. The import scripts imports some of them but many seem to be missing. The output of the script RAILS_ENV=production ruby mybb.rb contains lines like the ones below:

166417 / 170395 ( 97.7%) [74673 items/min] Parent post 1044397448 doesn't exist. Skipping 186530: PHP: HTTP_HOST vs. SERVER_NAME

or

Parent post 1251298548 doesn't exist. Skipping 188213: $_POST empty

and when I try to count how many of these posts are skipped, I get a considerable number, around 120,000. Quite a lot of them.

$ grep Skipping import.log | wc -l
124115

I can't figure out why these posts are skipped. What does it mean that a parent post doesn't exist? Any suggestion on where to look next?

Posts: 4

Participants: 2

Read full topic

Viewing all 60642 articles
Browse latest View live


Latest Images