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

Markdown headers not working as before

$
0
0

@Lars_Zimmermann wrote:

Hi

since we updated to the last version v2.0.0.beta3 +36 our whole forum with thousands of topics looks now a bit weird because the markdown does not work like before. It requires now a space between the # and the text to transform it into a headline. It was not like that before and almost all of our topics look now like this:

IMAGE:

46

This is really a problem.

Also adding html does not seem to work anymore which also makes a lot of our old topics with important info look weird now.

Any suggestions how to fix this?

All the best,

lars

Posts: 6

Participants: 3

Read full topic


I want to delete the page and forward it "About""Faq"

$
0
0

@nothing wrote:

I want to remove the site statistics and about page. Instead, I have pages like their About, FAQ, FAQ, and I want to redirect them there.

I have done some research in the forum, but I have just set up the forum, the /var /www /discourse section does not appear in FTP. So I can not edit the file, can you help me on this?

I am editing with Nano, but the changes are not applied

Posts: 1

Participants: 1

Read full topic

Webhooks / Pushover / Push Bullet

$
0
0

@Cyclops wrote:

Is there a way that anyone knows, to use the Webhooks to push data into the Pushover / Push Bullet API?

Posts: 4

Participants: 2

Read full topic

Did 1.9 beta 17 rebake change quotes in posts?

$
0
0

@frictionel wrote:

I just noticed that some posts on my forum created before the 1.9 release now (v1.9.4) have broken quotes. When there is no newline before or after any of the quote-tags. Is that related to:

and how to fix?

Posts: 2

Participants: 2

Read full topic

Postman / Zapier - Add group to category

$
0
0

@mikechristopher wrote:

Now I will not pretend I am any skilled dev as cannot really code but nifty with tools such as postman & zapier.

I am trying to add a group to a category - now I know I can do it in postman with the following:

Key:Value
permissions[GROUPNAME]: 1

However with Zapier I cannot use a variable in the Key field

Is it possible to specify the groupname and permission value in the value and have just permissions in the key - I have tried numerous ways but cannot see a way around it.

I can also see on the output it has -
group_permissions: [{"permission_type":1,"group_name":"GroupName"}]

However cannot work with that either

Posts: 1

Participants: 1

Read full topic

Joe's Personal Discourse Theme

$
0
0

@joebuhlig wrote:

Here’s what may be a new way to use Discourse. Though I’m sure I’m not the first to think of this, I haven’t seen any posts about it.

I’ve started a new private instance of Discourse that is designed to be a notes app replacement. Think of Evernote or OneNote but it’s Discourse and for only a single person.

It occurred to me that all of these notes apps have things like URLs per note, APIs for interacting with the notes, email in, and the ability to share notes with others. But those are all things that Discourse does. :smile:

But there are also a lot of things that Discourse has available that are completely unnecessary as a notes collector. Namely, custom branding, Top/New/Unread, # of posts, etc… These aren’t helpful number/lists when you’re the only one looking at it. Which is what led me to creating this theme.

The biggest change is the home logo area. It’s been removed and replaced with three icons:

  • Archive - list of latest
  • Categories
  • Inbox - Uncategorized

The theory is that you’ll typically want to see the topics (notes) you’ve recently edited. Thus, the archive comes first. Buth then you may want to see the categories of notes. And if you just need to get something out quick, you won’t categorize it at all and leave it Uncategorized.

There are a few settings I found helpful to change for this as well. But the big one was the minimum length of title and body. That’s mostly because I sometimes want to capture a quick idea and fill in the details later.

I’m sure this will continue to morph as I use it. So if you have suggestions, I’m all ears. :wink:

Posts: 1

Participants: 1

Read full topic

Custom HTML email template?

$
0
0

@Drew_Ridley wrote:

email template.txt (57.0 KB)

Hello. I am a fair bit confused as to how the email system works. As I currently understand, HTML can and is used. Sadly, after a bit of the code, the HTML begins to show up as regular text. I am presuming it is the styling (css), built into the email? If anyone could please enlighten me as to whether this is possible, and how I could achieve this. Any and all help appreciated. Thanks, Drew.

Posts: 1

Participants: 1

Read full topic

Same site cookies clarification

$
0
0

@usulrasolas wrote:

I am working on tightening every security nut and bolt I can down.
I’m looking at the setting called same site cookies. admin>settings>security>same site cookies
I only use the discourse system login, no social or other login.
I can’t find the answer to this by searching the terms I’m using so maybe I’m talking in the wrong terms here.
But can I turn this to strict?
I think so but I don’t wanna bork things by flipping a switch and invalidating all cookies that can even BE handed out or something crazy.
It is currently on lax and seems to be using same site cookies from what I can tell looking at cookies, which isn’t much.

Posts: 3

Participants: 2

Read full topic


Newuser max links sitesetting

Keyword filtering

$
0
0

@Hossein_Amerkashi wrote:

Hello,

Is there any way (or plugin) for keyword filtering? For example, when user makes a post check it against list of keywords to make sure it doesn’t include specific keywords. Need to use this to disallow posts that include any of the keywords.

Thanks

Posts: 6

Participants: 4

Read full topic

Tips for overriding existing Discourse methods in plugins

$
0
0

@gdpelican wrote:

I’ve been running into a bunch of instances recently of needing to override existing ruby methods from plugins, and thought I’d share my best practices here.

Overriding an instance method

class ::TopicQuery
  module BabbleDefaultResults
    def default_results(options={})
      super(options).where('archetype <> ?', Archetype.chat)
    end
  end
  prepend BabbleDefaultResults
end
  • Here I’m removing chat topics from an instance method which is returning a list of topics.
  • The module name BabbleDefaultResults can be anything you want; I usually make it match the name of the method, plus my plugin name, to minimize any name conflict risks (although they’re already quite low)
  • Module#prepend is super cool and you should know about it if you’re writing plugins for anything in ruby. Note that it’s the fact that we’re prepending a module which allows us to call super inside the override method.
  • PS, always call super! This makes your plugin far less likely to break when the underlying implementation changes. Unless you’re really, really sure that your functionality completely replaces everything in the underlying method, you want to call super and modify the results from there, so that changes to this method in Discourse core don’t make your plugin break later.
  • The :: in ::TopicQuery is ensuring that I’m referring to the top-level TopicQuery class to override, and not some modulized version of it (like Babble::TopicQuery)
  • This can go straight into plugin.rb as is, or if your plugin is large you can consider separating each override out into a separate file.

Overriding a class method

class ::Topic
  module BabbleForDigest
    def for_digest(user)
      super(user).where('archetype <> ?', Archetype.chat)
    end
  end
  singleton_class.prepend BabbleForDigest
end
  • Here I’m taking an existing self.for_digest method on the Topic class, and removing chat topics from the result
  • Very similar to the instance method override, note the difference being that we’re calling singleton_class.prepend instead of just prepend. singleton_class is a mildly weird way of saying ‘I want to append this to the class level, not the instance level’, further reading if you’re looking for a ruby-related rabbit hole.

Overriding a scope

class ::Topic
  @@babble_listable_topics = method(:listable_topics).clone
  scope :listable_topics, ->(user) {
    @@babble_listable_topics.call(user).where('archetype <> ?', Archetype.chat)
  }
end
  • This one’s a little bit tricky because scopes don’t play well with super (or, at least, I couldn’t get them to). So instead, we’re taking an existing method definition, cloning it, storing it, and then calling it later.
  • Again, @@babble_listable_topics can be anything you’d like, but using your plugin name as a namespacer is probably a good idea.
  • More on the method function, which is also super cool, although the times when you’d really need it are pretty few and far between. Bonus free fun fact related to that; when debugging, if you’re having trouble figuring out what code is getting run for a particular method call (usually “Which gem is defining this method?”), you can use source_location to get the exact line of source code where the method is defined.
[7] pry(main)> Topic.new.method(:best_post).source_location
=> ["/Users/gdpelican/workspace/discourse/app/models/topic.rb", 282]

( ^^ this is saying that the best_post method on a new topic is defined in /app/models/topic.rb, on line 282)

Alright, that’s all I’ve got. Let me know if I should correct, expand, or clarify anything :slight_smile:

Posts: 2

Participants: 2

Read full topic

Incorrect time delta on post

$
0
0

@Ivan_Rapekas wrote:

Hi, we are on 1.9.4 stable. Possible found a bug in post time delta (don’t know how to say).

