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

First-PM notification should not trigger when first login is in a topic

$
0
0

@erlend_sh wrote:

I’ve encountered the following quite a few times:

  1. Find a forum I like; start reading a few topics.
  2. Land on a topic that I’d like to respond to, so I register
  3. After registration I’m redirected back to the topic that I wanted to engage with, but then I get disrupted by our intro-PM:

I already had an action in mind, but now I’m being very strictly instructed to do something else first. More often than not, this has caused me to completely lose my train of thought, and I already know all about this PM and its contents!

To avoid this, how about an exception to the strong PM notification:

IF user is already in a topic upon first-login, THEN don’t apply the first-PM overlay.

(Sorry about the convoluted title. Feel free to rewrite it if you can come up with something better.)

Posts: 5

Participants: 5

Read full topic


Create automate Topics from Youtube Video?

$
0
0

@Imperator wrote:

Hello,

is there at the moment a way to create automate topics if a youtube video are published?

maybe over the Feed URL?
https://www.youtube.com/feeds/videos.xml?channel_id=xxxx

regards
Imperator

Posts: 2

Participants: 2

Read full topic

Earning 'Likes'

$
0
0

@alanh wrote:

Apart from having other users ‘like’ your posts, are there other ways of gaining them?

Posts: 6

Participants: 3

Read full topic

Leaseweb or vultr ? what are your recommendations

$
0
0

@Ar_89 wrote:

hello

i want to start discourse website but i’m stuck between selecting vultr or leaseweb .

Leaseweb offers bigger plan and cheaper than vultr but vultr comes with Reputation alongside with DO and AWS !!

What are your recommendations ?

Posts: 6

Participants: 2

Read full topic

Plugin for paid posts

$
0
0

@planted wrote:

What would you like done?
I am needing a plugin to force payment for posts in a specific category.
For instance, we have an advertising category and I would like to charge a $10 fee for each post via PayPal.

When do you need it done?
Within 1 month.

What is your budget, in $ USD that you can offer for this task?
Depends on how complex it is, not a huge budget but willing to pay for expertise and to ensure the plugin is clean and works without fault.

Thanks for your time.

Posts: 4

Participants: 2

Read full topic

Better topic map top link title for links to categories

$
0
0

@rriemann wrote:

Hello,

let’s say I link to a category: #feature

The topic map top link will read /c/feature or something like that. It would be nicer to have a title like Feature Category.

PS: I noticed this in a private message.

Posts: 4

Participants: 2

Read full topic

Unable to start discourse after patching instance

$
0
0

@shaneoh wrote:

I ran some standard updates on the Ubuntu machine I have hosting my discourse instance. Now I cannot start discourse again.

I’m not a docker user, but the instructions I inherited from a previous staff member who set this up are to run:

./launcher stop app
./launcher rebuild data
./launcher rebuild app
./launcher start app

But when I run

./launcher rebuild app

It takes forever and finally fails. The reason for the failure seems to be below:

URGENT: could not connect to server: No route to host
Is the server running on host “172.17.0.1” and accepting
TCP/IP connections on port 5432

Can anyone please help with this? I’ve been messing around for hours now.

Posts: 22

Participants: 5

Read full topic

Embedded Youtube videos fix size


SSL activation: Error after rebuilding container

$
0
0

@paamayim wrote:

Hello,

After following this post:

And following the steps, I received this error, after rebuilding the docker container:

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"}
28069273240fec54a65b7f44cd772e34ef59f59a34bf7d74a8bc8bf5ff28bb12
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

I used the DigitalOcean one-click setup and upgraded to the latest discourse.

I noticed nginx was not automatically installed. Does this mean I have to install that? Not sure what went sideways.

Help is appreciated, thanks!

Posts: 5

Participants: 2

Read full topic

Invisible category

Discourse - awesome script!

$
0
0

@Stranik wrote:

Hello!

I would like to explain why I chose Discourse. We have an experience in creating the bid societies but in general we based on such script as WeCenter (php).

It is almost the analog of Yahoo! Answers and Quora did not get enough spreading because of limited localization (Chinese language). But according to the functions I needed another system.

It was a long way: esoTalk - Vanilla - Flarum - NodeBB and only after that Discourse.

I was looking for the optimal system for communication. Something similar between Q&A systems of firm, precise, laconic answers and the format where people can relatively free share their experience on different subjects. I.e. to have the constructive dialogue.

Many of the above listed scripts are really instrumental to achieve various subjectives. But only Discourse fit my purpose completely.

