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

Redirect all "page not found" navigations to an external URL

$
0
0

@aseemc wrote:

We would like to redirect all invalid urls for the forum i.e. all “Not found” to be redirected to an external URL.

Can it be done using Permalinks? Or Some other way?

We have a hosted solution so can’t run commands as such.

Posts: 5

Participants: 2

Read full topic


Ability to disable *presence* functionnalities for users

$
0
0

@ixeft wrote:

Hello,

While « Who is writing » and Whos online plugins are quit useful, users asked to be able to individually disable it because it is too intrusive for them.

Would it be possible to have a «Offline» profile field ?

Posts: 3

Participants: 3

Read full topic

How Does Team Discourse Use Discourse?

$
0
0

@HAWK wrote:

Originally published at: How Does Team Discourse Use Discourse?

As we claim on our website, we use Discourse as our primary team coordination tool to build… Discourse! That means escaping email silos and minimising the number of disparate communication channels required to manage a fully distributed team. We are able to keep distractions like calls and meetings to a minimum and focus on actual…

Posts: 1

Participants: 1

Read full topic

Mute topic temporarily

$
0
0

@erlend_sh wrote:

I’ve come to realize that I rarely - perhaps never - actually want to mute a topic forever. My main reason for muting a topic is because it got a little bit too noisy for me, but topic noise practically always blows over in a few days/weeks.

So what I want to do is avoid the noise for a while, rather than never hearing from this topic ever again. I wonder if we would be better served with an interface similar to that of most social chat applications today:

I haven’t thought through the UI implications yet so do please contribute to that if you have any ideas.

Posts: 2

Participants: 2

Read full topic

How to limit users to post just links in a specific category?

$
0
0

@adrianbblk wrote:

Hello Everyone,

Is there a way to limit the content posted in a specific category ?

How to limit users to post just links in a category ?

Thank You

Posts: 3

Participants: 2

Read full topic

Linkify words in post, theme component

$
0
0

@sam wrote:

Type

Theme component, this component can be included in your current theme.

Location

https://github.com/discourse/discourse-linkify-words

How to Install

What this does?

Allows you to automatically hyperlink certain words in your post with desired destination URL.

How to configure?

After importing the theme component, configure the theme settings with the format WORD,https://destination.url.com

Limitations

  1. Replacement will only appear in the web UI and will not appear in emails.

  2. Requires Discourse 2.0.0.beta3 +267 or later.

  3. Replacement is case insensitive, meaning test will match on Test or tEst

How this looks in action?

Credits

Big thanks to @Osama for building theme settings and Javascript Bookmarklet to replace text with a link - Stack Overflow for guiding on the implementation.

Posts: 4

Participants: 3

Read full topic

Paid [integral system] development request

$
0
0

@Max_Mai wrote:

Hi Developers.
At present, our community needs an integral system. After the user achieves some achievements, he can obtain the corresponding integral. After communicating with the support team of discourse, I learned that I needed to develop a plug-in to complete the integration system. Functions are similar to “bucks” in community.anker.com.

This is a paid development, and users who are willing to cooperate please contact me, and learn more about the project.

Thank you very much!

Posts: 1

Participants: 1

Read full topic

Forum shows Oops message - Urgent


A «Title can't have more than 1 emoji» false positive

Querying Discourse for Top users?

$
0
0

@slackmoehrle wrote:

My superiors what me to provide them a few “reports” about:

  1. Top xx number of forum users by how many posts

  2. Top xx number of forum users by likes

I’m installing the data-explorer plugin to see what I can do with this, but if anyone has advice on how to accomplish this I would appreciate it!

Posts: 8

Participants: 4

Read full topic

Client-side: capturing data from "/posts" server-side response?

$
0
0

@ChrisBeach wrote:

I have included a field in the server-side response returned when a user creates a new topic. I’d like to update the client-side with this data.

The field is called stripe_txn_balance, and is present in the following response from the POST to /posts:

JSON response
{
      "action": "create_post",
      "post": {
        "id": 30,
        "name": null,
        "username": "chris",
        "avatar_template": "/letter_avatar_proxy/v2/letter/c/958977/{size}.png",
        "created_at": "2018-03-05T13:09:45.534Z",
        "cooked": "\u003cp\u003easdasdasdasdasdasdasdasdad\u003c/p\u003e",
        "post_number": 1,
        "post_type": 1,
        "updated_at": "2018-03-05T13:09:45.534Z",
        "reply_count": 0,
        "reply_to_post_number": null,
        "quote_count": 0,
        "avg_time": null,
        "incoming_link_count": 0,
        "reads": 0,
        "score": 0,
        "yours": true,
        "topic_id": 24,
        "topic_slug": "dasdasd",
        "display_username": null,
        "primary_group_name": null,
        "primary_group_flair_url": null,
        "primary_group_flair_bg_color": null,
        "primary_group_flair_color": null,
        "version": 1,
        "can_edit": true,
        "can_delete": false,
        "can_recover": null,
        "can_wiki": true,
        "user_title": null,
        "actions_summary": [
          {
            "id": 5,
            "hidden": true,
            "can_act": true
          },
          {
            "id": 3,
            "can_act": true
          },
          {
            "id": 4,
            "can_act": true
          },
          {
            "id": 8,
            "can_act": true
          },
          {
            "id": 7,
            "can_act": true
          }
        ],
        "moderator": false,
        "admin": true,
        "staff": true,
        "user_id": 1,
        "draft_sequence": 1,
        "hidden": false,
        "hidden_reason_id": null,
        "trust_level": 4,
        "deleted_at": null,
        "user_deleted": false,
        "edit_reason": null,
        "can_view_edit_history": true,
        "wiki": false,
        "stripe_txn_balance": 0
      },
      "success": true
    }

When I get the response I’ll be doing something like this on the client side:

Discourse.User.current().set("stripe_txn_balance", post.stripe_txn_balance);

What I’d like to know is where’s best to put this code?

I tried doing the following in an initializer but couldn’t find my field in the model:

api.modifyClass('controller:composer', {
    save(force) {
        const promise = this._super(force);
        const model = this;
        if (promise) {
            promise.then(function(value) {
                console.log(model);
            })
        }
    }
});

model.topic evaluates to this, but it doesn’t include my field (and I also couldn’t find my field elsewhere within model:

A nudge in the right direction would be much appreciated.

Posts: 5

Participants: 2

Read full topic

MP4 Video Issues

$
0
0

@RobMeade wrote:

Hi,

I have noticed a few of our topics don’t appear to be rendering MP4 videos recently (hosted solution). The content is embedded in a topic, and when you press play you can hear the sound, there’s just not visual.

I tried opening the URL in a separate tab and it prompts to download. I can download the video and play it (on Windows) and it appears correctly.

The only work around I have found so far is to edit the video (I used Camtasia), insert a second of “nothing” at the start of the video, then re-upload it, this forces Discourse to see the file as “new” content and for whatever reason it then seems to play.

Any thoughts on this? It’s not a one off, I’ve noticed it a few times now, but I can’t keep manually applying the work around, and it seems odd that different people would have the same issue if it wasn’t related to Discourse in some way.

Here’s a link to a topic with a video having the issue:

Here’s the link to the actual video from the topic:

Any help would be appreciated :slight_smile:

Posts: 1

Participants: 1

Read full topic

How to increase avatars size on posts without making them blurred

$
0
0

@Dax wrote:

This guide is wiki, feel free to modify and improve it!

1. Increase size and reposition the avatar

To increase the avatar size from 45px (default) to max 120px add the code above in your customize > themes > Desktop > CSS tab
(I mean, do you really need avatars bigger than 120px? :exploding_head:)
In the example above I increased the avatar’s size to 90px and repositioned it

/*Increase avatars*/

.topic-avatar {
  width: 90px;
  .avatar {
    width: 90px;
    height: 90px;
  }
}

/*Avatars in the embedded replies will remain the default size, 
increase or decrease the size according to your needs*/

.embedded-posts .topic-avatar {
  width: 45px;
  img.avatar {
    width: 45px;
    height: 45px;
  }
}

But if you use the flair for the primary groups they will be too small now

2. (Optional) Increase size and reposition flairs

Let’s increase the flair a little. By default it is 14px, I double the size to 28px.
Depending on the size of the avatars you have chosen, you will have to increase or decrease the size of the flair accordingly.

/*Increase the flair size*/

.topic-avatar .avatar-flair {
  font-size: 28px;
  width: 30px;
  height: 30px;
}

/*Leave the default size on the embedded posts,
increase or decrease the size according to your needs*/

.embedded-posts.bottom .topic-avatar .avatar-flair {
  font-size: 14px;
  width: 20px;
  height: 20px;
}

3. No more blurred avatar.

Add this script under Desktop > Head tab. Remember to change the size (‘90’) with the size you have chosen

<script>
Discourse._registerPluginCode('0.8', function (api) {
  api.changeWidgetSetting('post-avatar', 'size', '90');
});
</script>

Posts: 1

Participants: 1

Read full topic

Post is deleted and shows as hidden in topic, not marked as hidden or deleted in db

$
0
0

@jerdog wrote:

I am working on metrics and doing some crosscheck to make sure that my data is correct. I was looking at a specific post that I deleted and it shows as hidden in the topic view:

image

but in the database the hidden field is false and the deleted_at field is NULL.

Is this a bug or should I be looking at some other field / somewhere else?

Posts: 3

Participants: 2

Read full topic

[Paid] Setting up HTTPs

$
0
0

@mle wrote:

Hi,

i am looking for someone setting up HTTPS with certificate and cleaning up some maior probs on my webserver (No login/register possible on discourse). I am willing to pay for it.

Regards

Posts: 3

Participants: 2

Read full topic


Upgrading Discourse Version

$
0
0

@NickM wrote:

Hello,

I have been running an online Community through discourse since June and its been due for an update for the last couple months or so. I have been hesitant to update my version of discourse because I wasn’t sure if it would cause any problems with the design changes we have made to the look of the Community. Would anyone be able to tell me if there would be any problems with the changes I’ve made following upgrading my version of discourse? We currently are using v1.9.0.beta4 +223.

Here is the link to our site: https://community.blinkforhome.com/

Thanks!

Posts: 2

Participants: 2

Read full topic

Discourse + Nginx reverse Proxy

$
0
0

@Seferi wrote:

Hi,

I have a Raspberry Pi setup as a Nginx reverse proxy which is handling ssl (lets encrypt) as well and I’m running an nextcloud instance on my server and everything works fine. I installed discourse on the server and its working fine when i go to local address 192.168.178.131 but when i go to the url it loads for a few seconds and then gives me a http 500 error. What am I doing wrong that the nextcloud works and discourse not? Here is my nginx sites-available configuration:

server {
listen 80;
server_name forum.example.com;
rewrite ^ https://$host$request_uri? permanent;

}

server {

listen                     443 ssl;
server_name         forum.example.com;
ssl_certificate     /etc/letsencrypt/live/www.example.com/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/www.example.com/privkey.pem;

location / {
    proxy_pass http://192.168.178.131:80;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;

  }

}

I appreciate if someone could help, I spent the whole day trying different configs to figure it out.
Thanks alot!

Posts: 3

Participants: 3

Read full topic

Discourse Presence no longer showing in composer

Missing file(discourse.conf) when launching after lets encrypt update?

$
0
0

@David_fs wrote:

All I did was add in the extra two templates and try to relaunch the app and now I’m having this issue. The other templates seem to be set up pointing to this exact location. So I guess it’s being removed somehow.

This is the lets encrypt instruction list I followed.

Could anyone possibly point me in the right direction please?

Std out and error:

59:M 05 Mar 16:22:52.181 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
    159:M 05 Mar 16:22:52.181 # Server started, Redis version 3.0.6
    159:M 05 Mar 16:22:52.182 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
    159:M 05 Mar 16:22:52.182 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
    159:M 05 Mar 16:22:52.188 * DB loaded from disk: 0.006 seconds
    159:M 05 Mar 16:22:52.189 * The server is now ready to accept connections on port 6379
    I, [2018-03-05T16:23:02.181963 #13]  INFO -- :
    I, [2018-03-05T16:23:02.182422 #13]  INFO -- : Terminating async processes
    I, [2018-03-05T16:23:02.182463 #13]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main pid: 44
    I, [2018-03-05T16:23:02.182502 #13]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 159
    2018-03-05 16:23:02.182 UTC [44] LOG:  received fast shutdown request
    2018-03-05 16:23:02.182 UTC [44] LOG:  aborting any active transactions
    2018-03-05 16:23:02.184 UTC [51] LOG:  autovacuum launcher shutting down
    2018-03-05 16:23:02.186 UTC [48] LOG:  shutting down
    159:signal-handler (1520266982) Received SIGTERM scheduling shutdown...
    2018-03-05 16:23:02.191 UTC [48] LOG:  database system is shut down
    159:M 05 Mar 16:23:02.203 # User requested shutdown...
    159:M 05 Mar 16:23:02.204 * Saving the final RDB snapshot before exiting.
    159:M 05 Mar 16:23:02.213 * DB saved on disk
    159:M 05 Mar 16:23:02.213 # Redis is now ready to exit, bye bye...


    FAILED
    --------------------
    Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/nginx/conf.d/discourse.conf
    Location of failure: /pups/lib/pups/replace_command.rb:8:in `read'
    replace failed with the params {"filename"=>"/etc/nginx/conf.d/discourse.conf", "from"=>"/server.+{/", "to"=>"limit_req_zone $binary_remote_addr zone=flood:10m rate=$reqs_per_secondr/s;\nlimit_req_zone $binary_remote_addr zone=bot:10m rate=$reqs_per_minuter/m;\nlimit_req_status 429;\nlimit_conn_zone $binary_remote_addr zone=connperip:10m;\nlimit_conn_status 429;\nserver {\n"}
    f2c07371dd5260ed32f521672ebfd8958950311878495bac43a2f870669f464c
    ** 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

Can't enter app container, still working though

$
0
0

@jerdog wrote:

So was attempting to ./launcher enter app on our production box to check an nginx config setting and getting the following error:

$ ./launcher enter app
/usr/bin/docker: Error response from daemon: connection error: desc = "transport: dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused".
ERRO[0002] error waiting for container: context canceled
Your Docker installation is not working correctly

Everything looks to be running fine on the box but for this…

$ docker info
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 6
Server Version: 17.12.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 18
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: N/A (expected: 89623f28b87a6004d4b785663257362d1658a729)
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
apparmor
Kernel Version: 4.4.0-112-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.857GiB
Name: ip-172-31-20-121
ID: 6VH4:WJ6H:T26M:XTUP:QCK2:BLJI:2DYD:YRVS:4AXM:CDPM:QDRC:KFF2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Posts: 6

Participants: 2

Read full topic

Viewing all 60678 articles
Browse latest View live




Latest Images