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

Treat all links as target_blank?

$
0
0

Juffin wrote:

I think it will be a common sense to automatically attribute all links in the topic as target:blank, not self, so clicking on the link does not interrupt topic reading process? Currently all links, including oneboxes open as _self.

Posts: 6

Participants: 5

Read full topic


New problem after upgrade to 0.9.7.9

$
0
0

Juan Manuel Formoso wrote:

After creating the new discourse.conf file and configure it to my environment, I get this error when I execute rake RAILS_ENV=production multisite:migrate

==  CreateTopTopics: migrating ================================================
-- create_table(:top_topics)
rake aborted!
/discourse/app/models/top_topic.rb:6: unknown type of %string
    @periods ||= %i{yearly monthly weekly daily}
                    ^
/discourse/app/models/top_topic.rb:6: syntax error, unexpected $end
    @periods ||= %i{yearly monthly weekly daily}

I'm a little lost and I'm afraid I broke something.
Is there an easy way to clone a fresh copy of latest and preserve my data in my postgres database?

Posts: 4

Participants: 3

Read full topic

Feedback: Improved topic summary mode

$
0
0

Jeff Atwood wrote:

Every forum has the TL;DR problem of regularly generating topics that have 100, 200, 500, or even a thousand posts. Who the heck is going to read all 500+ posts in a giant topic?

We had a "best of" mode for topics that was designed to address this, to give you the reader's digest condensed version of long topics by algorithmically picking the "best" posts in a topic and hiding the other posts.

But it was not really complete. We went back and made a major pass on this to improve it. You'll notice at the top of long topics (we define long as more than 50 posts) an invitation to summarize the topic:

There are 180 replies with an estimated read time of 54 minutes. Save reading time by displaying only the most relevant replies?

Summarize This Topic

Specifically:

  • renamed it from "best of" to "topic summary" to better reflect what it does

  • shows estimated reading time of the topic so you know how much time you might be saving; the post count doesn't always tell the full story. Does the topic consist of one line posts, or giant thousand word essays?

  • show the number of omitted posts as clickable bars directly in-line between the posts, rather than as an easily missable bar at the bottom of the page; you can expand the omitted posts on demand so you never feel like you are missing out on anything

  • the in-line omitted post counts are better "you are in a summary mode for this topic" reminder, which we also use when filtering by user (click a user portrait in the left gutter to fillter by user.)

Please take a look at it and tell us what you think of the new, improved topic summary mode.

Just look for topics that have more than 50 posts (remember, you can sort the topic list columns now) and enter at the top of the topic, not the bottom, by clicking the first post date in the topic list.

We want Discourse to turn a world of endless TL;DR forums into ... places you can can actually dip your toes in and read without quitting your job to become a full-time forum addict!

Here's an example topic from BBS linked in summary mode, try this one out and see what you think:

http://bbs.boingboing.net/t/this-is-a-city-for-the-right-people-who-can-afford-it/16003?filter=summary  

Comments?

Posts: 19

Participants: 9

Read full topic

Plugin Tutorial #2 - How to add a button at the end of a topic?

$
0
0

Régis Hanol wrote:

Here's a tutorial on how to write a plugin that will add an alert button at the end of a topic that will display the title of the current topic.

As usual, let's start with our entry point, the plugin.rb file:

# name: alert
# about: add a button at the end of the topics that displays the topic title in an alert
# version: 0.1
# authors: Régis Hanol

register_asset "javascripts/alert.js"

Nothing fancy here, just some metadata about the plugin and a line to register our javascript code.

Let's see what this piece of code holds. The first part is about defining a view for our alert button:

Discourse.AlertButton = Discourse.ButtonView.extend({
  text: 'alert',
  title: 'display the topic title in an alert',

  click: function() {
    alert(this.get("controller.content.title"));
  },

  renderIcon: function(buffer) {
    buffer.push("<i class='icon icon-warning-sign'></i>");
  }
});

We're defining an AlertButton view that inherits from Discourse.ButtonView. This view handles rendering of a button and let us control the way the button is rendered. For example, we can render an icon by defining the renderIcon function. This method is using buffered rendering for higher performance. It simply means that you need to push strings into the buffer to control what will be rendered.

The most important part is the click method. This is where our awesome feature lies. Thanks to ember, whenever the user clicks on the button, this method will automagically be called and the user will be prompted with an alert containing the title of the current topic star2

