Skip to content
  • On v1.17 carousal slider issue

    Technical Support
    3
    0 Votes
    3 Posts
    756 Views
    Varun Ganesh DV
    @dogs thank you Issue resolved
  • Custom Homepage: Recent + Categories

    General Discussion
    13
    0 Votes
    13 Posts
    6k Views
    J
    @pichalite said in Custom Homepage: Recent + Categories: Yes. Create a plugin to add recent topics data to categories route. Modify the theme template to show this data. Could you add just a little more detail to this? I have a custom homepage and Im trying to add a list of categories using: <!-- IMPORT categories.tpl --> But it just displays: No new posts. Do I have to hook into something to add the category data?
  • 0 Votes
    2 Posts
    1k Views
    barisB
    This can be easily done with a plugin. Use the static:app.preload hook and add a middleware to the express object. Something like below. myPlugin.onPreLoad = function(data, callback) { data.app.use(function(req, res, next) { if (req.path.startsWith('/') || req.path.startsWith('/api')) { if (req.uid) { helpers.redirect(res, '/recent'); } else { helpers.redirect(res, '/categories'); } } else { next(); } }); callback(); };
  • Not works filter:homepage.get

    NodeBB Plugins
    9
    0 Votes
    9 Posts
    4k Views
    S
    @baris thanks!!!
  • 1 Votes
    12 Posts
    7k Views
    Dustin FalgoutD
    @julian Right, I understand. It just makes it difficult to migrate from a more traditional forum like phpBB (which is the most, or perhaps second-most, used forum software today). I think making it easier to migrate from phpBB's format could only help nodeBB gain more ground Here is the github issue I opened a couple weeks ago. It was closed, though I hope we can reopen it. I'm more than willing to contribute. Let me know if there's anything I can do. https://github.com/NodeBB/NodeBB/issues/2549#issuecomment-69857946
  • Replace Homepage until logged in

    General Discussion
    15
    0 Votes
    15 Posts
    5k Views
    PitaJP
    @cfrancois IMPORT does not work in widgets
  • JS use in homepage

    General Discussion
    11
    0 Votes
    11 Posts
    5k Views
    B
    @kimmanuel what I meant that it's too fast for the user to see it. just use the Custom JS and try it out. It'll work, i already edit the menu items here: http://forums.afraidtoask.com/ Right click and view-source (or if you're in chrome click here) and you'll see the Custom JS script tag that reverses the menu items, hides the icons, shows the text instead and it adds a new item called "Home" <script> $(function() { var ul = $("ul#main-nav"); var items = ul.find("li"); items.each(function(i, li){ li = $(li); li.find("a>i").addClass("hide"); li.find("a span").removeClass("visible-xs-inline"); }); ul .append(items.get().reverse()) .prepend('<li><a href="http://www.afraidtoask.com" title="" target="_top" data-original-title="Home"><i class="fa fa-fw fa-home hide"></i><span class=""> Home</span></a></li>'); }); </script>