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

Recommended Hosting Providers for Novices

$
0
0

@pfaffman wrote:

This guide is intended for people who are not system administrators who just want to make Discourse work. This is a list of cloud hosting services that are believed to be reliable and easy enough for a novice to get up and running with as little fiddling as possible. You should be able to create an account, and a server on which to run your Discourse instance and still be able to pull the job off in very close to 30 minutes.

I have installed Discourse on each of these, received an email from Discourse, and used it to log in as an admin. For all of these the standard Install Cloud instructions work just fine.

What about AWS, Azure, and Google Cloud?

If you have spent many hours using bash, know what ports 80, 443, and 20 are, and are familiar with firewalls, partitions, and what an S3 bucket is, any of these will work just fine. If you have never found a solution to your problem using Stack Exchange, you should probably stay away from these providers. These are the finicky hot rods of the hosting world. This guide is to help you find something more like a Honda Civic than a Formula One racer.

Easy and Reliable

The table below provides a comparison of these easy-to-use providers. The “Build time” column is the result of

time ./launcher rebuild app

It is not a meaningful benchmark, but a crude measure of how fast the CPU, Disk, and network are. Your mileage may vary. You can see, though, that the Digital Ocean “optimized” instance is nearly twice as fast as the standard 1GB one.

Provider Price Disk CPU GB RAM Build time Data Centers
Digital Ocean $5 25GB 1 1 10m0.252s US(2), NL, SG, UK, DE, CA, IN
DO Optimized $40 25GB 2 4 5m47.878s US(2), NL, SG, UK, DE, CA, IN
Hetzner 3.11 Euros 20GB 1 2 Not tested ??
Lightsail $10 30GB 1 2 8m17.215s US (3), JP, SG, AU, IN
Linode 1024 $5 20GB 1 1 9m46.437s US (3), UK, DE, SG, JP
Upcloud $10 30GB 1 2 7m22.627s DE, FI, NL, JP, UK, US
             

Provider Notes

These are notes on individual providers. If you have good experiences with any of them, please feel free to add your comments here. If you have bad comments, please add them as a reply.

Amazon AWS/Lightsail

Pricing: https://aws.amazon.com/lightsail/pricing/

Super easy! Click a button to open a window with a logged-in SSH connection.

Uses ubuntu@hostname rather than root@hostname. Not what most sites do, but it’s just like AWS, and somewhat more secure.

Digital Ocean

Pricing: https://www.digitalocean.com/pricing/

This is the simplest, easiest, and most-used provider, and since the recent price drop, it is again quite competitive. A problem for people not in the US is that they sometimes make it harder to get an account created and block outgoing SMTP ports (my standard install script works around this problem by using port 2525, which Mailgun and other providers support).

Hetzner

Pricing: https://www.hetzner.com/cloud

https://meta.discourse.org/t/hetzner-launches-a-vps-service/78759/6

Not tested. But at 3.90 Euros/month, for 1GB RAM and 25GB SSD, it
looks good.

Comments?

Linode

https://www.linode.com/pricing

https://meta.discourse.org/t/suggestion-for-good-vps-to-host-discourse-digital-ocean-or-linode/8852/35?u=pfaffman

Note: Remove the too-small swap space that is automatically created. discourse-setup will create a 2gb swap file for you.

Upcloud

https://www.upcloud.com/pricing/

No problems or frustrations in creating an account and cranking up a server.

What about XXX?

If you use a provider that is easy to set up and works reliably, please feel free to leave a comment with your recommendation. At some point I’ll probably make this a wiki, but I’m going to see what kind of comments and recommendations people have first.

Posts: 1

Participants: 1

Read full topic


New users not getting activation emails after last update

$
0
0

@Jay91 wrote:

Hello Friends,

we updated our discourse forum today after new release notification but now we facing a problem which is new users not getting account activation emails.

please advise.

Thanks

Posts: 4

Participants: 2

Read full topic

Import data from e.g Amazon like ISBN etc

$
0
0

@frold wrote:

I would like to add a book review section at my site.

One box does some of the job like:

But is it possible to “hack” to a form like this?

Image

Title:
Author:
ISBN:
Book description:

Star rating from Amazon

Posts: 1

Participants: 1

Read full topic

Show categories to everyone except a specific group

$
0
0

@PatrickH wrote:

I want to add a special group to my forum.
The can only see the categories that the are member of.
Other categories (open for everyone) the can not see.

Is this possible ?

Posts: 9

Participants: 4

Read full topic

Is it possible to hide ip address field from profile page using CSS?

$
0
0

@nixie wrote:

Have a look at the below image

The 2 fields:
Last IP address
Registration IP address

These two fields are available for both the admins as well as moderators, when they view anyones user profile.

Is there any way to hide these using CSS?

I don’t think they have any unique class so I’m guessing there is no easy to hide it using CSS.

Can we adopt any other approach to hide these?
If anyone have any suggestions - please share.

Posts: 9

Participants: 5

Read full topic

Negative group permissions

$
0
0

@RGJ wrote:

Does anyone have any ideas, tips or tricks how to exclude members from a specific group from accessing a specific category?

What would be the easiest way to accomplish that?

Posts: 3

Participants: 3

Read full topic

Suspension / Silence Enhancements

$
0
0

@eviltrout wrote:

I’ve just pushed out a couple of commits with some nice enhancements to suspensions and silences.

The first one is you can now choose to Suspend / Silence directly when agreeing with a flag:

image

Once you have chosen to Silence or Suspend for a flagged post, the modal has a new option to choose what to do with the post:

When you submit the form, the flag will be agreed with, the user suspended and the post deleted, all in one click!

If you choose to edit it, you will be presented with a new text area. Any edits made won’t be tracked as staff members are presumably removing toxic content or personal information.

Posts: 1

Participants: 1

Read full topic

How do I change the font in a theme?


What can the Teachable webhook do?

$
0
0

@danielw wrote:

Hi everyone,

I’m new to Discourse: it looks fantastic. I want to create a forum for an online course I’m running on Teachable. Can I do something clever with the webhook to automatically register my students for the forum, or something like that?

PS I’ve created webhooks before, with Zapier, but overall I am a real beginner with them. I read the page about webhooks and creating a bot in git, but I didn’t really understand how to relate it to Teachable.

Posts: 3

Participants: 3

Read full topic

Automatically close a poll on a given date/time?

Passwordless signin via link generated by api

$
0
0

@parisa wrote:

Is it possible? I didn’t see this feature in api.
I saw that passwordless signin via email link is already planned. Maybe this feature would also be possible?
Use-case: users of my android application are signing in with discourse login api. Now in the application, I show some topics to the users which might be of their interest and want to post somthing. When they click on the topic name, I want to open a webpage with that topic being opened and they would be already logged in. They have already logged in to the app, and I dont want to show another loginpage to them.

Posts: 3

Participants: 2

Read full topic

Separating FAQ and Community Guidelines - need advice!

$
0
0

@anais.webflow wrote:

Hi there! I’m working on setting up stronger community guidelines for our forum. Right now the both the /guidelines and /faq urls on the forum link to a page called “FAQ”.

The welcome message from Discobot which contains the link to the current community guidelines also directs to this FAQ page.

And the hamburger menu on the right side has a link to “FAQ” as well - again, the same page.

Now I’d love to replace this FAQ with our Community Guidelines and eventually create another page for the FAQ. Has anyone had this issue before? How did you deal with the url issue?

Posts: 2

Participants: 2

Read full topic

Automatic Table of Contents generation

$
0
0

@mcwumbly wrote:

Has anyone else felt the need more recently to generate tables of contents for a post automatically based on the structure of its headings?

Continuing the discussion from Spec: Table of Contents:

I looked in the linked topic and don’t really see clearly where automatic generation of a table of contents is covered.

I’m documenting some best practices for some communications our org does which currently lean heavily on Google Docs and benefit from Google Docs built-in ToC generation feature.

There may be an opportunity to move these to Discourse in the future, which would provide a number of other benefits (tagging, better discussion, linking between topics, bumping older topics).

Copy/paste from Google Docs to Discourse works so well now, that I anticipate that will also reduce the switching cost. And for this and many other use cases, I’m already starting to find places where suggesting the workflow, “Author you topic in Google Docs, then paste it into Discourse” makes a lot of sense.

But these docs are sometimes lengthy and it may be hard to let go of the easy ToC creation.

Posts: 2

Participants: 2

Read full topic

Can title be expanded on the main page?

$
0
0

@Amit_Patel wrote:

I am looking for the feature where community can see the details with the title right there instead of clicking and then viewing it ?

Posts: 6

Participants: 3

Read full topic

Subcategories render differently in docked titles

$
0
0

@awesomerobot wrote:

This is very minor, and has possibly been like this forever…

We’re displaying the split category/subcategory badge in the docked title header, but not in the default non-scrolled title.

It seems like our “rule” elsewhere is to not show the split subcategory badge when the full parent category name is present (that’s what we do in the breadcrumb nav, for example). So when the title docks into the header, we shouldn’t split the subcategory badge to include the parent category.

Posts: 1

Participants: 1

Read full topic


WP / MemberMouse / Discourse Integration Guide

$
0
0

@lkramer wrote:

I maintain Discourse and MemberMouse running on 2 sites. Hopefully this guide will be helpful to people. Your exact specifications may differ from what my desired results were. This guide assumes that you are familiar with MemberMouse hooks, filters and MemberMouse PHP interface. And also assumes you can comfortably add custom code to WordPress via functions.php or your own custom plugin.

This guide below is what we added in order to:

  • Activate/deactivate the user in Discourse depending on their membership status in MemberMouse
  • Set Discourse groups that represent MemberMouse membership levels
  • Sync up username/email changes instantaneously
  • And misc other helpful little tweaks

Step 1: Install wp-discourse WordPress plugin

Get the wp-discourse WordPress plugin up and running and configured properly with WordPress as the SSO provider. There are lots of threads about this here.

Step 2: Check the box to allow the wp-discourse plugin to create a new user in Discourse when user is created in WordPress

I found that in order for the wp-discourse to actually create a user in Discourse when a user is created in WordPress, I needed to add this line to the file /lib/discourse-sso.php in public function __construct( $wordpress_email_verifier ):

add_action( 'my_mm_account_added', array( $this, 'create_discourse_user' ), 10, 2 );

And in functions.php or your own plugin add:

function add_user_to_discourse($data) {
	do_action( 'my_mm_account_added', $data["username"], get_user_by('ID',$data["member_id"]) );
}
add_action('mm_member_add', 'add_user_to_discourse');

Step 3: If you want, make it so new users don’t need to click a Discourse email activation link

By default Discourse will send an activation email to the new user but I chose to turn this off since the user has already jumped through a satisfactory number of hoops in WordPress to join. If your WordPress site has a low barrier to joining, you may not want to skip the activation email. In our case, you have to pay to join so. Add this to functions.php or to a special plugin you create.

add_filter( 'wpdc_auto_create_user_require_activation', 'my_wpdc_auto_create_user_require_activation' );
function my_wpdc_auto_create_user_require_activation( $require_activation ) {
    return false;
}

Step 4: Whenever an account change happens to a MemberMouse user:
Map MemberMouse membership levels to Discourse groups
Sync the email address/username
Activate/deactivate user in Discourse as appropriate

You can add this to functions.php or your own plugin.

add_action('mm_member_membership_change', 'run_discourse_sync_based_on_mm_acct_change');
add_action('mm_member_status_change', 'run_discourse_sync_based_on_mm_acct_change');
add_action('mm_member_account_update', 'run_discourse_sync_based_on_mm_acct_change');

In the function run_discourse_sync_based_on_mm_acct_change you want to:

(1) Use the Discourse API to get this user’s Discourse username (may be slightly different than their WordPress one due to Discourse’s own username rules) and Discourse ID number. (documentation)

(2) Map their MemberMouse membership level ID to the equivalent Discourse group ID and then set their group in Discourse. First you need to delete their old group ID. (documentation). Then you can set the new group. (documentation)

(3) Sync up their username and email if they have been changed in WordPress. We only allow these to be changed in WordPress. I got help with this part here.

(4) Activate/deactivate the user in Discourse depending on their status in MemberMouse. Activate (documentation). Deactivate seems to be missing from the API docs. $url = $url_base.‘admin/users/’.$discourse_userid.’/deactivate.json?’.$api_auth;

Step 5: Auto-redirect back to Discourse when appropriate

(I highly recommend holding off on this part of things until you get a really good feel for how WordPress and Discourse work together.)

If a user is NOT logged into Discourse and NOT logged into WordPress. And they come to a url in Discourse and click the blue Login button, they are taken to WordPress to login but then MemberMouse directs the user to whatever page you have it set to redirect to in MemberMouse’s settings. The user doesn’t get redirected back to Discourse unfortunately. So here is how I solved this. You can add this to functions.php or your own plugin.

