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

Any performance-related areas you'd like investigated?

0
0

@itsderek23 wrote:

I have some free time over the next couple of weeks - I'd love to dive into some specific Ruby/SQL slowness areas of Discourse.

Looking at the contribution guidelines, I see a specific "Improve performance" section, but I've having trouble digging thru open bugs and identifying which ones are Ruby/SQL related.

So:

  1. Any one have pointers on performance-related Ruby/SQL issues?
  2. Any one have suggestions on seeding a database w/a significantly-sized data set so any changes are easy to benchmark?

Apologies in advance on the newbie questions - just getting started w/ Discource.

Posts: 2

Participants: 2

Read full topic


Use trusted open source cdn's

0
0

@alphaman wrote:

I have seen that my CDN has been getting a huge load. So, i went on to check various open source CDN providers and found to have jsdelivr the lesser latency and faster content delivery.

So why not use their CDN to host libraries like fontawesome and other js like jquery etc? Loading these frequently used files load up the servers and exhaust my resource. So, how can i change theme?

Any idea would be much appreciated.

Posts: 2

Participants: 2

Read full topic

SSO won't create user as admin or suppress welcome message

0
0

@mb450 wrote:

Hi,

New to discourse and having a problem with SSO.

Before signing my payload looks like this.
"nonce=d09ba51dbc2094e47f5b8e85d5612520&external_id=539692721&email=admin%blah.uk&name=Tadmin&avatar_force_update=1&admin=1&suppress_welcome_message=1"

The user is created but isn't an admin and does get a welcome message.

What am I doing wrong?

Cheers

Matt

Posts: 3

Participants: 2

Read full topic

Rebake all posts matching a pattern

0
0

@techAPJ wrote:

Want to rebake all the posts matching a string or regular expression? Let's do it!

Access Your Site

First connect to your Droplet via SSH, and enter the Docker container for your Discourse instances:

cd /var/discourse
./launcher enter app

Rebake All Posts Containing a Specific String

Run this command:

rake posts:rebake_match["pattern"]

Replace pattern with the string you want to match. Note that the match performed will be case insensitive.

rake posts:rebake_match[":slight_smile:"]

The above command will rebake all posts which contains :slight_smile: in post raw body.

Rebake All Posts Matching a Regular Expression

To use regular expressions instead of specific string matches:

rake posts:rebake_match["pattern",regex]

PostgreSQL uses POSIX Regular Expressions to perform regex matching. The matching will be case-sensitive.

rake posts:rebake_match["(:slight_smile:|Discourse)",regex]

Rebake all posts containing :slight_smile: or Discourse in post raw body.

rake posts:rebake_match["^Today",regex]

Rebake all posts which starts with Today.

rake posts:rebake_match["^(Today|Yesterday)",regex]

Rebake all posts which starts with Today or Yesterday.

Posts: 1

Participants: 1

Read full topic

Adding a new button on the composer toolbar

0
0

@iamntz wrote:

Hey guys.

I'm trying to add a shortcut on the editor toolbar and I'm having some issues witht the translation strings.

So, I'm adding the shortcut via admin/customize/css_html, into a </head> tab:

<script type="text/discourse-plugin" version="0.1">
    api.onToolbarCreate(function(toolbar){
      toolbar.addButton({
        trimLeading: true,
        id: 'kbd',
        group: 'insertions',
        icon: 'keyboard-o',
        perform: function(e){
          return e.applySurround('<kbd>', '</kbd>', 'kbd_shortcut')
        }
      });
    })
</script>

Things works great, but the tooltip reads [ro.composer.kbd_shortcut] and the inserted snippet looks like this:

<kbd>[ro.composer.kbd_shortcut]</kbd>

There is a way of customizing that key? I would expect to show up into admin/customize/site_texts, but... it doesn't.

Do I miss something obvious?

Thanks!

Posts: 2

Participants: 2

Read full topic

How do I disable Markdown completely?

0
0

@alfuken wrote:

Basically, title says it all. How do I disable Markdown for the whole forum? Same question about BBCode and HTML.

The only thing that should be allowed to be formatted - is line breaks.

Thanks.

Posts: 3

Participants: 2

Read full topic

Replace a string in all the posts

0
0

@techAPJ wrote:

Want to replace a string in all the posts? Let's do it!

Access Your Site

First connect to your Droplet via SSH, and enter the Docker container for your Discourse instances:

cd /var/discourse
./launcher enter app

Remap All Posts Containing a Specific String

Run this command:

rake posts:remap["find","replace"]

Replace find with the string you want to match and replace with the string you want to replace with.

rake posts:remap[":slightly_smiling:",":slight_smile:"]

The above command will replace all occurences of :slightly_smiling: with :slight_smile:.

Posts: 1

Participants: 1

Read full topic

In search result drop box: add given name next to username

0
0

@rriemann wrote:

Hello,

in my community, the usernames might differ a lot from the given name. The results to a search also consider the given name, even though it is not displayed. If someone looks for the given name Robert and finds only @asdf2016, it is not be evident that this is actually Robert.

Hence, I suggest to add (if different from username) next to the username on the same line the given name in smaller letters. :blush:

Posts: 1

