vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I center the username (https://vborg.vbsupport.ru/showthread.php?t=139645)

rjmjr69 02-17-2007 11:08 AM

How can I center the username
 
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

Quote:

Originally Posted by PntSingularity (Post 1184783)
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

Code:

<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
Code:

align="center"
like this


Code:

<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

Quote:

Originally Posted by stan111 (Post 1184924)
in postbit legacy

search for this

Code:

<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
Code:

align="center"
like this


Code:

<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

Quote:

Originally Posted by stan111 (Post 1184924)
in postbit legacy

search for this

Code:

<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
Code:

align="center"
like this


Code:

<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

Quote:

Originally Posted by CrashPush (Post 1185419)
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

Code:

</div>
                        </if>
                       
                        <div class="smallfont">
                                &nbsp;<br />


Code:

</div>
                        </if>
                       
                        <div class="smallfont"align="center">
                                &nbsp;<br />


Change That centers most of the post bit. For the avatar find
Code:

<if condition="$show['avatar']">
                                <div class="smallfont">


Replace with

Code:

<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


All times are GMT. The time now is 12:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01032 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (13)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete