Announcement

Collapse
No announcement yet.

Add Unread Forum Badge

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Free Mod Add Unread Forum Badge

    By default, unread forums on Forum list shows blue speech bubble icon while read forums shows gray speech bubble icon. To make them more noticeable, you can add an "Unread" badge at the end of the forum title.

    Click image for larger version  Name:	image.png Views:	99 Size:	171.0 KB ID:	26660

    Simply add this custom CSS in css_additional .css template in AdminCP or Style Editor in Sitebuilder:

    For vB5:
    Code:
    /* Unread Forum Badge - START */
    .forum-wrapper .b-icon__speech-double-large--blue ~ .forum-title::after,
    .forum-wrapper .b-icon__channel-icon:not(.b-icon__channel-icon--read) ~ .forum-title::after {
        content: 'Unread';
        background: red;
        color: #fff;
        font-size: 10px;
        padding: 1px 3px;
        border-radius: 3px;
        margin-left: 5px;
        filter: drop-shadow(1px 1px 2px #333);
        vertical-align: super;
        white-space: nowrap;
        text-decoration: none;
        display: inline-block;​
    }
    
    .forum-list-container .forum-item .cell-forum > .forum-wrapper> .forum-info > .forum-title {
        display: inline;
    }
    /* Unread Forum Badge - END */​

    For vB6/vBCloud:
    Code:
    /* Unread Forum Badge - START */
    .forum-wrapper .unread ~ .forum-title::after {
        content: 'Unread';
        background: red;
        color: #fff;
        font-size: 10px;
        padding: 1px 3px;
        border-radius: 3px;
        margin-left: 5px;
        filter: drop-shadow(1px 1px 2px #333);
        vertical-align: super;
        white-space: nowrap;
        text-decoration: none;
        display: inline-block;
    }
    
    .forum-list-container .forum-item .cell-forum .forum-title {
        margin-left: 0;
    }
    /* Unread Forum Badge - END */​

    Adjust values according to your preferences.

    To add the same badge to unread topics, do this one.

    Enjoy!
    Last edited by glennrocksvb; 02-18-2024, 10:04 PM. Reason: Added CSS code for vB6/vBCloud
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    I have it installed on this site. Please check it on homepage or forum category page.

    Btw, if you want to allow forum users to quickly mark a forum channel as read by simply double-clicking the blue speech bubble icon or whatever custom forum icon you're using, then you get this mod at:

    Recreating the vB3/vB4 feature in vB5 to allow user to quickly mark a forum channel read by simply double-clicking the forum icon. Compatibiility: vB5 (self-hosted) with PHP 7 or 8. Not compatible with vBCloud but it's possible to create a vBCloud version. Demo: Go to Homepage of this forum and double-click a forum icon with
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      I like, I have something like this for thread topics, but not home forum.

      Comment


        #4
        It seems like this mod does not work if custom forum icons are used AND if you are logged in. I'll check if there's a solution for this.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          Originally posted by glennrocksvb View Post
          It seems like this mod does not work if custom forum icons are used AND if you are logged in. I'll check if there's a solution for this.
          thanks dude, ive asked vbyilmaz i few times on this forum. but i dont think its very active there..

          Comment


            #6
            I was referring to an issue I found on this mod
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #7
              Originally posted by glennrocksvb View Post
              It seems like this mod does not work if custom forum icons are used AND if you are logged in. I'll check if there's a solution for this.
              I have updated the CSS code in the first post to fix this issue. Please try it if you are using custom forum icons.
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #8
                hy
                nice feature

                just installed bui i can not see the UNREAD if i am logged in... if i log out i see it

                Comment


                  #9
                  Originally posted by desmomax View Post
                  just installed bui i can not see the UNREAD if i am logged in
                  Did you update the CSS code in your forum? I updated the code in the first post yesterday.
                  Helpful? Donate. Thanks!
                  Buy me a coffeePayPal QR Code
                  Fast VPS Host for vBulletin:
                  A2 Hosting & IONOS

                  Comment


                    #10
                    Originally posted by glennrocksvb View Post
                    Did you update the CSS code in your forum? I updated the code in the first post yesterday.
                    great... working with new code.
                    thanx

                    Comment


                      #11
                      Hey Glenn, we've installed a few of your mods in our forums, and they all work great, we love them! We are using vBulletin 6.
                      I installed this mod just as you stated, in the css_additional .css template, but it does not seem to work. However, I noticed this small indent in the formatting of the forums list when it's activated. Here's a before and after. Any ideas?
                      Attached Files

                      Comment


                      • glennrocksvb
                        glennrocksvb commented
                        Editing a comment
                        Can you post or PM me the link to your forum? I need to inspect the page to be able to investigate the issue.

                      • Althena
                        Althena commented
                        Editing a comment
                        https://valiantgamers.com/forums. Thank you!

                      #12
                      I'll gladly post: https://valiantgamers.com/forums

                      Comment


                        #13
                        I'll check when I get home.
                        Helpful? Donate. Thanks!
                        Buy me a coffeePayPal QR Code
                        Fast VPS Host for vBulletin:
                        A2 Hosting & IONOS

                        Comment


                          #14
                          Althena, I have added the CSS code for vB6 and vBCloud. Please see updated code in the first post.

                          For those who have installed this mod for vB5 and if you have hover state style for the forum channel links to have underline on hover, you need to get the latest vB5 code in the first post. There were a minor issue in the previous code where if you hover on a forum channel link, the Unread badge inherits the underline style of the link.
                          Helpful? Donate. Thanks!
                          Buy me a coffeePayPal QR Code
                          Fast VPS Host for vBulletin:
                          A2 Hosting & IONOS

                          Comment


                            #15
                            Thank you so much, Glenn! You really do rock!
                            Last edited by Althena; 02-19-2024, 05:15 AM. Reason: typo correction

                            Comment

                            Users Viewing This Page

                            Collapse

                            There is 1 user viewing this forum topic.

                            • Guest Guest

                            Latest Posts

                            Collapse

                            Working...
                            X
                            Searching...Please wait.
                            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                            Please push the back button and reload the previous window.'
                            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                            Please push the back button and reload the previous window.'
                            An internal error has occurred and the module cannot be displayed.
                            There are no results that meet this criteria.
                            Search Result for "|||"