Keep in mind on some forums (such as mine) "recent" posts can be ~2 weeks old.
Henry Wright
Posts
-
Does /recent need timestamps? -
User Icons Testing@julian said:
Also there's a user named @ElonMusk LOL
Yup, noticed that too. Keep an eye on the Tesla website for a NodeBB-powered forum
-
User Icons Testing@julian Thanks for explaining, that sounds reasonable to me!
Regarding the avatars on the users page https://community.nodebb.org/users
For me, it seems only some are loading. I see a lot of blank white space where an avatar should be. Also if I scroll down the page I see the mystery man instead of the new "letter" icon.
Is this just me? I'm currently using latest Chrome on Chrome OS.
-
User Icons Testing@pitaj true but calling something like MD5 on a username string will ensure you get the exact same colour for a particular user each time. That's something that's important if you're doing this each time on the fly and not storing the generated image.
-
User Icons Testing@pitaj you could, but that doesn't quite achieve uniqueness. MD5 isn't perfect but 99.99% of the time you'll get a unique colour from a username argument.
-
User Icons Testing@julian you could get the colours to be more varied than that. In my project I used an MD5 hash of the person's username to get a hex colour that's highly likely to be unique. For ex:
$hash = md5( $username ); $hex_colour = substr( $hash, 0, 6 );
JavaScript obviously doesn't implement an
md5()
function but you could maybe use a library? -
User Icons TestingThe icons seem to be predominantly red in colour. Is the colour randomly generated?
-
User Icons TestingYup,
.user-icon
is the offending class andline-height
is the offending property. -
User Icons TestingThese look awesome! I did something like that for BuddyPress (remove the need for Gravatar) by drawing GitHub-style "identicons" (see here) for users without a profile photo. My project used the GD PHP library so it won't be useful here but it's great to see you're going to be removing (many) calls to the (external) Gravatar service.
-
Is node.js "dying"?Whether he is right or wrong, that anti-node.js rant really made me chuckle. My background is PHP, but I'm keen on trying anything new that might improve on the existing way of doing things. If we didn't embrace new technology, we'd still be using punch cards.
-
WikipediaMaybe the NodeBB guys should commission a seasoned Wikipedia article writer to get the job done properly?
-
Wikipedia@psychobunny you can't let this rest here. For whatever reason, someone at Wikipedia isn't playing nice and they shouldn't be allowed to get away with it.
-
Star icon appears then disappears@BDHarrington7 Thanks for the info!
-
Star icon appears then disappears@psychobunny looks good to me!
Is it right that I see the bookmark icon when I'm logged out as well?
-
WikipediaDeleting that article is doing a disservice to Wikipedia's readers. We should report it to Wikipedia's help desk (if they have one)
-
WikipediaThis Yannick guy seems to be deliberately excluding NodeBB.
-
Feature request: Opt-in to watching categories instead of opt-outCurrently watching categories is opt-out. On forums having lots of new topics, this results in a huge number of items in
example.com/unread
. I think the unread page would be far more useful if watching categories was opt-in. That way/unread
would contain only the items a user is interested in from the start and they won't have to go ignore a bunch of categories in order for/unread
to become useful. -
How to return a 404 page for a given route?@pitaj I did some testing today with /categories 404'd. Seems as though things continued to work fine. I'm not disabling the functionality, just access to the page.
-
How to return a 404 page for a given route?@baris I'm going to give that a shot!
-
How to return a 404 page for a given route?@pitaj neat idea! I'll try that. But I'm also thinking there must be a way of intercepting the request before NodeBB serves the page. Then forcing a NodeBB style 404 (i.e. no redirecting)?