cosmo wrote:
Hey,
This is a dumb question. When I first installed Discourse, I remember seeing a thread for forum users on how to use the forum with images. Seems like that page disappeared, or am I confused? Anyone?
Posts: 4
Participants: 2
cosmo wrote:
Hey,
This is a dumb question. When I first installed Discourse, I remember seeing a thread for forum users on how to use the forum with images. Seems like that page disappeared, or am I confused? Anyone?
Posts: 4
Participants: 2
cosmo wrote:
Hey,
I'm unable to re-invite a user with the same email, whose account was deleted. When they view the invitation page it's blank.
Log: "ActiveRecord::RecordInvalid (Validation failed: Email is not allowed.)"
Posts: 5
Participants: 3
David McClure wrote:
In this topic, it was decided that Try would not get continuous deployments because it is more of a demo site.
But I think there could be a place for a continuously deployed test site / sandbox (test.discourse.org?)
Not an urgent matter by any means, but throwing it out there as food for thought.
Posts: 1
Participants: 1
Arpit Jalan wrote:
So you want to redirect
www
tonon-www
domain? Great, let's get started!In this tutorial we'll show how to redirect
www.example.com
toexample.com
.Add DNS Record
Add the A record for
www
same as that of original domain, here is the sample A record forwww
from Namecheap:Edit Configuration FIle
Open configuration file
app.yml
. From console, run these commands:cd /var/docker git pull nano containers/app.yml
Configuration file will open in nano editor. Search for hooks (with Ctrl+W) in the file:
hooks: after_code: - exec: cd: $home/plugins cmd: - mkdir -p plugins - git clone https://github.com/discourse/docker_manager.git
Add
after_web_config
block to thehooks
(proper indentation is important):hooks: after_code: - exec: cd: $home/plugins cmd: - mkdir -p plugins - git clone https://github.com/discourse/docker_manager.git after_web_config: - replace: filename: "/etc/nginx/nginx.conf" from: /sendfile.+on;/ to: | server_names_hash_bucket_size 64; sendfile on; - replace: filename: /etc/nginx/conf.d/discourse.conf from: server_name _ ; to: server_name example.com; - replace: filename: "/etc/nginx/conf.d/discourse.conf" from: /server.+{/ to: | server { listen 80; server_name www.example.com; return 301 $scheme://example.com$request_uri; } server {
Replace
example.com
withyour_domain.com
andwww.example.com
withwww.your_domain.com
.After completing your edits, press Ctrl+O then Enter to save and Ctrl+X to exit.
Rebuild Container
Run this command:
./launcher rebuild app
Congratulations, that's it! Try visting
www.your_domain.com
, it will redirect toyour_domain.com
!
Posts: 2
Participants: 2
cosmo wrote:
Hey,
Immediately after running the docker install command
wget -qO- https://get.docker.io/ | sh
I get the following error. "modprobe: FATAL: Module aufs not found."I'm on digital ocean, 2GB Ram 40GB SSD. I have followed the guide exactly. redis, postgres has been installed and working properly.
Posts: 8
Participants: 3
Frank wrote:
Can I see the current Discourse version number by searching the github repo? I typed in 'version' in repo search and looked through some code snippets (if it was there (somewhere) then it wasn't immediately apparent and I overlooked it).
Posts: 4
Participants: 2
Tobias Eigen wrote:
I really like the category logo images and have been setting them up for all categories on the Kabissa forum. But I am realizing that I need to resize and crop the images so they display properly on computers and smartphones.
See the screenshots below for what is happening now. Looks great on computer, too big on smartphone.
So my question to the community is this: what are the ideal dimensions for category logo images? Or is there an option to not display logos on mobile devices with small screens? Or perhaps are there plans in the works to enable discourse sites to serve up differently sized images on different devices?
Thanks much!
Posts: 4
Participants: 3
Matthieu wrote:
Recently I saw a talk from Massimo Banzi. He have argued that even if it is a bit the mess, people should have the right to speak in their own language and not in english. Actually, the Arduino community is quite successful and has a multi-language forum/documentation so it seems to work.
Here there are discussions about having multi-forum per language or multi-language for this forum but I did not find any people feedback about enabling multi-language discussions on one forum.
So what is for you, the best and efficient way to do it with Discourse?
Basically, do you think it is better to use category per language or tag/language ? Or several english categories + languages categories (similar to the arduino forum) ?I would need at least English-French-Spanish-Italian-German.
Posts: 1
Participants: 1
David Winslow wrote:
I created a skin for MediaWiki that follows the Discourse theme.
You can find the project page and source by following these links:
https://www.mediawiki.org/wiki/Skin:Discourse
https://github.com/themachinist/DiscourseSkin
Posts: 1
Participants: 1
Hecbuma wrote:
I'm added a pluging to my app.yml and the time I do
./launcher bootstrap app
it fails this is the log[168] 05 Aug 19:34:44.366 # Server started, Redis version 2.8.9 [168] 05 Aug 19:34:44.367 # 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. [168] 05 Aug 19:34:44.376 * DB loaded from disk: 0.009 seconds [168] 05 Aug 19:34:44.376 * The server is now ready to accept connections on port 6379 I, [2014-08-05T19:34:45.145478 #36] INFO -- : HEAD is now at b85c78a return unescaped HTML here I, [2014-08-05T19:34:45.146220 #36] INFO -- : > cd /var/www/discourse && git clean -f I, [2014-08-05T19:34:45.177419 #36] INFO -- : Not removing vendor/bundle/ I, [2014-08-05T19:34:45.177712 #36] INFO -- : > cd /var/www/discourse && git pull error: Could not read 6b5d9a1ede96e73d14cfa732e9370180ff28814d fatal: revision walk setup failed error: https://github.com/discourse/discourse.git did not send all necessary objects I, [2014-08-05T19:34:48.969722 #36] INFO -- : 2014-08-05 19:34:48 UTC LOG: received smart shutdown request [168 | signal handler] (1407267288) Received SIGTERM, scheduling shutdown... 2014-08-05 19:34:48 UTC LOG: autovacuum launcher shutting down 2014-08-05 19:34:48 UTC LOG: shutting down [168] 05 Aug 19:34:48.975 # User requested shutdown... [168] 05 Aug 19:34:48.976 * Saving the final RDB snapshot before exiting. 2014-08-05 19:34:48 UTC LOG: database system is shut down [168] 05 Aug 19:34:48.990 * DB saved on disk [168] 05 Aug 19:34:48.990 # Redis is now ready to exit, bye bye... /pups/lib/pups/exec_command.rb:85:in `spawn': cd /var/www/discourse && git pull failed with return #<Process::Status: pid 174 exit 1> (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>' e184b0b261da24fbeb8b548e716cb19cea0401a13ad2c899907e5daaf01fc8e6 FAILED TO BOOTSTRAP
this my docker version
docker --version
Docker version 0.11.1, build fb99f99any clues?
thanks.
Posts: 1
Participants: 1
Pugwash wrote:
When clicking on the site logo to return to the main topic list on IE 11 the page is frequently populated with stale data. Forcing a refresh fixes the problem.
Some simple steps to reproduce..
- Create a new topic and return to the main topic list (i.e. the application root).
- Go back into the topic and modify the category.
- When returning to the main list the post reverts back to the original category
- Also going back into the post again will revert the category there too.
This was reported on our own meta area today, just fired up IE 11 and and can confirm this behaviour. It seems IE 11 likes to pull everything from the cache or is ignoring your headers?
Here's my user-agent:
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
And some pics... probably not necessary:
Posts: 15
Participants: 4
Anton wrote:
Dear Russian speaking community!
Currently, Russian translation cannot be finalized because there are some issues that need your attention and approval. If you run a Russian version of Discourse, you should have noticed that the home page has many untranslated strings here and there that spoil the page:
I'm trying to sort out the Russian pluralization rules once and for all, and I've proposed a solution to @neil and @techAPJ in private messaging.
While I've discussed my proposed solutions with some Russian-speaking developers this side, a confirmation from Discourse community is still needed, so please either support or criticize but do not pass by if you speak Russian.
Introduction
For translations to be possible, there is a function which returns a
translation key
based on a number.For example, for English there are only two keys:
1 =>one
2, 3, 4, ... =>other
Thus, there are only two versions of any string in English - for one and for many things.
For example:
1 =>one
=>1 cat
20 =>other
=>% cats
=>20 cats
For every language, a particular set of keys can be defined in order to allow translators to pluralize strings correctly. So, some languages need only 2 keys, but others, as Russian, need 3 or even more.
Problem
So, we have to translate, for example,
% message(s)
to Russian:
- 1 сообщение (the suffix is e)
- 2 сообщения (the suffix is я)
- 3 сообщения
- 4 сообщения
- 5 сообщений (the suffix is ий)
- ... and so on
We can see that there are 3 versions, and they cover all possible numbers.
There are currently 2 problems with pluralization keys for Russian:
Problem 1. There are 4 keys while we need only 3. The keys are:
one, few, many, other
Problem 2. The current keys are not intuitive and make no sense.
While it may seem thatfew
is for 2 to 4 (2,3,4 сообщения
), it is actually wrong because 15102 will also use the same suffix -15102 сообщения
, but it is nowhere nearfew
.So, while there are 4 keys in the system instead of 3, and while the keys are named not intuitively, we will continue struggling bad and/or incomplete Russian translation for Discourse.
I want to fix it once and for all and to finalize the Russian translations, but I cannot before you, the community members, say YES for the solution described below, or critisize it - that's what Discrouse team requires!
Solution
The solution is simple - I propose to use 3 keys: one, two and five.
Firstly, it covers all possible keys, which can be seen here: http://jsfiddle.net/V2f93/5/
Secondly, I guess it should be very intuitive for any translator to understand which translation to make for which key.
While it is not clear what is difference between
few
andmany
(old keys),
it is very clear what istwo
andfive
(proposed keys).So for example for
% message(s)
we will have 3 keys with the following Russian translations:
one
=>1 сообщение
two
=>% сообщения
five
=>% сообщений
While for English we have only two keys:
one
=>1 message
other
=>% messages
Please vote!
Now what is important is your opinion.
If you would bee a translator, would you understand what translation to write in a box like this?Please vote, and if you don't like the idea, then please propose your own keys!
- I support
one, two, five
- I support
one, two, other
- I want to keep
one, few, many
- I want to propose a better idea (please explain in a reply to this topic)
- I do not understand what this all is about
- I would like to vote, but the explanations above are unclear and confusing!
Thank you for your time and attention.
Posts: 8
Participants: 6
Rikki Tooley wrote:
The explanation
So this isn't well documented at all, but new versions of Internet Explorer have a "feature" which transparently and aggressively caches everything. My experience of this comes from developing Windows Phone apps (via HttpClient), where repeated calls to a given API endpoint would return the same payload - it won't even ask the server if it has changed, but instead just returns what was cached previously. I believe the caching is based on the URL, because a workaround to this is to attach a random query string onto the end of the URL.
An example implementation can be seen in my Last.fm .NET library:
An alternative solution which I haven't tested and don't fully understand:
Previously I believed this only applied to Windows Phone. But I am seeing the same kind of behaviour in IE11 Desktop and Metro when using Discourse - a potential reason is Microsoft's continuing march to One Codebase For Everything.
The problem
- Visit main page and observe topic counters and stuff
- Left click on a topic link (in order to clear a counter)
- Read a bit/ wait until you know the main page will have changed due to new activity
- Click the logo to go back to the main page
- Observe the page being the same as it was when you left.
A manual refresh is required to get the new state.
I could be doing something wrong, pinning the blame wrongly on IE when Discourse is at fault, but I don't think so because I don't see the same thing happening in Firefox.
Can anyone else reproduce this?
P.S. if anyone is wondering why I'm opening so many IE related issues lately it's because I figured that since I'm fairly unique in being an active user of Windows and Windows Phone 8+ - most dev people don't use IE habitually - I thought it'd be a good way to help out. After all, over 50% of real people still use IE.
Posts: 5
Participants: 2
Anne-Margaret wrote:
As a community member - I did not see a way that I could mark a post as inappropriate - or a way to alert the moderator that there is a problem in the community (though I may have missed it). Will this be available?
Posts: 3
Participants: 3
I'm trying to run
bench.rb
and I'm getting the following error during the benchmark while it's creating 2000 replies./var/www/discourse/lib/post_creator.rb:206:in `setup_post': undefined method `posts' for nil:NilClass (NoMethodError) from /var/www/discourse/lib/post_creator.rb:70:in `block in create' from /var/www/discourse/lib/distributed_mutex.rb:21:in `synchronize' from /var/www/discourse/lib/distributed_mutex.rb:5:in `synchronize' from /var/www/discourse/lib/post_creator.rb:135:in `block in transaction' from /var/www/discourse/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction' from /var/www/discourse/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction' from /var/www/discourse/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' from /var/www/discourse/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/transactions.rb:208:in `transaction' from /var/www/discourse/lib/post_creator.rb:129:in `transaction' from /var/www/discourse/lib/post_creator.rb:68:in `create' from /var/www/discourse/lib/post_creator.rb:102:in `create' from script/profile_db_generator.rb:107:in `block in <main>' from script/profile_db_generator.rb:105:in `times' from script/profile_db_generator.rb:105:in `<main>'
Posts: 3
Participants: 2
Helder Ribeiro wrote:
I upgraded Discourse today, and got a permanent 502 Bad Gateway after that.
Then I followed this and the site got back online: https://meta.discourse.org/t/users-on-docker-1-1-0-and-1-1-1-update-docker/17973
But now I have
[missing {{link}} value]
after the username on every notification shown in the top-right menu. Has anyone else seen this? Any help fixing it would be appreciated. Thanks!
Posts: 5
Participants: 3
Mateo Sol wrote:
One of the things I'm loving about Discourse is the badges and Trust system which is why I'm considering installing it.
My community is very label driven; they take pride in the different identities (psychology MBTI, Astrological etc..) they belong to.
I've always found that starting new forums is pretty difficult so creating "egocentric" incentives is always an advantage.
My question is, would it be possible to have a small icon, or a text status ribbon that describes the different labels these people identify with? And if so, is it possible to have multiple badges/statuses?
I was thinking of creating groups so that each person could join and then once they are a member of it, it can display an icon or colorful text ribbon under their username. Or maybe self-assigned from a list of badges available based on the users level?
What other incentive driven features are available for Discourse?
Posts: 5
Participants: 3
David Mackey wrote:
Continuing the discussion from Multisite configuration with Docker:
I love Discourse and first want to just say 'thanks' to you guys for your work on an excellent application.
But...
Gahh, I hate having to say that...but, I'm feeling a bit overwhelmed when I read some Discourse threads - for example the one I've linked to above (multisite configuration).
Over time these threads get cluttered. For example, with the thread I added below:
I'm wondering how you guys envision folks consuming this post in the best way possible currently...and if you have any ideas for how to make it more easily consumed in the future?
I'd suggest that a "cleaning" mechanism of some sort would be quite handy. For example, the above thread I made is old news. It really is pretty useless - @riking made the necessary edit - the related posts are now "useless."
A cleaning mechanism might work something like this (and I'm just spitballing here trying to be helpful )
- One could select a thread of posts and "collapse" them. They would remain part of the same thread, in the same location, but individuals would click on them collapsed version to expand and see the full thread. This way the info. is still accessible, but isn't cluttering up what's really important.
- One could have a "break into new topic" option that would pull off this specific sub-thread into a new topic....err, it should probably be an old topic, otherwise everyone would see this useless info. as unread when they next visited the site.
- The moderator could just delete the clutter.
- Users could be responsible for deleting their own clutter.
Dave
Posts: 2
Participants: 2
Sam Saffron wrote:
Currently when you click "Dismiss Unread" we flip the tracking status on all topics in the list to "Regular".
The way I see it there are two use cases for the button.
I just need some breathing room, empty the list for now.
I don't care about these topics anymore.
At the moment we are taking definition #2. So I think we should be explicit of the effect, otherwise people who misunderstand it to be #1, get a rude surprise.
Can I rename "Dismiss Unread" to "Stop Tracking Topics" or "Stop Tracking" ?
Posts: 53
Participants: 16