PDA

View Full Version : how to center avatar on postbit_legacy content


Ary Braga
04-22-2010, 10:15 PM
Well.

I need to center avatar of the member in my forum. But avatar this always of the left side of the forum. Somebody explain could me, as makes to center avatar?

He follows the code below for evaluation and if possible could show to me where I need to modify so that avatar he is centered?

<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>

I read something on postbit.css, userinfo, popupmenu styles.In the top of postbit.

I tried to edit variables of the alignment and not to obtain success.

Please!!! Help me.

Regards

ForumsMods
04-22-2010, 10:34 PM
Edit postbit.css
Search:
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
display:block;
margin:{vb:math {vb:stylevar padding}/3} auto 0;
text-align:{vb:stylevar left};
width: auto;
float: {vb:stylevar left};
clear: both;
}Replace with:
.postbitlegacy .userinfo .postuseravatar, .eventbit .userinfo .eventuseravatar {
display:block;
margin:{vb:math {vb:stylevar padding}/3} auto 0;
text-align:center;
width: auto;
clear: both;
}

Manoel J?nior
04-24-2010, 07:16 PM
Sorry any inconvenience. But this method don't work.

u have another method?

regards

ForumsMods
04-24-2010, 07:42 PM
Which is your vBulletin version?

borbole
04-24-2010, 08:16 PM
Have a look at Lynne''s post here:

http://www.vbulletin.com/forum/showthread.php?341699-How-to-center-postbit-Username-and-avatar&p=1928329&viewfull=1#post1928329

Manoel J?nior
04-24-2010, 08:54 PM
Have a look at Lynne''s post here:

http://www.vbulletin.com/forum/showthread.php?341699-How-to-center-postbit-Username-and-avatar&p=1928329&viewfull=1#post1928329

Thanks borbole. this links solve my problem.

Working fine here onto Vb4.0.3 Patch Level 1

No my vb.

I'm only webdesigner.
the forum in question is
http://www.clangsm.com.br

ForumsMods
04-24-2010, 09:13 PM
What Lynne posted is the same that I posted.