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

TL3/4 users unable to edit titles/tags/categories of other users’ topics

0
0

@ChrisBeach wrote:

It appears there has been a regression and TL3 and TL4 users are not able to edit topic titles/categories/tags on other users’ topics.

In case it’s relevant: On my forum, trusted_users_can_edit_others is set to false. This is because we didn’t want TL4 members to edit the content of others’ posts. However - we do want TL3/4 members to be able to continue to edit topic titles/categories/tags

Posts: 6

Participants: 3

Read full topic


Subsubcategories after import

0
0

@Judith wrote:

We have a phpbb forum with 3 levels and tens of thousands of users evenly spread all over Europe. The top level is for the type of discussion, e.g. announcements, policy discussion, events, local meetups or volunteering. Within local meetups, we originally only had drill-down by country, but some countries got so active that it was necessary to create subforums per region, e.g. Find Local Members > Germany > Bavaria

After importing, all the region forums have been placed on the same level as the countries. That is annoying. Even more annoying is that there doesn’t seem to be a way to fix it. Solutions in order of preference:

  1. Enable 3 levels (maybe through a plugin?). If it matters, the topics within regional forums do not have to be shown on the front page because they tend to be very local; also many of the topic titles in the regional forums are simply variations on “Hi” or “Let’s meet”. The regional forums also shouldn’t be shown on the categories page, just displaying two levels is enough and in fact preferred.

  2. Move all topics from the regional forums up into the national forums, and use tags to identify regions. This would have to be done automatically or semi-automatically because of the sheer number of posts involved. I am a Rails coder and could execute commands in the Rails console for Discourse if someone can tell me how to achieve this.

  3. Only if unavoidable: move all topics up into the national forums and don’t apply tags. The sad thing is that even this option and even with lots of manpower seems out of reach because I have yet to see a per-forum “move all topics” function like phpbb has.

Please advise!

Posts: 3

Participants: 3

Read full topic

Hide button: Join the group if the user is already in the group

Authentication using username and password

0
0

@brophy wrote:

Hello,

I’ve been looking through the API and cant seem to find a way to authenticate a user by providing the username and password.

Basically I want to users to be able to register, login and logout from ingame using CEF with my own form and I was going to call discourse with this information and if correct, then want discourse to return the user information as json.

Has anyone got this working yet? I’ve seen numberous topics about SSO from external apps, but I want to use discouse as the base.

Am I missing something?

Posts: 4

Participants: 3

Read full topic

Show Users Who Edit Wiki Post

0
0

@Ganzeer wrote:

I made a Wiki Topic, and would like it to be publicly revealed which users have edited the Wiki.

Right now, even after other users have edited the wiki-post, the post is still attributed to a single person: me.

Any way to change that?

Posts: 2

Participants: 2

Read full topic

Custom docker network configuration - container to container comms

0
0

@gaiterjones wrote:

I am installing Docker on a host where all applications are already containerised including the main smtp server.

When I try and relay mail from discourse to this smtp server it fails because the server cannot do a reverse lookup on the Discourse server IP. This works fine with my other containers because using docker compose I am allowing access to the mail server docker network using for example something like

services:
  php-apache:
     networks:
            - mail_server

networks:
    mail_server:
      external: true

How can I achieve this with Discourse so that Discourse service container and the mail server service container can communicate with each other directly?

Posts: 2

Participants: 2

Read full topic

Handling Bingbot

0
0

@j127 wrote:

I couldn’t comment on this post, so will reply here.

I think it might cause problems for websites to completely block Bing like that. Most people won’t see the announcement, and Bing has significant usage in the US and Japan (via Yahoo).

Here’s an alternate way to slow Bing down without risking sites’ search engine rankings:

Blocking a search engine with robots.txt can result in loss of rankings that can be difficult to recover from (personal experience).

It looks like this setting would be safe:

User-agent: msnbot 
Crawl-delay: 1

Posts: 12

Participants: 5

Read full topic

Uninstalled Discourse... error page still shows?

0
0

@Zarken wrote:

I’ve removed Discourse in order to try and fix some unrelated web pages however a discourse (i believe) related error page shows when trying to access my domain?

I should have uninstalled Discourse and Docker… and yet the page still shows?

What am i doing wrong? Debating re-installing my OS (Ubuntu 16.04) but would prefer to avoid doing so. Using nginx for my webserver.

Posts: 5

Participants: 4

Read full topic


Restoring a corrupt file does not roll back the database

0
0

@RGJ wrote:

I found another backup/restore issue.

When I try to restore a corrupt database dump, the restore (obviously) fails but it leaves the system in an unusable state, because there is no rollback attempted and all tables are left in the backup schema.

(EDIT this doesn’t only happen with corrupted files, it also happens when one tries to restore a dump that was made with a pg_dump that is newer than the current psql)

Repro:

First let’s create a corrupt dump file for test purposes:

discourse@test16:/var/www/discourse$ echo "-- Dumped by pg_dump version 9.5.12"  >> dump.sql
discourse@test16:/var/www/discourse$ echo "broken" >> dump.sql 
discourse@test16:/var/www/discourse$ gzip dump.sql 
discourse@test16:/var/www/discourse$ mv dump.sql.gz public/backups/db5634/discourse-2018-04-05-174724-v20180308071922.sql.gz

Then restore:

discourse@test16:/var/www/discourse$ RAILS_DB=db5634 RAILS_ENV=production script/discourse restore discourse-2018-04-05-174724-v20180308071922.sql.gz
Starting restore: discourse-2018-04-05-174724-v20180308071922.sql.gz
[STARTED]
'system' has started the restore!
Marking restore as running...
Making sure /var/www/discourse/tmp/restores/db5634/2018-04-05-175722 exists...
Copying archive to tmp directory...
tar: /var/www/discourse/tmp/restores/db5634/2018-04-05-175722/discourse-2018-04-05-174724-v20180308071922.sql: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
No metadata file to extract.
Validating metadata...
  Current version: 20180308071922
  Restored version: 20180308071922
Cannot restore into different schema, restoring in-place
Enabling readonly mode...
Pausing sidekiq...
Waiting for sidekiq to finish running jobs...
Restoring dump file... (can be quite long)
ERROR:  syntax error at or near "broken"
LINE 1: broken
^
EXCEPTION: psql failed
/var/www/discourse/lib/backup_restore/restorer.rb:326:in `restore_dump'
/var/www/discourse/lib/backup_restore/restorer.rb:67:in `run'
script/discourse:111:in `restore'
/home/discourse/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/home/discourse/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/home/discourse/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/home/discourse/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
script/discourse:273:in `<main>'
Trying to rollback...
There was no need to rollback
[FAILED]
Restore done.

Note the line near the end stating ‘there was no need to rollback’ . Well, there is, since all the tables have been moved to the backup scheme.

The culprit is here

The problem is that @db_was_changed is never set, because it is set by switch_schema! and that is never called when can_restore_into_different_schema? is false.

I think the fix is pretty simple : @db_was_changed = true should be inserted below this line ?

EDIT: yes that fixes it.

Posts: 3

Participants: 3

Read full topic

Pass token from localStorage

0
0

@Nopsled wrote:

Hello,

Is there an easy way to pass a token from localStorage in the SSO request? I’m using token based authentication and I need to validate the user with the locally stored token.

If there’s not already a plugin, can you point me to where in the code I can modify the request to the SSO server to add that into the body (not a Ruby expert so would need some guidance there).

Thank you!

Posts: 1

Participants: 1

Read full topic

Creating a staged user with an API call

0
0

@dmccann wrote:

We currently have a workflow where users submit data by sending an email to a custom incoming email address, creating a staged user and a private message to a Discourse group.

Is it possible to achieve the same workflow using API calls? Basically 1) create staged user, 2) generate API key for that user, then 3) post on that users behalf? I see how to post group messages for existing users using the API docs, but don’t know if steps 1) and 2) are possible currently.

Posts: 2

Participants: 2

Read full topic

Some users can't login in mobile web application

0
0

@Pad_Pors wrote:

some of our users can’t login in mobile web application, after they enter their user name and password, no error message is shown to them after they try to login. and the site reloads normally, but then the not-logged in screen shows again.

I got this error in the admin log:

 ActionController::ParameterMissing (param is missing or the value is empty: login) /var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:43 

/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:437:in `require'
/var/www/discourse/app/controllers/session_controller.rb:199:in `create'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:131:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiling_methods.rb:78:in `block in profile_method'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-protection-2.0.1/lib/rack/protection/frame_options.rb:31:in `call'
/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:24:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/conditional_get.rb:38:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/head.rb:12:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:149:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb:232:in `context'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb:226:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/logster-1.2.9/lib/logster/middleware/reporter.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:16:in `call'
/var/www/discourse/config/initializers/100-silence_logger.rb:29:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/method_override.rb:22:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/sendfile.rb:111:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiler.rb:174:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.2/lib/message_bus/rack/middleware.rb:63:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:176:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/urlmap.rb:68:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/urlmap.rb:53:in `each'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/urlmap.rb:53:in `call'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:606:in `process_client'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:701:in `worker_loop'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:549:in `spawn_missing_workers'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:142:in `start'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
/var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'

I would be thankful if anyone can help me understand what is wrong with our forum, so that our users can login normally.

this has been reported by two of our users, and I can’t reproduce it.

Posts: 1

Participants: 1

Read full topic

What is inserting "\U+FFEF\U+FFB8" in the PrettyText.markdown call?

