Reverse post order for a single thread (newsletter)

General Discussion
  • Hello,

    I have a thread where monthly project news are posted. The idea is to have the newest post on the top to avoid that users have to scroll over the old news. I know that is kind of opposite of what we do in a forum, but that is a special case 😉

    Is there a plugin or something to allow a reversed post order for a single thread ?


  • I don't think there is one but you can write a plugin using the hook This hook gets called before the actual topic route handler.

    In your plugin you can just do this:

    myPlugin.filterRouterPage = function (req, res, next) {
    	const myAnnouncementTopicId = 111;
    	if (req.params && req.params.topic_id && parseInt(req.params.topic_id, 10) === myAnnouncementTopicId) {
    		req.query.sort = 'newest_to_oldest';

Suggested Topics

  • 0 Votes
    3 Posts

    @baris oh, I was mixing up min title length with post length, it was set to 0. Thanks @baris

  • 1 Votes
    5 Posts

    I don't think so, unfortunately -- you'll have to make the initial call to get the topic, and then subsequent calls to grab the raw markdown. I don't think we'll be adding a way to retrieve the raw markdown at the topic level because we wouldn't have any use for it.

  • 0 Votes
    3 Posts

    @baris it works 🙂

    thanks for quick reply 🙂

  • nginx reverse proxy

    General Discussion
    0 Votes
    5 Posts

    well. thx so much for all reply, the nginx .conf works for me. and i found you should put before the port 80. so it would look like

    server {

    server_name; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }


  • Blog post re NodeBB

    General Discussion
    2 Votes
    8 Posts

    That's a very good write up Steve, you should be in marketing if your not already 😮

    LOL I have been for 15+ years now. Mostly corporate/tech companies helping roll out products/services/promotions. Always liked getting involved with the design so I learned photoshop, illustrator, indesign, etc. along the way. Now i'm working out of my house freelancing.

    oh cool haha. meanwhile all three of us are out-and-out programmers with no idea on how to market anything 😛

    Been down that road before. Just like programming, marketing is a process. When you guys get to that point of wanting help the 4 of us can all jump on a call and see where it goes.