Skip to content

NodeBB customisation

Locked Customisation
332 4 134.4k 1
  • @jac Something like this ?

    6845e44d-bfae-4e7b-925d-de3fb41c4e1d-image.png

    .recent-cards .recent-card-container .recent-card .topic-info p {
        max-width: 200px;
        margin: 0;
        width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    

    @phenomlab said in NodeBB customisation:

    @jac Something like this ?

    6845e44d-bfae-4e7b-925d-de3fb41c4e1d-image.png

    .recent-cards .recent-card-container .recent-card .topic-info p {
        max-width: 200px;
        margin: 0;
        width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    

    Thanks mate, yes like that but with the … At the end of the last word in the box?

  • @phenomlab said in NodeBB customisation:

    @jac Something like this ?

    6845e44d-bfae-4e7b-925d-de3fb41c4e1d-image.png

    .recent-cards .recent-card-container .recent-card .topic-info p {
        max-width: 200px;
        margin: 0;
        width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    

    Thanks mate, yes like that but with the … At the end of the last word in the box?

    @jac That’s not as simple as it looks unfortunately. The text isn’t formatted as a single line so the artefact of that is the multiple three dots you can see. It’s possible to consolidate this into one line, but it can only be for that particular view meaning you need explicit CSS.

    Happy to have another look, but it’s a lot of work for very little (cosmetic) gain.

  • @jac That’s not as simple as it looks unfortunately. The text isn’t formatted as a single line so the artefact of that is the multiple three dots you can see. It’s possible to consolidate this into one line, but it can only be for that particular view meaning you need explicit CSS.

    Happy to have another look, but it’s a lot of work for very little (cosmetic) gain.

    @phenomlab said in NodeBB customisation:

    @jac That’s not as simple as it looks unfortunately. The text isn’t formatted as a single line so the artefact of that is the multiple three dots you can see. It’s possible to consolidate this into one line, but it can only be for that particular view meaning you need explicit CSS.

    Happy to have another look, but it’s a lot of work for very little (cosmetic) gain.

    Thanks for looking mate, I seem to remember it was possible last time but I can’t find a screenshot to show you unfortunately.

    No sweat mate, I just thought it would look a bit more professional and cleaner 👍🏻.

  • @jac That’s not as simple as it looks unfortunately. The text isn’t formatted as a single line so the artefact of that is the multiple three dots you can see. It’s possible to consolidate this into one line, but it can only be for that particular view meaning you need explicit CSS.

    Happy to have another look, but it’s a lot of work for very little (cosmetic) gain.

    @phenomlab is there any way to change the colour of the tags?

    IMG_20211007_221027.jpg

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Many thanks 🤞🏻

  • @phenomlab is there any way to change the colour of the tags?

    IMG_20211007_221027.jpg

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Many thanks 🤞🏻

    Apologies to keep throwing these into the mix.
    .if the requests get too much let me know. I just find little changes here and there.

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Many thanks 🤝

  • @phenomlab said in NodeBB customisation:

    @jac That’s not as simple as it looks unfortunately. The text isn’t formatted as a single line so the artefact of that is the multiple three dots you can see. It’s possible to consolidate this into one line, but it can only be for that particular view meaning you need explicit CSS.

    Happy to have another look, but it’s a lot of work for very little (cosmetic) gain.

    Thanks for looking mate, I seem to remember it was possible last time but I can’t find a screenshot to show you unfortunately.

    No sweat mate, I just thought it would look a bit more professional and cleaner 👍🏻.

    @jac said in NodeBB customisation:

    look a bit more professional and cleaner

    Had another go at this. The best I’ve come up with is

    .recent-cards .recent-card-container .recent-card .recent-card-body {
        height: 143px;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 200px;
        max-width: 200px;
        line-height: 1.2;
        white-space: nowrap;
    }
    

    Which looks like the below

    3a53b0e8-0e22-4790-8428-f70ecdcdf403-image.png

  • @phenomlab is there any way to change the colour of the tags?

    IMG_20211007_221027.jpg

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Many thanks 🤞🏻

    @jac said in NodeBB customisation:

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Yes. See CSS below

    .tag-item {
        border-radius: 4px 0px 0px 4px;
        vertical-align: middle;
        float: left;
        width: auto;
        background-color: #194F90;
        color: #ffffff;
        font-weight: 500;
        position: relative;
        padding: 8px 5px 4px 10px;
        height: 39px;
        padding-right: 10px;
    }
    .tag-topic-count.human-readable-number {
        float: left;
        width: auto;
        margin-top: 0px;
        background-color: #FFC557;
        color: #333;
        padding: 8px 4px 0px 4px;
        border: 0;
        text-align: center;
        min-width: 50px;
        border-radius: 0px 4px 4px 0px;
        height: 39px;
    }
    

    Looks like this

    6f0dab65-9bab-41b3-a083-e6c2a2f5ff38-image.png

  • Apologies to keep throwing these into the mix.
    .if the requests get too much let me know. I just find little changes here and there.

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Many thanks 🤝

    @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    
  • @jac said in NodeBB customisation:

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Yes. See CSS below

    .tag-item {
        border-radius: 4px 0px 0px 4px;
        vertical-align: middle;
        float: left;
        width: auto;
        background-color: #194F90;
        color: #ffffff;
        font-weight: 500;
        position: relative;
        padding: 8px 5px 4px 10px;
        height: 39px;
        padding-right: 10px;
    }
    .tag-topic-count.human-readable-number {
        float: left;
        width: auto;
        margin-top: 0px;
        background-color: #FFC557;
        color: #333;
        padding: 8px 4px 0px 4px;
        border: 0;
        text-align: center;
        min-width: 50px;
        border-radius: 0px 4px 4px 0px;
        height: 39px;
    }
    

    Looks like this

    6f0dab65-9bab-41b3-a083-e6c2a2f5ff38-image.png

    @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Yes. See CSS below

    .tag-item {
        border-radius: 4px 0px 0px 4px;
        vertical-align: middle;
        float: left;
        width: auto;
        background-color: #194F90;
        color: #ffffff;
        font-weight: 500;
        position: relative;
        padding: 8px 5px 4px 10px;
        height: 39px;
        padding-right: 10px;
    }
    .tag-topic-count.human-readable-number {
        float: left;
        width: auto;
        margin-top: 0px;
        background-color: #FFC557;
        color: #333;
        padding: 8px 4px 0px 4px;
        border: 0;
        text-align: center;
        min-width: 50px;
        border-radius: 0px 4px 4px 0px;
        height: 39px;
    }
    

    Looks like this

    6f0dab65-9bab-41b3-a083-e6c2a2f5ff38-image.png

    That looks absolutely amazing! Thank you very much!! 😁

  • @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    Is there any way to have the tag background In blue, with white writing and the number to be in yellow? but to all be together?

    Yes. See CSS below

    .tag-item {
        border-radius: 4px 0px 0px 4px;
        vertical-align: middle;
        float: left;
        width: auto;
        background-color: #194F90;
        color: #ffffff;
        font-weight: 500;
        position: relative;
        padding: 8px 5px 4px 10px;
        height: 39px;
        padding-right: 10px;
    }
    .tag-topic-count.human-readable-number {
        float: left;
        width: auto;
        margin-top: 0px;
        background-color: #FFC557;
        color: #333;
        padding: 8px 4px 0px 4px;
        border: 0;
        text-align: center;
        min-width: 50px;
        border-radius: 0px 4px 4px 0px;
        height: 39px;
    }
    

    Looks like this

    6f0dab65-9bab-41b3-a083-e6c2a2f5ff38-image.png

    That looks absolutely amazing! Thank you very much!! 😁

    @jac You need to add the CSS though… 🙂 Don’t forget

  • @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    

    @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    

    Yes mate, brilliant mate, will apply these changes later.

    Great to see how a few changes make it look a lot better 😁

  • @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    

    Yes mate, brilliant mate, will apply these changes later.

    Great to see how a few changes make it look a lot better 😁

    @jac Yep. Admittedly, I’ve taken some of the theming from Sudonix, but I’m ok with that.

  • @jac said in NodeBB customisation:

    look a bit more professional and cleaner

    Had another go at this. The best I’ve come up with is

    .recent-cards .recent-card-container .recent-card .recent-card-body {
        height: 143px;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 200px;
        max-width: 200px;
        line-height: 1.2;
        white-space: nowrap;
    }
    

    Which looks like the below

    3a53b0e8-0e22-4790-8428-f70ecdcdf403-image.png

    @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    look a bit more professional and cleaner

    Had another go at this. The best I’ve come up with is

    .recent-cards .recent-card-container .recent-card .recent-card-body {
        height: 143px;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 200px;
        max-width: 200px;
        line-height: 1.2;
        white-space: nowrap;
    }
    

    Which looks like the below

    3a53b0e8-0e22-4790-8428-f70ecdcdf403-image.png

    Thanks mate for all the efforts. I’ll leave it how it is for now and wait and see if it can be fixed sometime. Thank you for the efforts mate 😁.

  • @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    look a bit more professional and cleaner

    Had another go at this. The best I’ve come up with is

    .recent-cards .recent-card-container .recent-card .recent-card-body {
        height: 143px;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 200px;
        max-width: 200px;
        line-height: 1.2;
        white-space: nowrap;
    }
    

    Which looks like the below

    3a53b0e8-0e22-4790-8428-f70ecdcdf403-image.png

    Thanks mate for all the efforts. I’ll leave it how it is for now and wait and see if it can be fixed sometime. Thank you for the efforts mate 😁.

    Going to implement all of the above now…

    As for the footer widget I can’t remove the NodeBB text as I’m not on the laptop you, I’m happy to include phenomlab on there for all your efforts and continued help?

    Maybe something live Version 1 in the footer and then when a significant change is made the version number can be updated.

  • Going to implement all of the above now…

    As for the footer widget I can’t remove the NodeBB text as I’m not on the laptop you, I’m happy to include phenomlab on there for all your efforts and continued help?

    Maybe something live Version 1 in the footer and then when a significant change is made the version number can be updated.

    @jac said in NodeBB customisation:

    As for the footer widget I can’t remove the NodeBB text as I’m not on the laptop you, I’m happy to include phenomlab on there for all your efforts and continued help?

    Done 🙂

  • @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    

    @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    

    For some reason this didn’t appear to work, would this change make any URLs in a quote yellow too?

    Many thanks.

  • @phenomlab said in NodeBB customisation:

    @jac said in NodeBB customisation:

    Itz probably a longshot anyway, but is there any way to change the link colour on the quotes to yellow?

    Like this ?

    5883be0c-e2f0-4677-a4ac-58a1ba86cee7-image.png

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557;
    }
    

    For some reason this didn’t appear to work, would this change make any URLs in a quote yellow too?

    Many thanks.

    @jac No - that just targets the mention name.

  • @jac No - that just targets the mention name.

    @phenomlab said in NodeBB customisation:

    @jac No - that just targets the mention name.

    For some reason it hasn’t worked mate?

    Would there be a way to change the URL colour in quote to stand out or is that too difficult?

    Many thanks as always!

  • @phenomlab said in NodeBB customisation:

    @jac No - that just targets the mention name.

    For some reason it hasn’t worked mate?

    Would there be a way to change the URL colour in quote to stand out or is that too difficult?

    Many thanks as always!

    @jac said in NodeBB customisation:

    @phenomlab said in NodeBB customisation:

    @jac No - that just targets the mention name.

    For some reason it hasn’t worked mate?

    Would there be a way to change the URL colour in quote to stand out or is that too difficult?

    Many thanks as always!

    I think it’s because the mentions colour is set to white, I’ll find the other colour and change it.

  • @jac said in NodeBB customisation:

    @phenomlab said in NodeBB customisation:

    @jac No - that just targets the mention name.

    For some reason it hasn’t worked mate?

    Would there be a way to change the URL colour in quote to stand out or is that too difficult?

    Many thanks as always!

    I think it’s because the mentions colour is set to white, I’ll find the other colour and change it.

    @jac said in NodeBB customisation:

    I think it’s because the mentions colour is set to white, I’ll find the other colour and change it.

    Use this

    blockquote .plugin-mentions-user.plugin-mentions-a {
        color: #ffc557 !important;
    }
    

Related Topics
  • Custom Page - nodebb

    Solved Customisation custom-pages nodebb
    13
    2
    5 Votes
    13 Posts
    156 Views
    I’m happy to see this
  • NodeBB recent cards customisation

    Solved Customisation nodebb recent cards
    3
    1
    2 Votes
    3 Posts
    713 Views
    @phenomlab thank you very much for the assistance Mark, massively appreciated as always. The great thing about this is it’s all documented for other NodeBB users that come looking for solutions . Looks far better .
  • Whitespace fixes in Nodebb

    Solved Customisation nodebb
    18
    2
    7 Votes
    18 Posts
    3k Views
    @Panda Just circling back here with something of an update (which I think you’ll like). I’ve completely restructured the ranking system. There are now less ranks, with a higher point threshold to reach them. More importantly, if you reload the site, you’ll notice that the ranks are now icons. I also removed the “Author” badge, and made this a single icon, which (to me) looks much better.
  • Changing Background on NodeBB

    Solved Customisation background image nodebb
    4
    0 Votes
    4 Posts
    1k Views
    @cagatay You’d target the body tag and use the below line of CSS background: url(/assets/customcss/backgrounds/default/default.png) no-repeat center center fixed; Obviously, you need to change the path to suit where your image is being stored. More info around the background property can be found here https://www.w3schools.com/cssref/css3_pr_background.php
  • NodeBB inline videoplayer

    Solved Customisation nodebb
    12
    3 Votes
    12 Posts
    2k Views
    @phenomlab YAY! It works Thanks so much
  • [NodeBB] greeting message

    Solved Customisation css nodebb javascript
    2
    1
    3 Votes
    2 Posts
    1k Views
    @pwsincd welcome to sudonix, and thanks for the comments. What your looking for is here https://sudonix.com/topic/195/nodebb-welcome-message/3?_=1648295651358
  • How to set a signature in NodeBB?

    Solved Customisation
    4
    2 Votes
    4 Posts
    1k Views
    @phenomlab said in How to set a signature in NodeBB?: @jac No issues at all with copying. This is set using the signature for the user you are posting as. In the case of Hostrisk, it’s set like the below [image: 1633427929198-7bf04183-f6e8-4d72-b0eb-c9a05c9cd24b-image.png] You can set the signature by using https://domain.com/user/theuser/edit Mamy thanks Mark, I’ll set this up later .
  • Forum customisation

    Customisation forum customise
    17
    3 Votes
    17 Posts
    3k Views
    @jac said in Forum customisation: @phenomlab said in Forum customisation: @jac 100%. Just setting up some free time. I’m on annual leave from work offer the coming 2 weeks so hopefully will have a bit more time then. Not a problem Mark, I don’t wish for you to use all your spare time doing that, just do it when you can, no issues I know you’re busy doing other things but when you get a chance mate I’m happy for this to go ahead along with the RSS script.