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

How to Permanently Remove a Topic?

0
0

@marnellaz wrote:

Hi all,

I recently created a thread on my forum that was flagged as phishing by Google. I changed the thread title, thus the URL, but It seems that there's still a historical of the old URL. Is there any way to permanently remove this thread, so the old URL is not accessible to anyone?

Posts: 5

Participants: 4

Read full topic


Customized Header broke with Discourse Upgrade

0
0

@justin_gordon wrote:

On site: http://forum.talksurf.com/

I just updated, and some styling changed.

Is anybody aware of what changed recently that made headers switch around?

Styling

#top-navbar-container {
    background: black;
    height: 25px;
}

#top-navbar-links .spacer {
    display: inline-block;
    margin-left: 12px;
    margin-right: 12px;
}


#top-navbar-links, #top-navbar-links a:visited, #top-navbar-links a {
    color: white;
}

header.d-header {
    background: black;
    padding-top: 0;
    box-shadow: none;
    top: 25px;
    height: 63px;
}

.ember-view > #main-outlet {
    padding-top: 97px;
}

header > .container {
    background-image: url(/uploads/default/63/873a733a013f8208.jpg);
    max-width: 1200px;
    padding-right: 50px;
}

header.d-header > .container > .contents {
    margin: 0;
}

header.d-header #site-logo, header.d-header .logo-small {
    margin-left: 80px;
    max-height: 63px;
}

body #main .extra-info > a.star {
    color: #A5ACDD;
}

header .extra-info-wrapper h1 {
    margin-top: 18px;
}

@media screen and (min-width: 1140px)  {
    header .extra-info-wrapper {
        max-width: 780px;
    }
}

@media screen and (min-width: 967px) and (max-width: 1139px)  {
    header .extra-info-wrapper {
        max-width: 647px;
    }
}

#user-notifications, #search-button, #site-map  {
    color: #AAA;
}

@media screen and (max-width: 966px) {
    .extra-info-wrapper {
        max-width: 620px;
    }
}

header .current-username .username > a {
    color: white;
}

header.d-header .icons .icon:hover {
    background-color: #000000;
}

Header

I've got this in the header:

<div id="top-navbar-container" class="d-header">
<div id="top-navbar" class="container">
<span id="top-navbar-links" style="height:20px;">
  <a href="http://forum.talksurf.com">Home</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/category/surfing/doug-silva">Doug Silva</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/category/surfing">Surfing</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/category/kitesurfing">Kitesurfing</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/category/standup-paddling">SUP</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/category/windsurfing">Windsurfing</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/t/pros-instructors-equipment-travel/264">Pros</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/t/what-is-talksurf-com/265">About</a><span class="spacer"> | </span>
  <a href="http://forum.talksurf.com/faq">FAQ</a>
</span>
</div>
</div>

Posts: 2

Participants: 2

Read full topic

Beginner's Guide to Creating Discourse Plugins Part 5: Admin Interfaces

0
0

@eviltrout wrote:

Previous tutorials in this series:

Part 1: Creating a basic plugin
Part 2: Plugin outlets
Part 3: Custom Settings
Part 4: git setup


Sometimes site settings aren't enough of an admin interface for your plugin to work the way you want. For example, if you install the discourse-akismet plugin, you might have noticed that it adds a navigation item to the admin plugins section in of your Discourse:

In this tutorial we'll show you how to add an admin interface for your plugin. I'm going to call my plugin purple-tentacle, in honor of one of my favorite computer games. Seriously, I really love that game!

Setting up the Admin Route

Let's start by adding a plugin.rb like we've done in previous parts of the tutorial.

plugin.rb

# name: purple-tentacle
# about: A sample plugin showing how to add a plugin route
# version: 0.1
# authors: Robin Ward
# url: https://github.com/discourse/purple-tentacle

add_admin_route 'purple_tentacle.title', 'purple-tentacle'

Discourse::Application.routes.append do
  get '/admin/plugins/purple-tentacle' => 'admin/plugins#index', constraints: StaffConstraint.new
