I changed the ‘top page default timeframe’ option to ‘weekly’. This correctly changes the behavior of the ‘desktop category page style’/‘Categories and Top Topics’ view, but not that of the ‘Top’ navigation item - this still defaults to the Yearly top view.
I would like to be able to get the 20 most recent posts that are top level on a topic without having to recursively re-fetch and filter post replies until I have 20. Is there a filter for this and I have just missed it somewhere in the api?
Right now it just looks like the stream array in response includes post replies by post number. So, if I have 4 posts, [1,2,3,4] and post a reply to post 1, the stream will now be [1,2,3,4,5] and the only way I can tell that 5 is a reply to 1 is by examining the post itself, finding “reply_to_post_number”=>1 and filtering it out. Am I missing something?
We had our webmaster adjust our SSO to pass data to some custom user fields. Sadly he didn’t assign them the right field ID’s. Is there any way that I, on my end, can change our custom user field ID’s in (or out) of Discourse?
I tried deleting all of our user fields and starting over thinking they would reset and start at 1, but unfortunately they start at 6 instead (since I had previously created 5 user fields).
i.e. "user_fields":[{"id":6,"name":"Membership Type","description":"Membership Type"...
EDIT: On a side note, why isn’t this information visible in the Admin interface? If I’m creating a bunch of user fields, how would I even know what their ID is in the first place? The 1,2,3,4… convention only really works if you a) never delete a user field; and b) never move a user field up or down.
Saw this on another forum, thought the shadow looked quite nice and wondered if it might be an easy addition to the code that generates default avatars for Discourse users?
I’m somewhat new at customizing some parts of Discourse by modifying CSS, so is there a good primer out there that would teach me how to look up what part of the Discourse interface I’m looking at and what needs to be modified in order to change it?
For example, I’m trying to hide Full Names from anonymous users on our semi-private forum
When I Inspect the code this is what I see:
However, I’ve tried modifying the CSS a bunch of different ways but can’t get the Names to hide, for example:
.anon .second .full-name {
display: none;
}
Any care to help me out with this? What class should I be targetting?
P.S.: This code is based on discussion in this post:
I was migrating from S3 and had some strange problems. First, shouldn’t the rake task be looking at cooked, and not raw? Or maybe this is a vestige of the old way images were put into raw?
The rest of this is a bizarre story. I don’t know whether it will help anyone. It’s another story that ends with “it got fixed by rebooting.”
But I decided to take matters into my own hands. The images had already been downloaded from S3 and manually put into uploads, so I fixed up the uploads like this:
bads=Upload.where("url like '//xxx-discourse%'")
bads.each do |up|
up.url.gsub!(/\/\/xxx-discourse.s3-ap-southeast-1.amazonaws.com\//,'/uploads/default/')
up.save
end
and then rebaked the posts like this:
bps = Post.where("cooked like '%//xxx-discourse%'")
bps.each do |post|
post.rebake!
post.save
end
But this didn’t fix all of them, somehow. After that, I still had a bunch of posts that still pointed to S3. I tried rebaking, but still there were some upload://serfsfsef.jpg that would rebake to the old S3 URL no matter what I did. And THEN I pasted that same URL into a new post, and it generated the right (not S3) URL. And then, I fixed up cook myself like this:
bps = Post.where("cooked like '%//xxx-discourse%'")
bps.each do |post|
post.cooked.gsub!(/\/\/xxx-discourse.s3-ap-southeast-1.amazonaws.com\//,'/uploads/default/')
post.save
end
And then, if I rebaked the post, it would still revert to the S3 URL.
And then, I rebooted the container, and it rebaked correctly. I guess something got cached somewhere, somehow.
Forward long email chains to Discourse, creating posts for each email in a new topic, staging all unknown emails as new users and attaching all matching existing users by email
I frequently refer to the Official Single-Sign-On post for SSO documentation. I just noticed, however, that the reference implementation has a few accessors that aren’t mentioned in that post (notably avatar_force_update, title, and groups). Would it be possible to update that post to include descriptions of these fields?
When you import the theme below from Github, “theme settings” appear set under Customize > Theme > Theme_Name.
The Github files include a YML file with the theme settings inside it. The “Import theme” process presumably uses that YML file to make the setting fields appear. But, when I’m writing my own theme (not plugin), how do I create theme settings / parameters like this?
Hello. I’m setting up my first forum and I make a mistake! I’m not sure exactly what I did but I’m hoping someone can suggest a way out.
I have correctly installed my Discourse forum, set up SSL, and I was logged in as admin to setup categories, welcome topics, etc. I made some unknown change to the log in options. I decided to log out of admin and log in as a new user to see what it looks like to a non-admin.
Oops!
Not only can I not create a new account, I also cannot log back in at all! Both the Create Account and Log In pop ups have no fields in them. See the screen shot below.
How can I log in from my terminal and fix this? What settings do I need to set/change? Note, I can follow instructions to use the command line, but I’m not well versed and do not fully know my way around, so I appreciate as much specifics as possible.
Thank you in advance for any insight/help you can provide.
minor issue: when trying to translate (edit) a especial string to Farsi, I get:
“Opps! this page doesn’t exist or …”
the string name when I am in Farsi locale: system_messages.unblocked.subject_template
when I go to English locale, that string doesn’t exist at all, and I can translate what I want via editting “system_messages.unsilenced.subject_template”.
Hey, I have tried reinstalling the droplet and tried with other email servers like ElasticeMail and Mailjet, but when I try to activate my first account on the forum and it says Sent confirmation email I dont recieve it in my email box.