vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Making postbit_legacy same width despite username (https://vborg.vbsupport.ru/showthread.php?t=251205)

BigJohnny 09-26-2010 11:46 PM

Making postbit_legacy same width despite username
 
A user just signed up on my board and made a post and I notice that their postbit is wider than mine since my name is shorter.

What/where do I need to change to make that section of the postbit a constant size but in some way that will look good on any size monitor.

BigJohnny 10-03-2010 09:55 PM

1 Attachment(s)
I'm sure someone has had this problem before. See how the two columns are the same width. I want to set their width so they are always the same no matter what the username.

kh99 10-03-2010 10:50 PM

It's like that in our forum and no one ever thought it was a problem. But I guess you could reduce the user name font size if the name is over a certain number of characters, or rearrange things like on this forum.

BigJohnny 10-04-2010 02:39 PM

I have the user names limited, but I can't seem to find where that table is created. Ive checked all through the postbit_legacy and can't find which one that specifically is.

it just needs some kind of size adjustment somewhere.

kh99 10-04-2010 02:46 PM

I think it's the table row that starts like this:

Code:

<tr valign="top">
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

                        <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>
                        </div>

but I'm not an HTML expert, I don't know why the width=175 doesn't limit it (I guess that's why you're asking so I should let someone who knows answer).

BigJohnny 10-06-2010 11:18 AM

ya that was it I guess. I was darn sure I tried that.

Setting it to a percentage value has corrected it for now.

BirdOPrey5 10-08-2010 02:35 AM

I increased my width there to "200" to accommodate most long usernames. No one complained.

You might want to try adding style="max-width:200px; overflow:hidden;" to the <td> tag, not sure if it will work but if it does it will force the max width of the cell to 200 pixels.


All times are GMT. The time now is 02:23 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.01204 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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