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

No "Members Online Now" block but how about a Green Dot?

$
0
0

@holden wrote:

I'm so glad Discourse doesn't have the option to show a "members online" block - I've always thought they're terribly ugly and cheesy and I've wondered if anyone ever users them.

But how about adding a little indicator next to a person's avatar, card and profile page that displays if they're online?

Posts: 15

Participants: 7

Read full topic


All right, I'm stupid - pups syntax?

$
0
0

@Lee_Ars wrote:

I give up. I am a simple journalist. Regexes have defeated me.

Goal: Add a location to Discourse's nginx.conf file such that when the container is rebuilt, the location gets added.

    location ~ ^/uploads/default/customizations/ {
        try_files $uri =404;
        proxy_set_header Host $http_host;
        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 $thescheme;
        proxy_set_header X-Sendfile-Type X-Accel-Redirect;
        proxy_set_header X-Accel-Mapping $public/=/downloads/;
        expires 1y;
        add_header Cache-Control public;
    }

How to do this: edit my app.yml file and use @sam's pups bootstrapper to stuff it in there.

Problem: Since I can't specify an arbitrary line number to insert at, I have to instead use the pups replace function. I need to add this new location below an existing location in discourse.conf that already contains a regex (location ~ /_?emoji.*\.(png|gif|jpg|jpeg)$/). Since pups uses regex matching to find its replace string in the first place...this is blowing up like a nuclear bomb and I totally do not understand how the hell to proceed.

I hate to be the dumbass who begs for someone else to write his code...but please someone help me. I have been chewing on this for a few days on and off and I just can't wrap my brain around how to proceed. I tried scanning through the other templates in the template directory and I couldn't find anywhere in any of them with representative syntax for me top copy.

Sorry :frowning:

Posts: 14

Participants: 3

Read full topic

Email notifications with incorrect senders

$
0
0

@Blaisorblade wrote:

Email notifications from my Discourse 1.4.3 forum have an incorrect sender:

From: Some Username <forum-email>
Reply-To: Some Username <forum-email>

This is confusing, so many users try to either reply to emails, or even write new emails to Some Username <forum-email>. I'd find this acceptable for sites with reply by email enabled — but since we can't set that up, that's a problem.

I suspect such invalid email addresses enter their address books (though I'm not sure) — among other things, this seems a regression from what @codinghorror described earlier:

Gmail remembers email addresses of topic threads, offers as autocomplete:

To finish up the story: forum-email used to be mine, so I got user answers. I had to create a valid replacement email, so I ended up to create a noreply@ account and setting up an autoresponder with procmail.

Before any of you suggest enabling "reply by email": I've had to reject that already, that's not supported by our email service and admins won't add support just for me. And using a third-party email provider is not an option — better don't ask why.

Posts: 1

Participants: 1

Read full topic

SQL Querying in Badges

$
0
0

@ivanrlio wrote:

Hi guys,

So I'm extremely new to Discourse and I think I've just successfully written my first badge that assigns a badge to a user if they have received 5-9 likes. It is as follows:

SELECT user_id, users.username username, likes_received, current_timestamp granted_at
FROM user_stats JOIN users ON (user_stats.user_id = users.id)
WHERE likes_received BETWEEN 5 AND 9
AND (:backfill OR users.id IN (:user_ids) )

When I click 'preview granted badges', it shows the 8 users that have fulfilled this requirement. Does this mean that when the update occurs, this badge will be assigned automatically?

Thanks!

Posts: 2

Participants: 2

Read full topic

Why don't more people use the user_stats table?

$
0
0

@stevenpslade wrote:

I've been making badge queries and also looking at a lot of queries posted on What cool badge queries have you come up with? and it seems as though the user_stats table rarely gets used in favour of more complicated queries.

user_stats has the following columns:
user_id
topics_entered
time_read
days_visited
posts_read_count
likes_given
likes_received
topic_reply_count
new_since timestamp
read_faq timestamp
first_post_created_at
post_count
topic_count

Is there a downfall to using this table for things like giving a badge after X amount of likes given, etc? Is it too good to be true? Or is it a completely viable table to be querying for the obvious badges it could support?

Posts: 4

Participants: 2

Read full topic

disableReplaceState undefined?

$
0
0

@kcoop wrote:

I upgraded Discourse today, and after doing so, some of my users have complained that signing in is giving them a blank page. Investigating further, I'm seeing an exception on the console

Uncaught TypeError: Cannot set property 'disableReplaceState' of undefined

FWIW, it's happening at application-c138bcb70c1b2d5c6e26cf370fdcf67d.js:58

Any ideas on how to proceed?

Posts: 7

Participants: 3

Read full topic

Replygif plugin and ssl/tls

$
0
0

@Lee_Ars wrote:

Continuing the discussion from All right, I'm stupid - pups syntax?:

Yeah, just tried to run it, and it definitely no worky.

I don't see a good way forward, either, unless replygif.net decides to support SSL/TLS.

Posts: 3

Participants: 2

Read full topic

Losing connection with Redis

$
0
0

@matt_mcneil wrote:

After a week or more of running smoothly with the latest stable Discourse (v1.4.3) on a standard web/data Docker setup, I've had two mysterious Discourse web app crashes in the last 18 hours. Rebooting the DO server solved the issue each time, but it seems like it's recurring every 9 hours or so.
From what I can tell, it's due to Redis becoming unresponsive, though there's nothing I can tell from the Redis logs.
When I tried to hit the Discourse Rails app in a browser, I received a server error page. When I ssh'd into the Digital Ocean server, here's what I saw in top:

 1338 1000      20   0  482036 239464   9980 R  83.7 11.7   1:48.19 ruby
 1111 root      20   0  143812  11268   2904 S  12.3  0.5   2:11.47 docker
 1283 landsca+  20   0   42748   7996   1244 S   4.6  0.4   1:50.01 redis-server

Here's a snippet from the syslog around that time and Redis seems to be normal, then disappears:

Dec  4 23:00:47 discourse-data redis[1020]: RDB: 2 MB of memory used by copy-on-write
Dec  4 23:00:47 discourse-data redis[24]: Background saving terminated with success
Dec  4 23:02:24 discourse-data redis[24]: DB saved on disk
Dec  4 23:02:26 discourse-data redis[24]: DB saved on disk
Dec  4 23:07:27 discourse-data redis[24]: 10 changes in 300 seconds. Saving...
Dec  4 23:07:27 discourse-data redis[24]: Background saving started by pid 1030
Dec  4 23:07:27 discourse-data redis[1030]: DB saved on disk
Dec  4 23:07:27 discourse-data redis[1030]: RDB: 2 MB of memory used by copy-on-write
Dec  4 23:07:27 discourse-data redis[24]: Background saving terminated with success

Here's what it looks like from the Unicorn logs:
E, [2015-12-04T23:19:08.559532 #44] ERROR -- : master loop error: NOAUTH Authentication required. (Redis::CommandError)
E, [2015-12-04T23:19:08.559794 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:113:in `call'
E, [2015-12-04T23:19:08.559854 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/instrumentation/redis.rb:42:in `block in call'
E, [2015-12-04T23:19:08.559901 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/datastores.rb:111:in `block in wrap'
E, [2015-12-04T23:19:08.559957 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/method_tracer.rb:73:in `block in trace_execution_scoped'
E, [2015-12-04T23:19:08.560004 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped'
E, [2015-12-04T23:19:08.560048 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/method_tracer.rb:71:in `trace_execution_scoped'
E, [2015-12-04T23:19:08.560092 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/datastores.rb:108:in `wrap'
E, [2015-12-04T23:19:08.560136 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/instrumentation/redis.rb:41:in `call'
E, [2015-12-04T23:19:08.560189 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:789:in `block in get'
E, [2015-12-04T23:19:08.560236 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:37:in `block in synchronize'
E, [2015-12-04T23:19:08.560280 #44] ERROR -- : /usr/local/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
E, [2015-12-04T23:19:08.560324 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:37:in `synchronize'
E, [2015-12-04T23:19:08.560367 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:788:in `get'
E, [2015-12-04T23:19:08.560450 #44] ERROR -- : /var/www/discourse/lib/discourse_redis.rb:59:in `block (3 levels) in <class:DiscourseRedis>'
E, [2015-12-04T23:19:08.560499 #44] ERROR -- : /var/www/discourse/lib/discourse_redis.rb:27:in `ignore_readonly'
E, [2015-12-04T23:19:08.560542 #44] ERROR -- : /var/www/discourse/lib/discourse_redis.rb:59:in `block (2 levels) in <class:DiscourseRedis>'
E, [2015-12-04T23:19:08.560643 #44] ERROR -- : /var/www/discourse/app/jobs/regular/run_heartbeat.rb:13:in `last_heartbeat'
E, [2015-12-04T23:19:08.560695 #44] ERROR -- : config/unicorn.conf.rb:119:in `check_sidekiq_heartbeat'
E, [2015-12-04T23:19:08.560811 #44] ERROR -- : config/unicorn.conf.rb:146:in `master_sleep'
E, [2015-12-04T23:19:08.560915 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:295:in `join'
E, [2015-12-04T23:19:08.560965 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
E, [2015-12-04T23:19:08.561010 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
E, [2015-12-04T23:19:08.561123 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'
E, [2015-12-04T23:19:08.561816 #44] ERROR -- : master loop error: NOAUTH Authentication required. (Redis::CommandError)
E, [2015-12-04T23:19:08.561887 #44] ERROR -- : /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:113:in `call'
E, [2015-12-04T23:19:08.561936 #44] ERROR -- : /var/www/discourse/plugins/new_relic-discourse/gems/2.0.0/gems/newrelic_rpm-3.13.1.300/lib/new_relic/agent/instrumentation/redis.rb:42:in `block in call'

Any ideas on how to troubleshoot? Thanks!!

Posts: 1

Participants: 1

Read full topic


Log of post approval from the moderation queue

$
0
0

@dandv wrote:

Is there a way to figure out which admin approved a message in the moderator queue?

Deletions are logged, but I couldn't find approval logs in Admin -> Logs -> Staff Actions.

I'd like to know so that I can educate the admin towards more critical screening (a malware link slipped through disguised as useful software).

Posts: 1

Participants: 1

Read full topic

Extra Admin logs generated on category edit

$
0
0

@jomaxro wrote:

Recently I was adding category logos to a Discourse instance, and after completing the edits went in to review the logs. While reviewing I noticed that extraneous logs were being generated despite not modifying the settings in question. The only change I made was the category logo, so I am unsure why permission, background url, and topic template appear as well. Repro steps are as follows:

  1. Go to category page ($site_url/c/category_name)
  2. Click edit
  3. Click images tab
  4. Click image button for Category Logo Image
  5. Browse to and select png or jpg image
  6. Wait for upload
  7. Click Save Category
  8. Check logs

Posts: 4

Participants: 3

Read full topic

Support for ARM servers

$
0
0

@SentinelX101 wrote:

Continuing on from the discussion on ARM support at GitHub.

ARM support would be extremely useful for owners of small communities like myself because of the extremely low price (like the Scaleway 2GB ARM servers for €2.99) and for those who can't afford the move from cheap shared hosting to the dedicated or KVM machines that Discourse requires.

There has also been some discussion of this on the Scaleway forums, although much of this has been around getting Discourse working without using the Docker method.

Posts: 1

Participants: 1

Read full topic

How does discourse start TLS when connecting MTU? EHLO or HELO?

$
0
0

@doudou wrote:

The MTU with TLS enabled is exim4 which I am using.

Auth method is plain user name and password with TLS enabled.

My app.yml setup is

DISCOURSE_SMTP_ADDRESS: mail.xx.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: bm9yZXBseMuY29t
DISCOURSE_SMTP_PASSWORD: amFu
DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_SMTP_AUTHENTICATION: "login"

When test logging and sending email from localhost, remote address or inside docker container using openssl command, the mail could be sent successfully.

But when I login into admin panel and try to send test mail or invite mail to my friends, the mail logs shows

503 AUTH command used when not advertised

As we know,

exim4 defines

EHLO (not HELO) must be given by client before AUTH

When using HELO,

the mail server shows

503 AUTH command used when not advertised ,

So if discourse use HELO by default to connect mail server,

if this is could not be change,

the email could not get authorization and be sent successfully by exim4 wiht TLS.

Is this one of the reasons we could not configure email settings successfully?

Or if you can add EHLO option to connecting mail server?

@sam @codinghorror @eviltrout

Posts: 1

Participants: 1

Read full topic

Is there a way to tell what mechanism was used to login?

$
0
0

@pfaffman wrote:

I got an email from a user who is having trouble resetting her password.

I've tried to reset my password to Literate Computing several time in the past three days. I have not received an email from the site with the reset link.

She attached a screenshot showing the "we found an account . . . you should receive an email" message. But she claims not to have received a message.

My guess was that she logged in using Google authentication and does not have a local password, but it would seem that if that were the case, she'd not have gotten that message, right?

On a related note, is there any way to tell whether a user account authorization is in the local database or done through Google (or twitter) auth?

Posts: 6

Participants: 3

Read full topic

Host disk filling up with thin-1.log and production.log w redis errors

$
0
0

@watchmanmonitor wrote:

I have recently updated the SSL certificate on a discourse (using a fully up to date, stock docker setup on ubuntu)

at this point, two files are filling up the drive:

/var/www/discourse/log/production.log - 4.47 gb
/var/www/discourse/log/thin-1.log - 6.58gb

samples of the thin log are here

Posts: 3

Participants: 2

Read full topic

YouTube embeds are broken

$
0
0

@terraboss wrote:

Since the latest update (v1.5.0.beta6 +94, test-passed repo), YouTube embeds seems to be broken.

The preview at the composer frame is working. Any published video embeddings are hidden and unlinked.

Ideas?

Posts: 10

Participants: 4

Read full topic


RSS Import to post and dark theme?

$
0
0

@tkiblin wrote:

Does discourse support the ability to take RSS feeds and turn them into posts?

Also, how does one select the dark theme for discourse?

Thanks!

Posts: 2

Participants: 2

Read full topic

Use id to add categories to top_menu, rather than name

$
0
0

@LeoMcA wrote:

We have multiple Announcements categories on our instance, and adding category/announcements to the top_menu setting doesn't link to the one we want.

A solution to this would be to use the category id, like in permalinks.

Posts: 1

Participants: 1

Read full topic

Checklist Plugin - Interactive Checkboxes made Simple

$
0
0

@cpradio wrote:

I'm happy to announce that I've ported the checklist plugin created by @lightyear to run on the latest version of Discourse.

You can find the new repo at https://github.com/cpradio/discourse-plugin-checklist

With this release comes a few enhancements.

  • You can disable the plugin in its entirety from the Admin > Settings area (strike through still gets processed, but the checkboxes won't render and won't be clickable)
  • You can keep checking/unchecking boxes on the same post without having to refresh the page.

Any issues should be reported either here or via a GitHub issue. I also welcome translation file PRs, or general enhancement PRs.

Posts: 1

Participants: 1

Read full topic

Can't override user-menu.hbs template?

$
0
0

@Joey_Tuan wrote:

I'm trying to override the Profile link on user-menu.hbs with a script (to redirect to an external profile per the strategy here: https://meta.discourse.org/t/heres-how-to-change-the-discourse-profile-to-your-own-websites-profile-pages/35012) but my overrides don't seem to be working. Any tips?

<script type='text/x-handlebars' data-template-name='components/user-menu.hbs'>
{{#menu-panel visible=visible}}
  <div class='menu-links-header'>
    <ul class='menu-links-row'>
      <li>{{d-link route='user' model=currentUser class="user-activity-link" icon="user" label="user.profile"}}</li>

      {{#if showDisableAnon}}
      <li>{{d-link action="toggleAnon" label="switch_from_anon"}}</li>
      {{/if}}
      <li class='glyphs'>
        {{d-link path=bookmarksPath title="user.bookmarks" icon="bookmark"}}
        {{#if siteSettings.enable_private_messages}}
          {{d-link path=messagesPath title="user.private_messages" icon="envelope"}}
        {{/if}}
        {{#if showEnableAnon}}
          {{d-link action="toggleAnon" title="switch_to_anon" icon="user-secret"}}
        {{/if}}
        {{d-link path=preferencesPath title="user.preferences" icon="gear"}}
      </li>
    </ul>
  </div>

Posts: 1

Participants: 1

Read full topic

Slovak translation - after switching to sk locale Discourse home page is not loaded

$
0
0

@Stanislav_Valasek wrote:

I want to test Slovak translation before sending a pull request.
I followed the post How to add a new language. I triggered ./launcher restart app and was able to see sk as an option.

BUT when I select and confirm this option, I am getting a blank page.
I checked the browser console logs and the problem starts here:
GET http://ec2-52-29-11-102.eu-central-1.compute.amazonaws.com/javascripts/locales/sk.js 404 (Not Found)
Now I need a little help how to continue. In that folder is placed this file sk.js.erb.

Content of sk.js.erb is following

//= depend_on 'client.sk.yml'
//= require locales/i18n
<%= JsLocaleHelper.output_locale(:sk) %>

I18n.pluralizationRules['sk'] = function (n) {
  if (n == 0) return ["zero", "none", "other"];
  if (n == 1) return "one";
  if (n >= 2 && n <= 4) return "few";
  return "other";
};

Output from git status command:

root@ip-172-31-31-151-app:/var/www/discourse# git status
On branch tests-passed
Your branch is up-to-date with 'origin/tests-passed'.
Untracked files:
(use "git add <file>..." to include in what will be committed)

config/locales/client.sk.yml
config/locales/server.sk.yml
plugins/poll/config/locales/client.sk.yml
plugins/poll/config/locales/server.sk.yml
public/403.sk.html
public/422.sk.html
public/500.sk.html
public/503.sk.html
vendor/gems/discourse_imgur/lib/discourse_imgur/locale/server.sk.yml

Here is a full output from the browser console.
browser-console log.txt (1.5 KB)

Thank you for any hints

Posts: 1

Participants: 1

Read full topic

Viewing all 60739 articles
Browse latest View live




Latest Images