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

Two line breaks in a row not working

$
0
0

@Kyle_Bebak wrote:

I have a discourse instance running at https://foro.brigada.mx, and for some reason posts with two line breaks in a row –

like this –

are being rendered with only one line break. I don’t have the markdown linebreak setting enabled. I haven’t found anything in the docs about this. Here’s an image to show what I mean.

To be clear, this happens both in in the preview to the right of the post and the actual post. Does anyone have an idea why this might be happening?

Posts: 4

Participants: 2

Read full topic


Moving whispers generates "SPLIT THIS TOPIC x MINS AGO" message

$
0
0

@tobiaseigen wrote:

Maybe a minor bug and not sure if/how this can best be dealt with.

I just moved a handful of whispers to another topic, and it generated the “SPLIT THIS TOPIC x MINS AGO” message visible to the public. Oops. It seems to me the public should not see that this split took place because the replies were all whispers. But I can imagine it might be overkill/not worth the effort to write code to parse out which replies are whispers and which are not, and to generate separate messages.

Posts: 3

Participants: 2

Read full topic

How to create a notification (for testing)?

$
0
0

@Biscuit wrote:

Is there an easy / fast way to create a notification for yourself, while testing themes.

I tried:

PM to myself
Mention myself
Posting in a topic I’m watching.

But, they don’t create a notification.

So I’m waiting for a notification to appear :clock: :sleeping:

Maybe the API could be used, or a second account, but is there an easier way?

Posts: 3

Participants: 2

Read full topic

Discourse rebuild fails after upgrade to 2.0.0 beta7

$
0
0

@slackmoehrle wrote:

I upgraded and then did ./launcher rebuild app and it fails with

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 415 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 --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
1e4d6fd564f65df325ac6363be6202e0ede69a763f09adc80b83ea3f665a99db
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

If I scroll up, I see:

Bundle complete! 105 Gemfile dependencies, 179 gems now installed.
Gems in the group development were not installed.
Bundled gems are installed into `./vendor/bundle`

I, [2018-04-25T02:01:50.334697 #16]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Gem::ConflictError: Unable to activate sidekiq-scheduler-2.0.9, because redis-4.0.1 conflicts with redis (~> 3)
/var/www/discourse/lib/plugin_gem.rb:18:in `load'
/var/www/discourse/lib/plugin/instance.rb:493:in `gem'
/var/www/discourse/plugins/discourse-admin-statistics-digest/plugin.rb:11:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:438:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:438:in `activate!'
/var/www/discourse/lib/discourse.rb:151:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:148:in `each'
/var/www/discourse/lib/discourse.rb:148:in `activate_plugins!'
/var/www/discourse/config/application.rb:207:in `<class:Application>'
/var/www/discourse/config/application.rb:28:in `<module:Discourse>'
/var/www/discourse/config/application.rb:27:in `<top (required)>'
/var/www/discourse/Rakefile:5:in `require'
/var/www/discourse/Rakefile:5:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
I, [2018-04-25T02:02:01.848613 #16]  INFO -- : gem install rufus-scheduler -v 3.1.8 -i /var/www/discourse/plugins/discourse-admin-statistics-digest/gems/2.4.4 --no-document --ignore-dependencies
Successfully installed rufus-scheduler-3.1.8
1 gem installed
gem install sidekiq-scheduler -v 2.0.9 -i /var/www/discourse/plugins/discourse-admin-statistics-digest/gems/2.4.4 --no-document --ignore-dependencies
Successfully installed sidekiq-scheduler-2.0.9
1 gem installed

Posts: 6

Participants: 3

Read full topic

Questions about category custom fields

$
0
0

@Flower_Child wrote:

hello!

i’m working on creating a simple plugin that allows a category to be assigned a font awesome icon. The icon will display instead of an image if one is not set.

I’m not really interested in doing it with a theme-specific hack like :before CSS because I’d like it to be something settable in the category settings panel - indeed I’ve already got that part working. Here’s my code so far:

plugin.rb

# name: category-icons
# about: Allows fa-icons to be used as category graphics.
# version: 0.1
# authors: Flower_Child
# url: https://github.com/tipsypastels/category-icons

after_initialize do
  Category.register_custom_field_type('fa_icon', :string)

  add_to_serializer(:basic_category, :fa_icon) do
    object.custom_fields['fa_icon']
  end
end

assets/javascripts/discourse/connectors/category-custom-settings/fa-icon-settings.js.es6

export default {
  setupComponent(args, component) {
    const category = args.category;

    if (!category.custom_fields) {
      category.custom_fields = {};
    }

    if (typeof args.category.custom_fields['fa_icon'] !== 'string') {
      args.category.custom_fields['fa_icon'] = '';
    }
  }
}

assets/javascripts/discourse/connectors/category-custom-settings/fa-icon-settings.hbs

<section class="field">
  <label>
    {{i18n 'fa_icon_categories.fa_icon'}}
    {{input type="text" value=category.custom_fields.fa_icon}}
  </label>
</section>

Those are all the files I have so far - I’ve tried adding more based on things I’ve seen in other plugins but haven’t made any headway. This bit works in the sense of adding a custom field to the category settings, and the value I enter into it persists, but I can’t actually make it display on the categories list page. Using {{category.fa_icon}} or {{category.custom_fields.fa_icon}} in a theme-specific customization to categories-only.hbs or other templates is just blank.

Does it take more than this to be able to use custom fields in a template? I’m not sure what I’m missing. Is there any resource for how to use these in detail?

Posts: 1

Participants: 1

Read full topic

Any way to allow empty posts?

$
0
0

@JCFord wrote:

I’m converting from a forum where users are accustomed to being able to just type a subject/title. Discourse doesn’t seem to allow that out of the box and requires text in the post body.

Would be great if I could just specify a default body like “-no text-” or if it could just duplicate the Title as the body.

Any support for this? Or plugin?

Posts: 10

Participants: 3

Read full topic

How to limit Link Preview excerpt maxlength

Emojis selected on iOS displaying additional rectangles

$
0
0

@nibl wrote:

Certain emojis display a rectangle after the image. Does anyone know the cause for this?

I’ve attached two screenshots below. One shows the emojis when writing a new post, the second what happens after posting.

I’m running version 2.0.0 beta 6 of Discourse. The emoji set is Apple/International.

Test: happy little :partly_sunny::cloud:️ and happy little :evergreen_tree: :deciduous_tree:.

Hmm, it’s happening on here too. At least for me viewing on an iOS device.

Posts: 4

Participants: 2

Read full topic


iOS keeps logging users out when HTTPS site added via HTTP link

Withdraw own Poll votes?

$
0
0

@LKNickname wrote:

Is it possible to “delete” ones Poll-Votes?

For example:
User A creates a Poll in which he asks the community to rate something.
User B just gives a Rating in the Poll without knowing anything about the subject which is being rated (Sadly this happens far too often :sweat_smile:).
User A contacts User B on this and User B wants to remove his vote in the process to not interfere with the rating.

However: Right now it seems like I am not able to withdraw my own Vote from a rating-poll.

Posts: 1

Participants: 1

Read full topic

Just installed Discourse on AWS

$
0
0

@AbhishekVerma wrote:

Hello,

I just installed Discourse on AWS hosting from their marketplace. I want know, that where I will get my admin login credentials and guide to setup the forum.

Posts: 6

Participants: 4

Read full topic

Timeline mobile iOS broken?

Customize badge page CSS

Tag overlap with "similar topic" notice

Discobot stops responding

$
0
0

@itsbhanusharma wrote:

One of our forum user was trying to complete the new user tutorial but they replied to the first message that discobot sent them before bookmarking.
What is expected is that if they have bookmarked, discobot should send next message but it stopped responding until the tutorial was started again using the discobot start new user command.

Posts: 1

Participants: 1

Read full topic


Docker behind a proxy, and elkarte conversion

$
0
0

@tetricky wrote:

I have a couple of questions, which will hopefully point me in the right direction. I’m going around in circles in my head.

Firstly: I have a well powered vps, that I’m running a number of web-apps, behind an nginx proxy, providing letsencrypt certificates. I am using docker compose to spin up what I need, and running containers on a docker-network so that I can re-use them between multiple domains (eg shared databases). I set environment variables for the different domains (vhosts), and expose the ports for the nginx proxy to work for these domains within the docker compose file. I don’t entirely understand the installation for discourse - how can I join the discourse docker container to this network, and expose the ports to the proxy?

Secondly: For historical reasons I have an smf forum, which has become an elkarte forum. Elkarte is based on smf and I think the database schema is the same (if with some additions). Would the smf importer work with this database, or am I going to have to modify it based on the differences? I lack the skill set to do this quickly, so any advice would be appreciated.

Any guidance that points me in the right direction would be much appreciated.

Posts: 1

Participants: 1

Read full topic

Show name in topic post

$
0
0

@nothing wrote:

In Topic, only the username appears on my site. I want to show the name in front of the user name.

For example, like this one.

Ekran%20Al%C4%B1nt%C4%B1s%C4%B1

Posts: 5

Participants: 3

Read full topic

How does "@" before User Id?

Discourse rebuild fails after upgrade to 2.0.0 beta7 (Perl/PostgreSQL issues)

$
0
0

@terraboss wrote:

Hi guys,
I have similar issues related to this post from @Slack-Moehrle earlier this day. In my case, it looks like a Perl or PostgreSQL problem. I’ve also executed ./launcher rebuild app and got this console output:

I, [2018-04-25T18:56:30.788538 #13] INFO -- : Upgrading PostgreSQL from version 9.5 to 10

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.

I, [2018-04-25T18:56:30.788776 #13] INFO -- : &gt; rm /root/upgrade_postgres

I, [2018-04-25T18:56:30.790792 #13] INFO -- :

I, [2018-04-25T18:56:30.791043 #13] INFO -- : Replacing data_directory = '/var/lib/postgresql/10/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.791563 #13] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.792216 #13] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.792579 #13] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.792927 #13] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.793265 #13] INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.793550 #13] INFO -- : &gt; install -d -m 0755 -o postgres -g postgres /shared/postgres_backup

I, [2018-04-25T18:56:30.796055 #13] INFO -- :

I, [2018-04-25T18:56:30.796576 #13] INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.797300 #13] INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.797977 #13] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.798581 #13] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.799242 #13] INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/10/main/postgresql.conf

I, [2018-04-25T18:56:30.799853 #13] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/10/main/pg_hba.conf

I, [2018-04-25T18:56:30.800403 #13] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/10/main/pg_hba.conf

I, [2018-04-25T18:56:30.800984 #13] INFO -- : &gt; HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main

I, [2018-04-25T18:56:30.802680 #13] INFO -- : &gt; sleep 5

2018-04-25 18:56:30.816 UTC [57] FATAL: database files are incompatible with server

2018-04-25 18:56:30.816 UTC [57] DETAIL: The data directory was initialized by PostgreSQL version 9.5, which is not compatible with this version 10.3 (Ubuntu 10.3-1.pgdg16.04+1).

I, [2018-04-25T18:56:35.805526 #13] INFO -- :

I, [2018-04-25T18:56:35.805829 #13] INFO -- : &gt; su postgres -c 'createdb discourse' || true

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LANG = "en_EN.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

createdb: could not connect to database template1: 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"?

I, [2018-04-25T18:56:35.868574 #13] INFO -- :

I, [2018-04-25T18:56:35.868880 #13] INFO -- : &gt; su postgres -c 'psql discourse -c "create user discourse;"' || true

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LANG = "en_EN.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

psql: 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"?

I, [2018-04-25T18:56:35.943731 #13] INFO -- :

I, [2018-04-25T18:56:35.943998 #13] INFO -- : &gt; su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LANG = "en_EN.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

psql: 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"?

I, [2018-04-25T18:56:36.011776 #13] INFO -- :

I, [2018-04-25T18:56:36.012040 #13] INFO -- : &gt; su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LANG = "en_EN.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

psql: 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"?

I, [2018-04-25T18:56:36.083163 #13] INFO -- :

I, [2018-04-25T18:56:36.083581 #13] INFO -- : Terminating async processes

FAILED

--------------------

Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #&lt;Process::Status: pid 83 exit 2&gt;

Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'

exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"

d12ec123f163a504d9093c040df5a9fee19285634a7b4c7dcef18f049344f934

** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

The only workaround I’ve found, is to start the container manually by ./launcher start app and run the web-based upgrade routine with Docker Managermysite.tld/admin/upgrade.

Any clue how to solve this issue?

Posts: 1

Participants: 1

Read full topic

Automatic Night Mode Plugin

$
0
0

@BlackKnob wrote:

Some users have been asking about automatic switching between a light and a dark theme. Could this be accomplished with a plugin?

I assume this would need two parts:

  • a theme component with a javascript switching themes based on local time

  • a Discourse plugin adding options to the user preferences page:
    turn night mode switching on/off, choose nighttime theme, set time nighttime time period

How difficult would it be to code? As in, how much would it cost?

Posts: 2

Participants: 2

Read full topic

Viewing all 60613 articles
Browse latest View live


Latest Images