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

Can't find 'newuser_max_images'

$
0
0

@Lars_Zimmermann wrote:

Sorry for bothering you with this. But I looked in every setting twice but I want to change the maximum number of images a new user can upload as described here.

But I can't find the newuser_max_images in the admin panel.

Posts: 7

Participants: 5

Read full topic


Discourse and WP

$
0
0

@ThePassenger wrote:

Hi! I have recently discovered this site and it looks amazing. Please let me know if this question is not placed in the proper place but I didn't know exactly where to ask.

My question is about the integration with Wordpress. If i own a domain and install wordpress, i know discourse can be used to comment on post, but, is it also possible to use it to comment on pages? I know also that when someone adds a topic, it will be added as a post as well, am I right?

I love the look of discourse, and it would be amazing if i could also use the WP functionalities. My aim is to create a travel forum, but i would like that the post or topics could also have sliders and galleries to make it more visually appealing. Is that possible at all?

Thanks very much and congrats for the job done!

Posts: 10

Participants: 4

Read full topic

Mailinglist option, but no daily resume

$
0
0

@dybber wrote:

Hi it seems like recent versions require you to have to sign up for the daily/weekly resume to be able to get direct notification on every new forum post. The resumé doesn't make much sense if you get emails for all forum activity.

Posts: 5

Participants: 2

Read full topic

How to configure Content Security Policy?

$
0
0

@rberaldo wrote:

Hi all! I hope this question isn't too noobish, but here I go.

From what I understand, the Discourse Docker image runs its own nginx instance. That's why I had to setup a reverse proxy in my front-facing nginx server. Furthermore, I fumbled with my config and broke my Discourse instance a little. I was trying to get an A+ on the Mozilla Observatory. That experience taught me the nginx that Discourse is running on has its own configuration and I shouldn't be setting X-XXS-Protection twice :stuck_out_tongue:

So I went ahead and deleted most of my TLS options on my front-facing nginx. This is how it looks right now:

Output of /etc/nginx/sites-available/comunidade.sancalug.org:

server {
        listen 80;
        listen [::]:80;
        server_name comunidade.sancalug.org www.comunidade.sancalug.org;
        return 301 https://$host$request_uri;
}

