View Single Post
  #641  
Old 04-29-2004, 03:18 AM
SVTOA SVTOA is offline
 
Join Date: Oct 2002
Location: In a fishbowl
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01330 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete