Announcement

Collapse
No announcement yet.

Avatar column (fixed) width - help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DoE
    replied
    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.

    Leave a comment:


  • MyPornLife.info
    replied
    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]" $post[avwidth] $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

    Leave a comment:


  • Almokla
    started a topic Avatar column (fixed) width - help

    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

Related Topics

Collapse

Working...
X