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

Discourse on Digital Ocean - Not getting emails

$
0
0

@AZDD wrote:

Hi,

I installed Discourse on Digital Ocean and have attempted to setup Sendgrid to send the emails, however, I am not receiving emails.

I setup SendGrid as white label
Entered the SMTP credentials to the Discourse app.yml
Added the Sendgrid whitelable DNS info to Namecheap

Can someone potentially point me in the right direction as to where to check where I might have gone wrong? I guess the one thing I haven't done is SPF and DKIM for Sendgrid at Namecheap. Is there a good guide for this?

Thanks,

Posts: 9

Participants: 4

Read full topic


Connecting Mailgun with Digital Ocean

$
0
0

@Steven wrote:

I had a little bit of trouble to connect Mailgun and Digital Ocean (espacially the DNS configuration in Digital Ocean), so I've decided to create a little guide to help others :


Connecting Mailgun with Digital Ocean


  • Sign up on Mailgun

  • Activate your account (you may have to wait 5-10 minutes to receive your activation mail)

  • In Mailgun, do to Domains, Add a New domain. In my example I didn't use a subdomain as they recommended, I wanted my emails to be noreply@mydomain.com (mine is noreply@iunctis.fr, you'll see this in this guide)

  • In domains, you should have something like this in Domain Verification & DNS :


  • Now, we have to make the connection with Digital-Ocean, go to Networking > Domains

  • We have to setup the DNS Records, don't follow the instructions in Mailgun :

    • Create a CNAME record, just put : email // mailgun.org.

    • Create a TXT record : @ // "v=spf1 include:mailgun.org ~all" - The commas are recommended.

    • Create another TXT record : mailo._domainkey then the code given by Mailgun "k=rsa; p=MIGfMA....." - Again, the commas are recommended

    • Here's mine :


  • Go to Mailgun again and click on Check DNS Record Now, after a few minutes, everything should be validated.

  • Now, you can change the email adresse you want to use (if you don't want postmaster@yourdomain created by mailgun). In Mailgun > Domains, you should have this on top of the page :

In Manager SMTP credentials You can use the address and password you want. You're gonna need them.


Update your Discourse


Launch Putty or any program you use to manage your server. Use these commands :

cd /var/discourse
nano containers/app.yml

In app.yml, you should have around the line 59, something like this :

## TODO: The mailserver this Discourse instance will use
DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org         # (mandatory)
DISCOURSE_SMTP_PORT: 587                        # (optional)
DISCOURSE_SMTP_USER_NAME: noreply@yourdomaine.com      # (optional)
DISCOURSE_SMTP_PASSWORD: password               # (optional)
DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

You have to change DISCOURSE_SMTP_USER_NAME and DISCOURSE_SMTP_PASSWORD

Exit, save the file. If you want to be sure your app.yml haven't been messed up, you can use the YAML Validator.

We're almost done. Now we have to rebuild the app using the command :

git pull
./launcher rebuild app

This should go fine.

Finally, in your Discourse, you can test the new mail server :

Send test email and you're done !

Posts: 9

Participants: 3

Read full topic

Anyone going to OSCON/CLS in May?

Free Discourse forum hosting for community-friendly GitHub projects

$
0
0

@erlend_sh wrote:

Discourse is proudly and unconditionally 100% open source ever since our public launch just over 3 years ago. Open source does not exist in a vacuum. We strive to be not just a great open source tool, but upstanding open source citizens, too. We’ve had an informal policy of providing free hosting for other open…


This topic is for comments on the original blog entry at: http://blog.discourse.org/2016/03/free-discourse-forum-hosting-for-community-friendly-github-projects/

Posts: 1

Participants: 1

Read full topic

Media Autoplay Plugin (discourse-plugin-autoplay)

$
0
0

@dtchau wrote:

Hello everyone,

I was learning to develop plugins when I came across this topic and decided to make a plugin for it.

Here are what the discourse-plugin-autoplay plugin is going to do:

  • Once a topic is loaded, the plugin will observe any changes made to the document object for the #post_1 element.
  • As soon as that element is found, the plugin will stop observing document.
  • Within the #post_1 node, if Youtube links are found, the first one will be played; if not, then the first audio tag (if available) will be played instead.

I would appreciate all feedback and suggestions. My way of accomplishing this wasn't very clean. Better ways to listen to posts being loaded and to control the media would be great to know.

If this could be useful to you, please try it out and tell me what's wrong and what can be improved.

Thanks.

Posts: 1

Participants: 1

Read full topic

CleanUpEmailLogs job fails on having a lot of email logs

$
0
0

@eriko wrote:

So it looks like CleanUpEmailLogs is a new Job and on at least my instance is failing at there are to many entries to nuke without the 4 gig box running out of memory. I am using the below to clear out old entries 3 days at a time.

1000.downto(SiteSetting.delete_email_logs_after_days)
    .select.with_index { |x, idx| idx % 3 == 0 }
    .each do |n|
       threshold = n.days.ago
       puts threshold
       EmailLog.where(reply_key: nil).where("created_at < ?", threshold).destroy_all ;0
    end

;0 stops the return of destroy_all from being echoed to the terminal.

Posts: 3

Participants: 3

Read full topic

How does BBCode color work in Discourse?

$
0
0

@kk091 wrote:

[color=red]This is supposed to be colored red.[/color]

I was trying BBCode on the Hopscotch forums, but it proved to not work. Some types of BBCode do work, for example, sizes:

[size=20]The text size is 20[/size]

The text size is 20

How come BBCode doesn't always work or am I doing it wrong?

Posts: 4

Participants: 2

Read full topic

Checklists in Discourse

$
0
0

@strager wrote:

So I was skimming around and came across this post:

In this thread, using emoji's @codinghorror creates a checklist to indicate what has and has not been completed.

This reminds me a bit of a feature in Trello that allows you to create simple checklists to help organize something. I wonder if a list feature like this would be a good addition to Discourse...

Here is what Trello's checklists look like:

Here is a mockup of what a similar feature might look like in Discourse:

Add a checkmark to the icon-bar:

After pressing the checkmark icon, markup appears similar to a list item using a "U" for unchecked and "C" for checked.

As the Author of the post (or an admin) you could simply click on the box in the post to check it like so:

Anyways - just a thought...... what does everyone else think? Would something like this be useful?

Posts: 4

Participants: 3

Read full topic


Error after running Discourse development environment using Vagrant

$
0
0

@a-magdy wrote:

I followed the tutorial here: https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md#using-vagrant

and it was straight forward, but after the dev machine is up, the app crashed and the attached error is shown, tried destroying the vm twice, updated everything, revised every step I did, I think it might have something to do with the new virtual dom rendering engine introduced, what do you think ?

Posts: 1

Participants: 1

Read full topic

What exactly does "client.sync_sso" do? (Discourse Ruby API)

$
0
0

@chris_beck wrote:

Does it perform some sort of db query?

Does it only search among currently logged in users?

When I pass a table to "sync", can that change the logged-in status or
DB status? Or is it only "fill in this query with data from (a?) matching
entry in the db?"

I didn't find any documentation that explained it, thanks!

Posts: 1

Participants: 1

Read full topic

Upload of custom emojis fails

$
0
0

@jacotec wrote:

Hi,

I'd like to add some few custom emojis to my board, but when I want to upload the image I always get this error message:

When I SSH into the server, I see the uploaded GIF in /var/discourse/shared/standalone/uploads/default/_emoji.

What can lead Discourse to that error message if the upload itself was OK? Do I need to respect some other rules for the Emoji image?

Posts: 9

Participants: 3

Read full topic

Statistics of sub-category

Retrieve profile image to display on external site

Changes in admin -> customize -> text content are not logged

Show Replies still visible after moving to a restricted category

$
0
0

@mr8 wrote:

Steps to reproduce:

  • Reply to a post in a public topic
  • Move that reply to a staff category (or any category not accessible to the public)
  • Log out and go back to the topic and click the show replies 1 Reply ∨ button

Posts: 1

Participants: 1

Read full topic


Bug or bot? A 'new' user showing as read a lot of posts

$
0
0

@AstonJ wrote:

Someone who has joined the forum only two weeks ago has shot up in the Users listing page when sorting by read time.

(Second person in list)

I find it hard to believe that someone will have gone through threads spanning over a year has actually read all the posts - read time is 2 hours.

Any opinions on this? Think the member has visited all threads then just quickly scrolled through them? Are there any protections against this kind of thing in DC (should there be?)

Posts: 5

Participants: 4

Read full topic

[Suggestion] Give users page dual purpose - as a 'who's online' page

$
0
0

@AstonJ wrote:

Something I think is missing from Discourse is something that shows activity on the forum - many people log in but there aren't always new threads or posts for them to respond to, which can make the forum appear 'dead'.

Anyone else agree with making the following tweaks?

  • Make default User's Page All time (https://meta.discourse.org/users?period=all)
  • Add a 'last activity column'
  • Make the list sort in order of most recently active.

Or does anyone have any other suggestions to help show activity other than posts?

One thing that will slowly but surely kill a forum is the appearance of it being 'dead' - even when it's not.

Posts: 9

Participants: 3

Read full topic

Formatting toolbar

$
0
0

@Steven wrote:

Formatting toolbar


I wanted to create one plugin for other users with some basic options : a float (see the screen), center, align to right and justify. I also added a img button because it's easier to use one with the float button.

Here an example of the possibility provided by this plugin :

And in the composer you'll have 5 new buttons :


Link


https://github.com/iunctis/discourse-formatting-toolbar


Tips


How to install a plugin : a guide by @techAPJ

The [floatr][/floatr] bbcode has been created but I didn't add a button, it doesn't feel necessary.

If you want to change the margin in the float, you can go to the Customize section in your admin panel, create a new css page and add this and change the value in the margin part :

.floatl {
float:left;
margin-right:15px;
}

.floatr {
float:right;
margin-left:15px;
}


Thanks


  • ZogStrip : for his vbulletin BBcode, which I stole some parts.
  • cpradio : for the help on the toolbar.

Posts: 1

Participants: 1

Read full topic

Load times of thousands of milliseconds, 1/3 in SQL

$
0
0

@figlet wrote:

I experience very high page load times on my Discourse install. During times of high load, the site dies completely until I do a restart of the app via the launcher. My instance has 14 available processors and 48 gigs of ram. During times of low load, I'm still looking at very high page view times in the thousands of milliseconds, peaking at around 6700ms. I've read everything I can about tuning discourse for performance, and tried to think of everything possible. Not sure what to do.

Some values I've changed in the yaml:

db_shared_buffers: "10GB"
I have this set but it doesn't seem to affect redis-- it still uses an utterly inconsequential amount of memory (there's enough free ram to keep my whole DB in ram)

db_work_mem: "40MB"
UNICORN_WORKERS: 28

RUBY_GC_MALLOC_LIMIT: 90000000

The output of my miniprofiler for my homepage:
http://output.jsbin.com/nayipupufo

What my flamegraph looks like:
Imgur

Numbers from profile-gc:

profile-gc-time and times plural did not seem to work, just returned the same output as profile-gc.

Any ideas?

Posts: 20

Participants: 5

Read full topic

Inconsistency regarding `section class=user right` widths in notifications tabux

$
0
0

@purldator wrote:

Not much required for repro steps. Only needs comparing.

This (below) is the activity tab. Note the section on the right and how it extends to the user-header's edge. It be the same for all tabs on the navigation-left.

This is the notifications tab. Please note the same. This is for all tabs under notifications (left nav).

The content does not make full-width use of the right section's allotted area.

Latest Chrome; Windows 10.

Posts: 1

Participants: 1

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images