Announcement

Collapse
No announcement yet.

Add Unread Forum Badge

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

    #16
    Is there any setting I need to to activate to show the icon when its unread? it only shows when I'm logged out

    Comment


      #17
      Are you sure there are unread posts from that forum when logged in? Do you see the forum icon next to the forum name as "active" and not grayed out? The forum badge should match the active forum icon if present.

      Click image for larger version

Name:	image.png
Views:	137
Size:	175.1 KB
ID:	30430​.
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link ​
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


      • puertoblack2003
        commented
        Editing a comment
        yea, I'm looking into it now, something changed on version 6.0.6. Ive been having cache issue lately and for a while. I'll report back if I resolved it.

      • puertoblack2003
        commented
        Editing a comment
        ok got it resolved. I had to switch from Database (automatic forum marking) to Inactivity/Cookie Based and the icon appeared.

      #18
      even though it worked, I noticed that when i click on new topic, I'm getting this notice that I reported to vb (https://forum.vbulletin.com/forum/vb...st#post4495989) so I had to revert back.

      so the first vb5 code worked, weird

      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 */​​

      Comment


        #19
        I am trying to localize the unread badge via phrases, but unfortunately have no success.

        Can please someone help me to figure it out?

        I am using english and german language on the forum. English is the default language. The phrase vbmods_rocks_unreadforumbadge has been created in the AdminCP (see below).

        ​​

        This has been added in css_additional.css.

        Code:
        /*************** Unread Forum Badge ***************/
        
        .forum-wrapper .unread ~ .forum-title::after {
            content: '{vb:phrase vbmods_rocks_unreadforumbadge}';
            background: #FCF7D7;
            color: #606040;
            font-size: 10px;
            font-weight: bold;
            padding: 1px 3px;
            border-radius: 3px;
            margin-left: 10px;
            filter: drop-shadow(1px 1px 2px #333);
            vertical-align: top;
            white-space: nowrap;
            text-decoration: none;
            display: inline-block;
        }
        
        .forum-list-container .forum-item .cell-forum .forum-title {
            margin-left: 0;
        }
        ​
        The badge is shown always in english independently of which language is chosen.

        english:
        ​​
        german:
        ​
        Any idea?

        Help is greatly appreciated.​

        Comment


          #20
          Originally posted by flohse View Post
          The phrase vbmods_rocks_unreadforumbadge has been created in the AdminCP (see below).
          Where is the screenshot?
          Buy me a coffeePayPal QR Code
          My Amazon Affiliate Link ​
          Fast vBulletin VPS Host:
          This site is hosted by IONOS

          Comment


            #21
            Hello Glenn,

            please see pictures.



            Click image for larger version  Name:	image.png Views:	0 Size:	57.5 KB ID:	32213​​​
            Do you need anything else?

            Comment


              #22
              Hello Glenn,

              this is strange. I definitely pasted 2 screenshots in my last post. One is now missing. In post #19 I have pasted 3 more screenshots than currenty are visible. Now I will attach these screenshots instead of pasting.

              Frank
              Attached Files

              Comment


                #23
                Sorry for the late reply. Are you caching template as files? Try turning it off and on again. If that doesn't fix it, I will need the URL to your forum so I can take a look.
                Buy me a coffeePayPal QR Code
                My Amazon Affiliate Link ​
                Fast vBulletin VPS Host:
                This site is hosted by IONOS

                Comment


                  #24
                  Hello,
                  I would like to report that your code does not work correctly on VBulletin 5.7.5.
                  It correctly displays the red square, but the text does not appear.
                  Could you please fix the issue or provide me with a solution?
                  Thank you in advance.
                  Best regards,

                  ​
                  Attached Files

                  Comment


                    #25
                    Works fine on our Forum, and we run 5.7.5 PL 3. What it looks like to me, is the text color for the button is set to the same color as the button color; red.
                    The Linux Community has given me much. I do what I can to return the favor!

                    Comment


                      #26
                      Originally posted by Snowhog View Post
                      Works fine on our Forum, and we run 5.7.5 PL 3. What it looks like to me, is the text color for the button is set to the same color as the button color; red.
                      Hello, thank you for your response and your assistance. Here is my code, and I am really trying to understand where the issue might be coming from. Once again, thank you for your help. Best regards.

                      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: 'Nouveau';
                          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 */​

                      Comment


                        #27
                        Other than your content: 'Nouveau'; line, the code is identical to what we have.

                        In the image you provided, you are using a 'Dark' Style for your forum. Have you tried switching to a Light Styled theme to see if, by chance, it makes a difference? IF it does; the button text appears; then there is a conflicting variable for text somewhere in the Dark Style you are using, I think. Glenn will know much more on this than I do.
                        The Linux Community has given me much. I do what I can to return the favor!

                        Comment


                          #28
                          Originally posted by Snowhog View Post
                          Other than your content: 'Nouveau'; line, the code is identical to what we have.

                          In the image you provided, you are using a 'Dark' Style for your forum. Have you tried switching to a Light Styled theme to see if, by chance, it makes a difference? IF it does; the button text appears; then there is a conflicting variable for text somewhere in the Dark Style you are using, I think. Glenn will know much more on this than I do.
                          Hello, I sincerely thank you for your help. Yes, I do have a black and blue theme. The issue is that the "New Topic" button works perfectly for topics, but not for the forums, which leaves me quite puzzled. I will wait for the person who developed the code to assist me, but once again, thank you very much for your invaluable help.
                          Attached Files

                          Comment


                          • glennrocksvb
                            commented
                            Editing a comment
                            Please post a link to your forum so I can inspect the CSS and suggest a solution.

                          #29
                          Are you no longer using this mod?

                          Comment


                            #30
                            It is still used but there's a conflict with the underlined link effect I used for links so it's not working.
                            Buy me a coffeePayPal QR Code
                            My Amazon Affiliate Link ​
                            Fast vBulletin VPS Host:
                            This site is hosted by IONOS

                            Comment

                            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 "|||"