Search Feature doesnt work

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 ;).

  • in-topic search on mobile?

    Technical Support
    1
    0 Votes
    1 Posts
    115 Views

    On desktop, when I use Command+F , it automatically search the keyword on that topic and then it shows me the first post with that keyword, but I can navigate using the arrows that appears on the right side of the screen.

    Is this working on mobile as well? ( In similar or different way, does not matter)

  • 0 Votes
    2 Posts
    2k Views

    @avii try disabling all plugins. Make sure you have node v5+ installed.

  • 0 Votes
    4 Posts
    2k Views

    Fix'd, was something with the plugin, Not sure exactly.

    I've uninstalled and install the composer. But not sure why but once I rebooted Unbuntu itself it seemed to kick something free.

    Thanks guys

  • 1 Votes
    5 Posts
    2k Views

    @julian 3Q,QQ single sign-on configuration page is ok, but I found another problem.

    i can't find the button of qq sso in the login page.
    upload-64901fe2-932d-40fa-9266-20632e2ea263

    I found "CUSTOM HEADER" is not working while “Use Custom css” is checked!
    upload-94fead26-af1f-401c-baa0-a873547dc4b3
    upload-570051f9-f880-4cb2-8000-1b16c7dd0a01