I changed it from Red Tops as the top is no longer red
Categories page
Just realised I'd missed a few non-Arsenal discussions because there's no "new posts in 'ere" indication on the Category headings. I think it's good either way, though, and I think the familiarity for OMITT's sake of the Categories view is probably better as the default.
Have to say, I immediately switch to the "all categories" view page now too.
- Edited
Have been doing some work on the mobile version of the categories page. @Burnwinter I wonder do you know much about css? I've been able to tweak a good few of the things I want but one thing I am struggling with is moving the timestamp text on the mobile last post to sit underneath the name of the last post thread name.
The classes containing the two elements are LastDiscussion-topRow and LastDiscussion-bottomRow. bottomrow contains the timestamp and the below css:
.LastDiscussion-bottomRow {
display: flex;
}
Oddly however, in the html, the bottomrow div actually appears first:
<div class="LastDiscussion-bottomRow">...</div>
<div class="LastDiscussion-topRow">...</div>
So if I change the display: setting to say, block, I get the desired appearance of the two elements stacked vertically rather than side-by-side, but it is the timestamp that appears on top as per the html, rather than the thread title. Other than going into the code of the extension, I am struggling to work out how to do this.
... annoying because the desktop way of displaying it (Thread title, carriage return, timestamp, poster name) is perfect. It'd look so much better it was just like that on mobile too
Nevermind, figured it out!
Looks a lot better, Pepe. Nice work.
Is there a way to implement a feature that indicates whether you have any unread threads in each category? I think MyBB just made the category name bold.
Pepe LeFrits . Burnwinter I wonder do you know much about css?
Only this: CSS is a bitch and then you die. Nah, I've gotten okay at it over the years, at least in terms of breaking it up so the individual components don't clobber each other, using scss, knowing how to find useful "off the shelf" stuff, but it'll still take an hour to debug something that feels like it should take 5 minutes.
Coombs Is there a way to implement a feature that indicates whether you have any unread threads in each category? I think MyBB just made the category name bold.
Discussion of this here, not very encouraging, in my opinion the dev responding is handwaving a bit unnecessarily about the performance impact (as far as I can see it's an extra query join—but also, just make it an option and let admins decide if it's going to hit performance?).
https://discuss.flarum.org/d/30767-create-a-class-or-id-for-forumstags-with-unread-messages/2
I had a look at the flarum-json-payload
part of the categories page render in debug mode, and I think I can confirm the page doesn't send this information to the frontend when it loads at the moment.
Burnwinter yea, it would have to be user-specific, maybe that makes it more complicated? It doesn't seem like categories are anything but what it says on the tin - they aren't forums like the old platform, they are just ways to organize threads in a more superficial way.
- Edited
Coombs Yes, the "categories" are just "tags" under the hood I think.
As this dev says, one way to fix it is to add an unread discussion count and timestamp column to a tag-per-user table (or view) and update it when discussions are read or posts are made by other users.
He's concerned if someone comes and posts, you've gotta update those values for every forum user, but I'm not sure you do, I think there would be ways to optimise the model. My sense is of a bit of pushback going on because it's not totally trivial.