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

Extend normal thread features to PMs

0
0

@Dwalus wrote:

So, I'm rather active on the Stonehearth Discourse and we use a lot of PMs. I've participated in 141 private messages so far, the largest of which has 6000 posts. Anyway, there are two problems with these PMs:

  1. Search function doesn't work in them. This is rather frustrating when information needs to be found.

  2. The numbers for posts and liked recieved in PMs aren't shown to anybody but the user them self. This is kind of misleading.

Anyway, I understand these aren't high on your list of priorities, but there are plenty of members who would be very excited for these features.

Posts: 4

Participants: 3

Read full topic


Short Links for sharing

0
0

@satdav wrote:

Hello can we integrate bit.ly to the site

It would be good for sharing the link

Like on any of your social media

Posts: 4

Participants: 3

Read full topic

Help, I disabled local logins and can't get back

0
0

@riking wrote:

I chose "local logins disabled", however, I did not add Facebook or twitter login, I can't login my site as admin.

Any suggestions?

Posts: 13

Participants: 2

Read full topic

Problem with CSS customization

0
0

@alefattorini wrote:

Hi guys,
I found here this customization:

    /* dark gray background in body */
body {
  background-color: #333333;
  height: 100%; }
html {
  background-color: #333333; }

/* lt. gray container around main content area */
#main {
  width: 1110px;
  min-height: 500px;
  background-color: #ffffff;
  margin: 0 auto;
  padding: 0 25px 25px; }

/* topic list table styling */
#topic-list tbody tr:nth-child(even) {
  background-color:#F0F0F0; }
#main #topic-list th {
  background-color:#E6E6E6; }

It works for me, but I have a strange sideeffect, when a click on a topic some part doesn't load. Take a look at this

Could you help me? No other customizations applied

Posts: 5

Participants: 2

Read full topic

es6 reopening of view+model working only in development?

0
0

@JSey wrote:

I am currently struggling with something very weird (wasn't sure if it's related to this topic, so I opened a new one): I want to modify the footer buttons for specific topics. Therefore, I put this code into the assets/javascript/discourse/views directory, file topic-footer-buttons.js.es6:

