Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. sebastian-marinescu
    • Profile
    • Following 2
    • Followers 1
    • Topics 8
    • Posts 28
    • Best 1
    • Groups 0

    sebastian-marinescu

    @sebastian-marinescu

    2
    Reputation
    596
    Profile views
    28
    Posts
    1
    Followers
    2
    Following
    Joined Last Online

    sebastian-marinescu Follow

    Best posts made by sebastian-marinescu

    • RE: Question: How to add own assets (e.g. images necessary for a theme)?

      So after researching a little more I found my answer inside the plugin.json of the quickstart-plugin.

      "staticDirs": {
      	"images": "./images" 
      },
      

      Adding a staticDirs key inside the plugin.json like that adds the static dirs inside /assets/plugins/your-plugin-name/.

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu

    Latest posts made by sebastian-marinescu

    • Set "default" settings via shell/bash

      Hi nodebb-Community,

      I'm using a customized shell script to manage 3 nodebb environments (local/staging/production). This is helping to integrate and customize private modules on the server, etc. - and activates/resets default modules for our setup.

      Now I wonder how to go about "default settings" - e. g. I want to get sure the site-name is consistent everywhere - or vice versa, set it dynamically depending on the environment.

      Does nodebb has an API for setting settings through shell?
      Or would I need to go through the mongo shell?

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu
    • RE: New topic button

      Hi @davidr I'm just about to do the same thing.

      I'm using a custom theme, so I will be adding it there, can tell you more, when I'll start this.
      Do you use a custom theme?

      posted in General Discussion
      sebastian-marinescu
      sebastian-marinescu
    • RE: Install from CLI with custom plugin-list

      @pitaj Thanks for your answer! The npm@5-symlink-deletion was my main problem, so my command is working again. I would love to see it in the Documentations for future look-ups.

      I've anyhow tried using your suggested command with my params ./nodebb setup --params, but it's not working:

      • error: unknown option '--setup' - on the first try, then I deleted the setup param
      • error: unknown option '--defaultPlugins' - also unknown

      I'm on the v1.7.5 branch.

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu
    • Install from CLI with custom plugin-list

      Hi Community,
      this piece of code used to work in a custom setup-script:

          node app.js \
              --setup "{\"admin:username\":\"${ADMIN_USERNAME}\",\"admin:password\":\"${ADMIN_PASSWORD}\",\"admin:password:confirm\":\"${ADMIN_PASSWORD}\",\"admin:email\":\"${ADMIN_EMAIL}\"}" \
              --defaultPlugins "[\"nodebb-plugin-custom-homepage\", \"nodebb-plugin-custom-pages\", \"nodebb-plugin-dbsearch\", \"nodebb-plugin-emoji\", \"nodebb-plugin-emoji-android\", \"nodebb-plugin-emoji-extended\", \"nodebb-plugin-emoji-one\", \"nodebb-plugin-markdown\", \"nodebb-plugin-mentions\", \"nodebb-plugin-ns-embed\", \"nodebb-plugin-soundpack-default\", \"nodebb-plugin-spam-be-gone\", \"nodebb-rewards-essentials\", \"nodebb-theme-vanilla\", \"nodebb-widget-essentials\"${modulesToActivate}]" \
               || (echo "Unable to install nodebb" && exit 1)
      

      modulesToActivate has a string continuing the array of plugins.

      This seems so have changed. It also seem to delete symlinks created in the node_modules folder.

      Did anything change?
      Or what is the currently recommended way to install from CLI?

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu
    • RE: Using/Getting timestamp inside template

      @baris Thank you very much for the example. I use a custom theme and this works perfectly as expected in some parts of the template. I changed it in the following files:

      modules/nodebb-theme-name/templates/partials/menu.tpl
      modules/nodebb-theme-name/templates/partials/account/header.tpl
      modules/nodebb-theme-name/templates/account/edit.tpl

      And it's working. A new uploaded profile-picture is immediately shown after upload, also without deleting the browser-cache.

      Now in the upload-modal:
      modules/nodebb-theme-name/templates/partials/modals/change_picture_modal.tpl
      the old picture is still shown. Adding the cacheBuster-query-string there doesn't work, the timestamp is not appended. Is there a hook also for this case?

      Also is there a list of all possible hooks/events that are happening in the system?

      Another thing I noticed is, that after uploading a new profile-picture, the success-callback changes the picture in the header-menu and in the edit-page immediately, but not in the profile-header part (after refreshing, with the new cacheBuster, it is changed).
      I've traced it to this file: app/public/src/client/account/edit.js.
      How can I now react on the image-change in my custom theme?

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu
    • Using/Getting timestamp inside template

      Hi nodeBB-Community,
      we are using nodebb 1.4.6 and I'd like to cache-bust the profile-avatars, so changes are immediately seen by every user.

      How can I use Date.now() inside a template?

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu
    • RE: Avatars do not change immediately

      @julian I've just stumbled upon the same issue.

      I wanna get around it, what possibilities do I have, as our upcoming user-base will not be technically advanced and they'll blame the system.

      Is there anywhere a timestamp of the last changed avatar? Or how can I use a Date.now() cache-buster inside the template?

      posted in Technical Support
      sebastian-marinescu
      sebastian-marinescu
    • RE: Custom Header

      @chaosyamyt it seems this is the repo for that:
      https://github.com/esiao/nodebb-plugin-custom-header

      You could try to check it out into the "node_modules" directory and then activate it in the admin-interface.

      posted in NodeBB Plugins
      sebastian-marinescu
      sebastian-marinescu
    • RE: SMTP Configuration

      Hi @Ottman001,

      either you are not using SMTP, then your NodeBB uses the server's sendmail() function, and you'll have to check your configuration on the server
      (for example like explained here).

      Or you use SMTP, then you could try to login to your admin and go to this URL: http://yourdomain.com/admin/emailers/local

      If you do use SMTP, then it's odd that you don't have installed any plugin nor that there is any menu-entry for the SMTP-configuration 😕

      Best regards,
      Sebastian

      posted in NodeBB Plugins
      sebastian-marinescu
      sebastian-marinescu
    • RE: First release pass nodebb-plugin-fileownership

      @Shard Looks interesting! Thanks for sharing 👍

      posted in Plugin Development
      sebastian-marinescu
      sebastian-marinescu