Skip to content

NodeBB customisation

Locked Customisation
332 4 134.4k 1
  • There’s probably going to be more changes on the way, if that’s ok? But like I’ve said previously I’m more than happy to put the Phenomlab stamp on it 👍🏻.

    @jac Fine. Just keep using this thread as we’ll document the changes along the way

  • @jac Fine. Just keep using this thread as we’ll document the changes along the way

    @phenomlab said in NodeBB customisation:

    @jac Fine. Just keep using this thread as we’ll document the changes along the way

    Many thanks mate, sounds good to me 😁.

  • I think this was done last time… Is there any way to add … To the slider if it has a certain amount of characters?

    Many thanks.

    @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;
    }
    
  • @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.


Related Topics
  • 6 Votes
    15 Posts
    3k Views
    No no, I said that in the sense that he told me it was simple ^^ I was able to see that this was not the case by targeting the elements he had advised me.
  • who is read NodeBB

    Customisation read post nodebb
    6
    0 Votes
    6 Posts
    1k Views
    @cagatay You should ask in the NodeBB forums. Perhaps reference this post https://discuss.flarum.org/d/23066-who-read
  • Forum Icons NodeBB

    Solved Customisation icons forum nodebb
    13
    0 Votes
    13 Posts
    2k Views
    @cagatay That matches what I see [image: 1667218162107-4f0f858d-9812-42b1-9f61-ffb13d31dccd-image.png]
  • [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
  • [NODEBB] Scroll Button

    Solved Customisation css javascript html scroll button
    7
    1
    0 Votes
    7 Posts
    2k Views
    @downpw ooops. Forgot that. Thanks for adding.
  • [NODEBB] Stats

    Unsolved Customisation plugin stats script
    20
    1
    2 Votes
    20 Posts
    4k Views
    @phenomlab said in [NODEBB] Stats: @jac or I land up fixing it I wouldn’t put it past you
  • NodeBB Design help

    Solved Customisation
    8
    3
    2 Votes
    8 Posts
    2k Views
    @riekmedia I’ve applied some new CSS to your site. Can you reload the page and try again ? For the record, this is what I added #footer { background: #2d343e; border-top: 4px solid #2d343e; font-size: 0.9em; margin-top: 70px; padding: 80px 0 0; position: relative; clear: both; bottom: 0; left: 0; right: 0; z-index: 1000; margin-left: -15px; margin-right: -338px; } The /categories page seems a bit messed up, so looking at that currently EDIT - issued some override CSS in the CATEGORIES widget <!--- CSS fix for overspill on /categories page - DO NOT DELETE --> <style> #footer { margin-right: -45px; } </style> That should resolve the /categories issue.
  • 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.