// If the person came from the discourse forum, push them to exactly where they were after logging in
function my_mm_login_redirect( $infoObj ) {
	if ( @$_COOKIE['detected_forum_referal'] != '' ) { // You need take care of setting this temporary cookie if the user just arrived via discourse
		$current_user       = $infoObj->user;
		$user_id            = $current_user->ID;
		// Payload and signature.
		$payload = @$_COOKIE['mm_cookie_sso'];
		$sig     = @$_COOKIE['mm_cookie_sig'];
		// Change %0B back to %0A.
		$payload = rawurldecode( str_replace( '%0B', '%0A', rawurlencode( $payload ) ) );
		// Validate signature.
		$sso_secret = 'YOUR-SSO-SECRET';
		$sso        = new \WPDiscourse\SSO\SSO( $sso_secret );
		if ( ! ( $sso->validate( $payload, $sig ) ) ) {
			return '';
		}
		$nonce  = $sso->get_nonce( $payload );
		$params = array(
			'nonce'               => $nonce,
			'username'            => $current_user->user_login,
			'email'               => $current_user->user_email,
			'external_id'         => $user_id,
		);
		$params = apply_filters( 'wpdc_sso_params', $params, $current_user );
		$q = $sso->build_login_string( $params );
		do_action( 'wpdc_sso_provider_before_sso_redirect', $user_id, $current_user );
		// Redirect back to Discourse.
		return('YOUR-FORUM-BASE-URL' . '/session/sso_login?' . $q);
	}
	return('');
}
add_filter( 'mm_login_redirect', 'my_mm_login_redirect', 10, 1 );

Posts: 4

Participants: 2

Read full topic

Do questions & user replies are part of link juice?

$
0
0

@Amit_Patel wrote:

The user who posts the questions with details and corresponding replies are part of DOFOLLOW or NOFOLLOW ? I am asking in context of SEO.

Posts: 4

Participants: 3

Read full topic

Discourse Etiquette: take actions when users intend to post inappropriate remark

$
0
0

@fantasticfears wrote:

A discourse plugin that can help you combating with inappropriate content. It requires a Google Perspective API key (experimental and with limited availability). The plugin can:

  • flag user’s post if it’s toxic.
  • show a notification when they type something toxic.

Install the plugin by following the howto.

Get a Google Perspective API key

You have to apply here. They will send you further instructions.

Settings

The plugin send users’ post to Google’s API which will decide to take actions based on a “confidence level”. You can choose the model and threshold in site settings. The threshold you should use depends on the model.

  1. choose etiquette_toxicity_model. The standard model is the default and other settings are tuned based on it. Google also offers severe toxicity (experimental) model. This model handles more severe content. For example, if you choose a threshold of 0.9, standard model won’t take too much false actions. While for severe toxicity model, the threshold should be lower to 0.7 to catch most inappropriate content.

  2. etiquette_flag_post_min_toxicity_confidence: if API returns a score higher than this threshold, we flag the post. Can be set lower till 0.7 if you use severe toxicity (experimental) model.

  3. etiquette_notify_posting_min_toxicity_confidence: same as above. It’s set to be lower since we want users have chance to make changes to their post. Can be set lower till 0.65 if you use severe toxicity (experimental) model.

For more information about confidence levels and other technical details, see perspectiveapi/api_reference.md at master · conversationai/perspectiveapi · GitHub.

The plugin is still experimental and subject to change. And it’s currently only available for the English language.

Old discussion can be found here.

Posts: 1

Participants: 1

Read full topic

Creating poll via API raw parameter markdown

$
0
0

@dbrookes wrote:

I’m creating a post via POST request with the API which contains a raw parameter with markdown for a poll:

[poll name=color]\n- Green\n- Blue\n- Red\n[/poll]

However the newlines don’t work so the poll isn’t rendered into markdown correctly, output in the post:

[poll name=color]\
\n- Green\n- Blue\n- Red\n

[/]

I found Posting a poll via the API is not working which seems to suggest that it’s possible, just not sure how with a POST request? I’ve tried passing a skip_validations false but it doesn’t make a difference.

Posts: 2

Participants: 2

Read full topic

I just launched Discourse on google cloud

Viewing all 60690 articles
Browse latest View live




Latest Images