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

Recommended backup process for very large forum?

$
0
0

@lkramer wrote:

Hello. I’m looking for advice on how best to setup a reliable backup system for one of Discourse forums I administrate. The backup file that gets generated is around 3GB. (This forum was populated by importing 20 years worth of a mailing list emails with images, thus the size.)

We use DiscourseHosting.com as a host which takes daily backup of the database and files for disaster recovery purposes and stores them off-site. They only guarantee to store one backup at a time and not the archiving of several old backups.

This is great as a first line of defense but we feel it would be wise to have an additional backup system completely under our control which also involves archiving a few backups at a time.

The question is, what’s the best way to do this given the size of the backup in terms of successfully dealing with the transfer of a large backup file and avoiding a long amount of read-only downtime?

I’ve been trying to get the built-in Amazon S3 backup to work with no luck so far. I’ve also read about a discourse dropbox backup plugin but haven’t tried it yet.

Before I dive too deep into Amazon or Dropbox as a solution, I’m wondering what other ideas/experiences people have regarding huge backups like this? Thanks!

Posts: 7

Participants: 6

Read full topic


Post shows reply to non existing post

Azure Backup/CDN Integration

$
0
0

@damienbowman wrote:

All - I host a new community on Azure and would like to know if there are any plans to implement Azure’s CDN and/or a backup strategy to Azure Blob Storage? Thanks and looking forward to the discussion.

Posts: 2

Participants: 2

Read full topic

RSS + LDAP authentication

$
0
0

@ric79 wrote:

Hello,
my Discourse webapp is authenticated by the LDAP plugin. I would like to offer the rss facility but the feed are not displayed because the authentication.

How to solve it? Which is the best approach?

Riccardo

Posts: 3

Participants: 2

Read full topic

Send Activation Email issue

$
0
0

@Jose_C_Gomez wrote:

When this issue was fixed


The Send Activation Email was hidden if “must approve user” is enabled.
However the issue now is that if a user requests a login and is approved they get the “Activation” email the activation email expires (48 hours) then there is no way for them to request a new activation email or for me to send them a new one, and even if I click “Activate Account” manually the user still can’t log in gets the following error

Posts: 1

Participants: 1

Read full topic

Developer guide to Markdown extensions

$
0
0

@sam wrote:

Discourse recently moved to a new Markdown engine called Markdown-it.

Here are some dev notes that will help you either fix bugs in core or create your new plugins.

The basics

Discourse only contains a few helpers on top of the engine, so the vast majority of learning that needs to be done, is understanding Markdown It.

The docs directory contains the current documentation.

I strongly recommend reading:

While I develop extensions for the engine I usually open up a second editor looking at existing rules. The engine consists of a long list of rules and each rule is in a dedicated file that is reasonably easy to follow.

If I am working on an inline rule I will think of what existing inline rule works more or less like it and base my work on it.

Keep in mind, you can sometimes get away with just changing a renderer to get desired functionality which is usually much easier.

How to structure an extension?

When the markdown engine initializes it searches through all the modules.

If any module is called /discourse-markdown\/|markdown-it\// (meaning it lives in a discoruse-markdown or markdown-it directory) it will be a candidate for initialization.

If the module exports a method called setup it will be called by the engine during initialization.

The setup protocol

/my-plugins/assets/javascripts/discourse-markdown/awesome-extension.js.es6

export function setup(helper) {
   // ... your code goes here
}

A setup method gets access to a helper object it can use for initialization. This contains the following methods and vars:

  • markdownIt : this property is set to true when the new engine is in use. For proper backwards compatibility you want to check it.

  • registerOptions(opts, siteSettings, state) : this method is called before the markdown engine is initialized, you can use it to determine if to enable or disable the engine.

  • whiteList(obj): this method is used to whitelist HTML with our sanitizer.

  • registerPlugin(md): this method is used to register a Markdown It plugin.

Putting it all together

function amazingMarkdownItInline(state, silent) {
   // standard markdown it inline extension goes here.
   return false;
}

export function setup(helper) {
   if(!helper.markdownIt) { return; }

   helper.registerOptions((opts,siteSettings)=>{
      opts.features.['my_extension'] = !!siteSettings.my_extension_enabled;
   });

   helper.whiteList(['span.amazing', 'div.amazing']);

   helper.registerPlugin(md=>{
      md.inline.push('amazing', amazingMarkdownItInline);
   });
}

Discourse specific extensions

Discourse contains 2 rulers you can use for custom BBCode tags. An inline and block level ruler.

(Documentation to be added tomorrow)

Posts: 1

Participants: 1

Read full topic

Should the password be plain text when creating a user through the API?

$
0
0

@mikeredick wrote:

