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

Discord Oauth2 Plugin

0
0

@awole20 wrote:

By popular demand, I’ve created a plugin to allow users to log in via Discord.

You can find the plugin here: https://github.com/featheredtoast/discourse-plugin-discord-auth

After installing the plugin,

  • Generate the application here, and copy the Client ID and Client Secret.
  • Add the your website to the REDIRECT URI(S) using
    https://example.com/auth/discord/callback
    (replacing the https with http and example.com with your full qualified domain/subdomain)
  • Update the plugin settings in the Admin > Settings area with the Client ID and Client Secret.

Some under the hood notes for those curious:

Special thanks to @cpradio for providing a great starting point for this via the LinkedIn Oauth2 plugin.

Posts: 6

Participants: 2

Read full topic


WP + Discourse Multisite Work Around?

0
0

@Muiran wrote:

Hypothesis
To achieve the function and apperance of WordPress SSO for Discourse Multisite, I thought to “suppress” the WP Login Completely, substituting the Discourse Login as the only means of access.

I want to retain the cosmetic appearance and function of registered memberships logging into the WP Public Facing Landing Page vis vis Facebook-style firewall.

Can I create an additional menu and hamburger element listing the multisite the Member has access to?

Can a set of super groups be created that grant full or limited access with granularity to selected Discourse sites within the multisite complex. Sites without access would not be visible.

Can this schema and ontology work, has anyone tried it?

If my proposal is feasable, can I get recomendations from those visiting and responding, for developers with the eeded skillset and experience to complete this projekt?

Is this something I need to ask the Founders to help with?

I realize this a a considerable undertaking, so of course I’m not suggesting this as a pro bono.

Hope to hear from yo soon and thanks :love_you_gesture:t5:,

Muíran

Posts: 2

Participants: 2

Read full topic

Rebuild app complains about diskspace (AWS)

0
0

@donlucas wrote:

Been trying to walk through the INSTALL-cloud.md documentation on an AWS ec2 instance. I’ve virtual linked /var/discourse to a drive with 33GB available but when I execute the ./launcher rebuild app command, I get the following error:

You have less than 5GB of free space on the disk. You will need more space to continue

Not sure how to proceed. ‘cleaning’ docker images (this is the only image on the host) does not resolve the issue and there are 33GB available on the disk.

Posts: 6

Participants: 3

Read full topic

SSO add_groups should be case-insensitive

0
0

@pfaffman wrote:

I think I’ve finally figured out how to get Paid Memberships Pro to properly update group memberships with an SSO payload. My last problem was because I was careless about case of group names. And since I got the case wrong only once, it took me forever to find it.

Perhaps I should call this a feature request, but it cost me another 15 minutes to figure this one out, so I’m calling it a :bug:. :slight_smile:

Posts: 1

Participants: 1

Read full topic

HTML code tags replace quotes with curly quotes

0
0

@clay wrote:

Seems like using <code>{"curly":True}</code> should prevent conversion of quotes to curly quotes.

{“curly”:True}

{"curly":False}

{"curly":False}

Generated from…:

<code>{"curly":True}</code>

`{"curly":False}`

```
{"curly":False}
```

Posts: 5

Participants: 2

Read full topic

What in the docker take so much place?

0
0

@Chopper wrote:

This is the question about the 10GO min, what in the docker container take so much place ? A default install of Discourse is ~5-6go, so what takes so much space with an empty forum ?

Thanks

Posts: 2

Participants: 2

Read full topic

Thanx a lot dev community

Easy way to make front page category columns?

0
0

@Bri_Castellini wrote:

I’m the Community Director for an indie web series forum and we’ve got categories like “ask the community” and “job postings” which, as you can imagine, are pretty dissimilar. Right now our front page is just the latest posts in all categories, which is working fine, but I’m interested in exploring a column layout, with, perhaps, the most recent 10 threads in each category displayed. Two categories a row, with as many rows as there are pairs of categories.

Is there a plugin to test how that would look/work?

Posts: 6

Participants: 2

Read full topic


First load on embedded comments fail on WebKit

0
0

@Falco wrote:

The first time an article with embedded Discourse comments is loaded we load the IFRAME with the following request:

GET https://forum.example.com/embed/comments?embed_url=https://site.example.com/article
referer: https://site.example.com/article

This will serve a page with

  (function() {
    setTimeout(function() {
      document.location.reload();
    }, 30000);
  })();

So Jobs::RetrieveTopic have time to download the page, create the topic and work it’s magic.

30 seconds after the IFRAME reloads, and if we have a topic it works, and if we don’t it will try again in 30 seconds, just fine.

However, on Webkit and derivatives, thanks to this bug the Javascript reload will change the referer to the current location of the IFRAME:

GET https://forum.example.com/embed/comments?embed_url=https://site.example.com/article
referer: https://forum.example.com/embed/comments?embed_url=https://site.example.com/article

This will result in an error, because forum.example.com is not allowed to embed comments.

My proposal to work around this bug is to always allow the forum own FQDN in the list of allowed referrers. Is it a good fix?

Posts: 2

Participants: 2

Read full topic

Disadvantages of transactional email services?

0
0

@smaffulli wrote:

While testing Discourse, I experimented with using an SMTP server and sendgrid. Both seem to have major drawbacks and I’d like to discuss with other Discourse admins how you’re dealing with sending emails.

The issue with using an SMTP server (self-hosted or something similar) is that in theory its IP address could be quickly graylisted or blocked by ISPs. If that happens, a percentage of Discourse users may not receive their important emails (password resets and account confirmations).

With sendgrid/mailgun the main drawback I see is that every email sent through those services gets a link at the bottom allowing users to unsubscribe and never be contacted again. From what I have learned, Discourse uses only one email setting for both sending administrative emails (i.e. password reset) and other emails like digests, notifications of mentions etc. What if a lazy user clicks on mailgun’s unsubscribe link instead of their own preferences on Discourse?

What’s your experience with email servers in real life? Do you think any of these drawbacks may have real impact on a forum with ~30k users?

Posts: 2

Participants: 2

Read full topic

Rubocop has landed on Discourse :policewoman: :policeman:

0
0

@tgxworld wrote:

What is Rubocop?

In short,

RuboCop is a Ruby static code analyzer. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide.

Why do we need it?

We’ve started to notice a divergent in the coding styles used across our Ruby files as our code base continues to grow and new inconsistencies are constantly being introduced. Without using a linter, it is hard for us to maintain and communicate the coding style that the Discourse team would like to follow. With Rubocop, the coding style is being policed automatically by these set of rules defined in .rubocop.yml.

How do I run it?

In the root directory of your Discourse folder, simply run

bundle exec rubocop

or

bundle exec rubocop --parallel

for faster execution.

Integrations with your code editor

Atom

Sublime Text

Vim

Posts: 1

Participants: 1

Read full topic

A youku link no longer oneboxes

0
0

@kiki wrote:

After click Rebuild HTML, it turns to be a pure link as shown below:

image

Posts: 8

Participants: 4

Read full topic

Could embedded comments allow discussion on the page where they are embedded?

0
0

@r3d_f0x wrote:

It would make Discourse a great comment provider. I’ve been looking around for commenting scripts so I can embed comments on all my sites but none of them offer what I’m looking for. They’re either anonymous in the sense that they don’t require account sign up. If the site is something like Wordpress that includes commenting, I can use that but it would require each user to register an account on every site and different platforms will work differently. Then moderating the comments will require going to every site.

I went with Discourse because users can sign up once and then they can comment on every site. It would be much better if discussions could take place on the site directly. Adding this might boost the popularity.

I don’t know how easy this would be or if it’s a priority. I’m throwing this out to see if anyone feels the same way and whether this is a realistic possibility.

Posts: 4

Participants: 3

Read full topic

Tags does not work with Cyrillic

0
0

@Stranik wrote:

http://***.ru/tags/земля
500 Internal Server Error

Encoding::UndefinedConversionError ("\xD1" from ASCII-8BIT to UTF-8) /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/core_ext/object/json.rb:34:inencode’`

With safe_mode, similarly does not work

Posts: 11

Participants: 3

Read full topic

Discourse showing everything blank. Titles, Categories


How much are images compressed by discourse?

0
0

@Jeremiah_Schultz wrote:

I’m assuming that whatever is done to uploaded images is fairly basic, although I could very well be completely wrong. Assuming I’m correct has anyone considered integrating an image optimization program into the Discourse install?

For Wordpress I use “EWWW Image Optimizer” which is the best that I’ve tried so far, and they also have a standalone ‘plugin’ that does not require Wordpress. It uses jpegtran, TinyJPG, JPEGmini, optipng, pngout, pngquant, TinyPNG, and gifsicle.
Of course there are other solutions that do the same thing, I have no idea which might be best to use with Discourse…

Posts: 3

Participants: 2

Read full topic

Loop bug in discobot / Narrative 'bot?

0
0

@bletch wrote:

I’ve encountered a loop in the Narrative 'bot (discobot).

It fails after the emoji stage (interaction 3), but I think the problem is with the onebox stage (interaction 2).

It looks like stage 2 (onebox) is passed with a valid response, but the valid response is not recorded and so the interaction stage and the expected response become out of sync.

See this interaction below…

I am able to get past stage 2 where I am asked to enter a Onebox link, so it seems to recognise my response as correct, but after the emoji stage it seems to carry out the check for stage 2. i.e. it complains that my emoji post doesn’t contain a link.

I’m running version 0.0.1 of Narrative Bot (seems very low!) and I’ve checked for an upgrade and there appears to be none.

Narrative 'bot settings here:

I’m running Discourse v1.9.0.beta4 +196.

I have previously interacted with the Narrative 'bot with no problem, and have been awarded a certificate. This current failing interaction was started by messaging the Narrative 'bot with the message

start new user

Also the skip instruction does not work. It simply presents me with the emoji interaction again, where again, if I enter a valid emoji, it complains that a link could not be found.

Am I doing something wrong?

I’m surprised that this issue presents so early in the process. It must surely be something environmental or others would have reported it.

Thanks in advance.

Posts: 3

Participants: 2

Read full topic

Automatic encoding of parsed URL params

0
0

@mpalmer wrote:

The underlying problem which caused this bug is that query parameters, at least, are not being tagged with any particular encoding. Based on some reading, it’s my understanding that modern Rails versions do correctly indicate the encoding of parameters provided in request bodies (by looking at the Content-Type request header), and experimentation indicates that explicit query parameters (such as ?foo=bar) do get marked as being UTF-8, but as far as I can tell params which come from parsing the URL through route patterns, and format markers, are being marked as ASCII-8BIT.

I’ve played a bit of whack-a-mole with the problems reported in the bug topic above, but given that we found three separate instances of potentially needing to force an encoding in one place, I’m thinking the issue is fairly likely to be extremely widespread throughout the codebase.

So, the questions which come to mind are:

  • Does this constitute a bug in Rails itself which should be fixed?
  • How should this be worked around in Discourse, either until Rails itself gets fixed, or forever?
  • How has this not been a problem before? It’s not like Discourse suddenly got its first non-seven-bit-ASCII users in the last week or two…

Posts: 1

Participants: 1

Read full topic

Request time - vote_count

0
0

@Stranik wrote:

Executing action: latest — 155.30 ms

SELECT "topic_custom_fields"."topic_id", "topic_custom_fields"."name", "topic_custom_fields"."value" FROM "topic_custom_fields" WHERE (topic_id in (159,134,1041,958,1037,260,900,1016,1018,773,1015,1034,428,301,998,1005,1006,1008,1012,1010,756,1007,680,1003,781,886,1002,899,662,1000)) AND (name in ('accepted_answer_post_id','vote_count'));

SELECT
  ci.relname
FROM
  pg_index i
  join pg_class ci on ci.oid = i.indexrelid
  join pg_class ct on ct.oid = i.indrelid
WHERE
  ct.relname = 'topics'

See indexes

index_topics_on_lower_title
index_topics_on_created_at_and_visible
index_topics_on_pinned_at
index_topics_on_pinned_globally
idx_topics_front_page
index_topics_on_id_and_deleted_at
idx_topics_user_id_deleted_at
index_topics_on_bumped_at
topics_pkey

CREATE INDEX index_topics_vote_count ON topics (vote_count);

PG::SyntaxError: ERROR:  syntax error at or near "CREATE"
LINE 8: CREATE INDEX index_topics_vote_count ON topics (vote_count)

Correctly I look? Because of the lack of an index of this speed? And why do I have a mistake?

Posts: 1

Participants: 1

Read full topic

When slug generation method is encoded, It redirected many times when we open new tab opens in topic

0
0

@Alavi1412 wrote:

Continuing the discussion from ERR_TOO_MANY_REDIRECTS After Rebuild:

I found out that the error ERR_TOO_MANY_REDIRECTS after last update was because of non-english character in title. When I changed the slug generation method to none, and created a new topic(that doesn’t include non-english character in slug and url) it opens with no error but that previous topics has still the problem.

PAY ATTENTION to URL:

pages with error:

pages without error:

So I think the problem is from the topic controller.

Posts: 6

Participants: 5

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images