Then, we need to listen to the additionalButtons event that is triggered by the TopicFooterButtonsView so that we can add our alert button, like so:

Discourse.TopicFooterButtonsView.reopen({
  addAlertButton: function() {
    this.attachViewClass(Discourse.AlertButton);
  }.on("additionalButtons")
});

And here's the result:

Hope you enjoyed it smile

Of course, you can find the full source code on GitHub.

Posts: 6

Participants: 3

Read full topic

I cannot specify an arbitrarily numbered list in Markdown

Login with Facebook

$
0
0

Chris Cinelli wrote:

If you login with Facebook and you change the email address you get "Password can't be blank" and it does not let you go through.

Posts: 1

Participants: 1

Read full topic

Automated scripts for creating conversations?

$
0
0

Abhishek Gupta wrote:

I have a page , mostly a form , which is needed to be filled up by user . The received data is in json format , an is mostly strings and text .

I want a script which can automatically generate a conversation in discourse forum(on my domain) , with first post as the data entered previously.

For ex

Form:

Name:
About yourself:
Age:

So , i want my script to place a conversation in discourse with

Title: Intro of  <name i got before>

First Post:

<about yourself recieved earlier>
other things here ....

How can i achieved this .. if i use Javascript to receive form data . I dont need it to be very secure .
But Time is a concern here , it need to be fast.

A similar concept implemented in phpbb: https://www.phpbb.com/customise/db/mod/application_form/

Posts: 3

Participants: 2

Read full topic

Category selection menu design suggestion

$
0
0

Mait wrote:

Are we fine with nested scroll bar? I'm not. disappointed I really want to avoid nested scrollbar if we have another option.

Topic list and topic editor both have scrollable categories select bar. In there, if scroll hit top or bottom,. whole current page start scrolling. It's quite nervous keep away from top or bottom especially dealing with poor sensitivity mouse wheel or touchpad.

I think selecting category is active user action. Not like new topic, reply, notification or some other passive actions. Thus we could be more aggressive on space usage. Because they actively select categories button, not gonna excused even take whole area for category popup. We should show them quick and easy at glance because they just clicked button for that reason.

IMO, center aligned, big square box (e.g. 80% max, 16:9 ratio) would be fine. It maybe better using pagination instead of scroll bar if there are so many categories. It's almost like image view popup box.

Posts: 5

Participants: 3

Read full topic


Click top bar to scroll top

$
0
0

zh99998 wrote:

like google+, click top bar to scroll top is a good experience i think.

i have done it by a custom header, but maybe it can be a general experience as discourse default.

<script>
window.onload = function(){
$('.d-header').click(function(){ $('body').animate({ scrollTop: 0 });})
}
</script>

(not perfect, this code click logo or avatar can also scroll top, which should not)

Posts: 21

Participants: 6

Read full topic

User login creates redirect loop with nginx and thin

$
0
0

Zachary Lewis wrote:

I'm having trouble getting my Discourse install to properly log in users using anything other than username/password authentication. Going through Twitter, Facebook, et cetera results in a redirect loop.

I've recently updated /etc/nginx/sites-available/discourse.config to match the new nginx.sample.conf in the repository in hopes that it might solve my issue, but to no avail. Any help would be much appreciated.

Posts: 9

Participants: 4

Read full topic

Is there any way to subscribe to categories

$
0
0

Chris Leong wrote:

I think it would be useful to be able to receive notifications when someone posts in a particular category

Posts: 13

Participants: 9

Read full topic

Mandrill Postfix Email Configuration Head Squeeeeezing

$
0
0

Steven Brown wrote:

Oh My Gosh, I am at my wit's end here trying to figure this out.

GOAL: Configure Discourse (running in a subdomain) for email using Mandrill. Ideally, only Discourse email would go through Mandrill, and the other subdomains would continue to use sendmail.

I'll tell you outright that I have tried so many things that my files are probably a bit wonky.

QUESTION: I have added the relevant (I think) bits of my config files, can anyone help me sort this out?

CentOS 6 + Plesk (1and1 Dynamic Cloud Server)
Apache + Passenger
Discourse installed at: forum.example.com

discourse.conf

# hostname running the forum
hostname = "forum.example.com"

# address of smtp server used to send emails
smtp_address = "smtp.mandrillapp.com"

# port of smtp server used to send emails
smtp_port = 25

# domain passed to smtp server
smtp_domain = "forum.example.com"

# username for smtp server
smtp_user_name = "Mandrill User Name"

