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

Display issue under Chinese Simplified


Configure your domain for Discourse hosted email

0
0

Jeff Atwood wrote:

Here's how you configure your domain to properly send email when you're hosted on the Discourse servers. Lucky you!

DKIM

DKIM is a DNS-based email authentication mechanism that helps us more effectively send mail on your behalf by allowing receivers to verify that we have permission to send your email. To enable DKIM, create a TXT record for discourse._domainkey.yourdomain.com (just replace yourdomain.com with the domain you're setting up) with the following value:

v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J/mRwSRMAocV/hMB3jXwaHH36d9NaVynQFYV8NaWi69c1veUtRzGt7yAioXqLj7Z4TeEUoOLgrKsn8YnckGs9i3B3tVFB+Ch/4mPhXWiNfNdynHWBcPcbJ8kjEQ2U8y78dHZj1YeRXXVvWob2OaKynO8/lQIDAQAB;

SPF

SPF is another DNS-based email authentication mechanism. If you don't yet have an SPF record, you'll want to add one for your domain. At a minimum, the value should be the following if you're only sending mail through Discourse for that domain:

v=spf1 include:discourse.org ?all

If you already have a TXT record with SPF information, you'll need to add Mandrill's servers to that record by adding include:spf.mandrillapp.com in the record (before the last operator, which is usually ?all, ~all, or -all).

Posts: 1

Participants: 1

Read full topic

Extension to allow custom HTML defined in plugins

0
0

Alexandre Angelim wrote:

Hi guys,

I've been watching a discussion about implementing a message area on top of the site for anon users https://meta.discourse.org/t/idea-welcome-message-area-on-the-home-page-for-anonymous-users/6154/53 and decided to take a shot of solving the issue of customHTML extensibility.

As I've said to @riking, I've been doing some experimentations to implement this, but in order to allow further extensions related to this matter I had to refactor the ApplicationController and the discovery_routes_builders.

I'd like to ask for some help from more knowledgeable devs who have more experience with this app. I've been messing around for a week or so.

First of all, the currentUser wasn't available for the discovery.js.handlebars, which would be the perfect spot to place such message area. To pass it over I had to change the discovery_route_builder.js. I think it was overriding the original instantiation of the DiscoveryController, removing the HasCurrentUser mixin that should have been inherited from ObjectController.

This is what I've changed in the route builder, but I don't even know if that line is needed. I removed it for testing and didn't find any errors:

Discourse.DiscoveryController = Em.Controller.extend(Discourse.HasCurrentUser,{});

In the ApplicationController I had to refactor a little more, defining a class variable to hold new customHTML from plugins. Here's the implementation: https://gist.github.com/angelim/9818270

WIth that, registering a new customHTML from a plugin and take advantage of the html preloading is pretty straightforward:

Let me know if you have any interest in implementing something like this in core. I don't have any specs yet, but I'd be glad to add them.

Posts: 1

Participants: 1

Read full topic

Idea: Welcome message area on the home page for anonymous users

0
0

Lowell Heddings wrote:

I've been thinking that one of the things that will make Discourse less intimidating for new users is some sort of welcome message area on the home page (latest or hot tab, I imagine) for users that haven't yet created an account or logged in.

Right now, if you click a Discourse page, there is nothing but a big list of topics, and it is hard to get an idea of what the community is supposed to be about just by browsing the titles in the list. I mean, it could be a bad time of the day, and a bunch of stupid topics were just pushed to the top, and that anonymous person will get the impression that your site is about something completely different than it is supposed to be.

So that's why I'm saying we need a welcome message area. Basically, the same way that StackExchange does it, in a box across the top of the list.

or Minimized like this, although I think this is not quite as useful. Definitely easier to implement.

What we include in that box, by default, I'm not sure about. But I think we need to at least have these features:

  • Area for a short, pithy descriptive paragraph for what the site is about.
  • Pre-defined Button to point to an About page
  • X button to hide it (cookie) to not show again

It would be nice to include something like the first screenshot with pretty icons for a "how discourse works" type of thing to promote the new features, but I'm not quite creative enough to figure out how that would apply to Discourse. Maybe a "Just keep scrolling" icon, a "Click the heart to Like posts", and a "Reply while you read" option.

Posts: 55

Participants: 18

Read full topic

Ghost, Discourse Integration on DigitalOcean

0
0

Craig Oda wrote:

I ran into some problems getting Ghost to start on the same droplet that Discourse is running on. It is not starting with npm start.

I have set the http port to 8080, so I think it shouldn't conflict with the existing Discourse port usage.

This is for the installation of Ghost on an existing Discourse droplet. I also have Ghost running on a separate $5/month droplet, which I can use. However, it would be cheaper if I ran it on the same droplet if possible. The Discourse droplet that I'm using is the 1GB version. I also need to set up a test forum for a client and I wanted to show them the Ghost/Discourse integration. The client is using Oracle RightNow forum currently which has a license cost of $0.04 per 15 minute session per user. I am working on a campaign proposal to create a new forum that goes beyond the tech support discussions in Oracle RightNow.

root@pychildren:~# cd ghost/
root@pychildren:~/ghost# ls
bower.json         config.js  core          index.js  node_modules  README.md
config.example.js  content    Gruntfile.js  LICENSE   package.json
root@pychildren:~/ghost# npm start

> ghost@0.4.2 start /root/ghost
> node index

root@pychildren:~/ghost#

My understanding is that the output above should be:

Ghost is running...
Listening on 127.0.0.1:2368
Url configured as: http://my-ghost-blog.com

Note that I am not getting that output on the droplet with both Ghost and Discourse installed. I only get it from a droplet with just Ghost installed. On that droplet, it runs fine.

Continuing the discussion from Blogging Platforms, Ghost, and Discourse:

Posts: 4

Participants: 3

Read full topic

Entering titles on mobile

Request Invite on Invite-Only Discourse

0
0

Travis Vocino wrote:

My Discourse forum is invite only. I love this but I would like the ability for users that arrive at the forum via search or other means to request an invite.

Currently there's no obvious way that I can see for a user to gain access to the forum in that way.

Posts: 2

Participants: 2

Read full topic

What about an easier styling/theming system?

0
0

Jeff Atwood wrote:

This would really just be a "CSS generator".

How about a page that has nice color selectors and then nicely named coloring categories, like:

  • Primary background color
  • Secondary background color
  • Tertiary background color
  • Primary text color
  • Secondary text color
  • Primary link color
  • Secondary link color
  • Button background
  • Button background hover
  • Button text
  • Button text hover
  • Last poster highlight color

It doesn't need to be super detailed or advanced or able to do everything. Let people choose the colors on that page, and then click "Generate Style" which outputs a CSS page on the pre-existing Style page which they can then apply.

Most of the hours of work in theming Discourse are "replace #fff with #333, replace link colors with orange, replace #333/other dark with #ccc/other light". Having a simple styling CSS generator would get us 80% of the way there, and then we would be able to just fine-tune the colors of things.

(this text belongs to @DanYouhon but I really wanted it here for discussion and could not wait, sorry Dan!)

Posts: 21

Participants: 11

Read full topic


Does pinning a thread keep it at the top of latest?

0
0

The Dark Wizard wrote:

Doesn't seem to do so for me.

I accidentally deleted the Welcome thread that stayed at the top. Anyway to get it back?

Posts: 6

Participants: 3

Read full topic

Support deleting a user but keeping their posts

0
0

Nathan Rijksen wrote:

I just had some cleanup to do following a SSO bug (that has since been resolved), I had to delete a user which had a post but it wasn't really relevant to delete the post as well. It'd be nice if I could either delete the user and have his posts say something like "(deleted)" for the poster or be able to reassign the users posts to a different author.

Posts: 8

Participants: 5

Read full topic

How to install a CDN?

0
0

The Dark Wizard wrote:

How would I go about forcing discourse to serve content through a CDN of my choice.

Normally theres a file and the such to edit. . but I'm not sure what to do with Discourse.

Posts: 3

Participants: 3

Read full topic

Plugin Tutorial?

0
0

Xocolatl wrote:

Would anyone be willing to create a more comprehensive/explanatory tutorial on creating, testing, and adding plugins?

I realize that there are 3 current tutorials on creating various simple plugins.... but the one that I've found to be consistently the most useful (and the one that people seem to refer back to a lot in fact) is the extremely outdated one here.

Things that it covers that current tutorials do not (enough): a general view on how plugins work with discourse, the structure of them, implementation, styling, adding the plugins. Things that would be extremely helpful in a tutorial that I currently can't find information on: testing plugins server/client side, ember.js use in discourse, discussion on how more complex plugins work.

If that's to much to ask, I honestly would just appreciate a clear explanation on how to test the plugins; the rest can be (very painfully) worked out, but testing, and therefore seeing if my code is actually any good, remains a solid obstacle.

Appreciate any feedback, thanks. smile

Posts: 3

Participants: 3

Read full topic

Where do I modify the nginx configuration to serve other files?

0
0

Stephen Reinert wrote:

Hi,

I recently migrated my Discourse installation to using Docker. In my old configuration, I had a directory set aside to serve some flat files on the same server as my Discourse instance, but unrelated to Discourse. The root of this location was under /var/www/discourse/public. I did this by editing the discourse.conf file under /etc/nginx/conf.d.

If I want to accomplish the same thing under a Discourse Docker container, how do I do that?

Thanks.

Posts: 5

Participants: 2

Read full topic

Plugins not being parsed in correct javascript context when loaded for jobs

0
0

will wrote:

which is causing email to be broken on my site frowning

when I try to do a test email which ultimately results in this call

Jobs::TestEmail.new.execute(to_address: "email@example.com")

as you can see here

https://app.getsentry.com/driveless/driveless-discourse/group/17115674/

So i basically wrapped my code in this

if(typeof (Discourse.Route) != 'undefined') {
 //// all my codes
}

which resulted in this error.

PrettyText::JavaScriptError: Unexpected token ILLEGAL at /var/deploy/driveless_discourse/plugins/discourse-easy-signup/assets/javascripts/templates/modal/easy_signup_create_account.js.handlebars:1:4

as you can see here
https://app.getsentry.com/driveless/driveless-discourse/group/17115598/events/950434482/

which shows that the handle bars template wasnt parsed either.

https://github.com/driveless/discourse-easy-signup

Help o.o

Posts: 1

Participants: 1

Read full topic

How do I set up the WordPress Discourse plugin?

0
0

Jeff Atwood wrote:

I am currently trying to set this up in wordpress, I installed the wp-discourse plugin thu wordpress. How do I disable the original comment system?

Posts: 15

Participants: 7

Read full topic


Broken ToS: No contributors license? And cannot change content license?

0
0

KajMagnus wrote:

Hi,

Concerning the Content License section of the Terms of Service (ToS) in a new Discourse installation.

1) Don't contributors need to license [the contents they post to a Discourse forum] to the company behind the forum?

