vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Postbit avatar problem

Square One
01-21-2007, 08:41 PM
Hi!

This is my first post and I have already a problem with my forum styles.
I think is easy for you to solve my problem. :D
I had the avatar like the first picture attached... but I want it like the second one...
How can I put the avatar centered?

Thanks in advance!
Keep the great work!

Xhris
01-21-2007, 09:14 PM
It looks like you are missing a valign="middle" code. Just a guess.

Peggy
01-21-2007, 11:17 PM
Looks more like a <br /> is needed to me.

can you post the code here?
take it from the username to the postcount

Square One
01-22-2007, 06:01 AM
Here it is:

<tr valign="top">
<td class="alt2" width="175">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<div class="pbit">
<div align="center"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a></div>
</div>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
<div class="pbit">
<div align="center">$post[musername]</div>
</div>
</if>
</div>

<if condition="$post['usertitle']"><div class="pbit">
<div align="center">$post[usertitle]</div>
</div></if>
<if condition="$post['rank']"><div class="pbit">
<div align="center">$post[rank]</div>
</div></if>

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

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div class="pbit" align="center">
$vbphrase[join_date]: $post[joindate]
</div></if>
<if condition="$post['field2']"><div class="pbit" align="center">
$vbphrase[location_perm]: $post[field2]
</div></if>
<if condition="$post['age']"><div class="pbit" align="center">
$vbphrase[age]: $post[age]
</div></if>
<div class="pbit" align="center">
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['infraction']"><div class="pbit" align="center">
$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])
</div></if>
<if condition="$show['reputation']"><div class="pbit" align="center"><if condition="$show['reppower']">
<span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]
</if>
<div align="center"><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span>
</div></if>
<if condition="$post['icqicon'] or $post['aimicon'] or $post['msnicon'] or $post['skypeicon']">
<div class="pbit" align="center">
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
</div>
</if>
</div>

</td>

Peggy
01-22-2007, 08:11 AM
<<if condition="$show['avatar']">
<div class="pbit">
&nbsp;
<div align="center"> <br />
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]
</phrase>
" border="0" /></a> <br /><br />
</div>
</div>
</if>




Look at where I placed the 2 red <br /> in the code above and do the same. Also delete the one in blue.

That should take care of your problem

Square One
01-22-2007, 10:15 AM
I will try that!

Thanks a lot!

Peggy
01-22-2007, 10:16 AM
You're welcome. I just tried this on one of my own styles, and it works.

Square One
01-22-2007, 12:17 PM
It works! Thank you very much!

Peggy
01-22-2007, 12:36 PM
Wonderful. Glad I could help :)


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum