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

Error when text entered in category select box contains invalid regex syntax

$
0
0

@elberet wrote:

There's a bug in category-group.js.es6:

Either, the userinput in term should be escaped, or errors due to an invalid regex should be reported to the user.

To reproduce, go to your profile settings and type an asterisk in any of the category selection boxes, then check browser console and/or /logs for an "Uncaught SyntaxError: Invalid regular expression: /*/: Nothing to repeat".

Posts: 1

Participants: 1

Read full topic


How can an admin set the datetime format?

$
0
0

@downey wrote:

How can an admin specify the datetime format used by their Discourse installation? We'd like to standardize on ISO 8601 across all our webapps.

Posts: 1

Participants: 1

Read full topic

A better poll feature

$
0
0

@zogstrip wrote:

It's been a year since @sam wrote about how we should we implement polls in Discourse and we've been fortunate enough to get our first implementation done by the community (cc. @radq).

However, as pretty much all features in a software, the first version was missing a few things. Most of the feedbacks we got were asking for the possibility to support multiple choices polls.

So, for the past couple of weeks, I've been working on revamping our poll plugin.

star2 Here's how it works star2

Single (default)

The simplest poll you can make is a single choice poll.

You just need a list surrounded by the [poll] BBCode tag [/poll].

[poll]
- Option A
- Option B
- Option C
[/poll]

This will produce the following poll:

  • Option A
  • Option B
  • Option C

No votes yet. Want to be the first?

Show results

Multiple

If you want to allow multiple choices, you only need to add "type=multiple" to the tag, like so:

[poll type=multiple]
- Option A
- Option B
- Option C
[/poll]

This will produce the following poll (note the help text)

  • Option A
  • Option B
  • Option C

No votes yet. Want to be the first?

You may choose up to 3 options.

Vote now!Show results

Multiple (with options)

If you want to limit the number of selected options in a multiple choices poll, you can do so using both "min" and "max" arguments:

[poll type=multiple min=1 max=2]
- Option A
- Option B
- Option C
[/poll]

This will produce a multiple choice polls allowing up to 2 different options:

  • Option A
  • Option B
  • Option C

No votes yet. Want to be the first?

You may choose up to 2 options.

Vote now!Show results

Number

This 3rd type of polls comes from one of our customers. It can be used when you want to grade or rate something.

If you use the following syntax:

[poll type=number min=1 max=10][/poll]

It will automatically generate a list of numbers from "min" to "max", and the result of the poll is the average of all of votes:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

No votes yet. Want to be the first?

Show results

Number (with options)

You can use the "step" argument if you want to reduce the number of generated numbers

[poll type=number min=1 max=10 step=2][/poll]
  • 1
  • 3
  • 5
  • 7
  • 9

No votes yet. Want to be the first?

Show results

Customization

By default, polls are using the colors of your forum theme. But you can override both the text and background colors.

Text color

Customizing the text color of the options is as easy as setting the "color" argument:

[poll color=red]
- Option A
- Option B
- Option C
[/poll]

Will produce this poll with red text:

  • Option A
  • Option B
  • Option C

No votes yet. Want to be the first?

Show results

Background color

The background color can be customized using the "background" argument:

[poll background=#3f96ca]
- Option A
- Option B
- Option C
[/poll]

Will produce this poll with blue background:

  • Option A
  • Option B
  • Option C

No votes yet. Want to be the first?

Show results

With content

Polls also support inside contrnt like links and emojis

[poll name=with_content]
- A link to [discourse](www.discourse.org)
- Emoji: :smile:
[/poll]

Will produce this nice poll

No votes yet. Want to be the first?

Show results

Multiple polls in the same post

Have you noticed that this post contains several polls? Wonder how's that possible? It's because I'm using a different "name" for each of the polls wink

[poll name=single]
- Option A
- Option B
- Option C
[/poll]

Posts: 13

Participants: 9

Read full topic

Bypassing Site.Setting.login_required for external SSO

$
0
0

@Craig_Kahle wrote:

I am wondering if there is a way to bypass SiteSetting.login_required and return a sig and payload. I am implementing login via a mobile app against a discourse instance with SSO enabled.

I have a working plugin that returns the nonce instead of redirecting, to be used later in the flow upon login success against the primary site. Looks something like this

def return_nonce
	nonce = DiscourseSingleSignOn.generate_url(params[:return_path] || '/')
	uri_array = Rack::Utils.parse_query(nonce)

	render json: uri_array
end

This only works with login_required off. Could this be function be modified to work with that setting set to on? Thanks!

Posts: 1

Participants: 1

Read full topic

Disable creating new topics

$
0
0

@rhulse wrote:

Is there are way to limit the creation of new topics to staff and the embedding script?

Posts: 3

Participants: 2

Read full topic

There was a problem granting admin/moderation privileges

$
0
0

@NixAlaister wrote:

Hi,
I have just installed discourse on a VPS and it installed fine. The only problem is now I am unable to grant admin or moderator privilages to any user. It says: "There was a problem granting moderation privileges." I also tried doing it through the console but that didn't seem to work either. I am given the error: "rake aborted! ActiveRecord: :RecordInvalid: Validation failed: Name must be at least 6 characters" I don't know why it's saying that as the name is longer than 6 characters.

Thanks, Alaister

Posts: 5

Participants: 2

Read full topic

Too many options to view categories

$
0
0

@romdos wrote:

Currently there is the 'all categories' drop-down list in the main menu, the 'Categories' entry in the main menu to view the categories, and then the categories list is also shown in the hamburger 'go to another topic list or category' menu.

Furthermore, this gets confusing because the 'all categories' list doesn't list sub categories, while the hamburger menu does.

Perhaps add the drop-down list functionality to the 'Categories' menu entry, show the list from the hamburger menu and remove the 'all categories' list completely.

Here's a quick mockup of this:

Posts: 4

Participants: 2

Read full topic

Oauth Login popup works but user never logged in

$
0
0

@EddieOne wrote:

This only happens some of the time, on some browsers. For me it happened in Win 7, FF until I was given admin permission.

This user report explains what happens, "Login button for me doesn't work. The ID Pop up shows, loads, and then
closes, which makes the original window refresh again, but when it does,
I'm not logged in."

Wondering if anyone has experienced this? I didn't see any relevant js errors in the console.

Posts: 4

Participants: 2

Read full topic


Replacement of the logo in the upgrade

"better polls""Show Results" buttons have spacing issue on mobile

Rails 4.1 is no longer use MultiJSON

$
0
0

@fantasticfears wrote:

It's just a clarification for this comment:

As OJ document described, MultiJSON is no longer used by rails instead of json gem. Until 4.1, there is a bug inside rails prevent it using OJ.

details: https://github.com/ohler55/oj#rails

Now the most API is wrapped by MultiJSON, it's not a big problem anyway.

Posts: 1

Participants: 1

Read full topic

What are the links on the right column next to the replies?

$
0
0

@PopsRocker wrote:

I've looked for the answer and haven't been able to find it.

I've been noticing the links that show up to the right of a person's reply in a thread. I thought at first they were links that were inside the post, but I'm seeing links that show up and are not in the post.

Can someone explain what they are and how they get there? Thanks.

Posts: 3

Participants: 2

Read full topic

My posts are being held for moderation?

$
0
0

@PopsRocker wrote:

Just curious, I noticed today any post I make whether it be a new topic, or reply is being held for moderation? I have looked over the do and don'ts again, as well as reviewed what the restrictions are for trust level one.

Did I do something I was not supposed to?

Thank you ... Pops

Posts: 5

Participants: 3

Read full topic

Show subcategory topics in /categories view

$
0
0

@sobering wrote:

Hey guys,

I'll just preface this by saying, I searched meta.discourse.org before posting this. Couldn't quite find what I was looking for although I found a few other threads referencing this issue:


Anyway, I have a community that relies on subcategories. The "latest" column in the /categories view is filled out fine, but the "topics" column is not, it just leaves a big white space. According to one of the previously linked threads this was taken care of in an earlier commit, but I seem to be having the issue.

Am I missing something in my setup?

Posts: 2

Participants: 2

Read full topic

Select "search the category" by default


Publish to Discourse and scheduling

$
0
0

@steve_pd wrote:

So we have a problem when posts are created or published by other plugins, the value specified for 'publish to discourse' is always ignored.

Discussing the issue with one author of such a plugin the response was:

their plugin may be using filters that are not triggered upon an anonymous update

and

In some cases we aren't able to accommodate for plugins that don't trigger filters/actions in a global manner.

Is this a possibility? Raised this on github a while back with @benword and thought it was worth checking before I reopen the issue.

Posts: 3

Participants: 2

Read full topic

How do I insert javascript into the footer?

$
0
0

@Noahqw wrote:

I try inserting javascript into the footer using the footer option but it doesn't render it. What am I doing wrong?

Posts: 4

Participants: 2

Read full topic

Secure Cookie flag

$
0
0

@Daytona wrote:

I have my site set up for HTTPS and even added HSTS (using cloudflare though), however I would like to set the secure flag for my session ID cookie and maybe the other cookies as well.

It looks like _forum_session is the main cookie we would want to secure and on meta.discourse.org the secure flag is set.

I have the HTTPS setting in admin enabled:
Should the full url for the site (Discourse.base_url) be http or https? DO NOT ENABLE THIS UNLESS HTTPS IS ALREADY SET UP AND WORKING!

I'm also on the latest version of Discourse: v1.3.0.beta6 +98

Any simple way of doing this? Maybe I should make a plugin?

Edit: Supposedly the _t cookie is the real user session cookie

Posts: 9

Participants: 5

Read full topic

How do you reset a Discourse installation

$
0
0

@nahtnam wrote:

Hey!

I want to reset my discourse installation (delete everything and rebuild it).

Whats the easiest way to do this?

Thanks.

Posts: 4

Participants: 3

Read full topic

Problems with installing discourse on heroku(mostly a redis error)

$
0
0

@helloravi wrote:

I am able to run discourse forum applications
locally on ubuntu 14.04 without any problems. Now I am trying to make it
work on Heroku. I am stuck.
I am using Mandrill starter for emails, rediscloud:25 as addons.

Here is what I did:
I added mandrill details and hostname in
discourse_quickstart.conf, I added redis host url which I got from
rediscloud. I gitignored config/discourse.conf file.

Also I am not sure on "what to do/how to set" the following commands since I am using rediscloud

heroku config:get OPENREDIS_URL
heroku config:set REDIS_PROVIDER_URL=<result of above command>
heroku config:set DISCOURSE_REDIS_HOST=<host from above command>
heroku config:set DISCOURSE_REDIS_PORT=<port from above command>
heroku config:set DISCOURSE_REDIS_PASSWORD=<password from your provider>
heroku config:set DISCOURSE_REDIS_DB=<dbname from your provider>

I have the following error. Please help

Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        fatal: Not a git repository (or any parent up to mount point /tmp)
remote:        Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
remote:        URGENT: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) Failed to initialize site default
remote:        rake aborted!
remote:        Redis::CannotConnectError: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:331:in rescue in establish_connection'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:317:inestablish_connection'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:94:in block in connect'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:279:inwith_reconnect'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:93:in connect'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:350:inensure_connected'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:207:in block in process'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:292:inlogging'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:206:in process'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis/client.rb:112:incall'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:789:in block in get'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:37:inblock in synchronize'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:37:in synchronize'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/redis-3.2.1/lib/redis.rb:788:inget'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/lib/discourse_redis.rb:83:in block (3 levels) in <class:DiscourseRedis>'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/lib/discourse_redis.rb:51:inignore_readonly'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/lib/discourse_redis.rb:83:in block (2 levels) in <class:DiscourseRedis>'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/config/initializers/secret_token.rb:6:in'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:241:in
 load'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:241:inblock in load'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in
 load_dependency'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:241:inload'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:648:in
 block in load_config_initializer'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:161:ininstrument'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:647:in
 load_config_initializer'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:612:inblock (2 levels) in '
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:611:in
 each'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:611:inblock in '
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:30:in
 instance_exec'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:30:inrun'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:55:in
 block in run_initializers'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:44:ineach'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:44:in
 tsort_each_child'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:54:inrun_initializers'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:300:in
 initialize!'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:inpublic_send'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in
 method_missing'
remote:        /tmp/build_5a582688a3401aad01b654d776f55dd5/config/environment.rb:5:in'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in
 require'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:inblock in require'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in
 load_dependency'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:inrequire'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:276:in
 require_environment!'
remote:
/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:405:inblock in run_tasks_blocks'
remote:

/tmp/build_5a582688a3401aad01b654d776f55dd5/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:54:in
 `block (2 levels) in define'
remote:        Tasks: TOP => environment
remote:        (See full trace by running task with --trace)
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:
remote:  !     Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: !    Push rejected to gjforum.
remote:
To git@heroku.com:gjforum.git
 ! [remote rejected] heroku -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:gjforum.git'

Posts: 11

Participants: 4

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images