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

Make "Level Granted" messages editable in Settings-Content

0
0

Anton wrote:

Key: lounge_welcome.body

I cannot find other keys for other levels.
Are these messages still used?

Posts: 1

Participants: 1

Read full topic


Find user by external ID (SSO)

0
0

Michael Congiusta wrote:

For those of us making use of SSO, being able to find a user by their external ID would be very helpful. It would make linking profiles etc. much more straightforward in cases where username requirements may not fully map 1:1.

From my current understanding, external_id isn't currently stored in the User model, but is passed as part of the payload. Could this data also be saved to the user model directly?

Posts: 4

Participants: 3

Read full topic

Flag count displayed at wrong position

0
0

Gerhard wrote:

On my test installation I've switched the default locale to German.
When a flag exists and I open the Hamburger menu (?) it shows a red circle with the number of flags.
However, it's positioned above the text "Meldungen". In the English locale it would be displayed after the "Flags", but "Meldungen" is longer...

See the following screenshot for how it looks like:

Posts: 4

Participants: 2

Read full topic

Programmatically adjusting color variables with SASS

0
0

kris wrote:

So right now the simple themer on the customize page is a bit off for dark themes. Some things don't look right because in the default theme there are colors that are lightened via SASS functions... and in the dark theme they should be darkened.

I'm trying to figure out a way to make all colors selected in the themer scale appropriately based on their context. I think I'm getting close to a solution using SASS functions and I'm just cataloguing my thoughts here.

Brightness & Contrast

So the first step is that the contrast relationship between two colors needs to be calculated, and then if that difference is too low... we need to adjust the brightness of a color (without changing the hue).

I was using SASS' lightness function to do this before, but lightness comparison isn't always the best. So I found this little W3C snippet on contrast here

Color brightness is determined by the following formula:
((Red value X 299) + (Green value X 587) + (Blue value X 114)) / 1000
Note: This algorithm is taken from a formula for converting RGB values to YIQ values. This brightness value gives a perceived brightness for a color.

Now using this I can easily find the brighness of a color on a more reliable scale than lightness

@function brightness($color) {
  @return ((red($color) * .299) + (green($color) * .587) + (blue($color) * .114));
}

black = 0, white = 255; great.

Now I can set a desired contrast value between colors (100 or greater in this example), and find out if two colors are within the a usable contrast range of each other.

@function contrast($color1, $color2) {
@if (abs(brightness($color1) - brightness($color2)) < 100 )   {
      @return // do something to color1
    }
    @else {
      @return $color1  // don't do anything, use color1
    }
}

ok! progress

Adjusting values

So the next big step is figuring out how to adjust a color if the contrast is too low. SASS has a great function that we already use called scale-color. You can use this to adjust a color's lightness based on its existing value... so if you scale-color(yellow, $lightness: 50%); you get a light yellow scaled proportionate to its existing lightness versus the disproportionate lighten(yellow, 50%) which creates white.

So how do we figure out how much to adjust $color1? Well, lets say the difference between two colors' brightness is 15. If our contrast goal is 100 that's waaaay too low. So, if I take the resulting difference (15) and subtract it from our desired outcome (100) I get 85. That's not a bad place to start.

So now based on the theme colors I need to contextually figure out if it makes more sense to brighten or darken $color1.

This will largely depend on the overall theme lightness. If the background of a theme is white and a button on that background doesn't have enough contrast... then I need to darken that button.

scale-color($color1, $lightness: -85%)

If the theme's background is a dark color and the contrast is too low, I need to lighten the button.

scale-color($color1, $lightness: 85%)

Applying the function!

So now I think I can create something like this:

alert-info {
    background-color: contrast($tertiary, $secondary);
    color:  contrast($primary, contrast($tertiary, $secondary));
  }

What this does is:

background color: compares contrast between the desired background color ($tertiary) and the background color .alert-info sits on ($secondary in this case) - then it adjusts the color if needed.

color: compares the contrast of .alert-info's text color ($primary) versus the outcome of the color comparison of the background of .alert-info to the background of the page, then adjusts as necessary.

Here's a proof of concept.
$secondary: #333
$tertiary: orangered
$primary: orange

difference between #333 and orangered = 122 thumbsup

difference between orange and orangered = 56 thumbsdown
so adjust orange's lightness on the orangered background by 56 scale-color(orange, $lightness: 56%) and get #ffd78f... the contrast between orangered and #ffd78f is 103 thumbsup

cake usable colors