server {
        listen 443 ssl;
        listen [::]:443 ssl;
        server_name comunidade.sancalug.org www.comunidade.sancalug.org;

        ssl on;
        ssl_certificate         /etc/letsencrypt/live/comunidade.sancalug.org/fullchain.pem;
        ssl_certificate_key     /etc/letsencrypt/live/comunidade.sancalug.org/privkey.pem;

	# can't use snippets/ssl-params.conf, because the docker nginx sets some of these options
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	ssl_prefer_server_ciphers on;
	ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
	ssl_ecdh_curve secp384r1;
	ssl_session_cache shared:SSL:10m;
	ssl_session_tickets off;
	ssl_stapling on;
	ssl_stapling_verify on;
	resolver 8.8.8.8 8.8.4.4 valid=300s;
	resolver_timeout 5s;
	# Disable preloading HSTS for now.  You can use the commented out header line that includes
	# the "preload" directive if you understand the implications.
	#add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
	add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
	ssl_dhparam /etc/ssl/certs/dhparam.pem;


        location / {
                proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
                proxy_set_header Host $http_host;
                proxy_http_version 1.1;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

	location ~ /.well-known {
		allow all;
	}
}

However, when I test my domain on the Mozilla Observatory, I get a message that the Content Security Policy header isn't set.

My question is: how can I configure the Discourse nginx server to implement that header?

Posts: 7

Participants: 3

Read full topic

URL to show only open topics with a tag?

$
0
0

@joebuhlig wrote:

I've done quite a bit of searching for this one and even considered a custom plugin for it. But for the life of me I can't nail down how to create a URL (outside of the search URL) that shows me the open topics for a tag.

What I'm trying to do is create a navigation item that links to open topics tagged active within a given category. These topics are for discussing and working on hardware changes. As we complete the work, we close the topics. Which means we want to filter out the closed topics.

I've tried the standard ?status=open parameter but those aren't working on tag pages and appear to have been broken for some time. So I guess I'm looking for an alternative.

Any guidance?

Posts: 1

Participants: 1

Read full topic

Multisite configuration little help

$
0
0

@michael_solomon wrote:

Hey,
I think I very close to solution.
From this guide I understand that if I want to separate the web and the data containers for each site!
So if I want 2 websites my container folder should look like:

  1. openu_web.yml
  2. openu_data.yml
  3. second_site_web.yml
  4. second_site_data.yml

First I'm trying to create the first website with multi-site configuration:
This is my first site web_only file:

# IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
# TODO: change SOME_SECRET in this template

templates:
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"

expose:
  - "80:80"
  - "2222:22"

# Use 'links' key to link containers together, aka use Docker --link flag.
links:
  - link:
      name: openu_data
      alias: openu_data

# any extra arguments for Docker?
# docker_args:

params:
  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8
  ## TODO: How many concurrent web requests are supported?
  ## With 2GB we recommend 3-4 workers, with 1GB only 2
  ## If you have lots of memory, use one or two workers per logical CPU core
  UNICORN_WORKERS: 3

  ## TODO: configure connectivity to the databases
  DISCOURSE_DB_SOCKET: ''
  #DISCOURSE_DB_USERNAME: discourse
  DISCOURSE_DB_PASSWORD: myDiscourseUserPassword
  DISCOURSE_DB_HOST: openu_data
  DISCOURSE_REDIS_HOST: openu_data
  ##
  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'micheal540@gmail.com'
  ##
  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'domain.com'
  ##
  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true
  ##
  ## TODO: The mailserver this Discourse instance will use
  DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org         # (mandatory)
  DISCOURSE_SMTP_PORT: 587                        # (optional)
  DISCOURSE_SMTP_USER_NAME: postmaster@domain.com      # (optional)
  DISCOURSE_SMTP_PASSWORD: myMailgunPassword               # (optional)
  ##
  ## The CDN address for this Discourse instance (configured to pull)
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

volumes:
  - volume:
      host: /var/discourse/shared/openu_web
      guest: /shared
  - volume:
      host: /var/discourse/shared/openu_web/log/var-log
      guest: /var/log

## The docker manager plugin allows you to one-click upgrade Discouse
## http://discourse.example.com/admin/docker
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
  before_bundle_exec:
    - file:
        path: $home/config/multisite.yml
        contents: |
         openu:
           adapter: postgresql
           database: openu
           pool: 25
           timeout: 5000
           db_id: 2
           host_names:
             - openu.domain.com

  after_bundle_exec:
    - exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate

## Remember, this is YAML syntax - you can only have one block with a name
run:
  - exec: echo "Beginning of custom commands"

  ## If you want to configure password login for root, uncomment and change:
  ## Use only one of the following lines:
  #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
  #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root

  ## If you want to authorized additional users, uncomment and change:
  #- exec: ssh-import-id username
  #- exec: ssh-import-id anotherusername

  - exec: echo "End of custom commands"
  - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'

And my openu_data.yml look like:

# A container for all things Data, be sure to set a secret password for
# discourse account, SOME_SECRET is just an example
#

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"

# any extra arguments for Docker?
# docker_args:

params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ##
  ## On 1GB installs set to 128MB (to leave room for other processes)
  ## on a 4GB instance you may raise to 1GB
  #db_shared_buffers: "256MB"
  #
  ## Set higher on large instances it defaults to 10MB, for a 3GB install 40MB is a good default
  ## this improves sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"
  #

env:
  # ensure locale exists in container, you may need to install it
  LANG: en_US.UTF-8

volumes:
  - volume:
        host: /var/discourse/shared/openu_data
        guest: /shared
  - volume:
        host: /var/discourse/shared/openu_data/log/var-log
        guest: /var/log

# TODO: SOME_SECRET to a password for the discourse user
hooks:
  after_postgres:

     - exec: sudo -u postgres createdb openu || exit 0
     - exec:
          stdin: |
            grant all privileges on database openu to discourse;
          cmd: sudo -u postgres psql openu
          raise_on_fail: false
     - exec:
        stdin: |
          alter user discourse with password 'myDiscourseUserPassword';
        cmd: su - postgres -c 'psql openu'
        raise_on_fail: false

     - exec: /bin/bash -c 'sudo -u postgres psql openu <<< "alter schema public owner to discourse;"'
     - exec: /bin/bash -c 'sudo -u postgres psql openu <<< "create extension if not exists hstore;"'
     - exec: /bin/bash -c 'sudo -u postgres psql openu <<< "create extension if not exists pg_trgm;"'

when I run ./launcher rebuild openu_data
all things goes fine, I can enter the container and postgres.

when I run ./launcher rebuild openu_web
I get this errors in middle of the rebuild:

course -c 'bundle exec rake assets:precompile'
URGENT: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
 Failed to initialize site openu

dicourse -c 'bundle exec rake db:migrate'
URGENT: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
 Failed to initialize site openu

and this one in the end:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 248 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
5bd6228c816b0c4e31890510d007090ac91dbc94a97d932cf3a5c7b713d04358
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Please help me!
Thanks,
Michael

Posts: 1

Participants: 1

Read full topic

Cannot grow/shrink composition pane with touch

$
0
0

@barryvan wrote:

On my Surface, I can't grow or shrink the composer area using touch -- it's interpreted as a scroll of the content below.

My guess is that this is because on the "desktop" version of Discourse, only mouse events are handled. Rather than also handle touch events, is it worthwhile moving Discourse to pointer events such that any current and future pointing devices will Just Work™? The jQuery team have a non-jQuery polyfill for pointer events.

Posts: 4

Participants: 3

Read full topic

Some admin messages sent to wrong user

$
0
0

@max wrote:

On my Discourse install, running v1.7.0.beta7 +215, the following system message is being sent to the wrong user:

The user in question was the first user created when Discourse was installed. Later, I demoted this user to moderator and added a separate admin user (because I wanted to use a stronger password for admin functions).

The admin user does not receive this system message directly or through the admin inbox, but the first user, who used to be an admin and is now a moderator, does.

Posts: 2

Participants: 2

Read full topic


Admin User Seen? and docs?

$
0
0

@Yunus wrote:

I have a couple of related questions please.

1.
If I go to a user's profile, i.e. at domain.com/admin/users/ID#/username, there is a line item under Activity titled, "Seen". What does that refer to?

Is that indicating that the user has seen the last emailed digest (or other email) or is that the last time the user was on the site viewing content, or something else?

2.
And for that matter, above that for Created - is that the last time the user created content?

3.
And is there documentation that states what each of the fields means that I could or should be looking at for answers?

Thanks,

Posts: 3

Participants: 3

Read full topic

Unable to sign in to Discourse on mobile

$
0
0

@Jacqueline wrote:

I'm having issues with the mobile version of the forums.
Everything is working fine on desktop, but on mobile I'm unable to do anything at all. All that is loading is a blank white screen with a log in/signup button. (shown below)

I can press the Sign Up button, but none of the other buttons work. I'm not even sure where to begin trouble shooting this. Is there something simple I'm missing? This was happening on an iPhone, but others at the office were getting varying degrees of the same issue.

Posts: 7

Participants: 3

Read full topic

Invite option disappeared for non-admin users

$
0
0

@Roy_ILGM wrote:

Without intervention from the admin team the topic invite option has disappeared for our users. It is still available for admins.

I've checked but can not find where to toggle this function.

Please let me know if this is a bug or where the feature can be switched on.

Kind regards
Roy

Posts: 5

Participants: 3

Read full topic

Uploaded video are not embedded and display a link

$
0
0

@toumou wrote:

When you try to add a video from your computer by using the upload button, the video is embedded when upload is finished, but if you type any character, the embedded video disappear and is replace by a normal link. (I can't try on this topic as I'm a new user)

The bug appears to be on the function app/assets/javascripts/discourse/lib/utilities.js.es6 -> uploadLocation
In fact when window.location.port is not setted, the upload location would have a colon at the end.

To fix this problem I suggest this fix:
port = window.location.port ? ':' + window.location.port : '';

Posts: 2

Participants: 2

Read full topic

Improving the Groups page for 1.7

$
0
0

@codinghorror wrote:

One of the last big things on the 1.7 release list is to improve the groups page. @tgxworld will be working on this in December, so I wanted to gather feedback and make sure we didn't miss anything.

Here's what I remember about it so far:

  • general cleanup of the groups page design, not a radical redesign but make it more.. presentable.

  • show the group avatar (that @neil already worked on) on the group page prominently, since that is how the group is identified by all users. If you are a group owner you should be able to select the group avatar from the group page, just like a user would select their avatar from their user page.

  • add an "about me" field for groups so that they have parity with users, also, the about me can describe what the group is for, why it exists, how to join it, etc

  • add a "full name" for groups for parity with users, plus a long name can contain Unicode and be more descriptive just like a user full name

  • if the group allows it, let people self-join and self-exit the group as desired. This will also require some kind of logging so group moderators know when people enter/leave

  • if the group allows it, let people apply for membership to the group, probably the easiest way to implement this is for 1.7 is a PM button that group PMs the group owners with a pre-filled title and body (we already support this).

We might also need some sort of basic groups directory page like /users but I'm not 100% sure that needs to be in this release per se.

Some other related topics:

Probably the best way to think of this, is continuing to make groups first class citizens, as @sam started when he unified the group and username @ namespaces and added support for messaging groups, just like you'd message users.

Posts: 4

Participants: 4

Read full topic

Can Discourse get reports about search history

$
0
0

@helperhaps wrote:

As we know Discourse can get so many reports about itself. But I can never find a report about search, such how many search query we get per month, or which is the most search result, or which user use search the most etc.

Since discourse never store the search history in the db (if i am right) ,so we can not just use SQL to get what we need. Or there is another way to go? can anyone tell me

hope to make myself understood, many thanks

Posts: 1

Participants: 1

Read full topic

How to access current post tags using Ember and JavaScript?

$
0
0

@Jay_Crossler wrote:

Hi, first time poster. Loving Discourse so far!

I'm writing a plugin that will do some auto-tagging suggesting based on the content of the title and post. I'm trying to access a few things at the JavaScript level - trying to get access to the client-side view of the current post that's being typed in. My goal is to make a new route and action (similar to draft.json that gets sent every few letters typed), and have that respond with suggested tags if the server algorithm triggers a response. This of course needs tagging turned on in the admin menu.

I'm trying to access the Tag Chooser - I can do so in JQuery via: $('input.tag-chooser')

But, if I try to add an existing tag programmatically, using:
$('input.tag-chooser').select2('data',{id:'tags', text:'tags'});
It then shows up on the UI, but not once I save it (guessing it didn't save to the model) because I didn't run this.set('tags', tags); -- because I don't have access to the this object. When I modify tag-chooser to get access, setting also doesn't seem to work as expected.

But, I'm trying to get access to the main JS object that is built in tag-chooser.js (in _initValue) so that I can add a tag to it.... or maybe to access the Ember object to add a tag that way. I see that it looks like the main Global variables are in the JS Discourse object... but I'm not sure how to do something like Discourse.get('Tags') or Discourse.set('Tags') or what.

Any suggestions on where to start? I'm going through Ember tutorials now, but it's a bit slow going.

Posts: 1

Participants: 1

Read full topic


Lot of sidekiq jobs during data import

$
0
0

@junaid_pk14 wrote:

Hello Guys,

We have a huge dataset(7 Lac user, 2.5 Lac threads, 5 million posts, 1.5 attachments, During import discourse created huge amount(5357085) of sidekiq jobs. It seems that we should keep running sidekiq during import time otherwise it would effect other functionalities. During import Discourse by default disable the outgoing email. I want to make sure again as we are going to import data for live system and don't want to have suprises.

@neil, @Falco What do you suggests? Thanks

Regards,
Junaid

Posts: 2

Participants: 2

Read full topic

Is it possible to configure the length that triggers short search term?

$
0
0

@Rob_Nicholson wrote:

When searching a specific topic alone - somebody said "As Chris said" in the topic and I didn't recall their being a Chris in there so I wanted to search on it. Understand requiring a longer search when searching the entire forum.

Is this configurable?

Posts: 4

Participants: 2

Read full topic

Uploaded files mysteriously going missing

$
0
0

@David_Scharf wrote:

On our forum at https://discourse.vvvv.org/ we have uploaded files and images disappearing after some time. The images turn up broken (example) and the file links go into nowhere (example). I looks like somehow the physical copy of the file get's deleted after a certain time, but I can't see a pattern right now. We're running a standard docker installation. Is there something I might be missing here? Is there some kind of cleanup that discourse does which might be removing those files? I have seen related posts here, but none really seem to give the exact answer or explanation of what might be going on.

Thanks all for your help in advance!

Posts: 12

Participants: 4

Read full topic

Remove onebox from Feeds?

$
0
0

@iamntz wrote:

I'm using Zapier to automatically post new topics on a Facebook page and I noticed that for last few days, the feeds (i.e. /latest.rss) aren't posted anymore. The error that Zapier throws me is this:

The last error message was "mismatched tag: line 546, column 2".

What's on line 546? This:

542| <script type="text/javascript">
543| <!--//--><![CDATA[//><!--
544|     !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c<i.length;c++)if(d=i[c],!d.getAttribute("data-secret")){if(f=Math.random().toString(36).substr(2,10),d.src+="#?secret="+f,d.setAttribute("data-secret",f),g||h)a=d.cloneNode(!0),a.removeAttribute("security"),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret="'+d.secret+'"]'),k=b.querySelectorAll('blockquote[data-secret="'+d.secret+'"]');for(e=0;e<k.length;e++)k[e].style.display="none";for(e=0;e<j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute("style"),"height"===d.message){if(g=parseInt(d.value,10),g>1e3)g=1e3;else if(200>~~g)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
545| //--><!]]>
546| </script><iframe sandbox="allow-scripts" security="restricted" src="https://blog.jetbrains.com/dotnet/2016/11/21/jetbrains-rider-public-preview/embed/" width="600" height="338" title="Embedded WordPress Post" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>

So I assume things are not playing as nice as they should.

Can we get a stripped down version of the RSS feed?

Thanks!

Posts: 2

Participants: 2

Read full topic

First Plugin Advice

$
0
0

@jamesmarkcook wrote:

I would like to attempt my first Discourse plugin and was hoping some nice folks could point me in the right direction. I've been reading through the Discourse codebase for a couple of days but trying to absorb it all is proving rather difficult.

I've also read the plugin how-to guides, but these are very basic and are more on how to actually load the plugin as opposed to doing much else.

What I want to do:

I would like to create a plugin that can show categories as images/buttons above the latest topic/category list. I would use the category logo as the image to show.

I'd also like to have a setting on each category that turns this on/off for each category, and another setting for optionally also hiding that category from the standard category list.

I have no problem modifying templates using a plugin, that is pretty straightforward. What I need to wrap my head around is where everything else lives. For example, what would be the best approach of adding two more settings to each category?

I've included this mockup to make it easier to see what I mean:

This wouldn't be exclusive to top level categories either and I should be able to make child categories appear at the top too. I'm obviously planning on replacing those grey boxes with logos, this is just to keep things simple.

I'd also want this to show on categories and latest tab, but I don't suspect this makes it any more or less difficult.

I really would like to start getting up to speed with plugin development, so really only looking for advice on how to approach this. I'd rather not take any shortcuts with CSS hacks etc.

Thanks for reading!

Posts: 1

Participants: 1

Read full topic

Viewing all 60613 articles
Browse latest View live




Latest Images