Change posts count appearance?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bubble #5
    Senior Member
    • Apr 2005
    • 357
    • 4.2.X

    Change posts count appearance?

    What I want to do is very simple and I've done it on other versions of vB, but it has been a while and I need a quick refresher course

    What I need to do is to move all of that empty space between the word "post:" and the number (see screenshot). I'd like to change the number to left align, and the word "post:" to right align. What is the correct code, and in which template do I do it in. I'm not using legacy so I'm guess postbit?
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    Just the "Posts" entry or is the entire block to be done?
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Amaury
      Senior Member
      • Mar 2012
      • 1807
      • 4.2.X

      #3
      This requires custom coding; you should post over on vBulletin.org Forum.
      Former vBulletin user

      Comment

      • Bubble #5
        Senior Member
        • Apr 2005
        • 357
        • 4.2.X

        #4
        Originally posted by Mark.B
        Just the "Posts" entry or is the entire block to be done?
        Just the posts entry. Thanks.

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73979

          #5
          Add the following to your additional.css template:

          Code:
          .postbitlegacy dl.userinfo_extra dt, .postbitlegacy dl.user_rep dt {
          float: left;
          text-align: right;
          }
          
          .postbitlegacy dl.userinfo_extra dd, .postbitlegacy dl.userinfo_extra dd a, .postbitlegacy dl.user_rep dd {
          float: left;
          }
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • Bubble #5
            Senior Member
            • Apr 2005
            • 357
            • 4.2.X

            #6
            For some reason I'm getting this error when I go to that section:

            Warning: Invalid argument supplied for foreach() in [path]/admincp/css.php on line 451

            Comment

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24286
              • 6.0.X

              #7
              You're going to the wrong place.

              AdminCP > Styles & Templates > Search In Templates
              search for
              additional.css
              Then paste the code at the bottom of that template.
              MARK.B
              vBulletin Support
              ------------
              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

              Comment

              • Bubble #5
                Senior Member
                • Apr 2005
                • 357
                • 4.2.X

                #8
                OK THANKS guys. Appreciate the help.

                Adding the code did not do anything.

                Just to be clear, I'm trying to get it from looking like this:


                to looking like this:
                Last edited by Bubble #5; Thu 15 Aug '13, 11:53am.

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 73979

                  #9
                  If your information is on the left, you're using postbit_legacy. If your information is on the top then you're using postbit. Should be the same code without the _legacy.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  • Bubble #5
                    Senior Member
                    • Apr 2005
                    • 357
                    • 4.2.X

                    #10
                    Originally posted by Wayne Luke
                    If your information is on the left, you're using postbit_legacy. If your information is on the top then you're using postbit. Should be the same code without the _legacy.
                    Just to be clear, we are using POSTBIT. (not legacy). Thanks.

                    Comment

                    • Lynne
                      Former vBulletin Support
                      • Oct 2004
                      • 26255

                      #11
                      Right aligning "Posts:" is not going to align it with the ":" in the item above. You need to set a width for all the items on the left and align them all right and then align all the items on the right to the left. You may want to try a search on vbulletin.org regarding this since I know we have posted the CSS for it before over there.

                      Please don't PM or VM me for support - I only help out in the threads.
                      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                      Want help modifying your vbulletin forum? Head on over to vbulletin.org
                      If I post CSS and you don't know where it goes, throw it into the additional.css template.

                      W3Schools <- awesome site for html/css help

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...