What we needed were the powerful, extended functionality, stable and flexible system. Powerful, stable basis is very important for any activity. And Discourse has a powerful potential.

Thanks to all developers and other participants of this and another projects for the great effort and contribution trying to constantly improve Discourse.

Thank you one more time. And all the best in your future endeavors.

Posts: 1

Participants: 1

Read full topic

Too many connections to DB, how to optimize

$
0
0

@TomekB wrote:

I have frequent 500 errors due to exceeding number of connections to my DB.

This results in errors like this in /logs:

Job exception: FATAL: remaining connection slots are reserved for non-replication superuser connections

My config:

UNICORN_WORKERS: 12
UNICORN_SIDEKIQS: 2
DISCOURSE_DB_POOL: 90

My DB under load performs like this:

How can I optimize this? Please keep in mind the default config of PSQL has max connections limit set to 100.

I have plenty of RAM and CPUs for both web_data container and data container (which is hosted on a second server).

Update: I have a lot of open connections to DB from sidekiq, a lot more than it should (I have just 2 sidekiqs with 5 threads each).

Posts: 9

Participants: 3

Read full topic

Install discourse with internet access only via proxy

$
0
0

@jimbob wrote:

Hi All,

(Note that I have deliberately broken all domain names by inserting whitespace because they are getting detected as links, and as a noob I cannot post >2 links in a post)

I am trying to install discourse on a redhat VM at my work.
I have the following constraints:

  • Host has no direct access to internet. Access is only via http/https proxy
  • Host cannot resolve external DNS names (this is handled via the proxy)

yum, git, docker on the host are all configured to use the proxy.

I have discovered that I can pass the installer docker arguments, but these do not seem to get used in all locations.
I hope that someone on the forum can give me a pointer to progress?

I have observed that the installed needs to be able to connect to github .com and to rubygems .org.
Based on this I am using the following command to bootstrap with static host mappings for github and rubygems, and passing https proxy env variable:

./launcher bootstrap app --docker-args "--add-host github.com:192.30.253.113 --add-host rubygems.org:151.101.2.2 --add-host myproxy:10.10.10.10 -e HTTPS_PROXY=https://myproxy:8080"

The problem is that only github can be contacted. The installer cannot reach rubygems, and I get a failures like this:

Fetching source index from https://rubygems.org/
Need to query more than 500 gems. Downloading full index instead...
HTTP GET https://rubygems.org/quick/Marshal.4.8/libv8-5.7.492.65.1-x86_64-linux.gemspec.rz
Errno::EHOSTUNREACH: Failed to open TCP connection to rubygems.org:443 (No route to host - connect(2) for "rubygems.org" port 443)
/usr/local/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in connect'
...
...
...
Network error while fetching
https://rubygems.org/quick/Marshal.4.8/libv8-5.7.492.65.1-x86_64-linux.gemspec.rz
(Failed to open TCP connection to rubygems.org:443 (No route to host -
connect(2) for "rubygems.org" port 443))

