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

404 after discourse upgrade on subfolder install

0
0

@Olivier_Baillon wrote:

Hi,

After upgrading my discourse installation to discourse 2, all the forum give a 404 error.

Discourse is installed on a docker container.
Forum is serve under subfolder url
https://www.domain.com/forum

Here is my host nginx config

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name www.domain.com;
    root /home/forge/www.domain.com/public;

    # FORGE SSL (DO NOT REMOVE!)
    ssl_certificate /etc/nginx/ssl/www.domain.com/194605/server.crt;
    ssl_certificate_key /etc/nginx/ssl/www.domain.com/194605/server.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256
:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-
ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-S
HA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
    ssl_prefer_server_ciphers on;
    ssl_dhparam /etc/nginx/dhparams.pem;

#    add_header X-Frame-Options "SAMEORIGIN";
#    add_header X-XSS-Protection "1; mode=block";
#    add_header X-Content-Type-Options "nosniff";

    index index.html index.htm index.php;

    charset utf-8;

    # FORGE CONFIG (DOT NOT REMOVE!)
    include forge-conf/www.domain.com/server/*;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/www.domain.com-error.log error;

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    location /forum/ {
        proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
        proxy_read_timeout 120;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location ~ /\.ht {
        deny all;
    }
}

and here is my app.yml

## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"
  - "templates/web.socketed.template.yml"

## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
 # - "80:80"   # http
 # - "443:443" # https
  - "2222:22"
  - "5432:5432"
params:
  db_default_text_search_config: "pg_catalog.french"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  db_shared_buffers: "8192MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

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

env:
  LANG: fr_FR.UTF-8
  DISCOURSE_DEFAULT_LOCALE: fr

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 12

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: www.domain.com
  DISCOURSE_RELATIVE_URL_ROOT: /forum

  ## 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: 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: 'admin@domain.com'

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: postmaster@domain.com
  DISCOURSE_SMTP_PASSWORD: "azerty"
  DISCOURSE_SMTP_ENABLE_START_TLS: false           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com


  ## The CDN address for this Discourse instance (configured to pull)
  ## see https://meta.discourse.org/t/14857 for details
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

## The Docker container is stateless; all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/Kelio---/discourse-replayer.git
          - git clone https://github.com/davidtaylorhq/discourse-whos-online.git
          - git clone https://github.com/discourse/discourse-bbcode.git
          - git clone https://github.com/discourse/discourse-bbcode-color.git
## Second part to change according to the howto on "Subfolder support with Docker"

run:

    - exec:

        cd: $home

        cmd:

          - mkdir -p public/forum

          - cd public/forum && ln -s ../uploads && ln -s ../backups

          - rm public/uploads

          - rm public/backups

    - replace:

       global: true

       filename: /etc/nginx/conf.d/discourse.conf

       from: proxy_pass http://discourse;

       to: |

          rewrite ^/(.*)$ /forum/$1 break;

          proxy_pass http://discourse;

    - replace:

       filename: /etc/nginx/conf.d/discourse.conf

       from: etag off;

       to: |

          etag off;

          location /forum {

             rewrite ^/forum/?(.*)$ /$1;

          }

#    - replace:

 #        filename: /etc/nginx/conf.d/discourse.conf

  #       from: $proxy_add_x_forwarded_for

   #      to: $http_fastly_client_ip

    #     global: true



    - 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;}'

Thanks you for your help

Posts: 23

Participants: 7

Read full topic


Website Migration

0
0

@Earlie wrote:

Hello,

I am to know how one can migrate there discourse forum from one service provider to another, i.e from Digital Ocean to Google Cloud Platform?

Thank you
Regards

Posts: 3

Participants: 2

Read full topic

Discourse must be the only software on the server?

0
0

@Untoldent wrote:

Hi! So i spent all last week finding a new host and migrating my sites to a cloud server so that i could install Discourse alongside, only to discover that Discourse has to be the only thing on the server. Is this true?

Here’s how i arrived at that conclusion:

  • i tried to follow the install guide and got stuck on Step 1
  • sought help in a Linux Discord server, and they said the Redhat kernel on my server was many versions behind and was no longer supported
  • i asked the new host what was up, and the tech support guy said “you’re running CPanel.” Me: “So?” Him: “So you can’t run CPanel and Discourse. Discourse would wipe out CPanel. It has to be installed on its own server.”

i’ll freely admit i have no idea what i’m doing dog in a tie.jpg, but i do kind of understand how computers work, and i think i understand that computers can run multiple pieces of software at the same time. So what’s the story? Do i really need a separate, devoted server at $20/mo to run Discourse?

Posts: 8

Participants: 5

Read full topic

What is a onebox?

0
0

@techAPJ wrote:

One very cool feature Discourse has is “oneboxing”. If you include a link to your favourite site, it will try to create a usable snippet for you automatically.

For example: paste the link http://en.wikipedia.org/wiki/Ruby_on_Rails on a line by itself and you will see a nice onebox from Wikipedia


Some samples:

http://en.wikipedia.org/wiki/Ruby_on_Rails

https://www.amazon.com/Amazon-Echo-Dot-Portable-Bluetooth-Speaker-with-Alexa-Black/dp/B01DFKC2SO

https://twitter.com/discourse/status/950513694701531136

http://stackoverflow.com/questions/25427024/what-is-the-used-for-in-ruby

https://github.com/discourse/discourse/pull/2561

https://github.com/rack/rack/blob/master/lib/rack/etag.rb

https://www.theverge.com/2017/10/31/16579748/apple-iphone-x-review

https://www.youtube.com/watch?v=ZrZISyPucMg

https://vimeo.com/97765630

http://techcrunch.com/2013/02/05/jeff-atwood-launches-discourse

https://discourse.codinghorror.com/t/because-reading-is-fundamental/2793

https://stackoverflow.blog/2018/01/11/brutal-lifecycle-javascript-frameworks

https://itunes.apple.com/us/app/duke-nukem-manhattan-project/id663811684?mt=8

https://soundcloud.com/generalelectric/drop-science

https://imgur.com/gallery/rBjJq

Posts: 1

Participants: 1

Read full topic

Sorting Categories within Categories

0
0

@fazzio349 wrote:

I’m having trouble trying to figure out how to sort categories within categories (similar to what they’re doing here: Community - Codecademy Discuss). I’d have to have a few subcategories “pinned” to the top of the category page, but when I create a subcategory it doesn’t seem to do that. Is there a special way of doing this? I understand how to sort categories on the main page, but can’t figure out how to sort them within category pages.

Posts: 5

Participants: 2

Read full topic

How to change categories style?

TypeError: e.jqXHR.responseJSON.join is not a function

0
0

@ffhaddad wrote:

Hi all,

I’m looking for help/direction on how to troubleshoot the log errors I see in the Discourse admin section of my site.

Here’s one as an example.

Error

TypeError: e.jqXHR.responseJSON.join is not a function

info

TypeError: e.jqXHR.responseJSON.join is not a function
Url: https://sunrisepoint.org/assets/application-bf5a549b061e4b143b57dac790e40cadb0afc56f6200522938975785cc4a4008.js
Line: 5
Column: 2880
Window Location: https://sunrisepoint.org/c/correspondence/bod

backtrace

z@https://sunrisepoint.org/assets/application-bf5a549b061e4b143b57dac790e40cadb0afc56f6200522938975785cc4a4008.js:5:2880
_bindUploadTarget/<@https://sunrisepoint.org/assets/application-bf5a549b061e4b143b57dac790e40cadb0afc56f6200522938975785cc4a4008.js:21:24538
dispatch@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:2:16565
add/v.handle@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:2:14665
trigger@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:3:6731
trigger/<@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:3:7288
each@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:1:14731
each@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:1:12780
trigger@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:3:7267
_trigger@https://sunrisepoint.org/assets/vendor-5a5945eb745675941f6bc539d75501b8c77028c134a7d343f51931413dae7fe1.js:1:25561
_onFail@https://sunrisepoint.org/assets/vendor-5a5945eb745675941f6bc539d75501b8c77028c134a7d343f51931413dae7fe1.js:5:1659
e.widget/</l[t]</<@https://sunrisepoint.org/assets/vendor-5a5945eb745675941f6bc539d75501b8c77028c134a7d343f51931413dae7fe1.js:1:20610
c/i<@https://sunrisepoint.org/assets/vendor-5a5945eb745675941f6bc539d75501b8c77028c134a7d343f51931413dae7fe1.js:5:2129
l@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:2:6359
fireWith@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:2:7127
r@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:3:10013
n/<@https://sunrisepoint.org/assets/ember_jquery-a8dcbd325e04410f036f2a791d66d8316c48c5387acdd914de99a5dd6afb3cd3.js:3:15842

env

|hostname|ip-172-31-7-188-app|
|---|---|
|process_id|29471|
|application_version|e5affdf230d9d8f1c2a38ccd71b0746efcb0b9c3|
|HTTP_HOST|sunrisepoint.org|
|REQUEST_URI|/logs/report_js_error|
|REQUEST_METHOD|POST|
|HTTP_USER_AGENT|Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0|
|HTTP_ACCEPT|*/*|
|HTTP_REFERER|https://sunrisepoint.org/c/correspondence/bod|
|HTTP_X_FORWARDED_FOR|174.68.70.165|
|HTTP_X_REAL_IP|174.68.70.165|
|||
|params||
|message|TypeError: e.jqXHR.responseJSON.join is not a function Url: https://sunrisepoint.org/assets/applicati|
|url|https://sunrisepoint.org/assets/application-bf5a549b061e4b143b57dac790e40cadb0afc56f6200522938975785c|
|line|5|
|column|2880|
|window_location|https://sunrisepoint.org/c/correspondence/bod|
|stacktrace|z@https://sunrisepoint.org/assets/application-bf5a549b061e4b143b57dac790e40cadb0afc56f620052293897578|

