Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2007
    Posts
    702
    Tokens
    0

    Default Centering Post bit

    How do I do that, Which template do I edit, which part do I put the center tags in?

    thanks.

  2. #2
    Join Date
    Oct 2007
    Posts
    702
    Tokens
    0

    Default

    buuump

  3. #3
    Join Date
    Sep 2007
    Location
    England
    Posts
    3,602
    Tokens
    500

    Latest Awards:

    Default

    It depends if your posbit is vertical or horizontal. Tell me which
    The other day I was in a toilet.
    A voice came from the cubicle next to me: "Hello mate, how are you doing?"
    I didn't want to be rude, so I said, "Not too bad, thanks."
    I heard the voice again. "So, what are you up to?"
    Again I answered, "Just having a quick ****... How about yourself?"
    Then I heard him say "Sorry, mate, I'll have to call you back. I've got some **** in the cubicle next to me answering everything I say."

  4. #4
    Join Date
    Oct 2007
    Posts
    702
    Tokens
    0

    Default

    Vertical

  5. #5
    Join Date
    Mar 2007
    Location
    Kent
    Posts
    11,415
    Tokens
    787

    Latest Awards:

    Default




    This tutorial will help you learn how to center the postbit.

    Example:


    Username
    Find the following code
    Code:
    <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
    And change it to

    Code:
    <center><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a></center>
    Usertitle
    Find the following code
    Code:
    <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
    And change it to

    Code:
    <center><if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if></center>
    Avatar
    Find the following code

    Code:
    <if condition="$show['avatar']">
        <div class="smallfont">
         &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
        </div>
       </if>
    and change it to

    Code:
    <center><if condition="$show['avatar']">
        <div class="smallfont">
         &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
        </div>
       </if></center>
    Stats

    Find the following code

    Code:
    <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
        <div>
         $vbphrase[posts]: $post[posts]
        </div>
        $template_hook[postbit_userinfo_right_after_posts]
        <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
        <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
        $template_hook[postbit_userinfo_right]
    <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
       </div>
    and change it to

    Code:
    <center><if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
        <div>
         $vbphrase[posts]: $post[posts]
        </div>
        $template_hook[postbit_userinfo_right_after_posts]
        <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
        <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
        $template_hook[postbit_userinfo_right]
    <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
       </div></center>
    Notes
    If a user has not filled in the field, then nothing will appear there. If the user has filled in the profile field, then an image of their Habbo shall be there which also links to their Habbo Home.

    If you want it to be compulsory for a user to have their Habbo then simply choose 'Yes' under 'Field Required' then adding the Profile Field.

    You can change the way the habbo is facing etc by altering the img src links numbers, such as changing the 'head_direction=2' to 'head_direction=1'.

    You can center the Habbo Image by putting a <center> tag at the begining of the code and a </center> tag at the end.

    You can put the code anywhere you want in the postbit however, this tutorial puts it below the stats (join date, rep etc).


    __________________________________________________ ___

    Please note that this tutorial is designed to work with postbit_legacy and may not work with the normal postbit. To change your posbit to legacy, see below.


    + How do I change my postbit so it is horizontal or vertical?
    - Open up your Administrator Contol Panel and select Vbulletin Options. Then select Style and Language Settings which will bring you to a list of options. Then you can select 'Yes' in order to have your postbit vertical or 'No' to have your postbit horizontal. Note that some of the things in this tutorial may not work for the horizontal template and that they have only been tested on the Legacy Templates.


    __________________________________________________ ___


    Notice:
    This tutorial was based upon the default vBulletin Style without any modified templates or coding, we cannot promise all coding will be the same if the templates on your styles are already modified in anyway due to the coding may not be the same thus the coding we supply you with to find may already be removed. If this is the case then you may be best to revert your template. If you have any problems with this tutorial then please private message the creator. The tutorial was written specially for yf4l.com only.

  6. #6
    Join Date
    Sep 2007
    Location
    England
    Posts
    3,602
    Tokens
    500

    Latest Awards:

    Default

    Was debating whether to post that or not :p

    edit: the notes part was from a dif tut lol
    The other day I was in a toilet.
    A voice came from the cubicle next to me: "Hello mate, how are you doing?"
    I didn't want to be rude, so I said, "Not too bad, thanks."
    I heard the voice again. "So, what are you up to?"
    Again I answered, "Just having a quick ****... How about yourself?"
    Then I heard him say "Sorry, mate, I'll have to call you back. I've got some **** in the cubicle next to me answering everything I say."

  7. #7
    Join Date
    Oct 2007
    Posts
    702
    Tokens
    0

    Default

    Thanks, I haven't tried it but it looks promising

  8. #8
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default

    Quote Originally Posted by today View Post



    This tutorial will help you learn how to center the postbit.

    Example:


    Username
    Find the following code
    Code:
    <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
    And change it to

    Code:
    <center><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a></center>
    Usertitle
    Find the following code
    Code:
    <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
    And change it to

    Code:
    <center><if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if></center>
    Avatar
    Find the following code

    Code:
    <if condition="$show['avatar']">
        <div class="smallfont">
         &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
        </div>
       </if>
    and change it to

    Code:
    <center><if condition="$show['avatar']">
        <div class="smallfont">
         &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
        </div>
       </if></center>
    Stats

    Find the following code

    Code:
    <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
        <div>
         $vbphrase[posts]: $post[posts]
        </div>
        $template_hook[postbit_userinfo_right_after_posts]
        <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
        <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
        $template_hook[postbit_userinfo_right]
    <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
       </div>
    and change it to

    Code:
    <center><if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
        <div>
         $vbphrase[posts]: $post[posts]
        </div>
        $template_hook[postbit_userinfo_right_after_posts]
        <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
        <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
        $template_hook[postbit_userinfo_right]
    <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
       </div></center>
    Notes
    If a user has not filled in the field, then nothing will appear there. If the user has filled in the profile field, then an image of their Habbo shall be there which also links to their Habbo Home.

    If you want it to be compulsory for a user to have their Habbo then simply choose 'Yes' under 'Field Required' then adding the Profile Field.

    You can change the way the habbo is facing etc by altering the img src links numbers, such as changing the 'head_direction=2' to 'head_direction=1'.

    You can center the Habbo Image by putting a <center> tag at the begining of the code and a </center> tag at the end.

    You can put the code anywhere you want in the postbit however, this tutorial puts it below the stats (join date, rep etc).


    __________________________________________________ ___

    Please note that this tutorial is designed to work with postbit_legacy and may not work with the normal postbit. To change your posbit to legacy, see below.


    + How do I change my postbit so it is horizontal or vertical?
    - Open up your Administrator Contol Panel and select Vbulletin Options. Then select Style and Language Settings which will bring you to a list of options. Then you can select 'Yes' in order to have your postbit vertical or 'No' to have your postbit horizontal. Note that some of the things in this tutorial may not work for the horizontal template and that they have only been tested on the Legacy Templates.


    __________________________________________________ ___


    Notice:
    This tutorial was based upon the default vBulletin Style without any modified templates or coding, we cannot promise all coding will be the same if the templates on your styles are already modified in anyway due to the coding may not be the same thus the coding we supply you with to find may already be removed. If this is the case then you may be best to revert your template. If you have any problems with this tutorial then please private message the creator. The tutorial was written specially for yf4l.com only.
    If you want to center the whole of the postbit

    Find:
    Code:
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
    and change it to:
    Code:
    <td class="alt2" align="center" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
    It's both much quicker and is CSS valid instead of making about 5 edits which you are told to do above.

    - Snex.
    Email: [email protected] | Don't Have Skype or anything else.

  9. #9
    Join Date
    Mar 2007
    Location
    Kent
    Posts
    11,415
    Tokens
    787

    Latest Awards:

    Default

    I simply copied & pasted

  10. #10
    Join Date
    May 2007
    Posts
    971
    Tokens
    1,516
    Habbo
    Jabbaboy

    Latest Awards:

    Default

    Quote Originally Posted by today View Post
    I simply copied & pasted
    No problem, it was just for the sites future reference and anyone who wants to do it as it's much quicker my way.
    Email: [email protected] | Don't Have Skype or anything else.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •