PDA

View Full Version : Profile fields framed in - how?


iamboard
02-18-2007, 10:11 PM
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: <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: <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
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.