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

Karma, conversations, and untrusted idiots

0
0

Lowell Heddings wrote:

The one thing that I really really wish we have would be some type of karma feature... basically, there needs to be some way to mark people as "can't string a sentence together" or "constant trolling" or "microsoft hater". Conversely, there should be a way to mark somebody as "excessively helpful" or "lover of knowledge" or "idea factory".

In real life, if you want to have a better conversation, you just don't allow jackasses to join in your conversation. You walk away, stand over on the side, or go somewhere else. You might have a public "discussion" that is watchable over YouTube or TV by thousands of people, but the people allowed to discuss are picked for their knowledge (sometimes). It seems like there should be an analog for that in the digital world, and especially on Discourse.

Perhaps if we had the ability to open a topic and then limit the replies to just people who aren't idiots (a particular user level, for instance), we could have better conversation. The other people who weren't invited would have to petition to be involved. I think there are other discussion systems that work this way, and I'm not saying that every topic would be like that. Just saying having that feature sometimes would be useful.

Or maybe having a "best of" view for every topic, that can be turned on optionally by users (as a default view), that filters out all of the trolls and idiots. Dunno if that would work well though, because the topic would be hard to read with missing posts. Better to prevent the dumb posts first.

I have nothing actionable on this topic, just my random thoughts.

Posts: 7

Participants: 5

Read full topic


Can't undo bold by applying bold again

0
0

Erlend Sogge Heggen wrote:

If I mark something and press ctrl-b it'll be bolded. If I press ctrl-b again right away, it'll be unbolded. However, if I write some text, mark it, press ctrl-b and then continue writing, I can not come back to this text, mark it, and press ctrl-b to undo the bold. Instead it'll just add additional asterisks.

Posts: 2

Participants: 1

Read full topic

Update my install to the newest version - from 0.9.7.9

0
0

stance455 wrote:

I have standard install of discourse running on a digital ocean cloud server, I used the Official Discourse Install Guide to install and update

I was updating on my own using the guide but up until recently ran into a snag with some new files being added and whatnot. I restored my droplet to a previous snapshot so its running 100% on 0.9.7.9 at the moment

This should be simple for someone who knows what he/shes is doing, there are no customizations on my install other than a custom header

I can give you root access to my droplet on digital ocean and paypal you your price for updating

Thanks

Posts: 4

Participants: 3

Read full topic

Beginners Guide to Deploy Discourse on Digital Ocean using Docker

0
0

Arpit Jalan wrote:

Ok, so you want to deploy your own instance of Discourse, and looking from where to start? You've come to the right place, here I'll walk you through the installation steps with the help of screenshots, so you won't find yourself lost, let's begin this wonderful journey.

Unlike many other Rails Apps the deployment of Discourse is extremely simple thanks to awesome Docker Image by @sam, all you need is a ssh access to cloud server. In this guide I'll assume that you are using Digital Ocean, while the steps will work fine on other cloud servers as well.

The below guide assumes that you have no knowledge of Ruby/Rails, Shell, so it will be detailed. Feel free to skip steps which you think, you are comfortable with.

Create new Digital Ocean Droplet

Discourse Team recommends a minimum of 1 GB Ram, so that's what we are gonna go with. For the sake of simplicity we will name the Hostname as discourse.

We will install Discourse on Ubuntu 12.04.3 x64 as this is recommended in Official Documentation.

