September 4, 2016, 3:44 pm
@Simon_Cossar wrote:
I'm making an api call to site.json
to get a site's complete list of categories and subcategories. If I include an api key and username in the request I get the current list. If I make the request as an anonymous user I get the cached version of site.json
.
Sending the forum's api key in a GET
request seems risky. Is there a safe way to get the uncached version of site.json
as an anonymous user?
Edit: sometimes the fastest way to learn is to ask a dumb question. I did a bit of research. You can close this.
Posts: 2
Participants: 2
Read full topic
↧
September 4, 2016, 10:03 pm
@keith1 wrote:
I've found myself struggling to rename the trust levels / badges in my setup. At some point, I had renamed Trust Level 4 as "Mentor", and am now attempting to name it "Master".
As you can see here, I've set every section in the text content to "Master"
...however I must be missing something, because the badge itself still says "Mentor."
Can anyone point me in the right direction here?
Posts: 2
Participants: 1
Read full topic
↧
↧
September 5, 2016, 2:44 am
@Zoltan_Szathmary wrote:
Hi there all!
We were trying to make our discourse version appear in Hungarian - sadly, the translation of discourse into our language has stopped some time ago, and I could not figure out a way to get the already translated file (not to mention that some of the strings were not translated well and I could not fix them).
So I got the yaml file from github and used a translator program (Crowdin translation). Took me some days to translate everything into hungarian (by everything I mean that every string that our users can see, the admin part is still in english).
Where or how can I upload it if I want to help the community, or how can I share it? Is it okay if I just put it up here, let's say with a big writing that says HUNGARIAN YML FILE - admin part in english (131.8 KB) or is there a way to help the original translation with this file?
To check what it looks like, this is our discourse: https://hello.inetrack.hu
It does require some proofreading as parts of it might not be used by others as it is used by us (hungarian language is beautiful and a beast at the same time).
Any ideas are appreciated. And if some hungarians need this, we are happy to share (and save you 40 hours of translation)
Posts: 3
Participants: 2
Read full topic
↧
September 5, 2016, 3:07 am
@mbajur wrote:
Hello there
One of my users reported me today that he's receiveing a huge amount of mail notifications from our discourse forum. I signed-in on his account and checked what's up - it turned out that he has a highest subscribtion level set for all topics in one of our categories. He could obviously click them one by one and change the subscription level but...tht category has a dozen or so thousands of topics in it so that would be pretty painfull.
- How is that possible that he has subscribed all topics just like that? Is that doable by discourse UI? I asked him if he done anything related to topic subscribing recently and he said no. But, who knows
- Am i able to unsubscribe him somehow through admin panel or anywhere else? I'm a pretty fresh discourse admin and there is a possibility i just can't find some button for that.
As a tip: my forum was migrated from phpBB3, maybe there was some glitch in migration script?
Thanks in advance
Posts: 8
Participants: 3
Read full topic
↧
September 5, 2016, 3:22 am
@bartv wrote:
Hi,
I'd like to be able to load our Discourse data into Elastic Search for reporting purposes. Has this been done before, and can anyone recommend 'best practices' or a plugin to help us get started?
Thanks!
Posts: 1
Participants: 1
Read full topic
↧
↧
September 5, 2016, 5:03 am
@Cylae wrote:
Hello,
I would like to know if it was possible to set up an automatic reply for a category. For example, if a user create new topic in the "bug" category, I wish that the system or another predefined user sends an automatic response "Your request has been taken into account," or something like that. Is it possible ?
Thanks ![:slight_smile: :slight_smile:]()
Posts: 3
Participants: 3
Read full topic
↧
September 5, 2016, 6:51 am
@Trash wrote:
We need to migrate all our database to a new bigger server (digital ocean).
We need to import only the database (users, passwords, posts, topics etc....) but we don't want import the site settings, so we can't use the normal way (backup restore).
That's because in our installation the old admin delete some categories (like staff and lounge) and probably other things. Originally it was a trial installation to test Discourse so many settings have been touched or changed or even deleted and, I don't know why, he has decided to make the forum public without a fresh installation.
Is it possible to do that in a easy way (if so, possibly step-by-step) to have a new fresh installation without lost all our data?
Posts: 1
Participants: 1
Read full topic
↧
September 5, 2016, 9:42 am
@tkrunning wrote:
Currently it's possible to edit the post content before accepting a post in the moderation queue, but not its title. Is there a reason for this, or would it make sense to implement this?
In our case we have very specific rules for how to formulate the title (e.g. must be formulated as a question), which only about half of our users seem to get...
I can of course do edits to the post after approving it, but it's kind of a pain. And especially users with mailing list mode enabled might get the email before I have time to do the edits.
Posts: 1
Participants: 1
Read full topic
↧
September 5, 2016, 12:16 pm
@techAPJ wrote:
Want to migrate from Ning to Discourse? Great! Let's get started.
What data can be imported?
- Users
- Directories/Categories
- Topics & Posts
- Attachments
Prerequisites
Set up Discourse development environment on OS X, Ubuntu or Windows.
-
Clear existing data from your local Discourse instance:
cd ~/discourse
rake db:drop db:create db:migrate
Open Ning import script in the editor of your choice.
Replace JSON_FILES_DIR
value with the location of your Ning export data.
Add/Delete values in ATTACHMENT_PREFIXES
depending on directories/categories you want to import.
Perform Import
-
Depending on what directories/categories you want to import, add/delete import_{entity}
method.
For example, notice that the import_photos
method will import all the photos present in /ning/export/location/photos
directory by reading ning-photos-local.json
file.
Always use {xyz}-local.json
files for importing data.
-
Start import process:
cd ~/discourse
bundle exec ruby script/import_scripts/ning.rb
Wait until the import is done. You can restart the process if it slows down to a crawl.
Start your Discourse instance: bundle exec rails server
Take backup of the data and upload it to on your production site by following this howto.
Congratulations! You have successfully migrated your site from Ning to Discourse! ![:tada: :tada:]()
Posts: 1
Participants: 1
Read full topic
↧
↧
September 5, 2016, 12:32 pm
@michaeld wrote:
On forums with a lot of posts, we see the daily CalculateAvgTime
job taking up a lot of time and even block other processes.
The source code comments already say
# PERF: these calculations can become exceedingly expnsive
# they run a huge gemoetric mean and are hard to optimise
# defer to only run once a day
But they still don't play nice.
Would it hurt if we clean up the post_timings
table on a regular basis? Or are we missing something obvious here and is there a better way to solve this?
Posts: 9
Participants: 5
Read full topic
↧
September 5, 2016, 12:46 pm
@kgish wrote:
I have added a button to the toolbar and what it to be able to clear the contents of the .d-editor-textarea
element.
I've tried the following but it doesn't work well, any ideas how I should do this would be greatly appreciated.
perform: e => {
e.selectText(0, e.getText().length);
e.addText('Testing...');
}
Posts: 1
Participants: 1
Read full topic
↧
September 5, 2016, 2:35 pm
@kgish wrote:
I have a list of users from an external database which i need to import into discourse and activate them. How should i do this?
Posts: 3
Participants: 3
Read full topic
↧
September 5, 2016, 4:52 pm
@barryvan wrote:
I keep my Discourse instance pinned in Firefox. I've noticed that when I load up the browser at the start of each day, the content I see in Discourse -- the actual topics, their read/new status, the count of unread, and the notification indicator -- is a few days out of date. If I do a full reload (F5), then everything's sorted. If I just click the header logo, then the "Latest" and topics come right, but the notification counter and the unread counter remain stuck until I explicitly click on them.
I don't think any of the plugins I have installed are involved, but just in case, I have:
- Cakeday (0.0.4)
- Data explorer (0.2)
- Details (0.4)
- Feature voting (0.2)
- nginx perfromance report (0.1)
- Solved (0.1)
- Docker manager (0.1)
- lazyYT (1.0.1)
- Poll (0.9)
I'm running Firefox Developer Edition.
Is this a known behaviour? Has anyone else encountered it?
Posts: 1
Participants: 1
Read full topic
↧
↧
September 5, 2016, 5:44 pm
@rimian wrote:
I'm looking at extending an existing plugin but it has no tests. I'd rather code to a TDD cycle but I cannot find much documentation on how to build plugins this way.
Here's an example of a plugin using Grunt
as the task runner:
https://github.com/chrisbeach/discourse-plugin-stripe
Of course core uses a rake task which runs phantomjs
:
cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"
There's also Gulp
and I am thinking about installing discourse and running my plugins inside of that (as above) but that would be slow...
Is there a convention for running QUnit specs for a plugin on Travis?
Posts: 1
Participants: 1
Read full topic
↧
September 5, 2016, 8:13 pm
@Pad_Pors wrote:
currently the "search this topic" option works great, as you can find anyone or any known post simply inside long discussions.
meanwhile the UI and the accessibility of the search result may be much better if the "search this topic" changes to a filter:
current search result:
possible search result if it behave like a filter; after you searched "ginger"- term in this topic:
In the filter-like "search this topic" you will be able to read all the posts that fit into your search simultaneously, without the need to lots of clicks and re-search's.
Posts: 6
Participants: 3
Read full topic
↧
September 5, 2016, 9:39 pm
@mr8 wrote:
What's the recommended way to get a user's avatar from their username in a plugin?
I did find some reference to lookupAvatar(username)
in quote.js.es6, but there doesn't seem to be much out there regarding avatars.
Posts: 1
Participants: 1
Read full topic
↧
September 6, 2016, 2:43 am
↧
↧
September 6, 2016, 6:32 am
@sevenmaxis wrote:
I've tried many javascript generator tool to generate docs for JavaScript ES6, all of them had problem with new syntax of ES6.
Is there a tested js doc generator to build documentation from Discourse sources?
Posts: 3
Participants: 2
Read full topic
↧
September 6, 2016, 7:19 am
@ShankarG wrote:
I'm new to Ruby on Rails and Ember js(but have programming knowledge and working on PHP with laravel and also have experience with JavaScript). My requirement is while posting reply to a topic the user will select category and sub-category(e.g: if topic is about a particular smart phone, then the replies are categorized like Connectivity >> Wi-Fi, Battery >> Capacity and soon).
The reply window will be like below image
and it will be displayed like below
I have started developing plugin for this and stuck after starting. Currently I'm studying both ember and ruby on rails. Can someone explain if it can be implemented with plugin and methods and technique for implementing.
Posts: 1
Participants: 1
Read full topic
↧
September 6, 2016, 3:15 pm
@mb450 wrote:
Hi,
I need to destory a session for a given user. (Using sso at the moment) but my users can logout of my main website but I want them to be able logged out of the forum at the same time.
Here's what I've tried (cut down test)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://forum.blah.com/session/admin1?api_key=<blah blah blah>=&api_username=system');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
$response = curl_exec($ch);
var_dump($response);
I get a 302 redirect ever time.
But if I do a delete from postman with the same url it works perfectly......
What am I missing?!
Posts: 6
Participants: 2
Read full topic
↧