![]() |
Postbit User Info. and Profile Centering
Is it possible to center these?
http://i101.photobucket.com/albums/m...rysProfile.png http://i101.photobucket.com/albums/m...maurysPost.png |
Try this, edit your template postbit_legacy
Change HTML Code:
<div class="username_container"> HTML Code:
<div class="username_container" style="text-align: center"> |
Quote:
Also, how about on profiles? |
To center the Username, title and rank, add this css to this h1 element:
HTML Code:
<h1 style="text-align:center;" class="blocksubhead prof_blocksubhead"> To center the profile pic. You'll need to add a new div around {vb:raw blocks.profile_picture} and center it like so: HTML Code:
<div text-align:center;">{vb:raw blocks.profile_picture}</div> |
Quote:
|
Try searching prof_blocksubhead
|
Quote:
postbit_legacy template, right? |
For profile page? It's in MEMBERINFO template.
|
Quote:
Also, I got it, but they seem to be off. The rank isn't centered under the username. |
It will be centered for normal users. The reason why it looks not centered is because of the edit pencil next to the username for mods and admins. You can move that somewhere else on the template if you wish.
For postbit_legacy find HTML Code:
<div class="username_container"> Find HTML Code:
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"> |
Quote:
|
You can nudge the username a bit to the right by finding
HTML Code:
<div class="username_container"> HTML Code:
style="position:relative;left:5px;" |
Last question for this thread: How do I also center the reputation on profiles?
|
Find
HTML Code:
<span class="member_reputation" title="{vb:raw prepared.username} {vb:raw prepared.level}"> HTML Code:
style="text-align:center;" |
Quote:
Regarding Firebug, I actually do have it (currently disabled), but I'm not really an expert with it. I rarely use it, but when I do, I can only do simple things, such as if I wanted to, say, make sub-forums red, but keep the forum listings on the index blue. --------------- Added 12/9/2012 at 8:05 PM --------------- The reputation bar remained on the left. |
Try this, find
HTML Code:
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" /> HTML Code:
style="float:none;" |
Quote:
You've been such a great help! :) |
You're very welcome. Glad I could help. Let me know if there's anything else you have trouble with. :)
|
Quote:
|
New question, World Craft. :)
I just noticed a day or so ago that usernames were overlapping with the status circle a bit in the postbit user information area, too. How would I apply the solution you provided me below this post in the other thread for the postbit user information area? |
It doesn't appear to be overlapping for me
https://vborg.vbsupport.ru/external/2013/01/54.png But if you want to increase the distance between the username and the status icon you can just add   (a blank space) right before {vb:raw post.onlinestatus} in the template. Like this:  {vb:raw post.onlinestatus}. Another way would be to wrap span tags <span>{vb:raw post.onlinestatus}</span> and apply style="padding-left: Xpx;" (or give the span a class and use additional.css). Your choice. |
Quote:
|
That is what I screencapped. http://gyazo.com/22cace5c0304d173d02...png?1357344959
Can you show me an example where it doesn't look right? |
Quote:
|
Have you tried the suggestion I gave above? It applies to the postbit template.
|
Quote:
However, I do have another question for future reference: in the event that I ever want to do this, is it possible to turn the status circle into text in both the postbit and profiles? Currently, the status circle works like this:
|
You would edit the postbit_onlinestatus template. And instead of serving images, you would replace them with colored text like <span style="color:red">Offline</span>, <span style="color:green">Online</span>, etc
|
Quote:
|
All times are GMT. The time now is 03:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|