View Full Version : next question
highlan-cruise
10-28-2005, 09:06 PM
on the forum - this info that goes under your name
<<<<< that bit
how can i add fields to it
peterska2
10-28-2005, 09:09 PM
Gosh, here we go again :)
Bang this in your postbit or postbit_legacy anywhere you want.
<if condition="$post[fieldx]">$post[fieldx]</if>
Just change the x to the number of the profile field that you want to include.
highlan-cruise
10-28-2005, 09:18 PM
ok i'm in the right bit but gettin a bit lost in this code:
<div class="smallfont">
<br />
<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>
so i wanna add in that lin in this bit yes?
<div class="smallfont">
<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<<<<<<<<<<<<<<< in ere
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
peterska2
10-28-2005, 09:28 PM
there will do the job nicely. :)
highlan-cruise
10-28-2005, 09:31 PM
right got it sorta workin, got the fields up n running but cant get the info 'tag' to work
i've added 'field 5'
<div class="smallfont">
<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field5']"><div>$vbphrase[field5]: $post[field5]</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>
peterska2
10-28-2005, 09:34 PM
Instead of using $vbphrase[field5] just type the text you want to display there
highlan-cruise
10-28-2005, 09:35 PM
so instead of
<if condition="$post['field5']"><div>$vbphrase[field5]: $post[field5]</div></if>
i put
<if condition="$post['field5']"><div>"My Car": $post[field5]</div></if>
big thanks mate :D:D thats 2 things i've fixed tonight i've wanted to alter in the past 2 months but was stuck
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.