Look in the picture, please (sorry for non-English). The original post date is February 27th, but today (March 20th) it shows the post as written 1 day ago:

This post is shown correctly in the list of latest, but has the same 1-day-ago stamp:

Links:


Posts: 1

Participants: 1

Read full topic

Discobot advanced user tutorial stall?

$
0
0

@usulrasolas wrote:

I’m having issues with the advanced user tutorial ending right after tagging, and before the polls.
I’m currently running v2.0.0.beta4 +158 and have completed the tutorials here on meta. I can see that some stuff has to do with polls disabled, disabling the discobot tutorial but we currently have polls enabled, and in use on our site. I haven’t found many other pointers on what to look for to correct this, we have a large age range in our userbase and a specific demographic wants more tutorials and/or manuals of features :roll_eyes:

You complete your tag reply and discobot likes your post and never replies. This is in private message.

If you skip that step, it works and completes the tutorial and hands out the appropriate badge and “certificate”

Posts: 1

Participants: 1

Read full topic

Failed during rebuild

$
0
0

@torulv wrote:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 13909 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
2d2c39220c8a18913decd6c3116d096bd79ec05588db995406980f0696231ed1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Anyone who can see the fault?

Posts: 2

Participants: 2

Read full topic

Are Moderated User Invites a thing?

$
0
0

@usulrasolas wrote:

I can only seem to give moderators and admin invite permission, or allow all users above the trust threshold to have invite permissions. I am looking for a moderated user invite option if it exists, if not perhaps this belongs in #feature as this is helpful for closed communites where we want to allow high trust users to invite but still be aware of new users and such in the moderator team.

So is Moderated User Invites a thing? Users send, moderators get notice to approve. If so, how do I do that? I have had a harder time tuning the install than I did installing docker in a multisocket environment for the first time! Thanks for the help from everyone in support so far and I’m sure in the future.

Posts: 1

Participants: 1

Read full topic


Latest topics URL syntax

$
0
0

@Raphael_Haase_NL wrote:

I have been playing around with the latest topics URL and found out that you can do something like
/latest?ascending=false&order=activity&solved=no&status=open&before=3

The semantics of before=N puzzles me though. With different N I get different results, but N does not seem to mean days and also not a date in any format I can think of.
I tried things like
/latest?ascending=false&order=activity&solved=no&status=open&before=2018-03-15
and
/latest?ascending=false&order=activity&solved=no&status=open&before=100
but I don’t get the logic.

Can somebody explain how this works?

Posts: 1

Participants: 1

Read full topic

Scrolling up: Header title flicker while posts load

$
0
0

@awesomerobot wrote:

Is there a way to prevent this from happening when the browser’s scrollbar is used? You see the normal undocked header until replies load, and then the extra-info header comes back again.

Without customizations this is just a minor title flicker, but if you have a larger customized header that goes away on scroll (a secondary nav for example), it’s much more disruptive. I’d expect to always see the extra-info header unless I’ve reached the top of the topic (right now I assume we’re relying on reaching the top of the viewport).

Posts: 1

Participants: 1

Read full topic

Copy-Paste Locked Badge Query (SQL) For More Than Champion or Invitation

$
0
0

@iidbae wrote:

This is my first topic after become a member here since 222 days ago.

  1. How to copy-paste this code?

  2. I want to give a badge for 25 successful invitations. So, I only need change the valueHAVING COUNT (*) >= 5 into HAVING COUNT (*) >= 25, and give a Gold badge type too. Am I right?

I found similar topic "Promoter" Badge broken? but I just want to confirm, because I am not a really understand in coding.

Sorry for my stupid question.

Posts: 4

Participants: 3

Read full topic

Migrate to discourse

Emails are being sent as localhost.localdomain

$
0
0

@cedroid09 wrote:

Hello,

So this is the first time I’m trying to install discourse. When I try to complete installations by verifying my email address I notice that emails from discourse are being sent as localhost.localdomain.

Since I’ve configured postfix not to allow unknown host, discourse emails dont parse through.

Is there a way I can tell discourse to use another ‘send from address’?

Thanks for your time.

Posts: 1

Participants: 1

Read full topic

Viewing all 60642 articles
Browse latest View live




Latest Images