I’m not sure what this means, why it happens, and what the root cause is. I tried reviewing the info, backtrace, and env tabs of the logs, but nothing really stands out to me as the problem.

There are a few others, but I wanted to keep the topic focused. Plus if I can learn how to debug this error, maybe that information will help me debug the rest.

Posts: 1

Participants: 1

Read full topic

Bring over permission level from WordPress MemberPress

0
0

@apautler wrote:

We are currently using MemberPress for our membership platform on WordPress. We are going to be launching a ‘free’ membership level on WordPress and would like the ability to have this membership correspond to 1-2 discussions in our Discourse forum (but have the rest of the forum content protected from free members).

Is there a way to bring over membership roles/permissions into Discourse using the SSO plugin?
@Simon_Cossar you helped us with a few things with the WP Discourse plugin in the past. If the above is not possible out of the box, is it something you’d be able to build on a contract basis? If so, maybe we can discuss the details offline.

Posts: 2

Participants: 2

Read full topic


I think I found a bug: Miniracer crashes with valid ES6 syntax

0
0

@sukima wrote:

This is quite frustrating and I’d love to understand how historically this has happened.

If I write the following valid ES6 code into discourse/services/foo.js.es6 and add it to the asset pipeline in Discourse it will fail to compile:

const FOO = 'foo';
export default Ember.Service.extend({
  [FOO]() {
    console.log('This should work');
  }
});

