I have written a little add-on for this awesome hack. What this does is create a custom block of info that displays 1/4 Mile info in the text area. You create 4 custom fields for the mod, then edit one template and you're done. If a member does not fill in the first custom field, an alternate message displays. If they leave any of the other custom fields blank, no info for that field displays (as opposed to 00.00)
Attached is a screenshot of how it looks and the instructions, which I will also post:
Code:
ADD A CUSTOM BLOCK TO YOUR VB GARAGE TO DISPLAY MEMBER 1/4 MILE TIMES.
MAY BE CUSTOMIZED ANY WAY YOU WISH TO USE IT.
This minor template modification to the VB GARAGE by MAGNUS will create a custom block in the text area of the member's
garage that displays 1/4 mile stats and RWHP if the member has filled in these custom fields.
If the member has not filled them in, rather than display empty data the box displays an alternate message that you
Can also customize.
###############################################################################################################
Installation is quite easy.
Step 1:
Create 4 custom user profile fields:
"1/4 Mile ET"
"BEST MPH"
"BEST 60 FOOT TIME"
"RWHP"
Step 2:
Note the field ID numbers of the fields you created in step one, and edit the code below with your field #'s in order for
this mod to work on your forum. The field ID #'s in the code below are examples from my forum. If you do not match the proper
field id's from your forum then the info dispayed in the user's VB Garage will not be correct!
Step three: Open template "vbgarage_viewgarage" and find:
#####################################################
<td class="alt2" width="60%">$data[text]
#####################################################
Add this after:
##################################################
<!-- 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 />
<!-- YOU MUST EDIT THE FIELDS BELOW TO MATCH THE NUMBERS OF YOUR FORUM CUSTOM FIELDS -->
<if condition="$user[field6] !=''">
<font color="black"><b>My Best ET: <font color="red">$user[field6]</font>
<else />
<!-- the next line may be changed to say whatever you want it to say -->
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[field8] !=''">
<font color="black"><b>My Best MPH: <font color="red">$user[field8]</font>
</if>
</span>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field11] !=''">
<font color="black"><b>My RWHP: <font color="red">$user[field11]</font>
</if>
</span>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field9] !=''">
<font color="black"><b>My Best 60 foot time: <font color="red">$user[field9]</font>
</if>
</span>
</td>
</tr>
</td>
</tr>
</table>
<br/>
<!-- End PERFORMANCE STATS BLOCK -->
########################################################