I'm looking for the code involved in discourse's logging functionality. I'd like to hook into it in order to modify it. What logs to production.log? If it helps, my eventual goal is to log to syslog.
I'm using Google OAuth2 integration, and it's working very well, but Is possible to restrict only google users from "mydomain.com" instead of all users from universe?
I have cleared my browser cache, I have done what is indicated in these thread: Empty site after 0.9.9.13 upgrade and honestly I have no idea what has happened by which offer all possible information.
(I am going to divide the topic into 2 parts by the limitations to add more than 2 links)
I see that one cant create a Hebrew username, i understand that at some sites this would be confusing, but is there anyway if the site is only for Hebrew speakers, is there any problem to allow it?
Coming form phpBB where Hebrew usernames are allowed...
New install of docker + discourse. When using admin/docker and clicking "Upgrade to the Latest Version" the following errors show up:
error: unable to unlink old 'lib/validators/upload_validator.rb' (Operation not permitted)
error: unable to unlink old 'lib/validators/username_setting_validator.rb' (Operation not permitted)
error: unable to unlink old 'lib/version.rb' (Operation not permitted)
warning: unable to unlink log: Operation not permitted
fatal: cannot create directory at 'log': Operation not permitted
I'm sure, previously, clicking the title of the post on the flags page took you to the post being flagged - at the moment it's simply linking to the topic (i.e. the post is missing from the URL):
I have seen in Transifex there are 3 translation options for plurals: one, few and many. Are they all in use?
If yes, then we probably could assign one -> A, few -> B and many -> C. However, it will be confusing for translators because one is actually one, while the case A includes all numbers with the last digit = 1 (except 11).
NB. If we solve this, it will also apply to Ukrainian language.
The proper solution could be the following:
Allow for a custom function to be specified in the translation YML file. That function should return a key that should be used. Then we will name keys accordingly for Russian translators, for example:
1_or_21
2_or_22
5_or_55
That will make it very clear for any translator, because all they'll have to do is to use some %{count} keeping in mind that its possible values are 1 or 21, 2 or 22, and 5 or 55.
We can avoid input of functions by allowing keys to be calculated by simple boolean/mathematical expressions in YML file, for example:
plural_keys:
1_or_21: n==1 || (n > 20 && n % 10 == 1)
2_or_22: n == 2 || n == 3 || n == 4 || (n > 20 && (n % 10 == 2 || n % 10 == 3 || n % 10 == 4) )
5_or_55: default
This could well solve possible problems with other languages. Especially the number of keys needed and the intuitiveness of their names. Just define your language-dependent keys and use them through translation. It seems as boolean+math definitions are more than enough to describe any possible case.
I am also aware of the post below, and some cases in that thread would greatly become much simpler with what I proposed above.
Has it been considered to show a more user-friendly UX to people without JS? I'm mainly talking about the most basic features of a forum, such as registering, logging in and posting, all of which seem to be impossible as of now.
It would be better if Discourse could remember where I am when clicking a topic and could bring me back exactly where I was instead of the top of the page after I click "back" in the browser
Now, here is where i stop understanding, could you point me to the places where the action is happening?
My guess is after, or while the page loads, ember bootstraps, and either detects the html present and renders accordingly or it looks at the url and load the route for it.
Does it look at the html rendered in the <noscript> tags?
I would like to understand better how ember app takes control of the process after the rendering. I see no {{outlets}} or simple stuff.
I'm in the process of porting over my old site to a combination of ghost (for news) and discourse (for our forums). I'd like to use discourse as the comments engine for ghost (similar to the current set up), but want to understand exactly how the embedded javascript works.
If I have my news topics already imported to discourse (complete with comments), how can I ensure my ghost blog picks up the correct topic from discourse (we run a separate import script for ghost)? Is there a specific field I need to keep synchronised between the two systems?
I assume there's a field (probably the blog post's URL?) I can set in the discourse site's database to indicate if a given post is a companion topic? I'd like to avoid thousands of duplicate topics if possible .
I'm hosting my own Discourse server and have everything working except I get the browser's placeholder rectangle when the Emoji images should be. The URLs in the browser look like
The emoji images are only to be found in the plugins/emoji/public/images directory in my Discourse directory. Should they somehow have been copied to plugins/emoji/assets/images (which is where the JS and CSS are)?
I'm running in development mode on version 0.9.9.14 of Discourse on Ubuntu 13.10.
Before I describe what I'm seeking, I wasn't sure if this should be a feature request or a plugin request. If I've classified it incorrectly, please let me know.
Problem: Discussion boards often have topics that follow a standard form. It would be easier for users if this form could be associated with a category so that when they attempt to make a topic in that category, the basic layout appears in the text box.
Use Case 1: Technical Support Form Basic information is generally required when troubleshooting a technical issue.
Operating System
Browser and browser version
Plugin version
etc
Use Case 2: Feature requests A standard feature request makes browsing through new requests easier. It can quickly bullet a list of items explaining what is needed, why it's needed and provide possible use cases.
Problem trying to solve
Use cases
Brief explanation of why this would help
Use Case 3: Gaming community player report In gaming communities, it is common to have users report other users for (perceived) rule violations on the game servers. To effectively follow up on these the administrators usually need common data.
Unique ID of offending player (name, steam id, minecraft name, etc)
Time of incident (useful to check logs)
Violation
Other players that saw the incident
Use Case 4: Buy/Sell/Trading request On sites that facilitate informal buying/selling/trading of items, it is helpful to have a similar layout for each listing.
Buy/Sell/Trade
Item name
Description
Price/Looking for
Payment method desired
How this would help: In many forms, if an area is expected to confirm to a standard format, the user has two options. The first is to risk it and just post their problem. This generally results in a user being pointed to an announcement thread with the form to fill out and being told to edit or repost. The second option is to follow those instructions by copying and pasting the form into a new topic and then filling it out. Both of these actions require the user to search out the form template before they will be helped.
By providing a means for the site administrators to define a form to be associated with new topics in a category, the user doesn't have to take the step of copying/pasting the form. It is provided for them.
I'm trying to bootstrap Discourse, and it throws this error:
/pups/lib/pups/exec_command.rb:85:in `spawn': cd /var/www/discourse && sudo -E -u discourse bundle exec rake db:migrate failed with return #<Process::Status: pid 185 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>'
9de2a95989d13cdab19d455db461fb843ed73212682b5dd32caaa1b1fcc6d878
FAILED TO BOOTSTRAP
I'm wondering if it has to do with the fact that the database and user aren't just "discourse" as it seems to do by default. Any ideas what might be wrong?
Edit: Figured it out - it wasn't able to connect to the Redis server.
When unpinning the "This site is a sandbox" message, it drops down to its normal chronological spot in /latest, but still maintains the top spot on /categories in the uncategorized category's summary of the latest 3 topics.
I'd like to edit the meta tags so that when someone shares a post or topic to facebook, the user's name is displayed before the text of the post. i.e. Caleb_Richard - {post text} . What files would I look to in order to edit this?