Currently by default in the Content tab in the Admin section, there is a "Terms of Service: Content License" configuration value. It says that "User contributions are licensed under a [CC-BY-NC-SA] License", but it doesn't stipulate that people who contribute contents to the forum agree to license their contents under that license.

But StackExchange has this snippet: "You agree that all Subscriber Content that You contribute to the Network is perpetually and irrevocably licensed to Stack Exchange under the Creative Commons Attribution Share Alike license." (here: http://stackexchange.com/legal, section 3. Subscriber Content)

Isn't something like that needed for Discourse too, in the default ToS?

2) If the forum owners want to change content license, they won't be able to do that? Consider this scenario: The forum starts with the CC-BY-NC-SA license, by default. The forum users post lots of contents, and this will be licensed under CC-BY-NC-SA. Now, the forum owners become aware about licensing issues and start thinking about which license they want to use. They decide they want to use CC-BY-SA. However, all forum contents is already under CC-BY-NC-SA, and I think the forum owners cannot relicense/sublicense this CC-BY-NC-SA contents under another license like CC-BY-SA. This effectively prevents them from ever switching to another license?

Perhaps the Content Lincense section could stipulate that people posting to the forum agree to dual license their contributions under both CC-BY-SA and CC-BY-NC-SA? Or perhaps the contributros should simply grant a license to the forum owners to republish the contributions under any license whatsoever?