I’m creating a small windows application that will use Discourse as the SSO provider. The first step in that chain is allowing the app to create a user through the Discourse API.

I’ve got that working, however it seems that the password for the user is passed in plain text and I’m wondering why that is? It seems like that could be a security issue… is the thought just that people should use SSL and that’s good enough to protect the password?

Posts: 2

Participants: 2

Read full topic

Should losing group membership unlock trust level?

$
0
0

@Falco wrote:

Continuing the discussion from Discourse Patreon Integration:

I think this should be handled in core, since it’s just default group membership behavior.

However it’s very tricky, because for example:

  1. User is TL1
  2. User get into Patreon, patron group has been configured to give TL3 in this site
  3. User exits Patreon, plugin removes from group
  4. User still TL3 because trust level is locked automatically.
  5. Admin unlocks trust level, user becomes TL2. (Not TL1, you can’t get demoted from TL2 without locked TL).

Should Discourse unlock trust level on group exit by default? As an option? Only if group TL is active? What if it was but isn’t anymore?

Posts: 4

Participants: 2

Read full topic


Hiding unsolved/solved posts

$
0
0

@RBoy wrote:

We’re using the solved plugin to track issues/bugs and requests. As the list grows it’s getting difficult to see what has been solved and what’s pending.

Is there a way to filter or hide solved/unsolved posts so users can get a view of what’s pending and what’s resolved?

Posts: 9

Participants: 3

Read full topic

Handle logout event in a plugin

$
0
0

@Toan_Bao_Nguyen wrote:

I have written a plugin to check whether the user has logged in on my site and then press the Log in button on Discourse everytime the page is loaded (I am using WP Discourse for my wordpress website for SSO, but I cannot use the option “Automatically create and login users” due to CORS problem)
My problem is when user click logout on Discourse page, it reloads and run my script again to log in, is there any way to catch the logout event for me to set a flag to the browser cookie?

Posts: 2

Participants: 2

Read full topic

Hide replies from trust levels

$
0
0

@admhpkns wrote:

Does anyone know of a solution out there to enable (at the category level) some protection to not only disallow lower trust levels from replaying to topics, but also from seeing replies?

I have a category with some wikis, and I would like for the “staff” to be able to have discussions, but only have the main post itself be visible to non-staff members.

Posts: 4

Participants: 3

Read full topic

Ga analytics domain name

$
0
0

@mariolevitin wrote:

Hi,
I don’t understand what should I put into “ga analytics domain name” for google analytics.
Should I leave it as “auto” or should I put my website’s domain name.
Thanks

Posts: 2

Participants: 1

Read full topic

Indicator at post for "x posts in topic" (or "first post in thread")

$
0
0

@Sujan wrote:

The forum I moderate in has lots of “evergreen” topics that get posts over months and topics that are bumped after months by users because the have the same issue.

When someone posts at the end of a >10 posts topic, it would be nice to see how many posts the user has already made in this topic, or if this is actually the first post in this topic.

This would solve the problem that I have to scroll up and look for that user’s name if they participated before, what they wrote and so on. If it is his first post I know much faster how to handle his response.

Posts: 3

Participants: 2

Read full topic

Organize private messages

$
0
0

@Sujan wrote:

Is there any way to organize private messages a bit more than Inbox, Archive, and bookmark individual messages?

Any hidden features I didn’t discover yet?
Any plugins that add functionality here?

Posts: 5

Participants: 2

Read full topic

Indicator at post for "created topic"

$
0
0

@Sujan wrote:

The forum I moderate in has lots of very long topics with many posts, often spanning multiple pages and dozens of messages. When someone posts at the end of a e.g. >10 posts topic, it would be nice to if tehy are the user that created the topic in the first place - OP so to speak.

Suggestion: Add the “Original Poster” glow to the user avatar as it is done on the topic list.

Posts: 3

Participants: 2

Read full topic


Canned replies aren't working

How to show that banner with a dismiss (X) button to non logged in users only?

$
0
0

@ckhawand wrote:

Is there any way to show that banner with a dismiss (X) button to non logged in users only.
The top banner is shown always, I would like to make it visible only if you are not logged in.

Posts: 3

Participants: 2

Read full topic

Dupe link checker should disregard links that are hashtags

$
0
0

@sam wrote:

Repro

links with the class hashtag should be skipped from the checker.

Addendum:

For local detection the message is a bit lacking, ideally it would say:

“Your link to sam's amazing topic was already posted by @bob in post …”, or maybe just totally bypass this for local links.

Posts: 1

Participants: 1

Read full topic

Plugin not work and show

Is there a battle for the net plugin?

Viewing all 60613 articles
Browse latest View live




Latest Images