Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60707 articles
Browse latest View live

Regression: Cannot sort topic list

$
0
0

Kane York wrote:

Uncaught TypeError: Object function () {
    var url = Discourse.getURL("/") + filter + ".json";

    if (params) {
      var keys = Object.keys(params),
          encoded = [];

      keys.forEach(function(p) {
        var value = params[p];
        if (typeof value !== 'undefined') {
          encoded.push(p + "=" + value);
        }
      });

      if (encoded.length > 0) {
        url += "?" + encoded.join('&');
      }
    }
    return Discourse.ajax(url);
  }
has no method 'then'

calltrace:

(anonymous function) 	topic_list.js?body=1:74
sendEvent 	ember.js?body=1:2300
ObserverSet.flush 	ember.js?body=1:2441
endPropertyChanges 	ember.js?body=1:2636
Ember.tryFinally 	ember.js?body=1:1362
Ember.changeProperties 	ember.js?body=1:2659
Ember.setProperties 	ember.js?body=1:3571
Ember.Observable.Ember.Mixin.create.setProperties 	ember.js?body=1:10264
Discourse.SortOrder.Ember.Object.extend.toggle 	sort_order.js?body=1:29
Discourse.SortableHeadingComponent.Ember.Component.extend.click 	sortable_heading_component.js?body=1:37
Ember.CoreView.Ember.Object.extend.trigger 	ember.js?body=1:19831
superWrapper 	ember.js?body=1:1178
Ember.merge.handleEvent 	ember.js?body=1:22411
Ember.View.Ember.CoreView.extend.handleEvent 	ember.js?body=1:21885
(anonymous function) 	ember.js?body=1:19570
Backburner.run 	ember.js?body=1:5688
Ember.run 	ember.js?body=1:6054
Ember.EventDispatcher.Ember.Object.extend._bubbleEvent 	ember.js?body=1:19569
(anonymous function) 	ember.js?body=1:19513
Ember.handleErrors 	ember.js?body=1:850
(anonymous function) 	ember.js?body=1:19504
jQuery.event.dispatch 	jquery-2.0.3.js?body=1:4677
elemData.handle

bisect result:

[vagrant@precise32:/vagrant ((no branch))]$ git bisect bad
3a6bffa05db4cbc7dd6106473cecf82e87f14085 is the first bad commit
commit 3a6bffa05db4cbc7dd6106473cecf82e87f14085
Author: Régis Hanol <regis@hanol.fr>
Date:   Tue Jan 14 01:02:14 2014 +0100

    FEATURE: better top pages

:040000 040000 f3b4627a3e17a945f3872b6db8ae5bca3d18e4a6 736dcc4e784e621d420369c8f74e26012906430a M	app
:040000 040000 d45a550d8ff4a30717c43ba4826e3d9480240b32 8fc524f23baca8245f3490398e728c3915400411 M	config
:040000 040000 2aadf0affaa1be78440d7bfa888dca43302cef0b 15ca5d0976b92477b77878cdf02a45720945cbbc M	db
:040000 040000 0048648bd43d6a5c37d22542bde45263ae583fe4 97f503513094171601bd48b690d21262a708569c M	lib
:040000 040000 7ddb1e07e8ccb93811f751314d747a9ae1e3afa1 4f26ae280f49bd27a46bbe869d5dd8832abea393 M	test

Posts: 4

Participants: 2

Read full topic


A use case for tagging: platforms

$
0
0

Jp Gordon wrote:

I've been following the topic on tagging elsewhere and understand there's a legitimate issue associated with it. But I wanted to give you a use case and ask for suggestions.

We have a product called "Platform" for which there are 81 New Relic and 3rd party plugins. Examples of plugins: MySQL, MS SQL Server, MongoDB, Rackspace Loadbalancer, etc. All of these are plugins for separate environments on which you want to monitor performance. There are 81 of these now (more coming) and are downloadable. We have a requirement to collect feedback on each plugin - essentially discussions around issues associated with installation and deployment.

We currently have a category on our Discourse site called "Platform". Under that we could have sub-categories for each of the plugins -- but that would mean 81 subcategories (and more coming..) -- and that feels really kludgey. Users would have to go looking for their subcategory and a number of these subcategories would be empty. Areas defined on a forum that are empty makes it look under-used.

If we don't have tags, and the use of subcategories is burdensome, what would you recommend?

Posts: 6

Participants: 3

Read full topic

Using Discourse as a Marketplace to buy/sell

$
0
0

Pablo Corral wrote:

Hi everyone,

For a customer, I'm planning to use as a marketplace in the following way:

My idea is to use just 3 categories.

  • One for items to sell.
  • One for items wanted.
  • One for services offered

I think it will work. Does anyone has experience on implemeting something like this? any advice?

Tks!
Pablo

Posts: 2

Participants: 2

Read full topic

Middle clicking a link twice does not work as expected

$
0
0

Hugo Almeida wrote:

I would like to see if someone can reproduce this,

Its funky on Firefox and Chrome, so lets say you have a link
google 1

if i middle click once on it will open a new tab, if i middle click it again the cursor will get stuck on drag navigation. If you let left click in place to go away you'll end up clicking the link again.

On Firefox its worse, because if you close the new tab by accident it won't let you open with middle click and just be stuck at drag navigation.
On Chrome you'll be able to middle click and it will open in new tab but be stuck at drag navigation.

I know its kind of weird use case, but is even more weird and frustrating to be stuck in drag navigation.


Another thing I've noticed, but not sure if bug or browser feature.

In Chrome, middle click will open new tab but keep focus on current page, while in Firefox it will open new tab and switch focus.

I've also tried going to google with Firefox and in this case middle click would open new tab but keep focus on current page.

The use case here is about a post with 2 links that i want to open while i keep reading the post.
google 1 and google 2

Posts: 10

Participants: 4

Read full topic

Any Numbered and Bulleted list improvements?

$
0
0

John_Lee wrote:

when i write a couple of lines and click on bulleted list it breaks up and i have to individually bullet each line (numbered list too)

so it should be like this after bulleting:

  • List A
  • List B
  • List C
    But when selecting all three lines and clicking on bulleted lists it becomes this:

  • List A List B List C

So one has to do it line by line and thats fine but it can become a headache for some newbies.

I hope that helps making the project a little better.

Posts: 8

Participants: 5

Read full topic

Stuff disappears on the groups page

$
0
0

Jacob wrote:

Ever since the @group mentions were added, my Groups page has been all messed up. I can't add/remove users from groups and stuff disappears. This is on latest. Sorry for poor video quality.

Posts: 3

Participants: 3

Read full topic

Editing category permissions: select value doesn't change

$
0
0

Pekka Gaiser wrote:

A tiny bug, of no real consequence. When editing category permissions, when you add a group (like "admins"), the select automatically removes "admins" from the list of available options, and automatically selects the next group in the list (in this case, "everyone").

However, the actual value that gets posted when you add another group isn't "everyone", it's "admins".

Posts: 2

Participants: 2

Read full topic

Deleting lots of (but not all) posts from a user

$
0
0

Briancguy wrote:

On our forums we get users occasionally who come in when I'm not watching (i.e. at night, etc.) and post a ton of marginal or questionable posts. Right now its a real pain to moderate and delete these because you have to go to every single message, open the message and delete them.

It would be really, really nice to be able to simply delete all the message directly from the person's profile view. It would change a 10 minute task down to 30 seconds or less - a huge improvement.

Posts: 4

Participants: 3

Read full topic


How far to take user documentation?

$
0
0

Watchman Monitoring wrote:

In pull request 1821, @eviltrout asked:

"About rails s: I wouldn't be against adding it but at what point do we stop holding their hand and expect them to know how rails works? I'm sure rails documentation could do a better job than us. Actually maybe we should just link to that?

What point to stop holding their hand? I guess it's along the lines of showing a toddler how to walk.. let'm try once they can barely stand up on their own. smile

I know that two months ago, I wouldn't have had a clue what to do at the end of that how-to. Even still, I'm not certain that it's just a matter of rails s to get started. What other steps need to be added?

Posts: 4

Participants: 2

Read full topic

Unable to save user preferences

$
0
0

Kane York wrote:

Chrome:

Uncaught TypeError: Object <a href="/category/extensibility" class="badge-category" title="Topics about extending the functionality of Discourse with plugins, themes, add-ons, or other mechanisms for extensibility.  " style="background-color: #FE8432; color: #FFFFFF; " >extensibility</a> has no method 'get'

Firefox:

TypeError: e.get is not a function

Effect: Button stays with text "Saving..." and never completes.

This only happens if topics are set in the Muted/Tracked/Watching boxes.

Posts: 4

Participants: 2

Read full topic

Can't create very short topic titles, get "try to be a little more descriptive"

$
0
0

Watchman Monitoring wrote:

I was blocked from creating a category called just "Announcements"and yeah, that's plain. I called it "Announcements from Watchman Monitoring"

But why is "Known Issues" not an allowable forum title?

I understand this is the Category Definition.. but from the login page, that looks like the title of the category itself.

Posts: 9

Participants: 3

Read full topic

Two-layered conversations (shadow topic)

$
0
0

Virgo wrote:

Consider a community of "experts" on some topic. Experts would like to post articles or questions on this board, to be discussed only by the other members, who are also experts. For this part, they can use any reasonable traditional message board software (with membership restricted to experts).

Here is the new part.

For each topic opened by an expert for comments by other experts, there should be a "shadow" topic automatically opened for comments by "the public". Say, the expert's topic is visible in the top (or left) half of the screen, and the shadow public's thread is visible in the other half.

The idea is to keep the conversations among experts unencumbered from all the "noise" often generated by non-expert posts, while still allowing visitors to argue with each other about the discussion the experts are having.

A reader should easily be able to choose whether to view ONLY the experts' discussion, or to view both. Searches should also allow this choice.

A related scheme exists at some news sites, where beneath every article there is a comments box (disqus, etc) for readers opinions. However, this is only one layer of comments.

In principle, the idea could be extended to more than 2 layers (imagine professors as the experts, grad students as semi-experts, undergrads below them, and finally the general public at the bottom). However, obvious practical constraints would need to be observed, in going beyond 2 layers.

Posts: 4

Participants: 3

Read full topic

Broken links, possibly related to HTTPS

$
0
0

Erlend Sogge Heggen wrote:

I'm having trouble clicking the "my post above" link in @codinghorror's post below. I'm on HTTPS. Is anyone else getting sent to the following url and blank page?

https://meta.discourse.org/clicks/track?url=http%3A%2F%2Fmeta.discourse.org%2Ft%2Fhow-to-arrive-at-a-conclusion%2F1178%2F14&post_id=36436&topic_id=1178

Continuing the discussion from How to arrive at a conclusion?:

Posts: 17

Participants: 6

Read full topic

I need some installation help

$
0
0

Coen Hacking wrote:

Helo,

I was looking for a good forum system, and I must say that this looks amazing.
However getting it installed is hard. I have experience with php, but not with ruby and rails.
I'm running windows 7 and I'm using a free webhost (http://www.000webhost.com)
How can I install discourse or isn't it possible to due to limitations of my free host?

Regards, Coen

Posts: 3

Participants: 2

Read full topic

Get current user information via JSON

$
0
0

znation wrote:

I am integrating Discourse (using forum threads as comments) on another site. I am attempting to show the currently-logged-in Discourse user from within the site (or a log in button if they are not logged in, which would ideally log into Discourse then redirect back to the site the user was on). I can make JSON requests to Discourse to get other kinds of information (topics/replies) but the user information seems trapped inside HTML. The initial HTML that loads on a Discourse page contains some executable script along the lines of:

PreloadStore.store("currentUser",{"id":1,"username":"admin","avatar_template":"//www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56.png?s={size}&r=pg&d=identicon","name":null,"unread_notifications":0,"unread_private_messages":0,"admin":true,"notification_channel_position":null,"site_flagged_posts_count":0,"moderator":false,"staff":true,"reply_count":0,"topic_count":12,"enable_quoting":true,"external_links_in_new_tab":false,"dynamic_favicon":false,"trust_level":2,"can_edit":true,"can_invite_to_forum":true});

However, this information doesn't seem to be available as a JSON endpoint. Does such an endpoint exist?

Posts: 3

Participants: 2

Read full topic


Improve numbered lists

$
0
0

probus wrote:

We're struggling a bit with the parser and automatic formatting of posts. In particular, numbered lists. There are a couple of ways in which they drive our posters mad:

  • You can't start a list from any other number than one, or have the
    list count down
  • You can't skip numbers or have the same number for
    items
  • If you start a paragraph with a number, it get's interpreted as a list even if it doesn't have any other numbered items below it. This might not be a big problem when writing in English, but in my language that's how you write ordinal numbers (1st, 2nd etc). Imagine starting your sentence with "3rd time it happened.." and the forum changing it into "1st time it happened.."

As an example
Gibson.com Top 50 Guitarists of All Time – 50 to 41

49. (tie) Ritchie Blackmore (Deep Purple, Rainbow)
49. (tie) Kurt Cobain (Nirvana)
47. (tie) Robert Fripp (King Crimson)
47. (tie) Andrés Segovia
42. (tie) Hubert Sumlin (Howlin’ Wolf, Muddy Waters)
42. (tie) Clarence White (The Kentucky Colonels, The Byrds)
42. (tie) Rory Gallagher (Taste, solo)
42. (tie) John Frusciante (Red Hot Chili Peppers)
42. (tie) Richard Thompson
41. David Gilmour (Pink Floyd)

turns out like this:

  1. (tie) Ritchie Blackmore (Deep Purple, Rainbow)
  2. (tie) Kurt Cobain (Nirvana)
  3. (tie) Robert Fripp (King Crimson)
  4. (tie) Andrés Segovia
  5. (tie) Hubert Sumlin (Howlin’ Wolf, Muddy Waters)
  6. (tie) Clarence White (The Kentucky Colonels, The Byrds)
  7. (tie) Rory Gallagher (Taste, solo)
  8. (tie) John Frusciante (Red Hot Chili Peppers)
  9. (tie) Richard Thompson
  10. David Gilmour (Pink Floyd)

Of course, one can use pre formatted text (as we do now), but it's not ideal or intuitive. Is there any way to improve or configure this behaviour?

Posts: 8

Participants: 4

Read full topic

Daily Active Users, Monthly Active Users - Statistics Need

Editor When Clicking on Wrench Issue

All categories drop down does not close after clicking on first menu "all categories"

$
0
0

Dev wrote:

I am not sure if the community agrees that this is a bug or usability issue, however, I noticed that clicking on "all categories" from drop down in expanded state does not close the dropdown.

To reproduce, expand "All Categories" dropdown and then click on "all categories"

You will notice that the pop up window does not close.

Posts: 5

Participants: 3

Read full topic

Plugin tutorial #3 - How to add a button after every posts?

$
0
0

Régis Hanol wrote:

This time we're going to add a button after every post that will allow users to hide/show the post.

But first, we need to understand how these buttons are generated.

They are defined by the post_menu site setting:

This setting determine which items will appear on the post menu and their order:

This list is used by the PostMenuView which renders the menu below a post using buffered rendering for performance. We've already seen the buffer rendering in the previous tutorial. It just means that we're pushing strings into a buffer.

This view has 2 interesting methods:

render: function(buffer) {
  var post = this.get('post');
  buffer.push("<nav class='post-controls'>");
  this.renderReplies(post, buffer);

  var self = this;
  Discourse.get('postButtons').toArray().reverse().forEach(function(button) {
    var renderer = "render" + button;
    if(self[renderer]) self[renderer](post, buffer);
  });
  buffer.push("</nav>");
},

This render method is called by EmberJs whenever it needs to render the view. First, it will render the replies button (call to this.renderReplies) if there is any. Then, it will iterate through Discourse.get('postButtons') which is a basic wrapper around the post_menu site setting and will call the methods named render<Button> if it is defined on the view. For example, for the reply button, it will call the method named renderReply.

click: function(e) {
  var $target = $(e.target);
  var action = $target.data('action') || $target.parent().data('action');
  if (!action) return;

  var handler = this["click" + action.capitalize()];
  if (!handler) return;

  handler.call(this);
},

This click method is called by EmberJs whenever the user clicks on the view (that is, on any button). That method retrieve the name of the action to call by looking at the data-action attribute of the targeted element or its parent's. If an action is found, it will look for a method name click<Action> in the view and call it if it is defined in the the view. For example, if the action is reply, it will call the clickReply method.

So, these 2 methods allow us to control both the rendering of our button by defining a renderSomething method and control the behavior whenever the user clicks on the button by defining a clickSomething method.

Let's call our button hide and add it to the post_menu site setting:

We're now all set to start writing our plugin.

Let's start with our usual suspect, plugin.rb, our entry point:

# name: hide post
# about: add a button at the end of every post allowing users to hide the post
# version: 0.1
# authors: Régis Hanol

register_asset "javascripts/hide_post.js"

This only register a single asset. Let's dig into this javascript file:

Discourse.PostMenuView.reopen({

  renderHide: function(post, buffer) {
    var direction = !!post.getWithDefault("temporarily_hidden", false) ? "down" : "up";
    buffer.push('<button title="' + direction + '" data-action="hide">');
    buffer.push('<i class="icon-chevron-' + direction + '"></i>');
    buffer.push('</button>');
  },

  clickHide: function() {
    $("#post_" + this.get("post.post_number") + " .cooked").toggle();
    this.toggleProperty("post.temporarily_hidden");
  }

});

The first line (Discourse.PostMenuView.reopen) is the Ember way of reopening a class from another file. This allows us to add instance methods and properties that are shared across all instances of that class. Which is exactly what we want here. So, as we've seen earlier, we need to define 2 methods: renderHide and clickHide.

The renderHide method is used to render the hide button which is composed of a chevron icon. It looks for the temporarily_hidden property on post to determine the direction of the chevron.

The clickHide method is toggling the visibility of the current post via jQuery and the temporarily_hidden value.

If you try to run the plugin like so, you will notice that it works but the chevron is not changing direction. It's because it's not being rerendered whenever the value of post.temporarily_hidden is changed. To allow for that, we add a new observer using Discourse.View.renderIfChanged which will be observing that property and will internally call rerender() on the view itself.

Discourse.PostMenuView.reopen({
  shouldRerenderHideButton: Discourse.View.renderIfChanged("post.temporarily_hidden"),

  // rest of the code...
})

And voilà.

Here's a screenshot with the button on the right (the chevron)

When you click on it, it hides the post and the chevron changes direction

Hope you enjoyed it smile

As usual, sources are available on GitHub.

Posts: 4

Participants: 3

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images