Participants: 1

Read full topic


API call to watch categories and tags

Bad Gateway for letter avatars

0
0

@Kevin_McKinney wrote:

This has happened to me sporadically, and I just updated to version 1.7.0.beta2 and it's still happening. Seems similar to https://meta.discourse.org/t/sporadic-missing-letter-avatars-cache-problem/34304 but maybe not the same thing?

What happens is that from time to time, the letter avatars don't appear correctly. It used to be that none of them would show up, and I'd just reboot the VM which seemed to fix it.

Today though, I was having issues with just two (T and A). And then randomly J started showing up, with just T being an issue now. We had a power failure last night so the VM was just started this morning, and then I upgraded Discourse to the latest version. That's the only info I can think of that might be relevant.

The following appears in the console:

Failed to load resource: the server responded with a status of 502 (Bad Gateway)
http://feedbackloop/letter_avatar_proxy/v2/letter/t/f05b48/25.png

If I go to the image URL, I just see

502 Bad Gateway

nginx

If there's any other info I could provide that would be helpful to troubleshoot, please let me know! I won't rebuild the app or reboot for a little while just in case.

Posts: 2

Participants: 2

Read full topic

Pups error when boostrapping

0
0

@traveling wrote:

Hey all,
I'm using the guide to setup discourse on digital-ocean.
The final bootstap command fails with the following error, I need some help to resolve.
Thanks!

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

Posts: 3

Participants: 2

Read full topic

Semi-private Discourse Install?

0
0

@Webtrend wrote:

I am running a private subscription site and I want to make the full access to discourse available to members only. However, I would like the non-members to have access to topic listing (may be the latest 25 active topics). I know how to make discourse completely private. Is it possible to make it semi-private as I want it to be?

Perhaps I can use the REST API to create a separate php page (outside of discourse install) to list the topics. Is that possible?

Posts: 3

Participants: 2

Read full topic

Tag labels appearing haphazardly

0
0

@gdpelican wrote:

I'm not sure if this is a bug or not, but I don't understand the current behaviour just yet.

Looking at the tag intersections page for docker/email, some of the labels aren't showing up under the topic titles:


However, visiting the offending topics makes their tags appear correctly under the topic title:

Posts: 5

Participants: 5

Read full topic

Retrieve the assets filename

0
0

@lifehome wrote:

Hello all,

I would want to know is there any solution to retrieve the random versioning number for asset files?
Have tried to grep the /var/discourse folder but no luck in finding similar files. Any idea how to do so?

Posts: 6

Participants: 2

Read full topic

Badge given even if not active

0
0

@Silvanus wrote:

Hiya! In my forum, we noticed that the badge (here especially "First Onebox") is given (i.e. a notification is sent) even if the badge isn't active. This leads to a problem, when the badge isn't active: the notification link leads into a "not found", and the badge isn't listed in the list of badges for that user (that still got the message).

To clarify: Badge notification is sent, even if it's not active.

Posts: 5

Participants: 2

Read full topic


Slack - discourse-slack-official plugin

0
0

@johndbritton wrote:

We have the discourse-slack-official plugin and are having some difficulty getting it to work. The documentation in settings is pretty sparse.

  • slack enabled tickbox checked
  • I don't know what to put in slack incoming webhook token as Slack doesn't specify a token, just a URL
  • slack outbound webhook url is set to the webhook url specified by Slack, with a unique pattern (maybe they used to provide the token separately?)
  • slack discourse username is set to an existing account in our Discourse instance that has no special access, only the default read access
  • slack discourse excerpt length is set to the default, 400

I've tried setting the slack incoming web token to be the unique part of the url provide by Slack, I've tried leaving it as the default, I've tried setting it to be blank. None of the combinations have worked.

What should I do to make this work? It'd be really handy if there were a way to test the integration without creating a new topic.

Posts: 5

Participants: 3

Read full topic

Integrating a customized highlight.js into my forum

0
0

@alldritt wrote:

I have a need to incorporate a customized version of highlight.js in my Discourse forum. What is the best way to go about this without interfering with the Discourse update processes?

Posts: 7

Participants: 3

Read full topic

Does "

0
0

@meglio wrote:

Just looking at this list:

Note how the first of the latest topics says <1m, then the next says 31m.

I might be mistaken, but it seems that for aestethics, <1m should be changed to 1m. This change will make little to no difference in meaning, but will remove that special case for timespans less than one minute.

Posts: 8

Participants: 4

Read full topic

Add mini-logo on top of mods avatar

0
0

@meglio wrote:

Just wondering how is this mini-logo added on top of the avatars?

In a topic:

In the "categories page":

So there should be a site setting to control whether the mini-logo should be put on top of mods avatars? But I can't find any.

Posts: 3

Participants: 2

Read full topic

Cannot "not filter" with Show Filter by Tag option

0
0

@runofthemill wrote:

With the Show a dropdown to filter a topic list by tag option selected, it is not possible to "clear" or "disable" the tag filter; the only options are:

all tags
no tags
tag x
tag y
etc...

It should be possible to have an unfiltered view here, as all tags and no tags are mutually exclusive.

Posts: 3

Participants: 2

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images