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

Censor Pattern Unless Admin

$
0
0

@dardub wrote:

Hi,

I’ve added a censor regex for email and phone numbers, but it censors postings by admins as well. If we’d like to direct people to a support address, we can’t do it. Is there any way to turn this off for admins? I could not find settings for this.

Thanks!

Posts: 3

Participants: 2

Read full topic


Login required to see topic info

$
0
0

@tetra wrote:

Is there a way to make the topic list visible of a given category, but remove the ability to see the content of the topic without logging in?

Posts: 9

Participants: 6

Read full topic

One server and 2x discourse forum?

$
0
0

@Tumi wrote:

Hello. I was bouth vps server. I want to install two websites using discourse. I dont want to create it with multiple installation.

Should i install first forum like in tutorial , then as same way second forum ? Then i will got 2 docker containers or it is not so simple ?

Posts: 3

Participants: 3

Read full topic

How to create pretty category view featuring subcategories with icons, headings, top 3 topics?

Is there an event that fires when topic-lists are reloaded?

$
0
0

@lll wrote:

Excuse the butchered terminology :sunflower:


I’m trying to use masonry in combination with the topic list previews plugin to create a grid topic list like so:

When new items are added to a masonry grid or the topic-list in this case the current items need to be “reshuffled” and resized in some sense so that everything fits.

Masonry handles that with a native function or .layout() which recalculates the grid and arranges the items when called.

In order to make masonry aware of new items or topics being added to the topic list, I would like to trigger .layout() when this is clicked:

So here’s the question.

Is there a native Discourse event that fires when the the link to reload the topic list is clicked that I can bind masonry to?

Posts: 4

Participants: 3

Read full topic

Is there a way to remove nofollow from onebox

How to redirect /categories to /latest

$
0
0

@nixie wrote:

I would like to redirect /categories to /latest

I’m guessing I should be making some changes to the app.yml file

Posts: 1

Participants: 1

Read full topic

Adding dotenv-rails to load ENV in rake tasks

$
0
0

@dorian wrote:

From: Add dotenv-rails gem to have .env loaded in rake tasks by Dorian · Pull Request #5480 · discourse/discourse · GitHub

Otherwise I couldn’t get the GlobalSetting.developer_emails to have the value from .env loaded when doing a rake admin:create.

If there is some sort of require 'foreman/dotenv' that exists, I think it could be placed in Rakefile to have the same result.


Basically the ENV doesn’t contain the variables and values from .env when running rake tasks, I noticed that because rake admin:create gave me a different password length requirement when creating an admin (e.g. 10 vs 15 characters).

I’m pretty sure there are other bugs related to having .env not loaded in rake tasks.

Posts: 3

Participants: 3

Read full topic


Cannot execute the rake uploads:migrate_from_s3

$
0
0

@Apecengo wrote:

I’m going to have to stop using S3 for file uploads, and today I tried the rake uploads:migrate_from_s3, but it failed:

$ rake uploads:migrate_from_s3
rake aborted!
NoMethodError: undefined method `Uploads' for #<Class:0x000056276a4f14f0>
Did you mean?  Upload
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/var/www/discourse/lib/tasks/uploads.rake:117:in `migrate_from_s3'
/var/www/discourse/lib/tasks/uploads.rake:110:in `block in migrate_all_from_s3'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rails_multisite-1.1.2/lib/rails_multisite/connection_management.rb:132:in `block in each_connection'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rails_multisite-1.1.2/lib/rails_multisite/connection_management.rb:130:in `each'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rails_multisite-1.1.2/lib/rails_multisite/connection_management.rb:130:in `each_connection'
/var/www/discourse/lib/tasks/uploads.rake:110:in `migrate_all_from_s3'
/var/www/discourse/lib/tasks/uploads.rake:89:in `block in <top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => uploads:migrate_from_s3
(See full trace by running task with --trace)

I previously entered the container with the ./launcher enter app command, and listed the available tasks, and the migrate_from_s3 is nowhere to be found:

Full output (long)
rake about                                                             # List versions of all Rails frameworks and the environment
rake add_topic_to_quotes                                               # Add the topic to quotes
rake admin:create                                                      # Creates a forum administrator
rake admin:invite[email]                                               # invite an admin to this discourse instance
rake api_key:get                                                       # generate api key if missing, return existing if already there
rake app:template                                                      # Applies the template supplied by LOCATION=(/path/to/template) or URL
rake app:update                                                        # Update configs and some other initially generated files (or use just update:configs or update:bin)
rake assets:clean[keep]                                                # Remove old compiled assets
rake assets:clobber                                                    # Remove compiled assets
rake assets:environment                                                # Load asset compile environment
rake assets:precompile                                                 # Compile all the assets named in config.assets.precompile
rake assets:prestage                                                   # pre-stage assets on cdn
rake autospec                                                          # Run all specs automatically as needed
rake avatars:clean                                                     # Clean up all avatar thumbnails (use this when the thumbnail algorithm changes)
rake avatars:refresh                                                   # Refresh all avatars (download missing gravatars, refresh system)
rake build:stamp                                                       # stamp the current build with the git hash placed in version.rb
rake build_test_topic                                                  # create pushstate/replacestate test topic
rake cache_digests:dependencies                                        # Lookup first-level dependencies for TEMPLATE (like messages/show or comments/_comment.html)
rake cache_digests:nested_dependencies                                 # Lookup nested dependencies for TEMPLATE (like messages/show or comments/_comment.html)
rake db:create[multisite]                                              # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:all to create all dat...
rake db:drop[multisite]                                                # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases...
rake db:environment:set[multisite]                                     # Set the environment value for the database
rake db:fixtures:load                                                  # Loads fixtures into the current environment's database
rake db:migrate[multisite]                                             # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
rake db:migrate:status                                                 # Display status of migrations
rake db:rebuild_indexes                                                # Rebuild indexes
rake db:rollback                                                       # Rolls the schema back to the previous version (specify steps w/ STEP=n)
rake db:schema:cache:clear                                             # Clears a db/schema_cache.yml file
rake db:schema:cache:dump                                              # Creates a db/schema_cache.yml file
rake db:schema:dump                                                    # Creates a db/schema.rb file that is portable against any DB supported by Active Record
rake db:schema:load                                                    # Loads a schema.rb file into the database
rake db:seed                                                           # Loads the seed data from db/seeds.rb
rake db:seed_fu                                                        # Loads seed data for the current environment
rake db:setup                                                          # Creates the database, loads the schema, and initializes with the seed data (use db:reset to also drop the database first)
rake db:stats                                                          # Statistics about database
rake db:structure:load                                                 # Recreates the databases from the structure.sql file
rake db:version                                                        # Retrieves the current schema version number
rake dev:cache                                                         # Toggle development mode caching on/off
rake docker:test                                                       # Run all tests (JS and code in a standalone environment)
rake emails:import                                                     # use this task to import a mailbox into Disourse
rake emoji:test                                                        # test the emoji generation script
rake emoji:update                                                      # update emoji images
rake enqueue_digest_emails                                             # This task is called by the Heroku scheduler add-on
rake export:categories[category_ids]                                   # Export all the categories
rake export:category_structure[include_group_users,file_name]          # Export only the structure of all categories
rake highlightjs:update                                                # download latest version of highlight and prepare it
rake i18n:stats                                                        # show the current translation status
rake import:file[file_name]                                            # Import existing exported file
rake initializers                                                      # Print out all defined initializers in the order they are invoked by Rails
rake integration:create_fixtures                                       # Creates the integration fixtures
rake log:clear                                                         # Truncates all/specified *.log files in log/ to zero bytes (specify which logs with LOGS=test,development)
rake middleware                                                        # Prints out your Rack middleware stack
rake multisite:generate:config                                         # generate multisite config file (if missing)
rake multisite:migrate                                                 # migrate all sites in tier
rake multisite:rollback                                                # rollback migrations for all sites in tier
rake notes                                                             # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)
rake notes:custom                                                      # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM
rake plugin:install[repo]                                              # install plugin
rake plugin:install_all_official                                       # install all official plugins (use GIT_WRITE=1 to pull with write access)
rake plugin:qunit[plugin,timeout]                                      # run plugin qunit tests
rake plugin:spec[plugin]                                               # run plugin specs
rake plugin:update[plugin]                                             # update a plugin
rake plugin:update_all                                                 # update all plugins
rake poll:migrate_old_polls                                            # Migrate old polls to new syntax
rake posts:defer_all_flags                                             # Defer all flags
rake posts:delete_all_likes                                            # Delete all likes
rake posts:delete_word[find,type]                                      # Delete occurrence of a word/string
rake posts:fix_letter_avatars                                          # Rebake all posts with a quote using a letter_avatar
rake posts:normalize_code                                              # normalize all markdown so <pre><code> is not used and instead backticks
rake posts:rebake                                                      # Update each post with latest markdown
rake posts:rebake_match[pattern,type,delay]                            # Rebake all posts matching string/regex and optionally delay the loop
rake posts:refresh_emails[topic_id]                                    # Refreshes each post that was received via email
rake posts:refresh_oneboxes                                            # Update each post with latest markdown and refresh oneboxes
rake posts:remap[find,replace,type]                                    # Remap all posts matching specific string
rake qunit:test[timeout,qunit_path]                                    # Runs the qunit test suite
rake release_note:generate[from,to]                                    # generate a release note from the important commits
rake restart                                                           # Restart app by touching tmp/restart.txt
rake routes                                                            # Print out all defined routes in match order, with names
rake scheduler:run_all                                                 # run every task the scheduler knows about in that order, use only for debugging
rake secret                                                            # Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions)
rake smoke:test                                                        # run chrome headless smoke tests on current build
rake stats                                                             # Report code statistics (KLOCs, etc) from the application or engine
rake test                                                              # Runs all tests in test folder except system ones
rake test:db                                                           # Run tests quickly, but also reset db
rake test:system                                                       # Run system tests only
rake time:zones[country_or_offset]                                     # List all time zones, list by two-letter country code (`rails time:zones[US]`), or list by UTC offset (`rails time:zones[-8]`)
rake tmp:clear                                                         # Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear)
rake tmp:create                                                        # Creates tmp directories for cache, sockets, and pids
rake user_actions:rebuild                                              # rebuild the user_actions table
rake users:change_post_ownership[old_username,new_username,archetype]  # Change topic/post ownership of all the topics/posts by a specific user (without creating new revision)
rake yarn:install                                                      # Install all JavaScript dependencies as specified via Yarn

Am I doing something wrong or is it a bug?

Posts: 1

Participants: 1

Read full topic

As a commenter, when does Flagged turn off? How does it work?

$
0
0

@DHorse wrote:

I am sorry, I can’t figure this out.

I flagged my own comment.

Does it remain flagged forever?

Does the flag clear after a moderator actions it?

After the moderator clears the flag (maybe,) can I flag it again?

If there a link(s) where I can read up on flagged comments in detail?

For that matter, where is the user (commenter) documentation?

Posts: 3

Participants: 2

Read full topic

How to disable email notifications for every new thread?

$
0
0

@Steve_Adcock wrote:

Greetings all!

I’m a new Discourse administrator, so I apologize in advance if this is an easy question. But, I’ve looked all over through the user Preferences pages and admin console but haven’t been able to find what I’m looking for.

Basically, I have a user who says that he’s getting an email notification for every new thread posted anywhere in the forums. What this user wants to do is temporarily stop ALL emails coming their way while they are away from their computer for a couple of weeks, then re-enable emails after they return.

I haven’t been able to find a place where emails can be temporarily disabled for a user - either through a setting that the user selects OR a place within the Admin pages that I can set. Ideally, I’d love for each user to be able to control this themselves.

Am I missing something obvious?

Posts: 5

Participants: 4

Read full topic

How to establish a successful forum based on discourse?

New topic composer gets in the way when it auto-opens on the topic list

$
0
0

@mcwumbly wrote:

When you have a new topic draft in progress, it opens automatically when you go to the main topic list page. I’ve been annoyed about this in the past, but recently, it’s been getting in my way more and more. I realize the current design is intended to allow me to browse within a single tab while writing a topic, but I still often find it helpful to have multiple tabs open, personally.

For example, I always run into this issue is when I am writing up a weekly newsletter because it’s helpful to have multiple tabs open for the different topics I quote or reference while I’m writing the topic.

Here’s a few illustrations of the issues I face:

Figure 1

  1. Minimize new topic composer
  2. Go to another topic
  3. Go back to the topic list page
  4. New topic un-minimizes… and for some reason asks me whether I want to abandon my post

Why would you think I want to do that?

Figure 2

  1. Open new topic in another tab (no minimized composer is shown, great!)
  2. Go back to topic list
  3. New topic composer opens in yo’ face

Hey! I’m just trying to browse around the topics here, don’t need to see this composer right no, thank you very much.

Figure 3

Continuing from figure 2… OK, no big deal that the composer opens in my face, I guess, cuz I can just minimize it right? Then I can just continue browsing the site like I want to.

Well, now I’m back in the same situation as figure 1:

Figure 4

Alright, I’m kinda tired of minimizing this thing since it just keeps re-opening anyway…

  1. Continue writing a bunch of paragraphs for my topic in tab 1
  2. Go back to tab two to keep browsing
  3. Accidentally type a character in the composer of tab 2
  4. Wait… where are my paragraphs? Uh oh…
  5. Open a new tab and see that the composer has saved from tab 2 instead of tab 1
  6. Go back to tab 1 and see my paragraphs… phew… let’s not close this tab!

Recommendations

  1. When you browse to the topic list, only open the composer in the minimized state.
  2. When the composer is un-minimized, load the draft from the server.
  • This will make it less annoying if I’m just trying to browse.
  • I will be less likely to accidentally type into the wrong copy of the composer.
  • Changes made in one tab will update in the other when I un-minimize it.

There will still be a risk that I un-minimize the composer in two tabs and they get out of sync, but the risk will be much smaller.

But recommendation #1 alone would solve much of my problem if that’s an easier place to start making changes…

Posts: 8

Participants: 3

Read full topic

The patreon plugin

Mobile view Suspension date picker not working

$
0
0

@ljpp wrote:

Discourse 1.9 stable + iPhone SE

Trying to suspend a user and tapping on the date picker does nothing. I do not know if it goes off-screen or what, since there is nothing on the UI.

Overall this is a bad change and UX regression over the beautifully simple old UI where the moderator would simply enter the number of days. Multiple taps needed to get it done and a calendar style picker (which I dont see) is not a good UI for mobile. The web is mobile first and in many occasions a moderator needs to suspend a user quickly, using the device immediately available.

Posts: 3

Participants: 2

Read full topic


[PAID] Adding whatsapp share feature

$
0
0

@nixie wrote:

Discourse by default allows us to share posts on FB and Twitter using the share button.

I’d like to allow my users to share posts on Whatsapp.

(as per the new marketplace rules)
If you’re interested in working on this project, post a reply here stating your interest. And if all goes well, we can continue the discussion over email.

Posts: 1

Participants: 1

Read full topic

Don't be fooled by activity metrics – they may vary greatly in different community types

$
0
0

@meglio wrote:

While studying basic statistics of various communities for a chapter in my book, I made a discovery: healthy and active communities may demonstrate very different metric results. So my conclusion so far is that you should not rely on basic activity stats to measure healthiness of an online community.

I calculated activity per active users in last month:

  • Topics created per user vary from 0.07 to 0.55 – this makes a huge difference, i.e. 7 new topics vs 55 new topics per 100 active users per month.

  • Messages created per user vary from 1 to 30, i.e. 0.1k vs 3k new messages per 100 active users per month.

Communities examined are those in different industries, in 4 different languages (English, Spanish, Russian, Ukrainian), and spanning from 1k to 1.5M registered users.

Also, I noticed that the percentage of registered users which get active in last month vary as well: from 0.3% to ~50%.

Sharing this in case it can be useful to someone.

P.S. Of course the Discourse team has a greater insight based on the anonymous statistics they collect from Discourse instances. Yet it looks like analysing 10-20 random communities already does say that activity metrics are nowhere near being signs of community healthiness.

Posts: 3

Participants: 2

Read full topic

/sidekiq/scheduler ERROR 500

$
0
0

@appcomq wrote:

I have update to 2018-1-21 version, now /sidekiq/scheduler ERROR 500

NoMethodError (undefined method `bytesize' for nil:NilClass)
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.0.5/lib/sidekiq/web/application.rb:289:in `block in call'

Posts: 1

Participants: 1

Read full topic

[Paid ] Change URl format to UTM_xx parameters

$
0
0

@Pramvir_Rathee wrote:

because of new adsense crawler update. I want to display all content of my discourse forum on a single URL. Using UTM parameters. As adsense ignore them. Also want canonical Link to the orginal nice urls.

Posts: 1

Participants: 1

Read full topic

Category homepage as default?

$
0
0

@tophee wrote:

Yes, I also realized that showing the category page by default might provide better orientation for new users and changed my homepage.

When read @HAWK’s statement, I’m wondering: if that is indeed a general “rule”, then wouldn’t it make sense to set the category page as default homepage for new forums?

Disclaimer: I’m assuming that there is a default homepage. I don’t remember whether this is something you are asked to specific in the setup process, but even if it is, there’ d seem to be something that pushed me towards choosing “Latest” as my homepage. (As a side note: it is also somewhat difficult to find how to change the homepage)

Posts: 3

Participants: 2

Read full topic

Viewing all 60678 articles
Browse latest View live




Latest Images