[nodebb-plugin-custom-homepage] Basic CMS plugin - custom homepage

  • Admin

    for this plugin or any plugin? no errors?


  • Any Plugin!


  • im having an issue where if im on any page and i click the site title, it reloads a blank page with just the header, but if i refresh the page through the browser it loads the homepage.

  • Admin

    Any Plugin!

    You have to restart NodeBB for a plugin to activate

    im having an issue where if im on any page and i click the site title, it reloads a blank page with just the header, but if i refresh the page through the browser it loads the homepage.

    Did you add any widgets to your custom homepage? If so, do you see any errors in your console? Also, I'll assume you're fairly up to date wrt core yes?


  • You have to restart NodeBB for a plugin to activate

    @psychobunny but if a plugin is activated, that act by itself also restarts NodeBB. So you don't need to restart it again separately.

  • Admin

    Depends on how you've started NodeBB, these days we've got the loader.js functionality in, but not everybody's switched over from using forever app.js, etc - this will not auto-restart and will display an error


  • Clicking the new header.navigation button for /forum does a hard load of the /forum page so transitions are not smooth. After going to /forum going to any other link on top bar smoothly transitions fine. Anyway to correct this?


  • Looks like another great app. For some reason I can't get it to work. Is there an admin area to edit the front page?

  • GNU/Linux Admin

    This plugin introduces new widgets you can drag/drop in the "Themes->Widgets" section of the ACP 🙂


  • @julian

    AH! I didn't' even see that! Thanks! Are there any plans to add a custom menu in the admin page? That would go hand in hand with this addon. Thanks again for all the hard work you guys do!


  • @julian A couple questions:

    1. When using the "recent view" widget, it defaults to topics from the past day. Since I won't have topics each day, I don't want this to result in a blank page. The "recent post" widget has an option to include the past week or month -- is a similar thing possible with the "recent view" widget?

    2. None of the topic lists have a "New Topic" button (hence the widgetized homepage also doesn't have one with the recent view list). Is it possible to add the "New Topic" button to each page (recent posts and popular posts), or manually add it to the custom home page?

  • GNU/Linux Admin

    Pinging @psychobunny, as it is his plugin 🙂


  • If I navigate to the custom homepage from any other page, only the sidebar loads. None of the other widgets (header, footer, content) show up and Firefox' Inspector can't seem to find them either.
    It does work when directly navigating to the page though, so I'm guessing this must be related to the SPA-ness of NodeBB?

  • Admin

    1. When using the "recent view" widget, it defaults to topics from the past day. Since I won't have topics each day, I don't want this to result in a blank page. The "recent post" widget has an option to include the past week or month -- is a similar thing possible with the "recent view" widget?

    Created an issue for it, track progress here

    1. None of the topic lists have a "New Topic" button (hence the widgetized homepage also doesn't have one with the recent view list). Is it possible to add the "New Topic" button to each page (recent posts and popular posts), or manually add it to the custom home page?

    I wonder if this script could be re-appropriated for that use

    If I navigate to the custom homepage from any other page, only the sidebar loads

    I haven't encountered this problem myself, are you completely up to date?


  • @psychobunny said:

    I haven't encountered this problem myself, are you completely up to date?

    That particular installation was freshly pulled yesterday and this plugin was installed via list of available plugins in the Admin Panel, which I believe just calls npm.
    Both https://www.npmjs.org/package/nodebb-plugin-custom-homepage and https://github.com/psychobunny/nodebb-plugin-custom-homepage were last updated a month ago, so unless there is some massive time dilation going on it's probably up to date.


  • @julian Thanks for the explanation on where to go to use this (especially for us nodebb noobs)
    @psychobunny Great plugin! Can you add a note on your github readme? Thanks!


  • @Xiph said:

    If I navigate to the custom homepage from any other page, only the sidebar loads.

    UPDATE: After some (re)starts it seems to work perfectly fine, though most of the time the aforementioned bug still occurs. Basically, restart 'till ya get lucky.
    I checked the console for any particular errors or warnings related to this plugin, but there appear to be none. (although there's plenty of plugins complaining about either staticDirs or callbacked. nodebb-plugin-emoji seems to find it necessary to print that particular warning a couple billion times)

  • GNU/Linux Admin

    @Xiph You should just use emoji-extended instead. It's a superset of the emoji plugin 🙂


  • @julian said:

    @Xiph You should just use emoji-extended instead. It's a superset of the emoji plugin 🙂

    I would, but it crashes NodeBB upon activation.


  • Oh, and by the way: when clicking on the navigation icon this plugin adds, the page is loaded via the "normal" method instead of NodeBB's fancy AJAX one. I miss my loading bar 😢

Suggested Topics

| |