(Background: I'm also developing forum software, actually, and I like the approach Discourse has taken with configurable User Content and Miscellaneous (jurisdiction) sections of the ToS.)

(Related topic: https://meta.discourse.org/t/who-owns-the-content-you-post-on-a-forum-aka-user-content-licensing/4261 but I'm getting the impression that the ideas therein were never implemented?)

Best regards, KajMagnus

Posts: 1

Participants: 1

Read full topic

Installing discourse on Centos, with Apache, MySQL and PHP alongside

0
0

Chris Barry wrote:

I have a Centos server with LAMP setup running on it.

Is there a guide for how I should be able to get Discourse up and running on the server, and also, multiple instances of it (one for meta, one for actual discussion around a topic)

Or should I just look at the following steps.

  1. Install Rails
  2. Install PostgreSQL
  3. Install Redis
  4. Install Thin
  5. Follow the quick and easy setup guide

Posts: 18

Participants: 12

Read full topic

Header is too big on mobile

Overriding translations in extensions requires clearing cache

0
0

Alexandre Angelim wrote:

Instead of messing around with the default internationalization files I've decided to make a plugin to override them. In development mode, whenever I change a key is this new translation file I have to clear the cache and restart the application. That's not needed when I change the keys directly in the default translation files.

Is there a workaround to avoid this step?

Thank you

Posts: 5

Participants: 3

Read full topic

How to upgrade?

0
0

Zach Alexander wrote:

I manage two (soon three) Discourse installations as part of a job I just started today. I need to upgrade, but I see no guides on how to do this.

I'm a Rails dev, and I can handle doing whatever manual steps I need to take, but I'm surprised there aren't any docs on upgrading in the repo (AFAICT). I could figure it out myself, but this is probably not the most efficient way to go about this.

Thanks in advance!

Posts: 5

Participants: 4

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images