# password for smtp server
smtp_password = "Mandrill API Key"

# enable TLS encryption for smtp connections
smtp_enable_start_tls = true

environments/production.rb

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address              => "smtp.mandrillapp.com",
  :port                 => 587,
  :domain               => 'forum.example.com',
  :user_name            => 'Mandrill User Name',
  :password             => 'Mandrill API Key',
  :authentication       => 'plain',
  :enable_starttls_auto => true  }

/etc/postfix/main.cf (based largely on Mandrill's setup instructions)

smtpd_tls_cert_file = /etc/postfix/postfix_default.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_security_level = may
smtpd_timeout = 3600s
smtpd_proxy_timeout = 3600s
disable_vrfy_command = yes
mynetworks = 127.0.0.0/8 [::1]/128 198.71.51.193/32
smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated, check_client_access pcre:/var/spool/postfix/plesk/non_auth.re
smtpd_client_restrictions = permit_mynetworks
smtp_send_xforward_command = yes
smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128

smtpd_recipient_restrictions = permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/no_relay.re, permit_sasl_authenticated, reject_unauth_destination
virtual_mailbox_base = /var/qmail/mailnames
virtual_uid_maps = static:110
virtual_gid_maps = static:31
smtpd_milters = inet:localhost:12768
non_smtpd_milters = inet:localhost:12768
sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps
virtual_transport = plesk_virtual
plesk_virtual_destination_recipient_limit = 1
mailman_destination_recipient_limit = 1
myhostname = uxxxxxxx.onlinehome-server.com

smtpd_sasl_auth_enable = yes
# tell Postfix where the credentials are stored
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
# use STARTTLS for encryption
smtp_use_tls = yes
# relayhost = [smtp.mandrillapp.com]

relayhost =
sender_dependent_relayhost_maps = hash:/etc/postfix/relayhost_maps

Posts: 12

Participants: 4

Read full topic

Tutorial: integrate Devise with Discourse (with user sync)

$
0
0

Roberto_Pezzali wrote:

Hello everyone. I notice that there are a lot of requests about the integration Discourse inside a rails app.

Devise is maybe the preferred authentication solution for a lot of projects, so I think that maybe a tutorial (or a sample project) to show the best way to integrate a standard Devise installation with Discourse could be very useful.

The objective is very simple:

1) Main app with Devise installed on www.example.com2) Discourse installed on forum.example.com
3) User registration on the main app
4) Trasparent login to Discourse
5) One way user sync
6) Discourse control panel fixes (hide the possibilità di change email and username)

I can help to create the tutorial and also the sample app on GitHub. There is something similar? Anyone has developed something that I can use as a starting point?

Posts: 3

Participants: 3

Read full topic

Do you recommend a clean install?

$
0
0

A G wrote:

First, thanks to everyone who helped with my questions. Discourse is really fun to use. I look forward to installing it but it seems that somethings went wrong during the install and so far I cannot make it work.

At this point, when I try to restart nginx I get this error nginx: [emerg] duplicate upstream "discourse" in /etc/nginx/sites-enabled/discourse.conf~:7. @trident thought that I may have another discourse.conf hidden somewhere but I could not find another one.

@trident also asked me to check if I actually started Discourse but I don't see any sockets listed under /var/www/discourse/tmp/sockets/ directory.

When I try to visit the site nomilkfor.me I get "502 Bad Gateway" error.

I list below my configuration files.

/var/www/discourse/config/discourse.conf:

hostname = "nomilkfor.me"
smtp_address = smtp.mandrillapp.com
smtp_port = <mandril_port>
smtp_domain = nomilkfor.me
smtp_user_name = <mandrill_user_name>
smtp_password = <mandrill_key>
smtp_enable_start_tls = true
cdn_url =
developer_emails =

/etc/nginx/sites-enabled/discourse.conf

types {
   text/csv                    csv;                                                                                                                                
}

upstream discourse {
  server unix:/var/www/discourse/tmp/sockets/thin.0.sock;
  server unix:/var/www/discourse/tmp/sockets/thin.1.sock;
  server unix:/var/www/discourse/tmp/sockets/thin.2.sock;
  server unix:/var/www/discourse/tmp/sockets/thin.3.sock;
}

