Announcement

Collapse
No announcement yet.

Move the Online Icon Under the Avatar on Postbit

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Free Mod Move the Online Icon Under the Avatar on Postbit

    The online icon appears at the bottom of postbit. In a long post, this icon is not visible that you have to scroll down to see if the user is online or not. This icon should be positioned closer to the avatar.

    Click image for larger version  Name:	image.png Views:	0 Size:	66.9 KB ID:	28478

    To move the online icon under the avatar as shown in the above screenshot, put this custom CSS in css_additional.css template:

    Code:
    .l-desktop .b-userinfo__icons {
        position: absolute;
        left: 109px;
        top: 92px;
    }
    For vB6, add this additional CSS to adjust the top position of the online icon for "Selected Answer" posts:
    Code:
    /* For "Selected Answer" Posts*/
    .l-desktop .b-post .answer-label ~ .b-post__grid-container .b-userinfo__icons {
        top: 129px;
    }
    Adjust the left and top values as needed. The values used are based on the default style. You may need to tweak them if you have a customized style/theme.​
    Last edited by glennrocksvb; 07-19-2025, 06:20 PM. Reason: Added code for "Selected Answer" posts
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    #2
    Once I set it to the correct spot, it changes depending on the users profile picture size and so forth. In other words it is not in the same spot for all users. Ends up blocking info and things

    Comment


      #3
      Unfortunately, it's not going to work for avatars with different sizes. The position is not relative to the avatar but to the container column.
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


        #4
        It would require a JavaScript solution to calculate the position based on the size of the avatar.
        Buy me a coffeePayPal QR Code
        My Amazon Affiliate Link
        Fast vBulletin VPS Host:
        This site is hosted by IONOS

        Comment


          #5
          I think for different sizes, Corners will be the best place

          Click image for larger version

Name:	image.png
Views:	236
Size:	118.7 KB
ID:	29678

          Comment


          • glennrocksvb
            commented
            Editing a comment
            That would work.

          #6
          and for rtl themes
          Code:
          .l-desktop .b-userinfo__icons {
          position: absolute;
          right: 25px;
          top: 92px;
          }​

          Comment


            #7
            For self-hosted vB, you can use the stylevar to make the left/right a variable and get automatically replaced based on the LTR/RTL direction.

            Code:
            .l-desktop .b-userinfo__icons {
                position: absolute;
                {vb:stylevar left}: 109px;
                top: 92px;
            }
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


            • glennrocksvb
              commented
              Editing a comment
              For vBCloud, you can't do that as most of the template variables are not supported due to templates being text-only type.

            • glennrocksvb
              commented
              Editing a comment
              Recently, they made some template coding supported in vBCloud but I think using vb:stylevar is not supported yet.

            #8
            On vb 6.0.6 work the position... but.. appear always of.. BLUE... not red or green...

            Comment


              #9
              This mod is just for moving the online icon.

              If you want to change its color, then update the online_status_online_color stylevar in the Style Variable Editor. If you also want to change the offline color, then update online_status_offline_color.

              Buy me a coffeePayPal QR Code
              My Amazon Affiliate Link
              Fast vBulletin VPS Host:
              This site is hosted by IONOS

              Comment


                #10
                .b-userinfo__icons {
                position: absolute;
                bottom: 250px;
                left: 130px;
                }​

                This is the most logical way

                Comment


                  #11
                  You can't use "bottom" because the height of the postbit is not fixed, it's dependent on the post content
                  Buy me a coffeePayPal QR Code
                  My Amazon Affiliate Link
                  Fast vBulletin VPS Host:
                  This site is hosted by IONOS

                  Comment


                    #12
                    Found a placement problem on "answered" position.
                    Attached Files

                    Comment


                    • glennrocksvb
                      commented
                      Editing a comment
                      Good catch! I'll find a fix for it.

                    #13
                    2Evolved, I posted the new CSS code in the first post to adjust the online icon top position for "Selected Answer" posts.
                    Buy me a coffeePayPal QR Code
                    My Amazon Affiliate Link
                    Fast vBulletin VPS Host:
                    This site is hosted by IONOS

                    Comment


                      #14
                      Thank you so much!

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