Log in

View Full Version : What Car You Drive Postbit


forzablues
08-17-2006, 11:22 AM
Hi i am after a postbit for what car users drive for exmaple.

Car:

how can i do this?

steven s
08-17-2006, 11:45 AM
Create a new profile field, name it 'Car'.
That new profile field will have a number.

In your postbit or posbit legacy templates
Find
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>Add below
<if condition="$post['fieldX']">
<tr><td class="vbmenu_option">Car: $post[field]X]</td></if>
Note: X is your profile field id
I suppose there are other ways to format it.

forzablues
08-17-2006, 12:42 PM
Right i did this and it shown car: but it messed the whole template up

steven s
08-17-2006, 05:09 PM
Right i did this and it shown car: but it messed the whole template up
Then it's a problem with the html markup or where it's located in your posbit.
Maybe try <div> tags?

Shazz
08-17-2006, 05:28 PM
Yea do what 1996 said.
Then

<if condition="$post[fieldx]"><div class="smallfont">Car: $post[fieldx]</div></if>
________
Honda L700 (http://www.honda-wiki.org/wiki/Honda_L700)

forzablues
08-17-2006, 07:37 PM
Brilliant all working thanks :)