export default Discourse.TopicFooterButtonsView.reopen({
  // Add the buttons below a topic
  createButtons: function() {
    var topic = this.get('topic');
    ...

The very, very weird thing is: this works on my development install under Mac OS X; but not on my production system. On the latter, this file gets chewed up into the compressed js files, but is actually never called - I tried to alert() from several places (even before the reopen call), but the code never gets touched.

Is there something fundamentally wrong with this approach? Looking around, I mainly found extend(), but not reopen() in the es6 files for models or views (I have the very same problem with a reopened model es6, too) - do I have to reopen from the initialize function of the default object?

Posts: 8

Participants: 2

Read full topic

Choose with 2 droplist : 1st categorie then 2nd categorie instead everything with 1

0
0

@doctorwho wrote:

Hello,

Perhaps it was in older version but I wish offer possibilities to choose category in a second dropdown filter by the first list with main category ?
It's for a lighter category menu smile

Thanks for your help

Posts: 4

Participants: 3

Read full topic

How to Docker+Discourse and Apache too?

0
0

@doctorwho wrote:

Hello

I'm looking for hosting a new discourse into an existing server.
But there is a Drupal CMS under Apache with MySQL database ...

How can I do for webserver on same port ?

Thanks for your help

Posts: 4

Participants: 2

Read full topic

Discourse doesn't follow the CommonMark spec for HTML tags inside code spans

0
0

@Ajedi32 wrote:

The CommonMark spec states:

Code spans, HTML tags, and autolinks have the same precedence. Thus, this is code:

Input:

`<a href="`">`

Render:

<p><code>&lt;a href=&quot;</code>&quot;&gt;`</p>

The problem is that this doesn't work for <pre> tags when any part of the input markdown following the code span contains preformatted text. (Example shown in my reply to this post.)

Posts: 5

Participants: 2

Read full topic


Is there any way I can automatically censor email addresses on posts?

Auto-close topic with no replies in X days?

Plugin settings.yml selection box

0
0

@cdesch wrote:

When creating a plugin and setting up the different attributes in the settings.yml, how do I create a selection box with a few static options?

In some of the options in the site it requires a ruby model, such as the S3 Region setting, which requires the S3RegionSiteSetting model s3_region_site_setting.rb

  s3_region:
    default: ''
    enum: 'S3RegionSiteSetting'

Is there a way to the enum options directly in the settings.yml like this:

my_plugin:
  my_first_string_option:
    client: true
    default: ''
  my_first_checkbox_option:
    client: true
    default: false
  my_selection_option:
    default: 1
    enum:
      first_option: 'first option'
      second_option: 'second option'

When I try to use the model method for the plugin I get this error when including the model in plugins settings.yml

my_plugin:
  my_first_string_option:
    client: true
    default: ''
  my_first_checkbox_option:
    client: true
    default: false
  my_selection_option:
    client: 1
    enum: 'MySelectionSetting'

plugins/my_plugin/app/models/my_selection_setting.rb

require_dependency 'enum_site_setting'

class MySelectionSetting < EnumSiteSetting
  def self.valid_value?(val)
    valid_values.include? val
  end

  def self.values
    @values ||= valid_values.sort.map {|x| {name: x, value: x} }
  end

  def self.valid_values
    [ 'first_option',
      'second_option',
      'third_option']
  end

  private_class_method :valid_values
end

Error:

/usr/local/rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/inflector/methods.rb:238:in `const_get': uninitialized constant MySelectionSetting (NameError)
	from /usr/local/rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/inflector/methods.rb:238:in `block in constantize'
	from /usr/local/rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/inflector/methods.rb:236:in `each'
	from /usr/local/rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/inflector/methods.rb:236:in `inject'
	from /usr/local/rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/inflector/methods.rb:236:in `constantize'
	from /usr/local/rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
	from /vagrant/lib/site_setting_extension.rb:78:in `block in setting'
	from /vagrant/lib/site_setting_extension.rb:71:in `synchronize'
	from /vagrant/lib/site_setting_extension.rb:71:in `setting'
	from /vagrant/app/models/site_setting.rb:20:in `block in load_settings'
	from /vagrant/lib/site_settings/yaml_loader.rb:29:in `block (2 levels) in load'

I'm not sure where I'm going wrong here, which is why I was looking for a quick static method to provide several selection options.

Posts: 3

Participants: 3

Read full topic

Discourse and CommonMark

0
0

@ky_metro wrote:

Continuing the discussion from Discourse doesn't follow the CommonMark spec for HTML

 tags inside code spans

I've wondered about this for awhile now. They aren't that far off, but there are differences I know that will break some of my posts.

What happens to older posts if/when the Markdown interpreter changes; will we get a choice of interpreters to use, or just have to fix whatever breaks by hand? ie write it to the tighter spec now and avoid future issues?

Also, where is this on the roadmap?

Posts: 2

Participants: 2

Read full topic

"Saved!" Still Sticks After Leaving Pref Screen

0
0

@purldator wrote:

I decided to try out the user card/profile image features. I noticed after I made my changes and clicked 'Save Changes', then clicked a profile menu item on the left, then clicked back to prefs, the 'Saved!' text was still next to the buttons. I saved my profile changes despite that but it appears the button is broken when clicked again.

It's still there, even after navigating away from my profile.

Posts: 2

Participants: 2

Read full topic

Pasting a link with a hashtag using the hyperlink button replaces the hashtag with its url encoding

How to get badges for a user?

0
0

@cdesch wrote:

For a plugin, I want to get the collection of badges for a given user in javscript. Using UserBadges doesn't seem to give me the wrong ID numbers for the user_badges. The code below:

var currentUser = Discourse.User.current();
var badges = Discourse.UserBadge.findByUsername(currentUser.username);
console.log(JSON.stringify(badges, null, 4));

Returns this:

"{
    "_id": 83,
    "_subscribers": []
}"

When I'm expecting something like this, which is stored in the DB.

discourse_development=# select id, user_id, badge_id from user_badges where user_id=28;
 41 |      28 |      100

which should give me JSON like

"{
    "_id": 41,
    "_user_id": 28,
    "_badge_id": 100
}"

How did I get a list of badges for a user? I'm not sure where I'm going wrong here using UserBadge. The end goal is to be able to loop through the badges. e.g. list all the badge names

for (var badge in badges){
    console.log(badge.name);
}

Posts: 1

Participants: 1

Read full topic


Gifs should be shown as previews

0
0

@Maestra_Powers wrote:

Guys from my forum likes to post big gifs in "fun pictures" topic. It pisses me off because they weight a lot and page loads forever. I think it's a good idea to show gifs as a previews and when you click on some picture - ajax it. I've seen this feature on vk.com and I rly liked this idea.

P.S. Testy test:

Posts: 3

Participants: 3

Read full topic

CSS Clearfix for `admin-contents`

YouTube SSL Regression

0
0

@DaveShaw wrote:

Has the YouTube SSL Onebox issue mentioned in this topic been re-introduced?

I'm running 1.2.0.beta9 and it seems to occur on any https YouTube video link I post.

Here's the video from last time to see if it is an issue on Meta:

EDIT:
It looks like it has broken on Meta:

Posts: 2

Participants: 2

Read full topic

Badge notifications not being sent?

0
0

@DeanMarkTaylor wrote:

Having a look at my badges here on meta...
... there are some here I don't believe I have never received a notification for.

I thought the whole idea for badges was to enforce good behaviour so would think I would get notifications.

The ones highlighted I really can't remember receiving ever, there are others too - but these are ones these can be quite sure of.

I can't see any badge notifications - in my notifications - but I'm not sure I should see them there:
https://meta.discourse.org/users/deanmarktaylor/notifications

Posts: 4

Participants: 2

Read full topic

Remove or add user to exiting private message

0
0

@Steve_Barnes wrote:

Hi,

We have a use case whereby we need to sometimes remove a user from an existing private message and sometimes add a new one. Ideally this could be done by a forum moderator.

Is this possible somehow?

Thanks,
Steve

Posts: 1

Participants: 1

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images