Once you will complete with above steps you will receive a mail from Digital Ocean, providing root users password. (In case you have entered your SSH keys, then you don't require password to login).

Access your newly created Droplet

To access the droplet, type in following command in your terminal:

ssh root@162.243.201.40

Replace 162.243.201.40 with the IP address you got from Digital Ocean.

It will ask your permission to connect, type yes, and then it will ask you for root's password. The root's password is in your mail which Digital Ocean sent you. Type in the password and you will be welcomed by newly installed Ubuntu Server.

Install Git

To install Git, you just need to type in the command:

sudo apt-get install git

and you are good to go.

Generate SSH Key

It is highly recommended to set SSH key, because chances are, you may need to access rails console for debugging purposes, and it's only possible if you have SSH access preconfigured. It can't be done after bootstrapping the app.

You will need to generate SSH key on Server (Droplet), type in following commands

ssh-keygen -t rsa -C "your_email@example.com"
ssh-add id_rsa

(We want the default settings so when asked to enter a file in which to save the key, just press enter. Taken from this guide)

Install Docker

Run following commands:

sudo apt-get update
sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring

Now we will perform a system reboot:

sudo reboot

Above command will log you out from ssh session, ssh in again:

ssh root@IP_ADDRESS

replace IP_ADDRESS with your IP Address.

Type in following commands:

sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker

Install Discourse

If you have reached this step, Congratulations! You have already done all the hard work, now you have a brand new Ubuntu Server with Docker installed. All you need to do now is install Discourse itself, which is the most easy step. Keep Calm.

Create a /var/docker folder where all the docker related stuff will reside:

mkdir /var/docker

Now we will clone the Official Discourse Docker Image in /var/docker folder:

git clone https://github.com/SamSaffron/discourse_docker.git /var/docker

Make sure to copy and run the above command as is, otherwise you will face problem which I faced.

Let's switch to /var/docker directory:

cd /var/docker

Now we will copy the samples/standalone.yml file and place it inside containers folder by name app.yml, so the path will become containers/app.yml, type in command:

cp samples/standalone.yml containers/app.yml

Now we need modify the newly copied app.yml with our default variables:

nano containers/app.yml

Nano is suggested by @riking because it works like a text editor, just use your arrow keys. Hit Ctrl-O to save and Ctrl-X to exit. In below screenshot I am using Vim.

You will see something like:

You may modify the file as per your requirement, but for the sake of simplicity I will only modify two variables DISCOURSE_DEVELOPER_EMAILS and DISCOURSE_HOSTNAME.

Notice that I renamed the DISCOURSE_HOSTNAME to discourse.techapj.com, this means that I want to host my instance of Discourse on http://discourse.techapj.com/, for this to work properly you will need to modify DNS Records (I will post a separate guide to configure DNS Records).

Mail Setup

This step is required to successfully set up mail settings for Discourse.

It is recommended to set mail settings before bootstrapping your app, if you are advanced user, you need to put your mail credentials in app.yml file.

If you are a beginner, now is the good time to create a free account on Mandrill (Discourse recommended), and put your Mandrill credentials (available on Mandrill Dashboard) in above file. The required information are DISCOURSE_SMTP_ADDRESS, DISCOURSE_SMTP_PORT, DISCOURSE_SMTP_USER_NAME, DISCOURSE_SMTP_PASSWORD.

Add SSH Key

If you successfully generated the ssh key as described in step: Generate SSH Key, get the generated key using following command

cat ~/.ssh/id_rsa.pub

Copy the entire output and paste it in ssh_key param, in app.yml file.

That's it, you're all set to bootstrap your Discourse instance.

Bootstrap Discourse

Save the app.yml file, and run following command:

sudo ./launcher bootstrap app

This command may take some time, but it's doing all the hard work for you. Go drink some coffee, while this command is automagically configuring the Discourse environment for you.

When this command executes, type in the following command to start instance of your Discourse app:

sudo ./launcher start app

Congratulations! You have your own live instance of Discourse running on the host you provided in app.yml file at the time of setup.

You can also access your instance of Discourse by visiting your IP_ADDRESS.

Access Admin

If you configured DISCOURSE_DEVELOPER_EMAILS and mail settings properly, your email will be auto activated and will be made Admin by default.

In case your account is not flagged as admin (which is rare, but is apparently being reported by some users), try ssh'ing in your container (to follow these steps, you are required to provide SSH key in app.yml file):

./launcher ssh my_container
sudo -iu discourse
cd /var/www/discourse
RAILS_ENV=production bundle exec rails c
u = User.last
u.admin = true
u.save

Voilà, you are now the admin of your own Discourse installation!

Okay, that's it for this guide. In my next post I'll talk in detail about more advanced topics like Configuring mail, Tweaking admin, SSH access to running containers, etc.

Please provide your feedback, if anything needs to be improved, don't hesitate. Also the fine folks here at Discourse are always ready to help you, in case you face any problem.

Note: Please go through below posts first, before asking problems, chances are someone else might have ran into exact same problem, and answer was available right here, all along. If you still can't find the answer, please do ask, someone else might be facing the exact same problem. sweat_smile

I'll try to update this guide as frequently as possible.

[Last Update: February 18, 2014]

Posts: 61

Participants: 18

Read full topic

Moving old uploads to Amazon S3

0
0

Johannes Ekberg wrote:

What is the recommended way to move uploaded images to an Amazon S3 bucket?

The scenario here is that we have an S3 bucket set up for uploads, but there's a handful of images (~5) that were posted before the bucket was put in place, that now seem to be stuck on the server (reuploading them just reuses the old URL).
I imagine I could move the images myself and edit the database by hand, but that doesn't seem particularly clean, and I'm hesitant to edit the database for a piece of software I'm not intimately familiar with without a confirmation from someone who is.

This is not a real problem in any way, but having uploads split up like this does bother me a bit.

Posts: 2

Participants: 2

Read full topic

Would the admin panel backup/restore work for migrating to Docker?

0
0

Kane York wrote:

Is the backup/restore in the admin panel complete enough that you can move it over to a docker install (with the proper configuration in containers/app.yml) and have that work?

Assume same hostname, so no need to do the replace script.

Posts: 2

Participants: 2

Read full topic

"unexpected token at 'BAD CSRF'" when updating email

0
0

Roberto_Pezzali wrote:

I have this error when I try to update a user email through api.

client.update_email("pippopippo", "batman@example.com")
DiscourseApi::Error: 399: unexpected token at ''BAD CSRF']'

Any solution to update a user email? I must implement app -> discourse one way user sync and I can create a user but I cannot update a user email.

Posts: 8

Participants: 3

Read full topic

Getting email notifications for my own posts

0
0

Johannes Ekberg wrote:

I have checked Receive an email every time a post is made on the forum, but I did not expect it to be literal enough to email me about my own posts.

Is this intended behavior, or a bug? I personally think it's rather useless to have my own posts emailed back to me, but there might be a reason for this that I'm unaware of.

Posts: 2

Participants: 2

Read full topic


Need help with getting notification emails sending and SSHing into discourse container

0
0

Mike wrote:

Continuing the discussion from Beginners Guide to Deploy Discourse on Digital Ocean using Docker:

After adding the key using ssh-add, when I try to use the launcher to ssh into the discourse container, it's still asking me for the root password. And I want to be able to do that so I can login to the container to see why emails aren't sending.

I sent a test email and from the UI it looks like it was sent fine, but I never received anything. In the original app.yml, I used a new mandrillapp to set it up.

Thanks!

Posts: 1

Participants: 1

Read full topic

Programmatically inviting users

0
0

Phil Nelson wrote:

We have a need to invite about 100 users (and eventually about 3000 more) to our discourse install, and my ruby/rails is super rough. I searched around on the forums and couldn't find a good example. How might someone invite users to the forums in an automated way, from a list or even just on the command line? I'm not even really worried about sending an invite email, but creating the user and assigning an invite code.

Posts: 6

Participants: 3

Read full topic

Change ownership of a topic

0
0

Kane York wrote:

It's kinda annoying that you can't change the ownership of the auto-seeded category definition topics for Meta or Lounge.

Can you either:

  • Use site_contact_username as the topic creator
  • Provide a mechanism for an admin to change ownership of a post

Posts: 2

Participants: 2

Read full topic

Can't Delete a Spammer with a one month old account and posts?

Missing has_best_of index?

0
0

Graeme Stuart wrote:

I had a problem when I upgraded to the latest-release where I was getting a 500 from categories.json so I upgraded to the bleeding edge today and that seemed to fix it. However, I am still getting loads of failed jobs in sidekiq. Many like this:

PG::UndefinedColumn: ERROR: column t.has_best_of does not exist LINE 14: (t.has_best_of IS NULL OR t.has_be... ^ : UPDATE topics AS t SET has_best_of = (t.like_count >= 1 AND t.posts_count >= 50 AND x.max_score >= 15), score = x.avg_score FROM (SELECT p.topic_id, MAX(p.score) AS max_score, AVG(p.score) AS avg_score FROM posts AS p GROUP BY p.topic_id) AS x WHERE x.topic_id = t.id AND ( (t.score <> x.avg_score OR t.score IS NULL) OR (t.has_best_of IS NULL OR t.has_best_of <> ( t.like_count >= 1 AND t.posts_count >= 50 AND x.max_score >= 15 )) )

Is there a missing has_best_of index on the topics table? I have looked at the table and can't see an index or field named has_best_of. Is this missing in the migration?

I'm also getting these:

PG::Error: ERROR: duplicate key value violates unique constraint "index_top_topics_on_topic_id" DETAIL: Key (topic_id)=(45) already exists. : INSERT INTO top_topics (topic_id) SELECT id FROM topics WHERE deleted_at IS NULL AND visible AND archetype <> 'private_message' AND NOT archived

Is this normal?

Posts: 4

Participants: 3

Read full topic

Read-only mode please!

0
0

Michael Brown wrote:

Having a read-only mode would be great in a few situations:

  • failover to standby read-only database
  • migrations (set read-only, slurp data, restore, switch DNS)
  • upgrades (could upgrade and leave the old thins up and running safely)

Please add! I'll love you forever.

Posts: 6

Participants: 4

Read full topic

Is it possible to use Discourse as a "commenting system"?

0
0

Pablo Olmos De A C wrote:

I actually searched the forums and found a couple of threads referring to this, but more of them are older than 6 months ago, and since discourse it's still in development, I thought there could be different now.

When I saw discourse, the first thing I thought was "finally, I can forget about disqus and friends", while I understand that this tool was made thinking in replacing forums (or complement them), a lot of good discussion happens in form of blog comments too. That being said, it seems to me that Discourse it looks also suited for that job.

Is there any plan on this or some approach that already people are implementing?

Posts: 6

Participants: 4

Read full topic


Making hot topic titles bold/highlighted in the topic list

0
0

Amit Friedmann wrote:

Looking from the perspective of my users, especially the new ones, pinned topics are a good way to put relevant topics at the top, as well as the top page, but they are not obvious for new users.

Making a topic title bold/highlighted or even with bigger font (less like) will make them more visually noticeable as important topics IMO.
Can be similar to changing colors of # of views for a hot topic: a topic with more than X views will be bold.
Other option is based on some formula of the topic's age, number of posts and views.

Cheers

Posts: 1

Participants: 1

Read full topic

Generic whitelisted oneboxes throwing 404s

0
0

Shobhit Shrivastava wrote:

Quite a few Generic oneboxes are throwing 404s. http://nba.com, http://wsj.com, http://samsung.com.

Posts: 4

Participants: 3

Read full topic

How do I send people invites?

0
0

Gweebz wrote:

I noticed in my "user page" that there is an "Invites" tab. I can't seem to figure out how to send someone an invite. Am I missing something obvious or is this feature just not implemented yet?

Posts: 17

Participants: 10

Read full topic

Is there a way to change to mobile view without clicking a button?

0
0

Martin Heidegger wrote:

I have tried the desktop view on my discourse installation with my iPhone 4s (Chrome) and I want to switch back to mobile view, but the menu button is not reachable (cut off). Is there a way to switch to the mobile view with a url?

Posts: 2

Participants: 2

Read full topic

What's up with the 'pseudo' locale?

Viewing all 60279 articles
Browse latest View live




Latest Images