View Full Version : How can I center the username
rjmjr69
02-17-2007, 11:08 AM
How can I center the usernames in the post_bit? I'm using legacy for my members But the names are adjusted to the left I would love to center them all
Thanks
PntSingularity
02-17-2007, 08:35 PM
Edit each usergroup and add <center> before and </center> after. That ought to do it.
HMBeaty
02-17-2007, 08:57 PM
Or you could just simply edit your postbit
giotmuadong
02-17-2007, 11:21 PM
Edit each usergroup and add <center> before and </center> after. That ought to do it.
how about username, avatar and custom title?
stan111
02-17-2007, 11:32 PM
in postbit legacy
search for this
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
just put this code align="center" like this
<div id="postmenu_$post[postid]" align="center">
rjmjr69
02-18-2007, 03:56 PM
Well when trying to use the tags in the group manager it centers the names thru out the forum even in the shoutbox which is ugly. I'm going to try the postbit legacy edit see how that one works. Thank you very much for the help everyone I'll let you know what I find out
in postbit legacy
search for this
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
just put this code align="center" like this
<div id="postmenu_$post[postid]" align="center">
YOUR THE MAN THANK YOU SO MUCH!!!!!! That worked perfectly I appreciate that. You should put this up as a template hack/mod I'll vote it the best......lol
Now how about centering the user titles? lol :)
Jay...
02-18-2007, 04:57 PM
what about centering everything in the post bit?
CrashPush
02-18-2007, 05:25 PM
in postbit legacy
search for this
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
just put this code align="center" like this
<div id="postmenu_$post[postid]" align="center">
Can you explain to me what you mean by "in postbit legacy"? Is that a PHP file that I'm supposed to look for? I'm not sure what it is that I have to edit.
Please forgive me but I'm new to vBulletin.
rjmjr69
02-19-2007, 02:28 AM
Can you explain to me what you mean by "in postbit legacy"? Is that a PHP file that I'm supposed to look for? I'm not sure what it is that I have to edit.
Please forgive me but I'm new to vBulletin.
No sir thats a TEMPLATE that you would edit. Its actually the one that controls what you see for user info within a post. So say you post and either at the top of the post "postbit" or to the left of the post "postbit_lagacy" you see all the users info who posted. Such as their name rep level title etc etc etc...........
And adding that center code if you read my above post and results will center the name thoughout the whole site even in the shout box which doesnt look all that great imo.
Now I need to figure out how to center the user titles in legacy
rjmjr69
03-04-2007, 10:15 AM
Find in postbit
</div>
</if>
<div class="smallfont">
<br />
</div>
</if>
<div class="smallfont"align="center">
<br />
Change That centers most of the post bit. For the avatar find
<if condition="$show['avatar']">
<div class="smallfont">
Replace with
<if condition="$show['avatar']">
<div class="smallfont"align="center">
That does the avatar follow the above directions to center your username and your all set
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.