I, [2017-07-18T15:24:15.899372 #13]  INFO -- : Terminating async processes
I, [2017-07-18T15:24:15.899452 #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: 42
I, [2017-07-18T15:24:15.899557 #13]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 155
2017-07-18 15:24:15 UTC [42-2] LOG:  received fast shutdown request
2017-07-18 15:24:15 UTC [42-3] LOG:  aborting any active transactions
2017-07-18 15:24:15 UTC [49-2] LOG:  autovacuum launcher shutting down
155:signal-handler (1500391455) Received SIGTERM scheduling shutdown...
2017-07-18 15:24:15 UTC [46-1] LOG:  shutting down
155:M 18 Jul 15:24:15.905 # User requested shutdown...
155:M 18 Jul 15:24:15.905 * Saving the final RDB snapshot before exiting.
155:M 18 Jul 15:24:15.908 * DB saved on disk
155:M 18 Jul 15:24:15.908 # Redis is now ready to exit, bye bye...
2017-07-18 15:24:15 UTC [46-2] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development' failed with return #<Process::Status: pid 277 exit 17>
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 development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
6e41afbf21a5aa0eb0e98e620801f06ae8bffb69f64c3c059475c00f66f17261
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Seems that whatever is connecting to rubygems is not respecting the https proxy environment variable passed to docker, hence I am getting the:
Errno::EHOSTUNREACH: Failed to open TCP connection to rubygems .org:443 (No route to host - connect(2) for “rubygems .org” port 443)

Any ideas how I can progress this?

BTW for anyone considering installing behind a proxy, think long and hard - it’s gruelling :frowning:

Posts: 5

Participants: 3

Read full topic

Mini (Inline) Onebox Support RFC

$
0
0

@eviltrout wrote:

One thing we’re considering adding shortly is support for mini oneboxing. This could also be thought of as “inline” oneboxing.

The idea is that certain links would be replaced with text if they match supported hosts. Here’s how I think it could work:

Mini Spec

  1. A user inserts a link while composing

  2. The link must not be on a line by itself (regular oneboxing)

  3. The link must not already contain descriptive text in the form of [some text](url) or <a href="url">some text</a>

  4. The link must match a whitelist of supported “mini oneboxers”

If so, the link’s text will be replaced with an appropriate value. For example

  • When linking to another topic on the forum, it would display the topic title

  • When linking to a whitelisted site, it would display the contents of the og:title or <title> tag.

Other Ideas

I think it’s also worth trying embedding an emoji or favicon for the link. Wikipedia does this with external links:

Posts: 8

Participants: 6

Read full topic

Import Questions

$
0
0

@revrag wrote:

OK, so I’m having some issues importing from Xenforo to Discourse.

I installed Discouse with the Docker container and was working my way through these instructions:

I have mysql installed and the Xenforo database imported to it.

Problem: when I run “bundle install --no-deployment” (after adding mysql2 in the previous step) I get a couple of errors. The first is that I shouldn’t run it as root and the second is: “Your Gemfile has no gem server sources” and suggests I add ‘https://rubygems.org’. Where do I add this.

EDIT… OK so it appears there are several “Gemfiles” . Do I add mysql2 to the one in /var/www/discourse?

Posts: 1

Participants: 1

Read full topic


Plugin: notification on change to user settings

$
0
0

@bcd wrote:

I’m developing a plugin to utilize Discourse as the SSO for another web application. The other site utilizes the same username, email address, and avatar as the Discourse forum. Its the opposite of the normal SSO integrations.

I’m able to utilize the MessageBus to receive notifications of logout of the Discourse forum, triggering a similar logout on the other web application. This was really easy to set up, definitely appreciate the simplicity of using MessageBus to listen for events.

I’d like to get something similar working for any changes (in the Discourse forum) the username or email or avatar for any given account. There doesn’t seem to be a MessageBus message for these types of changes though.

One solution would be to sprinkle around MessageBus notifications to the various places where those user attributes are updated in the Discourse code, create a pull request, etc. Feels like I’m missing something important though, because I can’t be the first to try this sort of thing.

Any suggestions?

Posts: 1

Participants: 1

Read full topic

Persian language translations

$
0
0

@pamjadi wrote:

Hello,

I’m new to Discourse.
Just installed my demo site to find out that some ‘Persian’ translations are messy and not correct.
The problem is that, it seems reviewed translations with a blue tick are not editable.

Can I edit them locally? I don’t seem to find lang files anywhere.

Posts: 5

Participants: 4

Read full topic

Differentiate user fields on signup form better

$
0
0

@LukasReschke wrote:

In our discourse forum we setup a User Field asking the user to specify their software version.

This worked nicely, however, the signup screen doesn’t really differentiate this field from the other existing ones. And since it is directly displayed below the “Password” input field many people copy-pasted their password in there and thus leaked it to the public:

We have now removed the User Field again and deleted all existing entries due to people leaking their password. Would it be possible to differentiate this better with some kind of divider or so? Just so that people don’t type their password into the next field since they obviously don’t read the headers.
(Which kinda makes sense since a lot of web applications require someone to type in their password twice so they just do so)

Thoughts?
– Lukas

Posts: 5

Participants: 3

Read full topic

Adding user to group from API gets "BAD CSRF"

$
0
0

@pfaffman wrote:

I’m trying to add a user to a group via the API. From the docs and from what I see happening when I add a user from the web browser, it appears that this should work, but I’m getting “BAD CSRF”

curl -H 'Content-Type: application/json' -X PUT -d '{"api_key":"THE_KEY", "api_username":"system", "usernames":"joeuser" }' https://community.mysite.com/groups/42/members.json

I’m stumped. Is there something obviously silly I’m doing here?

Posts: 5

Participants: 2

Read full topic

An option for user field to be hidden in sign up

$
0
0

@hnaseri wrote:

We want some user fields that are specific to our own administration needs. We don’t want the user to see them in sign up. However it seems there is no such option right now.

Posts: 4

Participants: 3

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images