The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to make avatar central in postbit?
Hiya
How can I make this avatar appear central as per other elements? Do I mess in postbit template or have to do somewhere else? Thanks --------------- Added [DATE]1332334864[/DATE] at [TIME]1332334864[/TIME] --------------- Quote:
|
#2
|
||||
|
||||
Anyone???
|
#3
|
|||
|
|||
Hey there,
this is postbit_legacy, what you're showing, it has its own template though, just to make it clear. You simply throw <center> tags in there, that worked for me. If that fails, simply go for "div" and "align: center" - that would definitely work. For those <center> ones, try to wrap it around the <a href> tag. If all that fails, PM me, I will check with my own postbit_legacy. Regards, ~tEh'Pâr4d0x |
Благодарность от: | ||
BrightStar |
#4
|
||||
|
||||
Thanks a lot ssdevious.
So which template should I editing for this avatar location? I've tried adding <div class="usercenter align="center"> doesn't seem to work. |
#5
|
|||
|
|||
why not try to edit the css file for this?
Edit the postbit.css and type in a new line: Code:
.postuseravatar img { margin-left: 50px; } or an other value that fits margin-left: auto; margin-right: auto; isn't working, don't know why |
#6
|
|||
|
|||
Hi,
I was using this, to center the ranks: Code:
<div class="rank" style="text-align:center;">{vb:raw post.rank}</div> Else, read this topic: https://vborg.vbsupport.ru/showthread.php?t=279869 It might help you to get understand, how this works. What I learned from that is that you must follow the blocks, because very often, it inherits style (floating, align, etc.) from some "master" parameter above it. Hope this helps a bit, if you want to play with it on your own. If not, try to PM Lynne or Iain, those guys are really amazing at helping people. Wish you fixing this soon, ~tEh'P?r4d0x |
Благодарность от: | ||
Iain M |
#7
|
||||
|
||||
Aww thanks SSDevious
I'll have a look and see if I can figure it out. EDIT: If you remove the class from Code:
<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> Code:
<a 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> If not, send me a link to your forum =] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|