Getting started issue

General Discussion
  • I am trying to migrate a huge WordPress community to NBB instance. But issue is it is not working properly. In digitalocean, after proper installation (I followed all the tutorials) it says "server is not responding". I am trying to use a special domain like .club for NBB. But when I try to install NBB with a .com or .net domain, it is working properly. Can someone clarify this issue? 😏

    Also are there any paid themes available for NBB? Majestic V4 is not on sale any more.


Suggested Topics


  • How to get uid from @userslug?

    Solved General Discussion
    8
    0 Votes
    8 Posts
    526 Views

    @baris very thanks
    This is the JS code I write for new chat with users, thanks to the help you give me

    require(['autocomplete'], autocomplete => { var modal = bootbox.dialog({ title: '[[flags:start-new-chat]]<i class="fa fa-comments-o" style="margin: 0 7px;"></i>', message: '<input class="form-control input-lg" placeholder="[[user:username]]">', buttons: { cancel: { label: '[[modules:bootbox.cancel]]', className: 'btn-default', callback: () => modal.modal('hide') }, ok: { label: '[[modules:bootbox.ok]]', className: 'btn-primary', callback: () => false } }, onEscape: true, backdrop: true, show: true }); modal.on('shown.bs.modal', () => { var inputEl = modal.find('input'); inputEl.focus(); autocomplete.user(inputEl); modal.find('.btn-primary').click(() => { utils.isUserNameValid(inputEl.val()) ? require(['slugify'], slugify => $.getJSON(`/api/user/${slugify(inputEl.val())}`, data => { app.newChat(data.uid); if (app.user.uid != data.uid) modal.modal('hide'); }).catch(() => app.alertError('[[error:no-user]]')) ) : app.alertError('[[error:invalid-username]]') }); }); });
  • 0 Votes
    8 Posts
    470 Views

    Glad you got it resolved, best of luck!

  • Getting an error sometimes

    General Discussion
    12
    0 Votes
    12 Posts
    4k Views

    @pichalite Thanks a lot.
    It seems to be working fine now 🙂

  • 0 Votes
    2 Posts
    3k Views

    You can't get the current user data without their uid. If you have access to the express req object you can grab it with req.uid or if it is a socket call then its socket.uid. The value of uid is 0 if the user is not logged in.

  • 0 Votes
    11 Posts
    4k Views

    @Ted said:

    @a_5mith, it used to do something, right? 😛

    Yeah it used to list all the plugins in npm and (I think) allow you to install them. But this was added to core a fair few versions back. Around 0.3 or 0.4. I hope that's the plugin I'm thinking of.