I haven't tried this idea on a large scale yet as it's not 100% there, but I feel like it could do the trick (if you have suggestions based on this, they'd be helpful!). You should probably get a badge just for reading this entire ramble.

Posts: 1

Participants: 1

Read full topic

How often the translated files are pulled from Transifex

0
0

Anton wrote:

I've recently made a lot of considerable improvement to the Russian translation, as well as translated some key missing strings which spoiled the home page, and now I can't wait to see it live with my forum, hence the question.

Posts: 3

Participants: 2

Read full topic

Russian counting and male/female words

0
0

Jeff Atwood wrote:

Thanks. What about Russian where there are 3 versions:

1,21,31,... монета (the suffix is a)
2,3,4, 22,23,24, ... менеты (the suffix is ы)
5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, 25,26,27,28,29,30, 35,36,37,38,39,40, ... монет (no suffix)

Posts: 6

Participants: 3

Read full topic

Configurable "You were granted BadgeX" message per badge

0
0

Anton wrote:

Being able to specify a custom "you were granted" message would create end-less possibilities to make these messages unexpextedly interedting, dedicately for different society types.
I suppose there shod be some value for attractiveness and engafement for end users.

Posts: 1

Participants: 2

Read full topic

How do I remove the Pinned Topic notice?


Polls not working on aws ec2

0
0

Ordinary wrote:

I did it just right,but it turned out to be disabled.
When I did it on digital ocean before,everything was just fine.
BTW everything has up to date.

Posts: 1

Participants: 1

Read full topic

Cannot use "Bold" button in Topic editor in Opera browser

0
0

Anton wrote:

Mo moderators report this error when using Discourse in Opera browser:

  1. Start creating a new topic.
  2. Select a word or a phrase in the topic body.
  3. Click the "B" button.
  4. It just inserts a piece of BOLD text to the very top of the topic body. In our Russian version the text inserted is Russian (i.e. it's something localized), it says something like "text emphasized with bold".
  5. The selected text doesn't become bold.

Posts: 3

Participants: 1

Read full topic

Moderation requested awaiting list (bookmarks-like) for moderators and admins

0
0

Anton wrote:

I sometimes ask people to make some changes in their posts/topics - I do it to encourage and practice culture without doing changes in people's posts on my own (which sometimes may offend). Once I've asked to make some changes, I'd like to put the target topic / message into a special list not to forget about it. Is there a way to do so? If not, this should be a feature request.

Posts: 3

Participants: 1

Read full topic

Modifications needed for integrating into our site

0
0

Del Boy Trotter wrote:

We want to use the SSO stuff to integrate discourse into our site. We have a few things that would need to be done to facilitate the integration:

  • remove the discourse user profile page and show the info on our own user profile page
  • share the users profile image from our site with discourse
  • theme it!

I think the theme part is going to be standard but are there any guidelines with the other 2 points?

Posts: 1

Participants: 1

Read full topic

Can we configure www -> non-www redirect in admin panel?

"failed to bootstrap" with git reset error on DigitalOcean

0
0

Sam Bauwens wrote:

Hi!

I tried installing discourse on DigitalOcean on a 1GB droplet (with 2GB swap) by exactly following the official guide step by step but when I execute ./launcher bootstrap app, I get the following error:

I, [2014-08-01T12:09:08.214594 #39]  INFO -- : > cd $home && git reset --hard
fatal: Not a git repository (or any of the parent directories): .git
I, [2014-08-01T12:09:08.227842 #39]  INFO -- :
2014-08-01 12:09:08 UTC LOG:  received smart shutdown request
2014-08-01 12:09:08 UTC LOG:  autovacuum launcher shutting down
2014-08-01 12:09:08 UTC LOG:  shutting down
2014-08-01 12:09:08 UTC LOG:  database system is shut down
/pups/lib/pups/exec_command.rb:85:in `spawn': cd $home && git reset --hard failed with return #<Process::Status: pid 174 exit 128> (RuntimeError)
        from /pups/lib/pups/exec_command.rb:55:in `block in run'
        from /pups/lib/pups/exec_command.rb:53:in `each'
        from /pups/lib/pups/exec_command.rb:53:in `run'
        from /pups/lib/pups/command.rb:6:in `run'
        from /pups/lib/pups/config.rb:85:in `block (2 levels) in run_commands'
        from /pups/lib/pups/config.rb:76:in `each'
        from /pups/lib/pups/config.rb:76:in `block in run_commands'
        from /pups/lib/pups/config.rb:75:in `each'
        from /pups/lib/pups/config.rb:75:in `run_commands'
        from /pups/lib/pups/config.rb:71:in `run'
        from /pups/lib/pups/cli.rb:31:in `run'
        from /pups/bin/pups:8:in `<main>'
19b0f111c9aeb955122a0b6eeafd59b93d0169ad6e14fd49c5a1d270f301d009
FAILED TO BOOTSTRAP

Should there be a repo on the $home folder?

Posts: 13

Participants: 1

Read full topic

How to run bench.rb in docker container?

0
0

Gerhard wrote:

I'd like to compare the performance of the Discourse docker container on different servers.
I've seen that there is a bench.rb script which is mentioned in Benchmarking Discourse locally.
However, I'm not completely sure how to use it correctly.

I've installed apache2-utils inside the container and tried running the script as user root and as user discourse (with sudo -u discourse -i). As expected it doesn't work as root. The user discourse worked quite well after granting it enough permissions in PostgreSQL (ALTER USER discourse SUPERUSER;). During the benchmark were a few exceptions and at the end I've got a permission denied... I guess I'm on the right track, but not quite there yet. Any hints what I've done wrong?

BTW: I guess I should stop the running instance of Discourse during the benchmark, shouldn't I? What's the best way to stop all it's components or at least the ones that shouldn't be running during the benchmark?

Posts: 3

Participants: 1

Read full topic


In Mobile CSS, why isn't #main position: relative?

0
0

Mendel wrote:

In Desktop CSS it is, hover in Mobile CSS, it was removed in this commit.

Because the #main section is now absolutely positioned relative to the browser chrome, additional content provided in a mobile_header SiteCustomization get hidden.

Posts: 2

Participants: 1

Read full topic

How often Discourse checks for updates? I cannot see "Check for updates now" button

0
0

Anton wrote:

Currently it shows You're up to date! at version 0.9.9.14 despite the fact that 2 hour ago a new version became available. Also, I do not have "Check for updates now" button - I think it was there in the previous version?

Posts: 6

Participants: 1

Read full topic

Incomplete naming for manual backups

After update to v0.9.9.15, there is still a lack of some Russian translations, but I cannot find keys in Transifex

User new_topic_duration after_n_days - is it used with plural or with singular noun?

Viewing all 60309 articles
Browse latest View live




Latest Images