vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Profile fields framed in - how? (https://vborg.vbsupport.ru/showthread.php?t=139781)

iamboard 02-18-2007 10:11 PM

Profile fields framed in - how?
 
Can anyone point me towards how to put boxes/frames around the profile fields that appear in individual posts (postbit)...the code and locction where to put it?

Thanks

CyberAlien 02-19-2007 07:09 AM

In postbit_legacy find this:
Code:

                                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

and apply some style to those <div> like this:
Code:

                                <if condition="$post['joindate']"><div style="border: solid 1px black; padding: 2px; margin: 2px 10px;">$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div style="border: solid 1px black; padding: 2px; margin: 2px 10px;">$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div> style="border: solid 1px black; padding: 2px; margin: 2px 10px;"$vbphrase[age]: $post[age]</div></if>
                                <div style="border: solid 1px black; padding: 2px; margin: 2px 10px;">
                                        $vbphrase[posts]: $post[posts]
                                </div>


iamboard 02-19-2007 12:37 PM

Thank you so much.

1) How can I add a background color to what's within the frame?

2) Is there a list of all available color codes I can use within your sample...ie different shades of blue?

Thanks for your help. It is much appreciated.

CyberAlien 02-19-2007 02:32 PM

In that code after border: solid 1px black; add background-color: #F0F0F0;

iamboard 02-19-2007 10:07 PM

Quote:

Originally Posted by CyberAlien (Post 1186054)
In that code after border: solid 1px black; add background-color: #F0F0F0;

Everything has worked so far except for adding the code for the background inside the border. It does not seem to change the color of the background.

Thanks. Any other suggestions?

CyberAlien 02-20-2007 05:58 AM

It does work. Probably you added it incorrectly, or set background color to same color as you have outside of that border.

iamboard 02-20-2007 03:42 PM

I think there is a technical term for the problem I was having. I 'goofed'! :rolleyes:

Thanks for your help. I appreciate it very much.


All times are GMT. The time now is 07:06 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.01071 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_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