I'm getting the following error when calling the /posts.json API function with my admin API key:
NoMethodError (undefined method `title' for nil:NilClass)
/var/www/discourse/app/serializers/post_serializer.rb:93:in `topic_title'
If I call /posts/json without an API key, or with the API key of a non-admin user, the call succeeds. Using the API key of an admin user causes the API call to fail. Regenerating the key didn't help.
I have to import the discourse user details such as groups,categories,topics to discourse from Excel sheets.Is there any API for this.or any other way to do this. Please suggest some ideas to do this.
I'd like to put together a little survey for projects that are managing their own Discourse forum. Published results will be 100% anonymous.
I wanna know things like:
Who's their hosting provider?
How beefy is their hosting tier?
How much are they paying?
Who's paying the bills? (company, donations, private person)
What release channel are they on?
Are they using any plugins?
What's the rest of their web stack like?
There's no ETA for this yet.
Do you have any other questions in mind for such a survey? Please note: I don't want it to take more than roughly 5 minutes to complete.
I run one such community myself, so I am genuinely curious to know how we match up against other communities such as ours. Are we the only ones using the Stable branch? I wanna know!
It'll also be beneficial for the Discourse team to learn more about how the trends of self-hosted installs match up against their own offering.
Hi! I've been using wp-discourse as a replacement for the default comments, and while the flexibility of the plugin is great for creating topics for new articles and associating the correct author to it, there's been some problems with syncing the comments back to Wordpress (responses aren't marked as such, certain images aren't displaying, groups aren't synced). Now, the plugin hasn't been updated for a while, so I've played around with the embed function of Discourse. This would indeed solve all of the mentioned problems, but falls short on linking the correct autor to the topic, a feature I'm quite fond of. Would it be possible to continue using the plugin for creating the topics, while using the embed code to pull the comments from them? With the current page URL in discourseEmbedUrl, the script wasn't able to do that for existing topics, so I'm not shure if I'm doing something wrong or if it's simply not possible. Thanks in advance for your help.
Is there a doc describing each row of statistics page? Where should I look for uniq visit from not logged client? In the API section?
page_view_*reqs -- its mean number of open posts/profile page? When the post is long and have to be loaded when user scroll the page it is still one page view?
I am really confused with this editor, perhaps this is because I am a chinese. Here is my problems: 1. bold and italic work only when the character before is space or paragraph begin. For example:
This seems reasonable in English since that you should bold a word not only part of a word. But, in chinese, all the words are together: 我是**中国人**. So when I want to type chinese, most of the time, bold and italic don't work. 2. image in bullet list always in a new paragraph. This creates problem when I want to realize a inline image like this:
Plus what I found before, I do not think this is a good editor. I think it will confuse most user when I click bold and two ** is added. For people who do not know mark down, what is this **?
I am a developer, not a hard core one, I found this editor hard to use. I love discourse, it is more advanced than most of the BBS. But I just can not understand why we need a geeky editor.
The "New User' education blocks are great! Could we also get "Returning User" education blocks? We've got two different ideas for how these could work:
Situation 1: User has been inactive in the community If a user hasn't visited the site or replied by email in X days, the block could be displayed to them on login. They could be used to re-enforce community rules after a period of absence.
Situation 2: User hasn't visited after a set date If a user hasn't visited the site after a particular date, the block would be displayed at login. This could be used to let them know of changes to the community rules, kind of like a 'terms of service' change, but friendlier.
What if the "Download My Posts" feature required a minimum level of user trust, configurable in the admin panel?
Use case: In private communities, the appearance of these sorts of features can undermine the sense of confidentiality. However, the ability for users to bulk export the content they have contributed to the community is clearly valuable. As a compromise, what if this feature only because available once a user met a specific trust level?
Recently we add answered solved plugin in our discourse forum and also add their badges as described here.
1 accepted badges working pretty good but 10 accepted answer badge (Tech Support) not working, it is returning error, see the below snapshot of the error.
SELECT id user_id, current_timestamp granted_at
FROM users
WHERE id IN (
SELECT p1.user_id
FROM post_custom_fields pc
JOIN badge_posts p1 ON p1.id = pc.post_id
JOIN topics t1 ON p1.topic_id = t1.id
WHERE p1.user_id <> t1.user_id AND
name = 'is_accepted_answer' AND
p1.user_id IN (
SELECT user_id
FROM posts
WHERE :backfill OR p1.id IN (:post_ids)
)
GROUP BY p1.user_id
HAVING COUNT(*) > 9
)
Please help me because when we try to preview this code implementation so it is returning an error. Thank you.
I have been adding to our badges, and I wanted to know what the badge groups/groupings do.
I can't find a way to isolate badges by group, I don't know what benefit there is to being able to sort the order of badge groups, and I'm not sure I want to find out what clicking on the 'x' in the badge group modal does by clicking on it Does the 'x' delete the group, or the group and its badges?
At the Large Synoptic Survey Telescope we have recently setup a Discourse installation at https://community.lsst.org. We're using it for a dual role of hosting internal project discussions among LSST staff and also for supporting the community who will use our software and data.
Discourse's Trust mechanism is of course great for community users who we don't know. But I've gotten some flak from members of our LSST organization for applying that Trust Level mechanism to them as well (imagine for a moment a tenured astronomer in the project complaining that the forum doesn't 'trust' him enough yet to put an image on his post).
The remedy so far has been to assign all LSST staff to a LSST group, and then give that group a default Trust Level of 2. I'm tempted to relent and give all LSST staff trust level 4. After all, LSST staff have a professional reputation to uphold, so I'm not worried about spam in this case.
However, I also know that the Trust Levels exist to foster a well-functioning community. For instance, trust levels are tied to how much a person read and learns from the posts of others, rather than how loudly/frequently that person speaks. For LSST, this community-building aspect is very important because we're a large organization that works remotely from 5+ sites. Unlike a company, scientific projects like this are somewhat more democratically run, and so sometimes the only way to promote best practices is by example and invisible systems than top-down edicts.
Some my question is: if I bypass the trust levels for project staff, will there be repercussions to how the community of project staff grows on our Discourse site? I'd be curious to hear what @codinghorror thinks since I know he cares deeply about the sociology of online communities.
Hey, i'm using a clean install of Discourse on a droplet. After solving my issues with mail not working correctly, I am now able to login, however, as soon as I login I am prompted with this:
I have no idea what this is called, so I'm not sure what to look up in order to fix it. Any suggestions on what I should do? Thanks guys.