But alas I get:

Bundling assets
** Execute assets:precompile
rake aborted!
MiniRacer::RuntimeError: Error: Line 3: Unexpected token [
JavaScript at throwError (<anonymous>:2581:21)
JavaScript at throwUnexpected (<anonymous>:2643:9)
JavaScript at parseObjectProperty (<anonymous>:2914:17)
JavaScript at <anonymous>:5663:38
JavaScript at parseObjectInitialiser (<anonymous>:2943:24)
JavaScript at parsePrimaryExpression (<anonymous>:3082:20)
JavaScript at <anonymous>:5663:38
JavaScript at trackLeftHandSideExpressionAllowCall (<anonymous>:5565:61)
JavaScript at parsePostfixExpression (<anonymous>:3216:20)
JavaScript at <anonymous>:5663:38
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:168:in `eval_unsafe'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:168:in `block (2 levels) in eval'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:239:in `timeout'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:167:in `block in eval'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:64:in `block in with_lock'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:64:in `synchronize'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:64:in `with_lock'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.3.0/gems/mini_racer-0.1.9/lib/mini_racer.rb:165:in `eval'

I know this is valid syntax as babel and ember-cli handle this just fine. The ES2015 specs (§12.2.6) even discuss it.

I have also tried this syntax:

{
  [dynamicMethodName]: function() {}
}

And it too has the same error.

Posts: 1

Participants: 1

Read full topic

Welcome User Email not being sent

0
0

@joco wrote:

I have updated the WELCOME USER email template. However this is not being sent to the user as an email.

How can we get this email sent to the users?

Joe

Posts: 15

Participants: 4

Read full topic

Magic Group Functionality

0
0

@outofthebox wrote:

Hi,

I just attempted to invite a member to our community to give them access to a group. The system told me, no need to invite them, they already have an account. What I think would be magic is if the system said, “no need to invite them, they already have an account - and we’ve added them to the group(s) you had wanted to give them access to”.

Posts: 1

Participants: 1

Read full topic

Plugin page for discourse saml?

Specific site won't embed

Which file is responsible for sending notification emails?

0
0

@nixie wrote:

I’m trying to modify the FROM address of notification emails that are being sent when-
a- Someone sends us a PM
b- Someone replies to a thread which we’re subscribed to

To be more specific, let me explain this by taking Meta example.

The FROM address of the notification emails (that are sent in above 2 situations) looks like this
{Firstname} {LastName} <meta@discoursemail.com>

and on my site it looks like this

{Firstname} {LastName} <email@mysite.com>

What I’m trying to do is this:

I’m trying to make it look like this

{Firstname} {LastName} {var1} <email@mysite.com>

value of {var1} = entered through the admin settings

Now, let me get to my actual question

Anyone know which file is responsible for sending notification emails?

Posts: 1

Participants: 1

Read full topic

Add support for theme settings

0
0

@Osama wrote:

Continuing the discussion from Discourse Tab Bar for Mobile:

One feature that Discourse doesn’t currently offer is the ability for themes to have some sort of settings or variables that would work similar to how site/plugin settings work i.e. theme settings would be defined with default values by theme developers, and then site owners could override those default values and they’d still be able to get new updates for the theme without worrying about losing their configurations.

How should this work?

Obviously this is not complete specifications - this is just a rough idea on how I see this working. I’m keen to hear your ideas and thoughts :slight_smile:

a) For site owners

