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

URLs in parenthesis do not turn into links

$
0
0

@swisspol wrote:

v1.4.0.beta3 +76

If you enter URLs in parenthesis, they don't turn into links:

like this (http://www.apple.com)

like this (http://www.apple.com)

I wonder if that's a regression as I thought this was working maybe 1 or 2 months ago.

Posts: 13

Participants: 5

Read full topic


What is the procedure to obtain CAS between my website and my discourse instance?

Possible "take me back to where I was" button on progress bar

$
0
0

@codinghorror wrote:

One thing that comes up time and time again is that once you start navigating in a topic stream, jumping down to later replies, jumping back up to earlier replies...

.. you lose track of where you were in the stream. You "lose your place".

But Twitter has this great new feature which lets you jump to the top with a visible button (this is an implied shortcut on iOS, which has the "tap to jump to top" feature, but Android does not and getting to the top after scrolling down a lot is excruciating, or at least it was until this feature was introduced)

So what if, when you jumped in a topic, we kept track of your previous scroll position before you jumped and showed it above the progress bar like so:

Now, in this case "back" could be up or down, but it's the place you were before you jumped.

(There is a far more complex discussion we could have about what "where I was" actually means, but I want to keep it simple, meaning your last position before you jumped anywhere. Jumping over and over does not change your original position you started from. Each jump does not track the previous jump position, only the original, first place you started before jumping at all.)

Posts: 1

Participants: 1

Read full topic

Settings search input box loses focus while I type

$
0
0

@meglio wrote:

  1. Put focus on the search input box in the settings page.
  2. Start typing quickly.
  3. At some point the input loses focus.

Posts: 2

Participants: 2

Read full topic

«Real Name» plugin (Version 2.0 is out!)

$
0
0

@dmitry_fedyuk wrote:

The «Real Name» plugin improves real user names support for Discourse.
The original post about plugin (4 weeks ago).
The plugin page with detailed description on discourse.pro: https://discourse.pro/t/topic/27

Today the version 2.0 is out with support for the official Accepted Answer (Solved) plugin!
So you can see the real user name instead of "username" in the accepted answer block.
A live demo is here: https://discourse.pro/t/topic/37

See also my other plugins:

The full plugin list is always here: https://discourse.pro/c/plugins

Posts: 1

Participants: 1

Read full topic

API call for specific post in topic

Show actual dates on Top and other date range pages

$
0
0

@codinghorror wrote:

Rather than this for /top

We should show the actual dates instead, like Product Hunt does:

That way we could drop the calendar glyph, which never looked that good anyway, and it's clearer what exactly you're looking at when you select a time range on Top or in the User Directory.

(of course with the down arrow glyph to indicate drop-down-y-ness, not pictured in the above mocks)

@neil can you take this, since you'll be touching the user directory soon, which has a very similar layout for time ranges?

Posts: 1

Participants: 1

Read full topic

Please explain the meaning of this page: /admin/reports/notify_user_private_messages

$
0
0

@meglio wrote:

I nor my mods cannot understand what this page is about:

/admin/reports/notify_user_private_messages

The related translation key is:

reports.notify_user_private_messages.

Please could you explain the meaning of this measurement.

Posts: 2

Participants: 2

Read full topic


Some questions on customisation and deployment

$
0
0

@Riff wrote:

Hi, guys! I'm looking at using Discourse for a community site and had a few questions. Hope someone can guide me with this.

  1. Workflow from development to production
    There are guides to setting up your own development environment using Vagrant, and deploying to production using Docker. What's the usual way to test your changes in development before pushing them to production? Would pushing via git work? I'm familiar with Vagrant but just started reading up on Docker, so I'm not sure.

  2. Customisations and plugins
    I've read that at no point should you be customising the core files of Discourse - everything should be through plugins. Is my understanding here correct? On that note, I would assume that I should test each new Discourse update in development to ensure it doesn't break any customisations I make before updating the production version.

  3. The specific customisations I'm planning
    For reference, here is a list of features that we plan to have. Are these all possible via plugins? If not, what are my alternatives?

    • Wordpress blog with sign-in integrated with Discourse (I believe this already exists).
    • Additional user profile fields, some of which will be data pulled via YouTube/Twitch/Steam API after user has associated his profile with those accounts.

    • Customised search page. While the current search feature is pretty handy, we'd need a special search page that only some users can access. In terms of layout, think matchmaking sites like OkCupid, so something with filters at the top and the results paginated below. I could code this sort of page on my own, but wondering whether an additional page could work as a plugin for Discourse.

    • Gamification features. The Badges system sounds similar. This is something we plan to have at a later stage, but basically some way the site can provide lists of activities that a user can fulfill to earn points. Some of these activities may require admin to verify and award points (e.g. via submission).

I'd really like to use Discourse (it looks pretty slick!) but need some assurance that I won't end up hitting a brick wall trying to implement some of the features I've mentioned.

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Not Displaying Images Uploaded from my computer?

$
0
0

@Mohit_Gupta wrote:

My discourse forum is not displaying images uploaded from my laptop in a topic but it is displaying images referred from a s3 bucket.
Does anyone know what the problem is?

Posts: 3

Participants: 2

Read full topic

Is it possible to "join" an existing WordPress post with an existing Discourse topic

$
0
0

@meglio wrote:

So, I have people created their "personal pages" in Discourse.
I have also created their personal pages in WordPress.

I now would like to let the topics found in Discourse become the "discussion topics" for the corresponding existing posts in WordPress.

Is it possible to do in GUI without touching database(s) manually?

Posts: 3

Participants: 3

Read full topic

Left days announcement inside topic doesnt resolve

$
0
0

@h1onE wrote:

wheneever some days are left inside an Topc and a new post was created
the "lfet days announcement" doesnt solve. instead there is this line:

[DE.DATES.LATER.X_DAYS]

here in meta it works so how can i change this behaviour? what do i wrong?

Posts: 3

Participants: 2

Read full topic

Subfolder support with Docker

$
0
0

@neil wrote:

To serve Discourse from a subfolder (a.k.a. with a path prefix) on your domain, like http://www.example.com/forum, here's how to do it!

Docker config

In the env section of your docker container yml file, add the DISCOURSE_RELATIVE_URL_ROOT setting with the subfolder you want to use.

env:
  ...
  DISCOURSE_RELATIVE_URL_ROOT: /forum

The run section needs some changes to send all Discourse routes to the right place. Here is a complete run section with subfolder support:

run:
    - exec:
        cd: $home
        cmd:
          - mkdir -p public/forum
          - cd public/forum && ln -s ../uploads && ln -s ../backups
          - rm public/uploads
          - rm public/backups
    - replace:
       global: true
       filename: /etc/nginx/conf.d/discourse.conf
       from: proxy_pass http://discourse;
       to: |
          rewrite ^/(.*)$ /forum/$1 break;
          proxy_pass http://discourse;
    - replace:
       filename: /etc/nginx/conf.d/discourse.conf
       from: etag off;
       to: |
          etag off;
          location /forum {
             rewrite ^/forum/?(.*)$ /$1;
          }
    - replace:
         filename: /etc/nginx/conf.d/discourse.conf
         from: $proxy_add_x_forwarded_for
         to: $http_fastly_client_ip
         global: true

After making these changes, bootstrap your Docker container as usual, or rebuild if you're changing an existing container.

./launcher bootstrap app

or

./launcher rebuild app

Attached is a complete example yml file of a standalone container.

subfolder-sample.yml (3.1 KB)

Posts: 1

Participants: 1

Read full topic

Explain SSO to a newbie, please

$
0
0

@Jason_Lorje wrote:

Hi there

I am battling to figure out SSO, it seems like there are different ways that one can implement SSO, but whatever I do seems to break something.

This is my set up:

  • Wordpress multisite (not blog farm, all subsites of main site)
  • Discourse hosted plan
  • Currently using plugin WP Multisite SSO to manage SSO to network
  • Login from any of the sites (including subsites) logs in to the entire network
  • Installed WP Discourse plugin.

What I am trying to achieve:

  • Add discourse as a site on the network with the following implications,
    • Log in from any of the sites also seamlessly logs in to discourse and viceversa

My questions are the following.

  • Is my desired setup possible or are the SSO plugins clashing ( I could also use WP Multisite User Management)
  • What do I enter on WP side and Discourse side, specifically do I enable 'enable sso provider' and what is my sso url - a) mysite.com/discourse/sso or b) discourse.mysite.com.
  • If a) do I need to create a template and if so how (no template shows up currently)

Thanks in advance for any help.

Regards
Jason

Posts: 1

Participants: 1

Read full topic

Creating private groups for users

$
0
0

@Jason_Lorje wrote:

Hi I would like to be able to create private groups for users admin or mod can create a group and add users. Once the group is up and running a 'group admin' can take over and act as admin for the group. Is this possible?

Posts: 6

Participants: 3

Read full topic


Global notice does not appear on tag pages

$
0
0

@downey wrote:

Reproduce:

  1. Create a global notice in your admin site settings.
  2. Verify it shows on the main site pages.
  3. View tag list page at /tags or a specific tag result page list /tags/foo

Expected:

  • Global notice appears at top.

Actual:

  • No global notice appears.

Posts: 1

Participants: 1

Read full topic

Manipulating search box

$
0
0

@dleung wrote:

Hi,
Is there anyway to manipulate the search box content like so:

... adding a link on top of the search box.
I tried doing this:

Discourse.ApplicationRoute.on('activate', function(){
$('#search-dropdown').prepend("Search mainsite.com");
});

but seems like $('#search-dropdown') is not loaded until the search button is clicked.

Thanks much in advance!

Posts: 1

Participants: 1

Read full topic

Discourse in a subfolder, sharing a domain

$
0
0

@neil wrote:

Let's say you have a WordPress blog on http://www.example.com, and you want to serve your Discourse forums from http://www.example.com/forum. How do you do that?

You're going to need to send all traffic for the domain to one place that can route traffic to the correct server. In this how-to, I'll use Fastly. So, Discourse will be running on one server, and the other parts of your site (like WordPress) will run on one or more other servers.

Docker container changes

First, follow the instructions here to serve Discourse from a subfolder.

Fastly

Now to setup Fastly to send traffic to the right place based on the path. I'll assume that Discourse is being served from /forum.

Create a new service pointing to your main website and follow the instructions for updating your DNS settings.

Go to the service and click "Configure". Make sure you have selected Version 2 so that you can make changes. Version 1 is the currently active version and can't be changed.

In the "Hosts" section, add your Discourse server as a second backend.

In the Settings tab, add a new entry under Request Settings named "Discourse Pass" with action "Pass".

Finally, for each host edit the conditions to specify where to route traffic.

For your main website, non-Discourse URLs should match.

req.url !~ "^/forum"

For the Discourse host, /forum URLs should match.

req.url ~ "^/forum"

Posts: 1

Participants: 1

Read full topic

Beginner's Guide to Creating Discourse Plugins

$
0
0

@eviltrout wrote:

Building a plugin in Discourse can be really simple, once you learn a couple of quirks. The goal of this post is to create a skeleton plugin and introduce you to the basics.

Your development environment

Make sure you have a development environment of Discourse running on your computer. I recommend you use this setup guide and come back when you're done.

plugin.rb

When Discourse starts up, it looks in the plugins directory for subdirectories containing a plugin.rb file. The plugin.rb file has two purposes: it is the manifest for your plugin with the required information about your plugin including: its name, contact information and a description. The second purpose is to initialize any ruby code necessary to run your plugin.

In our case, we won't be adding any ruby code but we still need the plugin.rb. Let's create the directory basic-plugin with the file plugin.rb inside it, with the following contents:

basic-plugin/plugin.rb

# name: basic-plugin
# about: A super simple plugin to demonstrate how plugins work
# version: 0.0.1
# authors: Awesome Plugin Developer

Once you've created this file, you should restart your rails server and the plugin should be loaded.

An important Gotcha!

If you're used to regular rails development you might notice that plugins aren't quite as nice when it comes to reloading. In general, when you make changes to your plugin, you should Ctrl+c the server to stop it running, then run it again using bundle exec rails server.

My changes weren't picked up! warning

Sometimes the cache isn't cleared fully, especially when you create new files or delete old files. To get around this issue, remove your tmp folder and start rails again. On a mac you can do it in one command: rm -rf tmp; bundle exec rails s.

Checking that your plugin was loaded

Once you've restarted your rails server, visit the url /admin/plugins (make sure you're logged in as an admin account first, as only admins can see the plugin registry).

If everything worked, you should see your plugin in the list:

Congratulations, you just created your first plugin!

Let's add some Javascript

Right now your plugin doesn't do anything. Let's add a javascript file that will pop up an alert box when discourse loads. This will be super annoying to any user and is not recommended as an actual plugin, but will show how to insert Javascript into our running application.

Create the following file:

plugins/basic-plugin/assets/javascripts/discourse/initializers/alert.js.es6

export default {
  name: 'alert',
  initialize() {
    alert('alert boxes are annoying!');
  }
};

Now if you restart your rails server, you should see "alert boxes are annoying!" appear on the screen. Let's step through how this worked:

  1. Javascript files placed in assets/javascripts/discourse/initializers are executed automatically when the Discourse application loads up.

  2. This particular file exports one object, which has a name and an initialize function.

  3. The name has to be unique, so I just called it alert.

  4. The initialize() function is called when the application loads. In our case, all it does is execute our alert() code.

You're now an official Discourse plugin developer!

Where to go from here

I plan on writing more guides that get more complex, but until then I suggest looking through some of our plugins in the discourse github repo.

Posts: 1

Participants: 1

Read full topic

Badge system not running on local discourse

$
0
0

@christine wrote:

Hi! I'm having a tough time with my local discourse install. I have it running and passing all tests after local install on OS X. It is the current version of discourse on git. I think I am missing something obvious, but when I log on my admin account and attempt to get a badge by liking my first post, nothing happens. The badge is enabled on the admin page. What am I doing wrong?

Posts: 2

Participants: 2

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images