Skip to content

nodebb-plugin-customize error

Solved Customisation
  • @riekmedia Anything recorded in /var/log/nginx/error.log ?

  • @phenomlab no errors in the log file

    2021/10/19 14:00:52 [notice] 1984#1984: signal 15 (SIGTERM) received from 2037, exiting
    2021/10/19 14:00:52 [notice] 1985#1985: exiting
    2021/10/19 14:00:52 [notice] 1986#1986: exiting
    2021/10/19 14:00:52 [notice] 1985#1985: exit
    2021/10/19 14:00:52 [notice] 1986#1986: exit
    2021/10/19 14:00:52 [notice] 1984#1984: signal 15 (SIGTERM) received from 1, exiting
    2021/10/19 14:00:52 [notice] 1985#1985: signal 15 (SIGTERM) received from 1, exiting
    2021/10/19 14:00:52 [notice] 1986#1986: signal 15 (SIGTERM) received from 1, exiting
    2021/10/19 14:00:52 [notice] 1987#1987: signal 15 (SIGTERM) received from 1, exiting
    2021/10/19 14:00:52 [notice] 1987#1987: exiting
    2021/10/19 14:00:52 [notice] 1988#1988: signal 15 (SIGTERM) received from 1, exiting
    2021/10/19 14:00:52 [notice] 1988#1988: exiting
    2021/10/19 14:00:52 [notice] 1987#1987: exit
    2021/10/19 14:00:52 [notice] 1988#1988: exit
    2021/10/19 14:00:52 [notice] 1984#1984: signal 17 (SIGCHLD) received from 1988
    2021/10/19 14:00:52 [notice] 1984#1984: worker process 1985 exited with code 0
    2021/10/19 14:00:52 [notice] 1984#1984: worker process 1988 exited with code 0
    2021/10/19 14:00:52 [notice] 1984#1984: worker process 1986 exited with code 0
    2021/10/19 14:00:52 [notice] 1984#1984: worker process 1987 exited with code 0
    2021/10/19 14:00:52 [notice] 1984#1984: exit
    2021/10/19 14:00:52 [notice] 2038#2038: using the "epoll" event method
    2021/10/19 14:00:52 [notice] 2038#2038: nginx/1.21.3
    2021/10/19 14:00:52 [notice] 2038#2038: built by gcc 8.3.0 (Debian 8.3.0-6) 
    2021/10/19 14:00:52 [notice] 2038#2038: OS: Linux 4.19.0-17-amd64
    2021/10/19 14:00:52 [notice] 2038#2038: getrlimit(RLIMIT_NOFILE): 1024:524288
    2021/10/19 14:00:52 [notice] 2039#2039: start worker processes
    2021/10/19 14:00:52 [notice] 2039#2039: start worker process 2040
    2021/10/19 14:00:52 [notice] 2039#2039: start worker process 2041
    2021/10/19 14:00:52 [notice] 2039#2039: start worker process 2042
    2021/10/19 14:00:52 [notice] 2039#2039: start worker process 2043
    
    
  • @riekmedia Ok. I’d expect a different looking nginx.conf log rather than just the default. Are there any others ? For example, a file that contains items that look like the below

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
        proxy_redirect off;
    
        # Socket.io Support
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        location @nodebb {
            proxy_pass http://127.0.0.1:4567;
        }
    
  • @phenomlab yes that would be the default.conf where the domains are stored

    /etc/nginx/conf.d/default.conf

    server {
        listen       80;
        server_name  community.riekmedia.dev;
    
        root   /var/www/community/NodeBB;
        index  index.php index.html index.htm;
    
       location / {
        if ($request_uri ~ ^/(.*)\.html$) {
            return 302 /$1;
            }
        }
    
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /var/www;
        }
            location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass   unix:/var/run/php/php8.0-fpm.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include        fastcgi_params;
    	
        }
    
    }
    
    
  • @riekmedia Ok, but there should be one at least for NodeBB to function properly

    The Nginx configuration file can be in multiple locations and can also include several other config files.

    To edit the nginx configuration file, first try here.

    sudo nano /etc/nginx/nginx.conf

    nginx.conf may also include some other config files, for example:

    sudo nano /etc/nginx/sites-enabled/default

    The config files may also be in the below locations (where example.com is your own domain)

    sudo nano /etc/nginx/sites-enabled/example.com

    If you can’t find Nginx config in the above location, try one of these:

    sudo nano /usr/local/nginx/conf/nginx.conf
    sudo nano /usr/local/etc/nginx/nginx.conf

    If you still can’t find it, try locate.

    locate nginx.conf

    To save file and exit in nano, press CTRL + X, press Y and then press ENTER)

    To check that the Nginx config file is valid after saving.

    sudo nginx -t

    If valid, reload Nginx service.

    sudo service nginx reload

  • @phenomlab none of that exists with me, only the 2 files. For me everything is just a minimal installation. nginx and php8 no more.

    Would you like to take a look at the server yourself?

  • @riekmedia Yes. Let me have a look

  • @phenomlab okay, i send PM

  • @riekmedia Looking at this further, I’m wondering if this setting in NodeBB has any relevance. It was set to 2Mb (2048Kb), so I’ve changed it to 32Mb (32768kb)

    5538887c-9216-4fcb-9f4b-a04fe58e39af-image.png

    Setting has been saved. Can you see if this fixes it ?

  • @phenomlab no the problem is still there

  • @riekmedia I’ve just managed to edit a template on your site (404.tpl), saved, and re-built assets with no issues ? What are you uploading into the file ?

  • @phenomlab I’m trying to edit group / details. Just change a ccs command style there.

    But even if you don’t change anything there and simply click on save, the error occurs

  • @riekmedia said in nodebb-plugin-customize error:

    I’m trying to edit group / details. Just change a ccs command style there.

    Can you let me know which template you’re seeing this on ?

  • @riekmedia I see what you mean - it only seems to be the one template though. I’m not surprised as this file is huge but I can’t see anywhere the setting can be adjusted unless it’s in the plugin itself.

  • @phenomlab I can’t tell you that 🙂 I know the plugin so far only since yesterday through you 🙂

  • Ich habe darüber versucht das cover image von der gruppe selbst anzupassen so wie du es mit dem profil cover gemacht hast, because I couldn’t do that with css

    [MOD-EDIT]: I tried to adapt the cover image of the group itself like you did with the profile cover, because I couldn’t do that with css

    backround-size: auto;
    

    89ae447b-c9fe-4923-b3b1-4be30707ad0e-image.png

  • @riekmedia You could use negative CSS for this ?

    .groups.list {
        margin-top: -10px;
    }
    

    Adjust -10px to the negative value you want

  • @phenomlab
    You get me wrong, it’s not just about me, it’s about the picture above. The dark gray default cover picture.

    I’m trying to fit the picture to the width, height

    We had the same problem with our own profile, so if you remember, we solved it with backround-size auto.

    I am now trying to do the same with the cover pictures of the groups. Go on a group on it with a browser then you will see it live. That shatters the whole theme 🙂

    Look at the screenshoot.

    My Profile cover fixed

    fc4f3d94-1798-4619-b551-00df2ba7009c-image.png

    Groupdetails cover not fixed

    e3019fcb-43b4-4fcd-81a2-3fdc46351d73-image.png

    And I don’t mean the group list but the group details


Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

  • 2 Votes
    7 Posts
    761 Views

    @phenomlab said in NodeBB changing color of the text:

    @marusaky This ought to to it

    a.permalink, a.permalink:active, a.permalink:focus, a.permalink:hover { color: #ffffff; }

    works great, thanks a lot

  • 2 Votes
    10 Posts
    860 Views

    @DownPW

    We just have to change the cycles automatically according to each period ?

    Yes, this is by far the safest

    I think it is possible to achieve the goal, I have already seen this kind of thing on a site without any perf problems.

    It’s certainly possible, but not without issues or impact to performance (in my view)

  • 5 Votes
    9 Posts
    2k Views

    @phenomlab

    Very very great Mark 😉
    Thanks again, It’s perfect now !

    –> I share my code that I modified.

    I’ve added French and English comments.
    If you see things to change Mark, don’t hesitate.

    As usual, all the access paths (FA icons, logo) will have to be modified according to your architecture.

    You can also very well add/remove time slots and change welcome messages to suit your needs.

    Widgets ACP/HTML Widget Footer Logo <center> <br><br> <img id="thislogo" src="path/to/my/image"> </center> Widget Welcome Message <!-- IF loggedIn --> <div class="getUsername">, <a href="/me"><span class="username"></span></a></div> <!-- ENDIF loggedIn --> CSS

    – I added the size font-weight: 900; in the CSS because otherwise some FA icon wasn’t displayed correctly and reduce margin :

    i#thisicon { font-family: "Font Awesome 5 Free"; font-style: normal; margin-right: 8px; font-weight: 900; } .getUsername { padding-top: 20px; text-align: right; } /*Smartphone*/ /*On désactive le message de bienvenue"*/ /*We disable the welcome message"*/ @media all and (max-width: 1024px) { .getUsername { display: none; } } JAVASCRIPT // ------------------------------------------ // Welcome Message avec icône et Footer logo // Welcome Message with icon and Footer logo // ------------------------------------------ $(window).on('action:ajaxify.end', function (data) { //On récupère le username dans le DOM et on l'affiche //We retrieve the username from the DOM and display it function updateUsername() { $('.getUsername .username').text(app.user.username); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', updateUsername); } else { updateUsername(); } //On déclare les variables principales (themessage & thehours) ainsi que les variables secondaires correspondants aux plages horaires //We declare the main variables (themessage & thehours) as well as the secondary variables corresponding to the time slots var thehours = new Date().getHours(); var themessage; var wakeup = ('Good day'); var morning = ('Good morning'); var lunch = ('Bon appétit'); var afternoon = ('Good afternoon'); var drink = ('Cheers'); var evening = ('Good evening'); var night = ('Good night'); var welcome = ('Welcome'); var matched = false; //On peux ici tester le résultat du code en spécifiant une heure (!!!IMPORTANT: Commenter une fois le script testé!!!) //Here we can test the result of the code by specifying a time (!!!IMPORTANT: Comment once the script has been tested!!!) //thehours = 20 //On déclare les plages horaires avec les icones FA et les logos //We declare the time slots with FA icons and logos path if (thehours >= 0 && thehours < 6) { themessage = night; theicon = "fa-solid fa-moon"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 6 && thehours < 8) { themessage = wakeup; theicon = "fa-solid fa-mug-hot"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 8 && thehours < 12) { themessage = morning; theicon = "fa-solid fa-sun"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 12 && thehours < 13) { themessage = lunch; theicon = "fas fa-hamburger"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 13 && thehours < 16) { themessage = afternoon; theicon = "fa-solid fa-sun"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 16 && thehours < 18) { themessage = welcome; theicon = "fa-solid fa-rocket"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 18 && thehours < 19) { themessage = drink; theicon = "fa-solid fa-wine-glass"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 19 && thehours < 20) { themessage = lunch; theicon = "fas fa-pizza-slice"; thelogo = "/assets/customlogo/XXX.png"; } else if (thehours >= 20 && thehours < 24) { themessage = evening; theicon = "fa-solid fa-tv"; thelogo = "/assets/customlogo/XXX.png"; } // Si la page active est un topic, on désactive/cache le message de bienvenue // If the active page is a topic, we deactivate/hide the welcome message if (window.location.href.indexOf("topic") > -1) { console.log("This is a topic, so hide the user welcome message"); $('#thisuser').hide(); } // Sinon, on affiche le message en fonction, l'icone FA et son emplacement (prepend) // Otherwise, we display the message in function, the FA icon and its location (prepend) else { $('.getUsername').prepend("<i id='thisicon' class='" + theicon + "'></i>" + themessage); $("#thislogo").attr("src", thelogo); //$('.getUsername').prepend("<img id='thisicon' src='" + thelogo + "'></>" + themessage); } });
  • 3 Votes
    6 Posts
    991 Views

    @phenomlab

    haha!!
    You are crazy. In a good way, of course 🙂

    It’s a way of saying you’re awesome !

  • 5 Votes
    9 Posts
    930 Views

    is there any way to see whose reputation is changed by this plugin?

  • [NodeBB] username cards

    Solved Customisation
    8
    5 Votes
    8 Posts
    829 Views

    @phenomlab

    Aha…nice to know. As always thank you for the reply and information.

  • 0 Votes
    7 Posts
    806 Views

    @RiekMedia hi. Just following up on this thread (I know it’s old) but was curious to understand if it’s still an issue or not ?

  • 9 Votes
    47 Posts
    4k Views

    @phenomlab said in RSS parser script [NodeBB]:

    @jac Not yet. Sorry. Have some other work commitments I need to prioritise. Hoping to get to this over the weekend.

    No worries at all mate, thanks 👍🏻