Avatar column (fixed) width - help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Almokla
    Member
    • Apr 2009
    • 74

    Avatar column (fixed) width - help

    Hi,

    The avatar column width (its on the left) adjusts itself on the size of the user's avatar..

    I would like to fix it so the forum would look neater .. the max width of the avatars is 160pxl

    How can I fix this please?

    Thanks,
    Attached Files
  • MyPornLife.info
    New Member
    • Apr 2009
    • 28
    • 3.8.x

    #2
    i think, generally...its not possible as table's column width (<td width="">) will be increased autometically (even u set a fixed width value) if the width of any content under it, is wider than the column.

    so u might decress the max width of the avatars.

    there's an alternative way...
    AdminCP || Style Manager || [your forum's style] || << >> || Postbit Templates || postbit_legacy (as u r using legacy version..from ur screenshot)

    there find codes like this:
    Code:
    			<if condition="$show['avatar']">
    				<div class="smallfont">
    					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" [B][COLOR="Red"]$post[avwidth][/COLOR][/B] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
    				</div>
    			</if>
    replace $post[avwidth] to width="X" where X is any value of width that u wish to show

    Comment

    • DoE
      Senior Member
      • Sep 2007
      • 763

      #3
      The problem is not with your avatar width, but with the image you have in the post beside it. Depending on the browser, required extra space will come from somewhere, and in your example the posters block on the left. The easiest solution?

      Styles & Templates -> Style Manager -> edit Templates

      Double-click on Postbit Templates, and edit postbit_legacy

      Find:
      <if condition="$show['avatar']">
      scroll down to you see the &nbsp;, highlight it, and paste this over it:

      <img src="clear.gif" alt="" width="175" height="1" border="0" />

      The code for your avatar should now look like this:

      Code:
       
         <if condition="$show['avatar']">
          <div class="smallfont">
      <img src="clear.gif" alt="" width="175" height="1" border="0" /><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>
      Change the width of clear.gif to suit your needs. And add an extra <br /> (beside the other one) if you want more space between the avatar top and the user title.

      Comment

      Related Topics

      Collapse

      Working...