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

Set current User in Javascript

$
0
0

@Imperator wrote:

Hello,

i will use Discourse.User.currentProp(‘username’) or Discourse.User.currentProp(‘id’) in a design

Insert in Admin / Customize / CSS/HTML / </body>

<scirpt>
alert(Discourse.User.currentProp('username'));
</script>

Posts: 7

Participants: 2

Read full topic


Topic-List-Previews plugin - Browser security warning due to preview images delivered over HTTP not HTTPS

$
0
0

@ChrisBeach wrote:

NOTE: this is not a Discourse bug, but originates in an unofficial plugin (Topic List Previews) - hopefully @Angus can help.

Repro: https://se26.life

Page resources, showing image loaded over HTTP (not HTTPS)

I think this could be resolved by serving up the locally-downloaded image rather than the original image from the remote website.

The TLP plugin probably shouldn’t be serving remotely-hosted images

Posts: 4

Participants: 3

Read full topic

Image thumnails shows default image

$
0
0

@kokmok wrote:

Hello,
I’m not sure if it’s a bug but for several days we have issues with post’s integrated images.
If the image is heavy (we haven’t find the limit for now) after a while discourse replace it with a default thumbnail.
I didn’t find any error in the discourse’s logs nor in the nginx logs. Can be this issue config related ?

Posts: 6

Participants: 3

Read full topic

Possibility to bookmark private/group messages

Improve (add) friendly JSON API error messages (at least generic ones)

$
0
0

@dylanh724 wrote:

If I POST to /posts and something is wrong, here is what’s returned as an error:

image

image

only the code shows - no message (not friendly). This is the error when I typo the secret.

Here’s another form of error, leaving out a field:

image

bad “CSRF” – No one knows what the heck does that means. You can see 403 forbidden and get the hint for the code, but let’s say it wasn’t a forbidden one: It goes back to the 500 error.

These errors… really suck haha. Suggestions:

Invalid Parameters: Missing xx field(s)

Forbidden: Invalid secret/key combo

Something like these. Since error messages are so common, I actually thought I was glitched out since I only had a code returned, so even something generic would be better than nothing.

It would also be more intuitive if the errors were in json for consideration of future additions, and to be more intuitive to handling error standards of most other API’s.

