Lavender theme issue - Categories items don't display nearly

Moved Technical Support

Suggested Topics


  • 2 Votes
    1 Posts
    168 Views

    Hello,
    I created some accounts with the api/v3, but those accounts can't log in by email on the forum, and consequently can't log in with session sharing plugin.

    I searched a long time, because this used to work on nodebb v1.15.
    But on v1.18, some db objects are only set after the call of confirmByUid function :

    ['email:uid', uid, currentEmail.toLowerCase()], ['email:sorted', 0, `${currentEmail.toLowerCase()}:${uid}`], [`user:${uid}:emails`, Date.now(), `${currentEmail}:${Date.now()}`]

    So you have to confirm each account before the plugin "session sharing" works with them.

    To resolve this, i made a custom plugin and used the "confirmByUid" function :

    library.js :

    const Users = require.main.require('./src/user') var Plugin = { onCreateUser: function (postData) { const { user } = postData; Users.email.confirmByUid(user.uid); Topics.markAllRead(user.uid); } }

    plugin.json :

    "library": "./library.js", "hooks": [ { "hook": "action:user.create", "method": "onCreateUser" }, ]

    I hope this can help ;).

  • 0 Votes
    5 Posts
    407 Views

    @pitaj Thanks. I'm not in a particular rush for it, so I'll drop a note on GitHub, thank you very much.

  • 0 Votes
    3 Posts
    2k Views

    Should be fixed on lavender 1.0.1, if user didn't have a preference set in localStorage it was defaulting to fluid width whereas the template was starting with fixed width.

    default to fixed width if not set in local storage · NodeBB/nodebb-theme-lavender@339e43e

    A simple theme for NodeBB. Check out the theming guide that accompanies this work - default to fixed width if not set in local storage · NodeBB/nodebb-theme-lavender@339e43e

    favicon

    GitHub (github.com)

  • 0 Votes
    11 Posts
    5k Views

    The Classic theme is based off of Lavender yet it does not have the pinterest-style categories.

  • 1 Votes
    1 Posts
    1k Views

    Am I blind or is there no way to just have an MOTD widget for Lavender?

    I essentially just want to use the shoutbox plugin at the top of the category listing page but don't see a widget area for MOTD anymore. Is that only with Vanilla?