end

The add_admin_route line tells Discourse that this plugin will need a link on the /admin/plugins page. Its title will be purple_tentacle.title from our i18n translations file and it will link to the purple-tentacle route.

The lines below that set up the server side mapping of routes for our plugin. One assumption Discourse makes is that almost every route on the front end has a server side route that provides data. For this example plugin we actually don't need any data from the back end, but we need to tell Discourse to serve up something in case the user visits /admin/plugins/purple-tentacle directly. This line just tells it: 'hey if the user visits that URL directly on the server side, serve the default plugins content!'

(If this is confusing don't worry too much, we'll come back to it in a future tutorial when we handle server side actions.)

Next, we'll add a template that will be displayed when the user visits the /admin/plugins/purple-tentacle path. It will just be a button that shows an animated gif of purple tentacle when the user clicks a button:

assets/javascripts/discourse/templates/admin/plugins-purple-tentacle.hbs

{{#if tentacleVisible}}
  <div class='tentacle'>
    <img src="http://eviltrout.com/images/tentacle.gif">
  </div>
{{/if}}

<div class='buttons'>
  {{d-button label="purple_tentacle.show" action="showTentacle" icon="eye"}}
</div>

If you've learned the basics of handlebars the template should be pretty simple to understand. The d-button is a component in discourse we use for showing a button with a label and icon.

To wire up our new template we need to create a route map:

assets/javascripts/discourse/purple-tentacle-route-map.js.es6

export default {
  resource: 'admin.adminPlugins',
  path: '/plugins',
  map() {
    this.route('purple-tentacle');
  }
};

A route map is something we added to discourse to make it so that plugins could add routes to the ember application. The syntax within map() is very similar to Ember's router. In this case our route map is very simple, it just declares one route called purple-tentacle under /admin/plugins.

Finally, let's add our translation strings:

config/locales/en.yml

en:
  js:
    purple_tentacle:
      title: "Purple Tentacle"
      show: "Show Purple Tentacle"

If you restart your development server, you should be able to visit /admin/plugins and you'll see our link! If you click it, you'll see the button to show our purple tentacle:

Unfortunately, when you click the button, nothing happens frowning

If you look at your developer console, you should see an error that provides a clue to why this is: Uncaught Error: Nothing handled the action 'showTentacle'

Ah yes, the reason is in our handlebars template we are depending on a couple of things:

  1. That when the user clicks the button, showTentacle will be called.
  2. showTentacle should set the property tentacleVisible to true so that the image shows up.

If you haven't read the Ember Guides on Controllers now is a good time to do so, because we'll implement a controller for our purple-tentacle template that will handle this logic.

Create the following file:

assets/javascripts/discourse/controllers/admin-plugins-purple-tentacle.js.es6

export default Ember.Controller.extend({
  tentacleVisible: false,

  actions: {
    showTentacle() {
      this.set('tentacleVisible', true);
    }
  }
});

And now when we refresh our page, clicking the button shows our animated character!

I'll leave it as an extra exercise to the reader to add a button that hides the tentacle when clicked smile

If you are having trouble getting your version of this plugin working, I've pushed it to github.

Posts: 1

Participants: 1

Read full topic

Tags showing next to topics

0
0

@AstonJ wrote:

Not sure if this should go in the Tag topic or whether you'd prefer it as a separate topic (feel free to merge), but just to say I think it's a great move +1

Just a quick suggestion, when on a tag page I don't think there's any need to repeat the tag as you already know all those topics are tagged with that tag (so just show additional tags).

I'd also experiment with moving the tags underneath the topic title ...and maybe put the topic starter's username at the far left (so then only the latest posters show under 'Users') - might start to feel a little cluttered tho, but still worth a look.

Posts: 2

Participants: 2

Read full topic

Slow forum responses due to internal IP routing issues

0
0

@samnazarko wrote:

Hi Discourse,

We're currently experiencing some slow repsonses on our forum at https://discourse.osmc.tv. We have the rate limiting template commented. Are there any other rate limiting policies enabled by default? We have just released a new update for our OSMC software and we are currently experiencing an increase in traffic.

I'd appreciate it if you could give any pointers as to what the cause may be or how we can debug the issue. While we are seeing more traffic, it seems that we should be able to handle this. CPU usage is very low, our network traffic is acceptable and memory use is not erroneously high either.

Someone recently pointed out that when I edited a thread that it updated infront of their eyes (cool stuff!) Could Discourse's AJAX features be causing a large number of keep alive connections to our box?

Best

Sam

Posts: 8

Participants: 4

Read full topic

Removing bookmarks from profile doesn't work

0
0

@gerhard wrote:

Steps to reproduce:

  • Go to the bookmark list in your profile
  • Click on the "Remove Bookmark" button

Expected result:
The bookmark should be deleted.

Actual result:
Nothing happens. There's an error in the JavaScript console:

<Discourse.StreamItemComponent:ember1571> had no action handler for: removeBookmark

Posts: 2

Participants: 2

Read full topic

"Closed this topic" shouldn't word wrap the date

0
0

@gerhard wrote:

This looks ugly - there shouldn't be a line break:

BTW: This looks weird too...

Posts: 5

Participants: 4

Read full topic

Problems adding custom button to discourse

0
0

@EpicDinosaurz wrote:

Hello all,
I have been trying to add a button in my menu on my site right here:

I have been putting this code in admin > customizations > CSS/HTML. It isn't working in any section of CSS/HTML. I have tried them all. Anyway, here is the code I have been using:

    <script>
  Discourse.ExternalNavItem = Discourse.NavItem.extend({
    href : function() {
      return this.get('href');
    }.property('href')
  });

  I18n.translations.de.js.filters.google = { title: "Google", help: "Google" };

  Discourse.NavItem.reopenClass({
    buildList : function(category, args) {
      var list = this._super(category, args);
      list.push(Discourse.ExternalNavItem.create({href: 'http://www.google.com', name: 'google'}));
      return list;
    }
  });
</script>

Can somebody point me in the right direction?
Thanks.

Posts: 3

Participants: 2

Read full topic


FAQ for categories?

0
0

@AlexAB wrote:

So I am noticing that I am pinning 8-10 things in some categories...which leads me to believe there is a lot of FAQ.

Is there anyway I can automatically populate a FAQ Thread of links of the most frequently visited/popular threads under that certain category?

Or even if this is a back end thing so then I can manually update the thread... The back end would show me the most popular posts per category -- similar to below:

Posts: 1

Participants: 1

Read full topic

Don't display "x months later" if it's the first post

0
0

@CamilleRoux wrote:

Hi,

As admin, I created a new subject from a post. But it's still written "2 months later" ("2 mois plus tard" in French) on the top. I think it should be remove in this case.

Here is an example :

Posts: 1

Participants: 1

Read full topic

Merging users from different forums

0
0

@Nemesio wrote:

Is this possible? I am not technical, I'm just shopping for forum software for my company. I have my main site domain.com and I want to install discourse in forum1.domain.com and I would like to add another totally separate subject discourse forum at forum2.domain.com. What I would like is to bridge the users of both forums so that they only register once and use both forums. Is it doable?

Posts: 3

Participants: 3

Read full topic

Define additional badge types

0
0

@alefattorini wrote:

Continuing the discussion from Badges feedback:

Let me resurrect this thread, I need additional types/colours like Platinum, Diamond, ecc..
Groups are not enough for my purpose. Is there any chance?

Posts: 3

Participants: 3

Read full topic

What do Permalinks under Customize do?

0
0

@hedgehog wrote:

I created some Permalinks under Customize but don't know what they do.
Also what is a category-ID?

Posts: 4

Participants: 2

Read full topic

Custom emoji size?

0
0

@bekircem wrote:

Hi,

I added custom emoji set on my Discourse system. But emoji size seems small, how i enlarge this a little bit?

Posts: 12

Participants: 2

Read full topic

Spanish translations default Tos, Privacy and FAQ?

0
0

@sbotting wrote:

Hi,

Does anyone have a spanish translation for the Terms of Service, Privacy and FAQ that I can copy and alter for my discourse forum?

Cheers
Simon

Posts: 1

Participants: 1

Read full topic


How to do asynchronous Scrum standups using Discourse?

0
0

@downey wrote:

Our project currently does synchronous IRC-based daily (M-F) Scrum standups for people who:

  • Are currently hacking on the project, and
  • Are available at the designated time.

This is less than ideal for a global team for various reasons, so I'm trying to think of how to re-create something like Flock but using Discourse. (The less tools, the better!)

For those not familiar with the report, the standard items mentioned include:

  • What was done the previous day
  • Plans for the upcoming day
  • Any issues blocking the person from proceeding with their work

I've been thinking about how to use the following features to make it happen:

  • Dedicated sub-category
  • Auto-close topics after N hours for the sub-category
  • Category-based topic templates
  • Specifying content in URL's to pre-populate topics

The problem seems to be conceptualizing how this should look. Should each person create a topic for each day they have a report to make? A topic for each day that everyone contributes to? Ideally, someone could just go to a standard link or URL to create their report with minimal clicks.

Is this interesting to anyone else who would like to brainstorm a way forward? Thanks in advance. smile

Posts: 1

Participants: 1

Read full topic

Customization hangs on save

0
0

@trudat wrote:

I am trying to update site customizations (header, css, etc) and when I hit the save button it just hangs, like so:

Context:

  • I recently locked myself of the site and had to disable all customizations with this command: SiteCustomization.update_all(enabled: false)
  • (i also disable sso settings to fix the lockout, but seems unrelated)
  • then restarted docker: sudo service docker restart
  • the bug appeared after that

Which logs should I be looking at for this: Postgres, nginx?

Posts: 13

Participants: 3

Read full topic

Totally N00b Question- Docs/Setup Strategy for Groups?

0
0

@cogdog wrote:

I am far from new to web software but am feeling rather overwhelmed with the features and settings of discourse. And I pretty much loathe discussion boards, and my experience using discourse sites elsewhere led me to recommend it.

Okay, where is there some documentation on Groups? I can grok how they are used, but am not finding anything except specific questions/issues on groups.

Okay, this is my scenario (well ti's real). I have 300 university faculty who spent a week in some technology immersion and we are moving them now into a online discourse community for 2 months as they work on applying the tech to their courses.

The plan is to have the community public open to read (so work is in the public) but for now the posting is for our participants and instructors only. What we want is a away for all of them to mingle and share (as a large group) and also for them to have groups of about 30 where they can have more focused talk, like a smaller cohort. I worry about them not finding their right place to do their group work.

So if I get this right, we might create some public categories all have access to. Then create specific ones for each group with group privileges applied? I can see the startup phase giving participants the ability to see just their group's categories, and then open it up as we go so they can see / participate in others.

What I am not seeing is if discourse provides a grouping of messages by their group or if all the org is by the categories.

Ideas?

Posts: 5

Participants: 3

Read full topic

Preferences: Automatically track topics I enter... "immediately" setting broken

0
0

@Yuun wrote:

That is: if you choose "immediately", the setting won't stick and will switch to "never" upon reload.

Happens for me here on the Meta forums as well as my own.

Posts: 4

Participants: 3

Read full topic

Problem with latest Software Upgrade - Mobile Browser Access Broken

0
0

@BCHK wrote:

I just upgrade my software last night to Beta 7, but I'm getting complaints from mobile users that its broken the access from new Google Browsers:

"I can only access the forum using an old Firefox browser on my phone now. my modern up to date browser just displays a blank page."

Posts: 5

Participants: 4

Read full topic

Viewing all 60279 articles
Browse latest View live




Latest Images