{
  "error": {
    "friendlyMsg": "Invalid API/Secret Combination",
    "code": "ACCESS_DENIED"
  {
}

Thoughts?

Posts: 1

Participants: 1

Read full topic

Effect of generating new API Key

$
0
0

@jenkma02 wrote:

Recently we changed the DNS on our WordPress site to use www.ourdomain.com instead of ourdomain.com. There is a redirect in place so that old links should go to the new www version, but it actually broke the “Show Full Post” links on the Discourse site posts. I’m guessing that generating a new API key and plugging that into the plugin settings would fix all posts going forward, but I’m worried about what will happen to old posts on discourse. Will they remain on the discourse site? If so, will they be updated with the new www version? Thanks!

Posts: 7

Participants: 3

Read full topic

Discourse always posts in general using API

$
0
0

@dylanh724 wrote:

Whenever I post via the API, I tested it in Postman and it sends the right things to the right category.

However, when I more or less copy+paste the same thing with an http POST (via JavaScript), I get everything right…EXCEPT the category (which I thought was the easiest part):

I’m just truly stumped. Does anyone have any ideas as to why this wouldn’t send to the correct category?

  • I’m posting it as a FORM data (and not JSON, like Postman/tutorial says to do)
  • No special headers - it’s pretty vanilla
  • I copy+pasted “category” to ensure I didn’t typo it (shown in screenshot). It IS an number, right? I’m about to try it as text

UPDATE:

It IS an number, right? I’m about to try it as text

Error 422 when I try it as string. It is definitely a number.

Posts: 2

Participants: 1

Read full topic

[PAID-job] Finalize installation, get rid of email problem

$
0
0

@Ae_Quitas wrote:

We have installed discourse via droplet on Digital Ocean, we cant fix a problem with email forwarding. It wont work for us for new registered people or change passwords.

Basically we need someone to fix it.

We would like to get it fixed as soon as possible but no later than 22-09-2017

Payment is agreed during talk. This request is done for an end customer, I am just forwarding final contact.
Please contact me via PM.

Posts: 2

Participants: 2

Read full topic


./launcher doesn't work anymore

$
0
0

@BustaPaladin wrote:

I tried the rebuild command after I edited the app.yml but it didnt respond, so I fear I gotta re-install the entire thing now?

I can’t run any of these commands:
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Use nsenter to get a shell into a container
logs: View the Docker logs for a container
bootstrap: Bootstrap a container for the config based on a template
rebuild: Rebuild a container (destroy old, bootstrap, start new)
cleanup: Remove all containers that have stopped for > 24 hours

Posts: 14

Participants: 5

Read full topic

Flags in discobot threads

$
0
0

@jsha wrote:

I recently had a flag land in my moderator’s inbox on a thread a user had with discobot. It looks like the user eventually correctly flagged the post that discobot asked them to flag, but in the process flagged one of their own posts, and one of discobot’s posts that it hadn’t asked them to flag. Since the thread with discobot is meant as a sort of “playground” area, does it make sense to make all flags in that thread skip the moderator’s inbox?

Thanks,
Jacob

Posts: 4

Participants: 4

Read full topic

When new posts are created, the pinned topic should not go down

$
0
0

@nixie wrote:

I have 2 globally pinned topics in my site.
When new posts are created the pinned topic automatically goes down.
And it comes back to the top of the page only when I do a hard-refresh or when I click the logo.
When new posts are created, the pinned topic should not go down. It should stay at the top all the times.

Is there an way to get this done? Or will this require a plugin to be installed?

Posts: 2

Participants: 2

Read full topic

Poll not working on a banner topic

$
0
0

@Steven wrote:

Hi Team Discourse !

I’m here to report on a little bug, when I create a topic with a poll and pin it to banner topic two things are broken :

  • it is impossible to vote
  • If we go inside the topic and vote, the result is not visible on the banner.

I run in a fairly recent version (updated 2 or 3 days ago), but it doesn’t seem that it was fixed since then.

There is nothing urgent, I noticed it on a little forum under construction, and I doubt these kinds of ideas are often used.

Posts: 4

Participants: 4

Read full topic

Problems setting up managed HTTPS on AWS

$
0
0

@ffhaddad wrote:

From the admin area of Discourse, I enabled https. After I did that, I’m no longer able to log in. Is there a way to disable https again?

I tried to run ./discourse-setup and ./launcher rebuild app – Neither one worked.

Posts: 20

Participants: 4

Read full topic

Polls error handling

$
0
0

@tobiaseigen wrote:

I’m not sure if this is a bug, a feature request, or UX. I have a user who succeeded in saving two polls in the same post with this incorrect syntax, with spaces and a question mark in the name and an extra “=poll” in the middle.

[poll type=single=poll name=One two three?]
- another theme
- one theme
[/poll]

[poll type=multiple=poll name=Four five six?]
- I would like to do one thing.
- I would like to do another thing
[/poll]

Weirdly, the polls worked for a few days and people were able to vote. Then today there were complaints about not being able to vote. I then went in to edit the post to see what was going on, fixed the syntax and had some difficulty saving… I kept getting a cryptic “500 error”. Only by removing the name from the first poll was I able to succeed in saving the post, but then all the existing votes had disappeared.

I did do an update to discourse over the weekend, and have the elections plugin installed, so there may be some particularities of my setup at play. On try, the polls seem to work.

I’ve explained to the member to use the build polls feature on the menu in future, which does a pretty good job of creating polls without errors. But users will try to experiment with markdown syntax and it would be nice to have better error handling.

Posts: 1

Participants: 1

Read full topic

Looking for Site Designers for a Discourse forum

$
0
0

@Trinady_Leigh_Chase wrote:

What would you like done?
We have designs that need to be executed on and polished. Seeking an expert in the limitations of Discourse, and someone who knows how to build custom buttons / features into the limited framework.

When do you need it done?
We’re hoping this can be done before the end of the year. Latest end of January.

If interested, please email tlc@pocketgems.com

Thank you for your time and consideration.

Posts: 4

Participants: 3

Read full topic


Frequent Posters not displaying the correct information

$
0
0

@Kumirei wrote:

Recently the Frequent Posters section in the topic map under the first post of every thread hasn’t been displaying the correct information. Threads with thousands of posts are displaying the most frequent posters to have at most a handful of posts in the thread, and the list does not necessarily include the users actually with the most posts.

Here we have a thread with 27k replies, and it is showing the most frequent posters to have only one reply, while some users actually have several thousands on their own.

If you click on the users you clearly see that the numbers are wrong, as the number on the filtering button still displays the correct number.

I checked with the ones who run the forums and they claim they don’t make any alterations to the core and insist that it is a Discourse bug and not isolated to our community.

Posts: 9

Participants: 6

Read full topic

සිංහල දෙමල සිංහල slug for Unicode?

$
0
0

@Sahan_Sanjeewa wrote:

දිවයිනේ දැවැන්තම සාහිත්‍ය මංගල්‍යය ලෙසින් සැලකෙන කොළඹ ජාත්‍යන්තර පොත් ප්‍රදර්ශනය මෙවරත් සැප්තැම්බර් 15වනදා සිට 24වනදා දක්වා කොළඹ බණ්ඩාරනායක සම්මන්ත්‍රණ ශාලා පරිශ්‍රයේ දී පැවැත්වීමට කටයුතු යොදා තිබේ. (සිකුරාදා සහ සෙනසුරාදා යන දිනවල උදෑසන 9 සිට රාත‍්‍රි 10 දක්වා ප‍්‍රදර්ශනය විවෘතව තැබෙනවා.

Posts: 6

Participants: 4

Read full topic

Redirect loop happens in $request_uri

$
0
0

@lifehome wrote:

Hello there,

I have came across a situation, where the site is working, but the path to replies isn’t.
You may visit the main site here: https://discuss.stickyricelove.com
And any replies like this one here: https://discuss.stickyricelove.com/t/男友背住我同另一個女仔傾計/2026

I have rebuilt many times over the last night, restarted and updated all things, yet still can’t figure out what’s the cause of this. Here is some configurations in use for references, hopefully someone can shed some lights on this problem:

nginx.conf

  server{
    listen 443 ssl http2;       # Deprecating IPv4
    listen [::]:443 ssl http2;
    server_name discuss.stickyricelove.com;

    location / {
        proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_http_version 1.1;
        proxy_redirect    off;
        proxy_set_header  X-Url-Scheme $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto "https";

    }
  }

containers/app.yml

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.socketed.template.yml"

The socket

[root@donut discourse]# ls -al /var/discourse/shared/standalone/nginx.http.sock
srwxrwxrwx 1 root root 0 Sep 19 08:45 /var/discourse/shared/standalone/nginx.http.sock

The access log for the example path above

172.20.209.164 - - [19/Sep/2017:09:22:04 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"
172.20.209.164 - - [19/Sep/2017:09:22:05 +0800] "GET /t/%E7%94%B7%E5%8F%8B%E8%83%8C%E4%BD%8F%E6%88%91%E5%90%8C%E5%8F%A6%E4%B8%80%E5%80%8B%E5%A5%B3%E4%BB%94%E5%82%BE%E8%A8%88/2026 HTTP/1.1" 301 158 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"

Regards,
Ivan

Posts: 9

Participants: 4

Read full topic

Permission Feature: Create / Reply / See (Self)

$
0
0

@dylanh724 wrote:

This would be more for support posts or report posts.

Let’s say there’s a support section. You want to post a support request, but you don’t want the world to see your private info, or if it’s a report – you don’t want to stir up drama by showing A reported B.

I’ve seen this before in old phpbb long ago and it works well:

Have an extra set of permissions to allow to create / see / create (self only). You could only see your own posts. Then normally in my demo situation, you’d add a 2nd (existing) permission for create / see / create (all)

image

EDIT: It would probably be more clear and consistent to name them:

Create / Reply / See (All)
Create / Reply / See (Self)

Posts: 3

Participants: 2

Read full topic

Don't send email for posts with a single flag

$
0
0

@tophee wrote:

Am I correct in assuming that when discourse compiles summary emails/ digests, it honours flags the same way as it does when displaying topics on the website? In other words, it will not include a post in an email when it has been flagged as spam by 3 users (or whatever is set in flags required to hide post).

In that case, I’d like to suggest a site setting that allows me to set a lower threshold for emails, i.e. I’d like to make sure a post with a single flag doesn’t get emailed out but I don’t want it to be hidden on the website unless it reaches 3 flags.

Posts: 3

Participants: 3

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images