I think all we need to do here is add a simple button somewhere on the theme page. that navigates to a new route /admin/customize/themes/:theme_id/settings and the new route will display the settings which will look like this:

b) For theme developers

I think a new field next to CSS and HTML fields that lets theme developers type their theme settings in YAML (or JSON?) format should do the job. Mockup:

(Note “help” is the text that will be displayed below the setting that explains what the setting does)

c) Supported data types

I think we should have setting types that support these data types:

Integer
String
Boolean
Enum
List

d) Accessing theme settings in theme JS code

How will theme developers access theme settings in their JS code? I’m thinking something like Discourse.ThemeSettings.theme_setting_01 but this won’t help with naming collision (when two themes have a setting with the same name) which I’m wondering how should be handled? :thinking:

For now that’s all I have. Happy to hear how you see this working :slightly_smiling_face:

cc @sam

Posts: 2

Participants: 2

Read full topic


Accessibility: Focus management in topics

0
0

@riking wrote:


I think that fixing the J/K navigation focus management will fix the first linked topic, and is a prerequisite for solving the second topic.

@kevinrobinson

List of problems noticed before creating this:

  • Posts need to be focusable in order to properly direct the screen reader to the first post it should be reading. I think that setting tabindex=0 and custom :focus styling is the best way to do this.

  • Post controls have outline: 0 set, and no custom :focus styles. This removes all focus styling from the buttons. I suggest applying the .d-hover rules to the :focus state.

  • Activating the “show more” post action blurs focus; it should focus the first revealed button.

