Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2008, 02:37 PM
Rick Lee Rick Lee is offline
 
Join Date: Jan 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help hacking POSTBIT to center contact info?

I have added custom fields into POSTBIT with long lengths and do not like the nowrap option in the POSTBIT. I would prefer the long fields to wrap. With the nowrap option the fields will left justify over to the avatar profile fields. Once the large field exceeds the ability to left justify it causes the POSTBIT to exceed the screen width.

I would like the custom fields to left justify to the avatar box and wrap.

Here is the screen shot with the custom fields wrapped and right justified:

Here is the code snip it from the POSTBIT template I would like to hack further.

How do I get the a large left justify box like the red outline in the image with the large fields wrapping.

HTML Code:
             <td width="100%">&nbsp;</td>
            <td valign="top" >
                
                <div class="smallfont">
                    <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                    <if condition="$post['field2']">
                                          <div>EMPLOYER: $post[field2]</div>
                                          <div>POSITION: $post[field1]</div>
                                          <div>CERTIFICATIONS: $post[field5]</div>
                                          <div>PRIMARY RESPONSIBILITIES:$post[field4]</div>
                                        </if>
                    <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                    <div>
                        $vbphrase[posts]: $post[posts]
                    </div>
                    $template_hook[postbit_userinfo_left_after_posts]
______________________

Your help would be greatly appreciated.

Rick
Attached Images
File Type: jpg Screen shot.jpg (77.8 KB, 0 views)
Reply With Quote
  #2  
Old 02-25-2008, 02:49 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit the width here
HTML Code:
<td width="100%">&nbsp;</td>
Reply With Quote
  #3  
Old 02-25-2008, 04:19 PM
Rick Lee Rick Lee is offline
 
Join Date: Jan 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Princeton

Here is the revised code. The contact info fields are still forming in a small box on the right? Please see picture in original post.

<td width="100%">&nbsp;</td>
<td width="100%">&nbsp;

<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']">
<div>EMPLOYER: $post[field2]</div>
<div>POSITION: $post[field1]</div>
<div>CERTIFICATIONS: $post[field5]</div>
<div>PRIMARY RESPONSIBILITIES:$post[field4]</div>
</if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_left_after_posts]
____________________
Thanks
Rick
Reply With Quote
  #4  
Old 02-25-2008, 06:13 PM
electrolov electrolov is offline
 
Join Date: Dec 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rick, the two 100% wont work.
-remove the 100% from <td width="100%">&nbsp;</td>, add to the next td
to understand, look at the whole nested table - then you will have td for avatar, td for name, td for space (nbsp), td for user info area
the last td, for user info area at 100% will fill to 100% of whatever is left over from the first three tds
that would be simplest way to do it.

-if that works, maybe try cleaning up your idea, (that is alot of info for that box and area, especially if your members responsibilities is long such as your example. you could move user name area info avatar box, or ontop of info area, also consider a vertical alignment of the avatar to balance the space.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:33 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
  • Page Generation 0.03649 seconds
  • Memory Usage 2,210KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete