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

Wordpress 'discourse widgets' plugin


Specific subforum only for suspended members

0
0

@spellbee2 wrote:

On my current vBulletin site, we have a special subforum (colloquially called “The Island”), which is only visible to users that have been temporarily/permanently banned. Any posts made in The Island are only visible to their original posters and the forum staff. So it’s basically used as a chance for any banned members to talk directly to staff - to plead their case if they believe they were wrongfully banned, or (more often) to issue their final grievances/hateful comments at staff before taking their leave. Of course, we actually have 2 “Banned” groups - one with access to The Island and one without - so if they begin abusing their privileges, we can revoke their access altogether by moving them to the other group.

I was curious if there is a similar feature in Discourse. I didn’t see an option in the category settings for specifying access to only suspended members. The ways I thought of possibly doing it were:

  1. Replace The Island with the ability to create a private message with all staff. This would effectively serve the same purpose, as only the OP and Staff would be able to see any messages contained in it. Unfortunately, I imagine suspended users would (rightfully) be unable to privately message anyone, and even if that was hypothetically enabled, it wouldn’t be limited to only messaging staff.
  2. Create 2 custom user groups, “Banned” and “Banned w/o Island”. Change all the normal categories to not be visible to users in one of those two groups, and create The Island category that is only visible to those in the first new group. This would be fairly clunky and bypass the nice user suspension feature (which may have it’s own complications involved), but I think it would work at a minimum for my purposes.

If anyone has any other alternatives I haven’t thought about, or think this could relatively easily be incorporated into a feature/plugin, let me know. Thanks in advance for your help!

Posts: 3

Participants: 2

Read full topic

X-Forwarded-For proxy tag not recognized by Discourse?

0
0

@Anil_Gupta wrote:

Our Set Up

  1. Discourse is installed on Google Compute VM machine with no SSL certificates on this server.
    Force_https discourse setting is set to true (checked to force https).

  2. We have the front end running with ‘Google Load Balancer’ with HTTPS certificate attached at Load balancer level.

  3. Google Oauth credentials settings has both http and https callback URL’s set up.

  4. User Request HTTPS.www.truvisa.com -> Google Load balancer -> HTTP Discourse on Google Compute engine.

  • The https://www.truvisa.com URL works fine.
  • User tries to log-in with Google OAuth. Works fine and user is logged in.

Problem:

User Request HTTP -> Google Load balancer -> HTTP Discourse on Google Compute engine.
The http://www.truvisa.com url works fine. We actually expected this to be redirected to HTTPs (as we have force https enabled), but it did not work.

What we think is happening:
I searched through the discourse forum for a solution and understand that Google load balancer (a proxy in our case) need to send the X-Forwarded-Proto header for discourse to redirect the http request to https version.

Google load balancer does send this X-Forwarded-Proto to discourse installation server.

My question:
Is there anything that needs to be changed in Discourse set up anywhere to make this work?
Are we missing any kind of redirection from http to https setting in default discourse install?

Please help.

Posts: 4

Participants: 3

Read full topic

Favicon Failing to load but it does load

Aufs/overlay2 storage driver (docker)

0
0

@Steven wrote:

Hello Discourse Team, I have a little question about Docker, I’m not an expert at all in the matter, but before you recommanded aufs storage driver for Docker, and a year ago when I used the command wget -qO- https://get.docker.com/ | sh from the install guide it seems that it was automatically an aufs storage driver.

On the most recent install/reinstall that I’ve done, with this command it comes with an overlay2 storage drive (I tried on two different hosting services and it comes with overlay2 - is it because I started with Ubuntu 14.04 and the new install are with the 16.04 version?).

I’ve seen some recent post saying that it should be fine either way, so I’m not too worried, but I want to be sure. I prefer asking some question that might be stupid to be sure

Can you confirm aufs is still the best option for Discourse? Or overlay2 will be as good of an option and I don’t have to worry at all about that?


I’m also aware of this guide, so if aufs is still the best option, I might use it.

Posts: 1

Participants: 1

Read full topic

FYI: AWS t2.micro instance is too small. Use t2.small at least

0
0

@geek wrote:

This is just an FYI to help anybody else in the future.

We are in the process of switching our infrastructure from Linode to AWS, and since our forum doesn’t get much traffic, we figured it would make sense to try the smallest instance that meets the Discourse specifications (1GB of RAM) – so we tried a t2.micro instance with extra block storage.

It initially worked, loaded, and restored from backup. It was a little slow during initial testing. As soon as the DNS switched over and we started getting a little bit of traffic, our Discourse instance became completely unusable, with 504 Gateway errors or 502 errors almost every page load. The logs showed tons of timeouts, and the load was incredibly high.

Upgraded from t2.micro to t2.small and now everything is working great.

Lesson: t2.small is the bare minimum for Discourse on AWS.

Posts: 5

Participants: 4

Read full topic

How to restore wiki post

0
0

@burningman wrote:

hey,
I created a wiki post so that all users can put their name but one user mistakenly delete everything and put his name.

Now, their is nothing only his name.

Is their is any way of restoring that wiki post.

Thanks In Advance

Posts: 3

Participants: 2

Read full topic

Can Discourse be integrated with other communication systems?

0
0

@xiasummer wrote:

I find people not often using email, maybe because cell phones are not so convenient.

Can we have the system intergrated with sms, wechat, messager, etc?

Posts: 2

Participants: 2

Read full topic


Brand header theme component

0
0

@vinothkannans wrote:

Location

repo: https://github.com/discourse/discourse-brand-header

About

This theme component adds an extra top header for branding with your logo, navigation links, and social icons for both mobile and desktop views. Brand logo can be a image or text.

discourse-brand-header-mobile

Installation

How do I install a Theme or Theme Component?

After installed the theme component using above guide follow the steps below to change your brand settings.

  1. Create an another new theme in /admin/customize/themes URL.

  2. Click on Edit CSS/HTML button and navigate to <head> nav in common section.

  3. Now paste the text below and add your brand settings inside quotes ''. For links and icons you can insert more lines when required.

<script>
  (function() {
    Discourse.brand = {
                        name: '',
                        url: '',
                        logoUrl: '',
                        mobileLogoUrl: '',
                        links: [
                          { rawLabel: 'Home', href: 'http://example.com' },
                          { rawLabel: '', href: '' },
                        ],
                        icons: [
                          { icon: 'twitter', href: 'https://twitter.com/example' },
                          { icon: '', href: '' },
                        ],
                      };
  })();
</script>
  1. Save it and add to the discourse-brand-header as a child theme component.

  2. Finally, you have to add discourse-brand-header into your main theme as child.

It’s done :+1:

Posts: 6

Participants: 2

Read full topic

Emoji skin tone selector has no impact

0
0

@ljpp wrote:

:blush: :cry:

The emoji skin tone selector does not seem to work. The one on the right should be brown. Am I missing something?

Posts: 6

Participants: 2

Read full topic

Topic mute-function falls below screen on Apple iOS

Moving a post fails

0
0

@RGJ wrote:

When trying to move a single post into a new topic, it fails with:

[db8237] Processing by TopicsController#move_posts as */*
[db8237]   Parameters: {"title"=>"importer 3 fichiers", "post_ids"=>["4455"], "category_id"=>"6", "topic_id"=>"1521"}
[db8237] Completed 500 Internal Server Error in 336ms (ActiveRecord: 108.5ms)
[db8237] ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_posts_on_topic_id_and_post_number"
DETAIL:  Key (topic_id, post_number)=(1521, 3) already exists.

However, that is the post I’m trying to move.

db8237=# select id,post_number from posts where topic_id=1521;
  id  | post_number
------+-------------
 4085 |           1
 4151 |           2
 4455 |           3

reindex index index_posts_on_topic_id_and_post_number; did not help.

Does anyone have any idea where to look? Or did we trigger an obscure bug here?

Posts: 1

Participants: 1

Read full topic

Remove Default Text from Site

Auto Post New Topics to Social Media

0
0

@MorphZan wrote:

Hi Guys

Is there anyway that when a new topic is created it the link can be automatically posted to either Twitter, Facebook and/or Telegram

Posts: 2

Participants: 2

Read full topic

Is there a way to force users to choose a subcategory when posting?

0
0

@hanks wrote:

Hi.
If a category has subcategories, can we make it so choosing a subcategory is mandatory?

Posts: 1

Participants: 1

Read full topic


Creating a read-only mailing list mirror

0
0

@gerhard wrote:

This guide describes how you can use Discourse for creating a read-only mirror of a mailing list.
Discourse acts as an archive for the mailing list and allows registered users to use most of its features.

Do you want to see it in action? Take a look at our mirror of the Ruby-Talk mailing list.


Are you ready to setup your own mailing list mirror? Here we go!

The following guide uses two email addresses as placeholders. You need to replace them with your actual addresses.

:incoming_envelope: discourse@example.com is address for incoming emails on your Discourse
:postbox: mailing-list@foo.test is the address where emails get sent by the mailing list

Site Settings

You can skip the first step if you are on a hosting plan that pre-configures your incoming email.

  1. Make sure you configured POP3 polling or manual polling via API, so that it polls the account associated with :incoming_envelope: discourse@example.com

  2. Enable email_in to allow incoming emails.

  3. Optional: Allow all incoming attachments by setting authorized_extensions to * or add all the file extensions you want to allow.

  4. Optional: Enable always_show_trimmed_content in order to allow every user to see trimmed content. It will be hidden behind a image button.

  5. Optional: Enable display_name_on_posts and disable prioritize_username_in_ux.

Category

You need to create a new category or edit an existing one which will be used for posting all emails that get sent to the mailing list.

  1. First, click on the Security tab and then click on the Edit Permissions button.

    image

  2. Remove all existing permissions and add “everyone” with the permission “See”. When you are done, it should look like this:

    image

  3. Next, click on the Settings tab. There should be the following three fields. If there aren’t, make sure you have enabled the email_in site setting.

    • Accept emails from anonymous users with no accounts” – Enable this to allow the creation of staged users.

    • Custom incoming email address” – Enter the :postbox: email address of the mailing list. Look at the To: header of one of the emails sent by the mailing list, if you are unsure what to use here.

    • Category mirrors mailing list” – You must enable this option. It activates all the special handling for mailing lists.

  4. Click on New Category or Save Category to create the new category or save your changes.

Subscribe to mailing list

Now it’s time to subscribe to the mailing list using :incoming_envelope: discourse@example.com.

If the mailing list provides a web interface, take a look at the settings and make sure that you will receive only messages that should appear in the mirror category. For Mailman 2 it’s important that

  • “Mail delivery” is “Enabled”
  • “Set Digest Mode” is “Off”
  • “Get password reminder email for this list?” is set to “No”

:tada: That’s it! Now it’s time to wait for the first email to arrive in your new mailing list mirror.


FAQ

I want to mirror multiple mailing lists. Is that possible?
Sure! All you need to do is create a category for each mailing list and configure it like described above.


How does all this work?

Enabling “Category mirrors a mailing list” changes how incoming emails are processed for that specific category:

  • Emails sent by a mailing list are usually marked as auto-generated. This setting allows incoming emails to be auto-generated even when block_auto_generated_emails is enabled in site settings.

  • Every user can post within that category via email. The value of email_in_min_trust is ignored.

  • It’s a good idea to make the category read-only to prevent users from posting and expecting that their post will appear on the mailing list. However, everyone can create new posts by sending an email to the mailing list.

  • Usually find_related_post_with_key is enabled in the site settings. Disabling it for the whole site is not recommended, since it allows user impersonation based on email address. Incoming emails that were sent to the mailing list always use the email’s Message-ID to find related posts and disregard the value of that site setting.

  • Normally Discourse expects incoming emails to contain text formatted as Markdown. Mailing list users are usually unaware of that requirement, so Discourse doesn’t interpret any Markdown (except for code blocks enclosed in three backticks) or HTML within plain text emails and posts them with the original formatting intact.

  • Discourse usually notifies the sender when it rejects an email. That doesn’t make sense for mailing lists and probably would annoy the mailing list user, so sending of rejection emails is disabled.

Posts: 1

Participants: 1

Read full topic

HTTPS and Facebook login

0
0

@hanks wrote:

Hi,
My Facebook login doesn’t work anymore after switching my Discourse to HTTPS.

The FB login popup URL contains this:

redirect_uri%3Dhttp%253A%252F%252Fmy.website.org%252Fauth%252Ffacebook%252Fcallback

Which is an HTTP link instead of an HTTPS link.
In my Facebook login API settings, I have only https://my.website.org/auth/facebook/callback as my Oauth redirect URL.

Any idea how to fix this?

Posts: 7

Participants: 2

Read full topic

Which badges can be used as a title? And why can't others?

0
0

@orangeandblack5 wrote:

For example, Empathetic may be used as a title, but Devotee cannot, despite both being gold badges. Would there be a way to add a title for badges, such as Devotee, that currently do not have them enabled? And, barring that, is there a list somewhere of which badges have titles enabled? My searches here were unsuccessful.

Posts: 2

Participants: 2

Read full topic

Labels and text are on top of each other in user admin in iOS

I want to install discourse 1.9 on a new instance - is it possible now that discourse v2.0.0.beta1 is out

0
0

@nixie wrote:

I want to install discourse 1.9 on a new instance.
Is it possible now that discourse v2.0.0.beta1 is out

Posts: 7

Participants: 2

Read full topic

Viewing all 60279 articles
Browse latest View live




Latest Images