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

Link to /last post in topic no longer works after recent updates

0
0

@mr8 wrote:

Posting a link to the last post within that topic by using /t/topic-slug/123/last used to work great, but it seems to be broken after a recent update.

Entering the url in the address bar still works and will take you to the last post, but clicking on the link will just redirect you to the first post.

example on try.discourse:
http://try.discourse.org/t/internal-link-test/332/

go to the last post on this topic:
https://meta.discourse.org/t/link-to-last-post-in-topic-no-longer-works-after-recent-updates/32415/last

Posts: 7

Participants: 3

Read full topic


Schedule posts/topic?

How to customize groups?

0
0

@Trash wrote:

Hi,
I want to create a customization for a group of users, DevTeam. It's not a Primary group and users have different TL.
How can I do that?

It's something like this:

I used Css to customize admins and mods group:

    .username.staff a {
    background: #C30303;
    padding: 3px 6px;
    line-height: 1;
    border-radius: 2px;
    display: inline-block;
    color: #FFF;
}
.username.staff {
    max-width: initial !important;
}
.username.moderator .fa.fa-shield {
    display: none;
}
.username.staff::after, .user-main .fa.fa-shield::before, #user-card .fa.fa-shield::before {
    content: 'SupportTeam';
    margin-left: 5px;
    color: #FFF;
    background: #F68416;
    padding: 0 6px;
    border-radius: 2px;
    display: inline-block;
}
.extra-info .badge-wrapper .badge-category-parent {
    padding: 3px 6px;
    width: auto;
}
.extra-info .badge-wrapper .badge-category-parent:before {
    content: '';
}
.user-main .fa.fa-shield::before, #user-card .fa.fa-shield::before {
    font-size: 14px;
    padding: 5px 9px;
    position: absolute;
    width: 70px;
    margin-top: -20px;
}
 #user-card .fa.fa-shield::before {
    margin-left: 0;
    font-size: 11px;
    width: 55px;
}

but how to proceed now?

Posts: 1

Participants: 1

Read full topic

Confirming - it's OK to set default watch for categories a user can't see

0
0

@watchmanmonitor wrote:

Continuing the discussion from Default email settings for a new user:

So, now that this feature is in place, I want to make sure new users are watching all the right categories. The concern is that they won't all have permissions to all categories.

I want to confirm my assumption, that it's OK to set a forum's defaults to include all the important categories, and that if a user can't see the category, the fact they Watch it by default won't hurt anything (and won't generate emails to them from the categories.)

If I'm right, this topic about watching certain groups by default may be much less complex.

Posts: 2

Participants: 2

Read full topic

Exploring ServiceWorkers for Discourse

0
0

@riking wrote:

ServiceWorkers are a new "web platform" feature that seem to be maturing about now. Here's two good overviews of what they can do: https://jakearchibald.com/2014/using-serviceworker-today/#demos https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers

Note also that because ServiceWorkers can modify network requests, they are only available on HTTPS sites. In other words: ServiceWorkers can only ever be a value-add for us, never a requirement. The app must always work without them.

What can ServiceWorkers do for Discourse?

  • (Best start) Merge message-bus requests across multiple open tabs on the same Discourse forum.

    The message bus is what Discourse uses for all of its live updates. However, currently, every tab you have open makes a request to the server every 15 seconds. A ServiceWorker can intercept these requests and merge them all into 1 request every 15 seconds.

  • (Questionable value) Force caching of vendor.js and application.js

    This probably isn't worth the effort. The JS files have the SHA hash of their contents in their name and have aggressive caching headers.
    Pretty much the only beneficial option here is to instantly reply to any request containing If-Modified-Since with 304 Not Modified.

  • (Great value) Push & Mobile Notifications

    Because a ServiceWorker is able to run even when no clients are around, it's required in order to serve push notifications. Also, because we know there should only ever be one (or less) ServiceWorker at a time for each forum, it's the ideal place to serve desktop notifications from. This will let us disable the buggy "active tab tracking" code currently in use for desktop notifications.

    Chrome push notifications require the forum admin to create an application with GCM (Google Cloud Messaging). Firefox push notifications require server-side storage of magic URLs.

  • (Easily screwed up) Caching of topic & post data

    The ServiceWorker could use IndexedDB to store post data previously requested from the server, and reuse known posts in the responses when scrolling through a topic, potentially allowing offline topic browsing. However, this is easy to mess up - currently, messages are not delivered on the bus for every post that is edited or deleted; and if the message bus backlog gets cleared, the cached post data could easily be stale.

    The stale cache problems could be alleviated if we use Background Sync, but it's just at a proposal stage right now, not implemented in any browsers, and the spec is a bit sparse.

    This is probably best shelved for a later date.

  • (Best value, hardest) Deliver the entire initial load from local cache

    This would be the most ambitious thing to do with ServiceWorkers. The layout of the initial page is largely predictable, and could be stored on the client. If no PreloadStore data is provided, the Ember router will just do a network fetch for the data. Combined with caching topic & post data, this is a recipe for a fully offline initial page load. We would save a lot of network bytes by doing this (check out that <noscript> section in every initial-load of a topic view).

    However, this rears the ugly head of one of the hardest problems in computer science: Cache invalidation. When I look at the source of meta.discourse.org, I see tons of site settings that can be changed, the site can update and so the script hashes change, the current customizations can change, data about groups and categories ( see https://meta.discourse.org/site.json ) can change, the custom emoji too.

    The good news is that that's about it for the list, though. We can add in live updates for categories, emoji, groups, and the site settings. We can make customizations refreshable in the background (sometimes). (We'll have to move script customizations out of </head> and to a file like the CSS is.) If we get all that, the last thing left is updates to the site. And a full network refresh is probably OK for that.

Implementation issues I've thought of already:

  • If there's a delay between getting topic data and getting the message bus current position from the server, we could lose updates. Solution: deliver the current message bus position in the topic response (and other pages).
  • The message bus currently screws up big time if the backlog is cleared (redis-cli FLUSHALL). Solution: The server should deliver a message on __global when a client requests a too-high ID, and the client will reload the page (or the worker will reload all pages and discard its messagebus data).
  • A new ServiceWorker that gets downloaded and installed will not activate until all clients (browser tabs) using the old version are disposed. This is a problem for Discourse, because tabs are long-lived. The solution is to get all active clients to refresh. We'll need some design work to figure out how to do this in a non-intrusive way (the current behavior, "silently reload on navigation, or show a popup after 2 hours" is actually user-hostile in the second case.)

Implementation notes:

  • use Clients.matchAll({ includeUncontrolled: true, type: 'window'}) to get all the window objects to trigger refreshes, via postMessage() or navigate(). TODO: how to identify new version vs old version? Make sure not to force refreshes on auth popups (client.frameType).

Reply with comments, or if you have any use-cases that I forgot about.

Posts: 1

Participants: 1

Read full topic

How can I install Discourse on my website?

Replace Unicorn with Puma

"Open all external links in a new tab" not honoured by keyboard activation

0
0

@TechnoBear wrote:

Steps to repro:

  1. Check "Open all external links in a new tab" in preferences.
  2. Open an external link using a mouse - it opens in a new tab as expected.
  3. Open an external link using the keyboard. It opens in the current tab.

e.g. External link to SitePoint in this post:

Tested on Firefox 40 & Chromium Version 44.0.2403.89 Ubuntu 15.04 (64-bit), both on Ubuntu Gnome 15.04.

Posts: 1

Participants: 1

Read full topic


Remove hamburger menu

es6 embedded Ruby (erb) controller not working?

0
0

@JSey wrote:

I haven't found anything on this, so I'm afraid this simply will not work: in order to migrate an older plugin, I'd like to create a controller for a plugin (say plugin.js.es6). That works - but I need to create an embedded Ruby file - when I move to plugin.js.es6.erb, things go awry - the console tells me there is no controller defined. Does anyone have any insights if I'm doing something fundamentally wrong here?

Posts: 2

Participants: 2

Read full topic

Mail app named "TL;DR" breaks reply by email

0
0

@HAWK wrote:

This is an edge case so may not be worth pursuing but I figured I'd ask.
I have a member that uses a mail app called TL;DR on his phone. It breaks the reply by email functionality (they come in as email replies rather than posts).

Is there anything that I can do about that?

Posts: 3

Participants: 2

Read full topic

Where best to post troubleshooting examples of email?

0
0

@watchmanmonitor wrote:

Continuing the discussion from Mail app named "TL;DR" breaks reply by email:

There are many times when I don't want to post an email to the internet (here on this public discourse) but I can't expect good support if I have to obscure information in the email either.

Where is the best place for us to post details which help troubleshoot reply by email functionality?

Posts: 3

Participants: 3

Read full topic

Possible to disable alternate font color for read topics?

0
0

@jakedwhitaker wrote:

I really just don't like how this looks, especially on a dark skin. Looked around through the ACP but couldn't find a relevant setting. The "unread" filter at the top of the index seemed satisfactory; now the forum just looks empty to people who have been keeping up to date. It's also aesthetically unpleasing having pinned topics grayed out at the top of the index/categories.

The most frustrating part of being a Discourse user is going through with an update to find that the only change is a random developer preference that you didn't want/can't disable.

Posts: 2

Participants: 2

Read full topic

Blocked user error message confusing

0
0

@pfaffman wrote:

Disclaimer: I'm still new to Discourse. I'm using it to teach online classes at the university where I teach.

I had a student complain that he couldn't post and he'd tried all kinds of things (different computers, different browsers, different locations) but still couldn't post. The error message he was getting when trying to post his work was

"Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?"

which is the topic_not_found error. I poked around a bit more and finally realized that his account was blocked. It would be nice if the error message reflected that so that he or I could have figured out the problem a bit quicker.

I don't know why he was blocked. Perhaps too many accounts got created from the university (which is behind NAT, so it looks like one IP address)? On a related note (which might need another topic?) it might be nice if there were a way to whitelist an IP range and/or a email domain. I also went crazy when I had a bunch of students log in during the first class and was flummoxed that they couldn't reply because they were still Level 0 users. (In the future, I can change the initial user level for the first week or so of class, or make them read the syllabus in Discourse before I have them try to post.)

Posts: 2

Participants: 2

Read full topic

Remove speed display

0
0

@pushingsocial wrote:

This is driving me nuts..

There is a speed display on the upper right-hand side on every page. Can this be removed?

Posts: 4

Participants: 3

Read full topic


Digest preview bug and possibile enhancement

0
0

@Barry_Chertov wrote:

Bug

I've set the "default digest email frequency" to Daily (Admin->Settings->Email) but Preview Digest says "Preview the content of the weekly digest emails sent to inactive users."

Enhancement?

Maybe I Just don't know how it works, but I'd like to be able submit a new post and then immediately be able to preview it's presentation in the digest. Is that possible? Seems like it would be good to have datetime begin/end settings of posts to show in the preview digest.

Posts: 1

Participants: 1

Read full topic

Code fences inside a list render as one line

Add + New Topic link to all pages

0
0

@Barry_Chertov wrote:

Unless I'm missing something, there isn't way to create a new unlinked topic when viewing a topic. To do so, you'd have to click the logo to go home (1 click) or the hamburger menu and then make a selection (2 clicks), both if which may not be entirely obvious to new users (at least before DC become the web standard!)

I think it should always be in the top right menu (what do you call that?) for logged-in users:

If that is not acceptable for some reason, I suggest making it an admin selectable option on the Admin>settings>basic setup, akin to the options available there for top menu.

Posts: 2

Participants: 2

Read full topic

Low-bandwidth "lite" version

0
0

@mr8 wrote:

So a couple of my users are complaining that my site loads slowly when they're on a slower connection or have bad reception and/or uses too much "data" on their mobile devices. My site loads fast for me so I don't really think it's an issue on our side/server, but I usually have a good connection and LTE coverage on my mobile devices.

Would it be possible to have a "lite" version of the site that's more basic and uses less data so that it 'loads' faster for people with a slow connection and/or limited data? Something like the "basic HTML" version on gmail.

Posts: 4

Participants: 4

Read full topic

Per-user theme selection

0
0

@Daniel_M wrote:

Continuing the discussion from Coming soon to Meta new_moon DARKNESS new_moon:

No, that was a mockup of a per-user theme selector, located under preferences (in fact, the mockup was based off of a "custom field" on a VM that I installed discourse on a while back). I still think that a built-in per-user theme would be better than installing an extension (+ the user doesn't have to know how to write CSS).

BTW, when I quoted my post, discourse didn't automatically copy images.

Posts: 4

Participants: 3

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images