0
0

@ballistic wrote:

PrettyText.markdown("❤️❤️❤️", {}) 

Will not generate the same code as:

PrettyText.markdown(":heart::heart::heart:", {})

It generates:

<p><img src=\"/images/emoji/apple/heart.png?v=5\" title=\":heart:\" class=\"emoji\" alt=\":heart:\">\U+FFEF\U+FFB8:heart:\U+FFEF\U+FFB8:heart:\U+FFEF\U+FFB8</p>

I think it has something to do with

replacement = "\u200b" + replacement;

In lib/pretty_text/shims.js

( on 1.9.4 )

Posts: 5

Participants: 4

Read full topic

Translation problem, using AAAA instead of YYYY

0
0

@vwss1984 wrote:

Hi, I’m observing an annoying problem in some Brazilian Portuguese-speaking discourse forums for quite some time. See the following:

I.E. Instead of the year, it contains “AMAMAMAM” or “PMPMPMPM”. This happens due to a bad date format string. Going in the source, I located it at line 11 of discourse/server.pt_BR.yml at master · discourse/discourse · GitHub.

It should be YYYY instead of AAAA. I already submitted a fix to transifex. How/when are those fixes published?

Posts: 2

Participants: 2

Read full topic

Discourse Layout Format

0
0

@gina_riley wrote:

I hope I’m posting this in the right category.

Has anyone given a thought to perhaps moving the picture of the OP and the Category in front of the Topic?

When I’m filtering for “Latest,” I like to see who the first poster or the creator of the topic! This will helps me to determine if I want to enter the topic (or even read the topic).

Posts: 3

Participants: 2

Read full topic


How to capture registration source

0
0

@Katie_Burton wrote:

Hi there - I have a sales and marketing team driving registration to our community. Members are arriving at our “signup” lightbox from a number of personalized URLs. Therefore I have a two part question:

  • Can discourse signup page capture registration data as a hidden fields?
  • Can I add the registration data to the users profile? This would be hidden from user and only visible to admins.

How it works:

  • An ad appears from my community online
  • The destination URL includes UTM parameters for tracking: mycommunity.com/signup/
    ?utm_source=Google&utm_medium=cpc&utm_campaign=may_launch&utm_term=network%20automation

I want the UTM data to pass to the user record:

  • Full name: Johny Appleseed
  • Email: jappleseed@apple.com
  • Registration source: Google
  • Registration source type: CPC
  • Ad campaign name: May Launch
  • Paid keyword: Network Automation

Discourse supports Google Tag Manager, and I’ve read that you can pass along UTM parameters to Google Tag Manager. but I’m not confident this will pass all the UTM data to the discourse user profile.

Has anyone done this or know of a simpler way? Capturing this data on the front end of user registration is important for me to measure the community’s contribution to our business.

Thanks!

Posts: 1

Participants: 1

Read full topic

Change user's email address via API without confirmation

0
0

@paully21 wrote:

Is there a way to change a user’s email address using the API without triggering a confirmation email?

Our users are actually members of our association and when they submit an email address change directly to staff, the staff member changes the contact’s record in our ERP system. Then the staff member needs to log into our Discourse implementation as the user and submit an email address change.

Staff members are complaining that the confirmation email is confusing, not seen or disregarded by the user and therefore the email address change never completes.

I’m trying to kill two birds here:

  1. I would like to make it so the change email address change can be made right from the ERP system.
  2. I want to eliminate the incomplete email address change submissions (because of no confirming email action was taken).

We don’t want to use SSO overrides email, because we have a handful of users that want a different Discourse notification than the main notifications from the association.

Posts: 3

Participants: 3

Read full topic

Notify admin on rejected email

0
0

@SquareTheBase wrote:

Is there a way to notify an admin, staff, or a designated person on rejected emails? Currently, I need to continuously monitor the email views within the admin panel.

Posts: 2

Participants: 2

Read full topic

SSO Overwrites Admin User

0
0

@Nopsled wrote:

Hey All,

Got SSO setup and running. It works great when using my first user account (admin user) on the site. It logs in as that user as expected. However, when I try logging in (through SSO) as another user (different ID, Username, Email), it overwrites (or deletes) the previous user with the new one.

Same thing happens if I log out of that user and log in with the previous one. Still only one user account on Discourse.

Any clue what could be going on there?

Posts: 4

Participants: 2

Read full topic

Average character count stats for user

0
0

@daydreamer wrote:

I think this is in the correct discussion area for new ideas on how to improve users stat page,

would it be possible to incorporate an average character count or word count for each user which would show in the user stats page?

I believe it will create a better picture of how each user posts, a lot more time and effort is put into posts with an average size of around 5-10 lines variable,

Posts: 2

Participants: 2

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images