If you are like me and use both Magnus's VB Garage Hack, and you also use EvilLs1's
TIMESLIP DATABASE then you're going to love this!
Simply edit your 'vbgarage_viewgarage' template this way:
FIND:
Code:
<td class="alt2" width="60%">$data[text]
Add right after:
Code:
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<if condition="$user[field55] !='00.00'">
<b>My Best ET: <font color="red">$user[field55]</font>
<else />
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field56] !='00.00'">
<b>My Best MPH: <font color="red">$user[field56]</font>
</if>
</span>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field51] !='0.0'">
<b>My RWHP: <font color="red">$user[field51]</font>
</if>
</span>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field52] !='0.000'">
<b>My Best 60 foot time: <font color="red">$user[field52]</font>
</if>
</span>
</td>
</tr>
</td>
</tr>
</table>
<br/>
<!-- End PERFORMANCE STATS BLOCK -->
DONE!!!!
Now if a member has filled out the timeslip database "vehicle profile" fields, the info will display in this custom block! If they have not filled out the ET field, then all that will display is the message "This member has not added ET data to their vB Garage." (which you can edit to say whatever you want)
If they do not fill out the other fields, they simply will not display.
You do not have edit the field id's with this mod because EvilLS1's hack configures those fields the same on every board.
ENJOY!!!