server {

  listen 80;
  gzip on;
  gzip_min_length 1000;
  gzip_types application/json text/css application/x-javascript;

  server_name nomilkfor.me;

  sendfile on;

  keepalive_timeout 65;

  client_max_body_size 2m;

  set $public /var/www/discourse/public;

  location / {
    root $public;

    location ~* \.(eot|ttf|woff)$ {
            add_header Access-Control-Allow-Origin *;
            expires 1y;
        add_header Cache-Control public;
        }

    location ~ ^/assets/ {
      expires 1y;
      add_header Cache-Control public;
      add_header ETag "";
      break;
    }

    location ~ ^/uploads/ {
      expires 1y;
    add_header Cache-Control public;
      add_header ETag "";


      # custom CSS                                                                                                                            
      location ~ /stylesheet-cache/ { try_files $uri =404; }
      # images                                                                                                                                
      location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff)$ { try_files $uri =404; }
      # thumbnails & optimized images                                                                                                         
      location ~ /_optimized/ { try_files $uri =404; }

      # attachments must go through the rails application to get the right content-disposition header        
      proxy_set_header X-Sendfile-Type X-Accel-Redirect;
      proxy_set_header X-Accel-Mapping $public/=/downloads/;
      proxy_pass http://discourse;
      break;
    }

    try_files $uri @discourse;
  }

  location /downloads/ {
    internal;
    alias $public/;
  }

  location @discourse {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;

    proxy_pass http://discourse;
  }

}

Posts: 3

Participants: 2

Read full topic

What is the point of limiting new users to three replies per topic?

$
0
0

A G wrote:

I am trying to install Discourse and I ran into a problem and I asked a question in the forum and [trident] is trying to help but I cannot reply to his questions!! What is the point of this? How am I supposed to reply to his questions?

Posts: 17

Participants: 8

Read full topic


Activity dates with year make topics taller

When is trust level 3 and 4 going to be added?

Loomio integration

$
0
0

Raphaël Jadot wrote:

Hello,

Yes, I know, it's easy to talk, not the same to code, but I just wanted to underline that there is a project that, I imagine, could perfectly expand discourse.org: Loomio

It's a great tool that help in taking decisions, using also Ruby on Rails. While Discourse is great at being dynamic, and has better tool for writing, or formatting text than Loomio, this last is absolutely wonderfull to its "taking decision" purpose. We are using it for our new openmandriva.org project.

The combination of both would be amazing :)

Posts: 2

Participants: 2

Read full topic

Fixed: Email works if I use rails console but doesn't go out from website

$
0
0

Pradeep Sethi wrote:

Hi

I have spent days now configuring the email is discourse. I am using SMTP through Postmarkapp (it is similar to Mandrill).

The server is RHEL 5

I do not have Postfix on the server. Do I need it if I am using SMTP directly ?

Here is what I have figured. The email goes out if I send it using Rails console. For instance, I am able to send the test emailer using

rails console -e production
TestMailer.send_test('me@mydomain.com').deliver

however, if I go to admin and then email, enter my email address , the email is never sent out (even though it says 'sent').

similarly, sign-up and other emails are not working either.

I am not able to figure out, how to troubleshoot it more & where to look

Please help. Thanks in Advance.

Prad

Posts: 9

Participants: 3

Read full topic

Different home page for regular vs. new user

$
0
0

Hrishikesh Thakre wrote:

For regular users of a forum "New" tab works best and is used widely. They may have bookmarked the best comments and Favorited the topics. The current system works like charm for regulars.

But for new users the current setup seems little lost.

  1. He is presented with "new" and "categories" tab. But both contains more and less same information. Newest topics / new topics by category.
  2. "New" tab is about the current discussions which necessarily does not mean the best discussion and it won't reflect the depth or the best of a forum.
  3. Categories also have topics sorted by age only. So other than knowing the high level setup of forum no more information is provided to user from second tab
  4. There is no section or tab to represent most liked topics, most discussed topics, editorial /admin marked topics.

We have pinning feature, but it reflects Important note, attention rather than the best quality topics.
We need little more flexibility to showcase site's depth and quality. My suggestions are:

  1. Provide settings where admin can pre-select the sort order for topics shown in categories tab (and topics of single category on selction). That will solve some part of problems. (Admin can decide if it is views, likes, no of comments which he thinks is important for his forum.)

    1. Extra Tab for Editorial /Admin marked Best of Topics. (many forums are still one man army (very few users) )

    2. Tab for Favorited topics by all users

I think first one should be easy, other two can be debated.

Posts: 12

Participants: 5

Read full topic

Viewing all 60739 articles
Browse latest View live




Latest Images