Posts: 4

Participants: 2

Read full topic

Vbulletin bulk importer can't find PG database

0
0

@pfaffman wrote:

Continuing the discussion from Importers for large forums:

I’m sure I’m doing something silly, but I’m trying to run the vbulletin bulk importer and for some reason it can’t find the postgres database.

/home/pfaffman/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/pg-0.20.0/lib/pg.rb:56:in `initialize': fe_sendauth: no password supplied (PG::ConnectionBad)

It looks like it should get it here:

I ran a standard importer and it didn’t have any trouble.

What am I missing?

Edit: I’m not the only one: Fe_sendauth: No password supplied in bulk importer

Posts: 1

Participants: 1

Read full topic

How to add a "Sign Up" button to my forum?

0
0

@naupe wrote:

So currently my HTTPS Discourse forum is email invite only. I have prepared public and private categories now, and would like to allow users to Sign Up to the forum without needing the Admin (me) to send them an email invite. Right now, it only has a “Log In” button (and no “Sign Up” button like on this site).

I would also like to know if I can set permissions on the forum to allow unregistered users to see certain Categories. As it is, to see any of the forum, you have to login to it: https://forum.epochgames.co.uk/

Posts: 6

Participants: 4

Read full topic

Discourse is preventing additional JavaScript event listeners from being added

0
0

@seanblue wrote:

There was a change to the Discourse JavaScript code around a month ago that seems to be preventing other JavaScript (from extensions or scripts) from adding event listeners. This bug only appears to happen when you are logged in.

Over on the WaniKani forums we have a lot of Japanese text. There is a particular Chrome extension that allows us to look up Japanese text by holding Shift and moving the mouse over the text. This creates a popover with the information. Normally, clicking outside of the popover closes it, but because of the recent JavaScript change, the event listener that closed the popover fails to be added to the window, so it doesn’t work.
Note: This Chrome extension was last updated on November 8, 2017, which is why I think the issue was caused by a change by Discourse and not the extension.

While this Chrome extension is the example I have on hand and is most important to me personally, theoretically blocking event listeners from being added could negatively impact any number of extensions or scripts being used by users.

Here is the original bug write-up from the WaniKani forums:

And here is a small JavaScript snippet to show how event listeners are not added on the Discourse forums when logged in (though this doesn’t always demonstrate the issue):
window.addEventListener('mousedown', () => { console.log('woo'); });

Running this on any other website (that I’ve seen) and clicking around shows the woo text in the console, but that text does not get printed on discourse forums when logged in.

Finally, here is some Japanese text if you happen to want to test using the Chrome extension posted above:
よろしくお願いします

Posts: 1

Participants: 1

Read full topic

Invite only/closed groups,

0
0

@dpeter wrote:

Hi All,

I’m considering the use of Discourse at my organisation and wanted to get advice about how users can create private groups/topics/chats.

My use case is, I want to have public open forums, but the ability for users to create a topic or chat and limit who can see and use this topic.

E.g

Automative forum (open)

  • Audi Australia group (invite only/closed group)

Any help would be appreciated!

Posts: 5

Participants: 4

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images