How to center the postbit info - 4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joeychgo
    Senior Member
    • Mar 2004
    • 2021
    • 5.6.4

    [Forum] How to center the postbit info - 4.2

    I want to center the postbit legacy Username, user title, rank badge and avatar ... How to do this?
    Building my Automotive Forum Network...
    Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar Forum
  • Merjawy
    Senior Member
    • Sep 2002
    • 2613

    #2
    Try this, I am sure there's a better way

    in postbit_legacy fine

    PHP Code:
     </div>
     <
    div class="postdetails"
    Change it to

    PHP Code:
     </div>
     <
    center><div class="postdetails"

    Then in same template, find

    PHP Code:
         <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd
          </
    vb:if>
         </
    vb:if>
        </
    dl>
        </
    vb:if> 
    Change it to

    PHP Code:
         <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd
          </
    vb:if>
         </
    vb:if>
        </
    dl>
        </
    vb:if></center
    To be or not to be... Where the hell is the question????
    My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

    Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
    CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
    Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

    Comment

    • joeychgo
      Senior Member
      • Mar 2004
      • 2021
      • 5.6.4

      #3
      Thanks - ill try

      - - - Updated - - -

      Got most of it but not the avatar
      Building my Automotive Forum Network...
      Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar Forum

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        Do this for the avatar:
        Code:
        [COLOR=#000000][FONT=Monaco].postbitlegacy .userinfo .postuseravatar, 
        [/FONT][/COLOR][COLOR=#000000][FONT=Monaco]  [COLOR=#006400]float[/COLOR]:[COLOR=#00008B]none[/COLOR];
          [COLOR=#006400]text-align[/COLOR]:[COLOR=#00008B]center[/COLOR];
          
        
        [/FONT][/COLOR]
        [COLOR=#000000][FONT=Monaco]}[/FONT][/COLOR]

        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 &lt;- awesome site for html/css help

        Comment

        • joeychgo
          Senior Member
          • Mar 2004
          • 2021
          • 5.6.4

          #5
          where ? additional css?
          Building my Automotive Forum Network...
          Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar Forum

          Comment

          • Merjawy
            Senior Member
            • Sep 2002
            • 2613

            #6
            There are few places in postbit.css you can play with and see...

            - - - Updated - - -

            I cheated I found this posted by Lynne a while back.

            Originally posted by Lynne
            Try adding this to additional.css (may have to modify for 4.0.1):
            Code:
            /* center avatar, username, title, rank in postbit legacy 4.0.2 */
            .postbitlegacy .userinfo .username_container, .postbitlegacy .userinfo .rank, .postbitlegacy .userinfo .usertitle {text-align:center;}
            .postbitlegacy .userinfo .postuseravatar, .postbitlegacy .userinfo .postuseravatar img {float:none; text-align:center;}
            - - - Updated - - -

            Click image for larger version

Name:	2012-08-12_1330.png
Views:	1
Size:	16.4 KB
ID:	3689854
            To be or not to be... Where the hell is the question????
            My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

            Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
            CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
            Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

            Comment

            • riskreward
              New Member
              • Feb 2011
              • 19

              #7
              Originally posted by Merjawy
              There are few places in postbit.css you can play with and see...

              - - - Updated - - -

              I cheated I found this posted by Lynne a while back.



              - - - Updated - - -

              [ATTACH=CONFIG]61095[/ATTACH]
              Works like a charm. Need to know how to center "Join Date, Posts etc"

              Comment

              • John Lester
                Senior Member
                • Jul 2000
                • 412
                • 4.1.x

                #8
                Try this (in additional.css), I can't say for certain this works as I only tested it here with Firebug and without the rest of the info being centered it looks a bit odd

                Code:
                .postbit .userinfo .contact, .userinfo .userinfo_extra, .postbit .userinfo_noavatar .contact {
                    display: inline-block;
                    height: auto !important;
                    text-align: center !important;
                }
                BrainTalk is a support group for friends, family, caregivers, and patients with neurological disorders and other health related diagnosis.

                BrainTalk Communities Inc
                sigpic

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                😀
                😂
                🥰
                😘
                🤢
                😎
                😞
                😡
                👍
                👎