Back to vBulletin 3.0 Add-Ons

vB Timeslip Database -for Automotive websites
Mod Version: 2.1, by EvilLS1

This modification is in the archives.
vB Version: 3.0.8 Rating: (8 votes - 5.00 average) Installs: 137
Released: 30 Jan 2004 Last Update: 23 Feb 2005 Downloads: 151
Not Supported DB Changes Template Edits Code Changes Additional Files  

This is the newest version of my Timeslip Database hack. If you don't have an automobile related website ya might as well stop reading here because this will probably be of no use to you.. But if you do, read on!

What does it do? This hack does a few things. First, it will add a separate "Vehicle Profile" page to your forum where your users can enter their type of vehicle, engine, tranny, tires, horsepower, best 60' time, 1/8 mile time, 1/4 mile time, upload thier timeslip and more. Once the data is entered the timeslips.php page will display the info sorted by the best times, highest trap speeds, highest horsepower #s, proof of ET, or ET brackets (user selectable).

You can also ban users from editing their Vehicle Profile. This comes in handy if you have some users who insist on entering false data into the Timeslip Database just to be funny. To use this feature, just click on the user's vehicle profile, then click "user options" and set "Can edit vehicle profile" to no. The user will still be able to edit his regular profile, but not his vehicle profile.

Features include:
*The ability to sort by:
-1/4 Mile ET
-1/4 Mile MPH
-1/8 Mile ET
-1/8 Mile MPH
-60' Time
-Horsepower
-Cars with proof of ET (actual timeslip)
-N/A cars only
-Username
-ET brackets
*Show the average ET, MPH, and HP for your site.
*Vehicle Profile (separate from user profile)
*Ability to ban users from editing their vehicle profile
*Users can upload their timeslip in the vehicle profile. (New!)
*Timeslip uploads can be disabled in the admincp. (New!)
*Admin can delete user's uploaded timeslip. (New!)
*Maximum width, height and filesize for timeslip uploads can be set in the admincp. (New!)
*Admin can set an ET for which a timeslip is required if user's ET is quicker. (New!)
*Installer

Demo:
http://modernmusclecars.net/forums/timeslips.php

vb.org member sites w/Timeslip Database installed:
http://srtforums.com/forums/timeslips.php
http://www.fordpower.net/forums/timeslips.php
http://www.al-club3g.org/forums/timeslips.php
http://www.gmvsford.com/forums/timeslips.php
http://board.accordtuner.com/timeslips.php
http://www.240sxforums.com/forums/timeslips.php
http://www.tennesspeed.net/forums/timeslips.php
http://www.socalloc.com/forums/timeslips.php
http://www.lincolnvscadillac.com/timeslips.php
http://fordvschevy.com/forum/timeslips.php
http://www.skylinesaustralia.com/forums/timeslips.php
http://www.lonestarstangs.com/forum/timeslips.php
http://www.tallahasseemusclecar.com/forum/timeslips.php
http://www.ricehatersclub.com/vbulletin/timeslips.php
http://www.highertuning.com/forums/timeslips.php4
http://www.mx5roadsters.com/forums/timeslips.php
http://www.stangcountry.com/forums/timeslips.php
http://www.lssix.com/forums/timeslips.php
http://gpfanatix.com/forums/timeslips.php
http://tealnet.com/ipw-web/forum/timeslips.php
http://www.eurotechniks.com/forums/timeslips.php
http://k-series.com/forum/timeslips.php
http://www.ymrforums.com/timeslips.php
http://www.modernengineuity.com/forums/timeslips.php
http://t6p.com/forums/timeslips.php
http://www.turborides.com/forums/timeslips.php
http://www.mr2oc.com/timeslips.php
http://host41.hrwebservices.net/~wacostr/forums/timeslips.php?
http://www.moparstyle.net/forums/timeslips.php
http://www.fullthrottleforums.com/timeslips.php
http://www.ozhonda.com/forum/timeslips.php
http://www.fordforums.com.au/timeslips.php
http://www.commodorecarclubwa.com/timeslips.php
http://www.forabodiesonly.com/mopar/timeslips.php
http://www.carolinarides.com/forum/timeslips.php
http://www.sicgmtrucks.com/forum/timeslips.php
https://www.micra.org.uk/timeslips.php
http://www.carforums.net/

If you'd like me to add a link to your VB3 Timeslip Database for others to see, please post it in this thread.

I've also attached some screenshots from my test board below so that you can see what the standard VB3 version looks like. The screenshots only show 10 entries, but it does have pagination and will display 25 per page by default.

Screenshots:

Installation overview:
Files to edit: (7)- admincp/user.php, image.php, member.php, includes/functions_user.php, profile.php, includes/functions_upload.php, includes/functions_online.php
Files to upload: (3)- TDinstaller.php, timeslips.php, slipicon.gif
Templates to edit: (2)- USERCP_SHELL, navbar
Templates to add: (5)- timeslips, timeslipsbit, getvehicleinfo, timeslips_customfields, modifytimeslip
Phrases to add: (6) *see instructions

Support: (Updated: 8-6-05)
Due to my busy scedule and the release of vB 3.5 this version of the Timeslip Database will no longer be supported or developed. Please do not PM me with questions about when the next version will be released because I honestly have no idea.. But when I do start working on it I'll be sure to let you guys know.
Read more here:

Spoiler (click to open)


Hi folks. Sorry I've been away for so long but I've been really busy lately & don't have much time to even get online anymore. I have to leave again for work in few minutes but I'll try to answer a couple of questions before I go.

As far as porting this hack over to vb3.5.0 goes, I haven't even upgraded my own site yet so I can't really give a specific date. It could be a month, it could be a year. I don't know.

If any of you coders wanna port this hack over yourself you have my permission.. However, if you use any of my code or design I would appreciate it if you'd leave my name & link (along with yours) at the bottom of the timeslips main page where it says "vB Timeslip Database v2.X by EvilLS1". You can add your name next to it ofcoarse. I've put alot of time & work into this hack and the links are helpful to me because they improve my site's page rank. So please show a little consideration there. Thanks.

one.eg6,
Go to your admincp, and look under custom profile fields. Find that field and set it so that its not a required field.

charlie css,
That does sound like the html is broken or pasted wrong in one of the templates. Re-pasting the code into these templates should fix it: getvehicleinfo, timeslips_customfields, modifytimeslip.

Close


Please search this thread before posting questions. Theres a good chance that your question has already been posted and answered.

Also, reading through the old thread for vB Timeslip Database v1.3 can probably answer some of your questions about adding new features or customizing.

The VB2 version of this hack is located here:
index.php?t=58076

Add-ons & How to's:
*Show the Top 5 ETs on your vB Advanced Homepage.

Spoiler (click to open)


Top 5 ETs Add-on for vB Advanced Homepage

This adds a module to your Vb Advanced Homepage that shows the top five ETs from your Timeslip Database (see screenshot).

It should work with most other portals aswell.
Attached Images
File Type: jpg top5screenshot.jpg (53.7 KB, 83 views)
Attached Files
File Type: txt Top 5 add on.txt (3.1 KB, 57 views)

Close

*Show the Top 5 ETs on your vB Advanced CMPS page.

Spoiler (click to open)


Hey guys,

Not sure if anyone has done this yet, but I modified it to work with vBAdvanced CMPS. Most of the work was done by EvilS1. He was just missing a line at the end which should get it to work.

Code:
Instructions:
1. Upload this NEW toptimes.php file to your modules directory
2. Create a new template named "adv_portal_toptimes" and add the HTML below:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr id="cat">
	<td colspan="5" class="tcat" width="100%"><span class="smallfont"><b>»Top Five 1/4 Mile ETs</b></span></td>
</tr>
<tr>
<td class="alt2" align="center"><span class="smallfont"><b>#</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>Username</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>Ride</b></span></td>
<td class="alt2" align="center"><span class="smallfont"><b>60'</b></span></td>
	<td class="alt2" align="center"><span class="smallfont"><b>1/4 Mile ET &MPH </b></span></td>
</tr>
$times
</tr>
	<td class="tcat" colspan="5"><span class="smallfont"><CENTER>[<a href=$vboptions[bburl]/timeslips.php>Click here to view the complete list</a>]</CENTER></span></td>
</tr>
</table>
<br />
3. Create a new template named "adv_portal_times" and add the HTML below:
<tr>
<td class="alt1" align="center"><span class="smallfont">$rank</span></td>
<td class="alt1" align="center"><span class="smallfont"><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$userinfo[userid]">$TDusername</a></span></td>
<td class="alt1" align="center"><span class="smallfont">$ride</span></td>
<td class="alt1" align="center"><span class="smallfont">$sixty</span></td>
<td class="alt1" align="center"><span class="smallfont">$quarter$atmph2$quartermph</span></td>
4. Goto your vBa CMPS menu and select "add module".
5. Enter 'Timeslips' under Module Title.
6. Leave Module Identifier blank (unless you don't want to).
7. Use toptimes.php as your File to Include.
8. Make Active.
9. Put it in the Center Column.
10. Put whichever order you like.
11. Leave templates used blank.
12. Click save.
Hope this works out for you guys.

I got a working demo at my site:

http://www.albertacars.net
Attached Files
File Type: zip toptimes.zip (628 Bytes, 49 views)

Close
(by coolmody)
*Show the Top 5 ETs on your vBindex page.

Spoiler (click to open)


OK. Here are the instructions and an updated file for displaying the top 5 timeslips in vBindex.
Attached Files
File Type: zip toptimes.zip (1.9 KB, 32 views)

Close
(by SVTBlackLight01)
*Change the default sort method

Spoiler (click to open)


Quote by Tungsten
Hey Evil... how would I modify the code in this latest version for vB3 so that it sorts by 60' times by default?

And thanks again for this hack. You rock, man.
In timeslips.php find:
Code:
// If no action is set order by quarter
if (empty($_REQUEST['do']))
{
  $_REQUEST['do'] ='quarter';
}
Replace it with:
Code:
// If no action is set order by sixty
if (empty($_REQUEST['do']))
{
  $_REQUEST['do'] ='sixty';
}
Find:
Code:
   } 
   else 
   {
        $cond.=" WHERE userfield.field55>'".intval($number)."'";
        $condition.=" AND userfield.field55>'".intval($number)."'";
        $orderby="userfield.field55";
        $direction=ASC;
        $bracket3="<b>[</b>";
        $bracket4="<b>]</b>";
Replace it with:
Code:
   } 
   else 
   {
        $cond.=" WHERE userfield.field52>'".intval($number)."'";
        $condition.=" AND userfield.field52>'".intval($number)."'";
        $orderby="userfield.field52";
        $direction=ASC;
        $bracket1="<b>[</b>";
        $bracket2="<b>]</b>";
That should do it.

DeeperImage,
Looks great! Added your link.

Close

*Show the ET club that users belong to in the postbit.

Spoiler (click to open)


Add on:
This will show the ET club that each user belongs to in the postbit. For example, if a user has a 12 second ET it will display "12 Second Club Member" in the postbit below his username.

##### In includes/functions_showthread.php find:

Code:
			$show['reputationlink'] = iif($vboptions['reputationenable'] AND $bbuserinfo['userid'] AND $post['userid'] AND !($usergroupcache["$post[usergroupid]"]['genericoptions'] & ISBANNEDGROUP), true, false);
			break;
	}
Below it add:
Code:
if ($post[field55]>=14 && $post[field55]<15) 
{
$poop = "<font size=\"1\"><a href=\"timeslips.php?$session[sessionurl]&do=14seccars\" STYLE=\"text-decoration: none\">14 Second Club Member</a></font>";
} 
else if ($post[field55]>=13 && $post[field55]<14)
{
$poop = "<font size=\"1\"><a href=\"timeslips.php?$session[sessionurl]&do=13seccars\" STYLE=\"text-decoration: none\">13 Second Club Member</a></font>";
}
else if ($post[field55]>=12 && $post[field55]<13)
{
$poop = "<font size=\"1\"><a href=\"timeslips.php?$session[sessionurl]&do=12seccars\" STYLE=\"text-decoration: none\">12 Second Club Member</a></font>";
}
else if ($post[field55]>=11 && $post[field55]<12)
{
$poop = "<font size=\"1\"><a href=\"timeslips.php?$session[sessionurl]&do=11seccars\" STYLE=\"text-decoration: none\">11 Second Club Member</a></font>";
}
else if ($post[field55]>=10 && $post[field55]<11)
{
$poop = "<font size=\"1\"><a href=\"timeslips.php?$session[sessionurl]&do=10seccars\" STYLE=\"text-decoration: none\">10 Second Club Member</a></font>";
}
else if ($post[field55]>0 && $post[field55]<10)
{
$poop = "<font size=\"1\"><a href=\"timeslips.php?$session[sessionurl]&do=singledigitcars\" STYLE=\"text-decoration: none\">Single Digit Club Member</a></font>";
}
else
{
$poop = "";
}
Then put $poop in your postbit & postbit_legacy templates where you want it to show up.

Close

*Show the 1/4 mile ET in the postbit only for users who have added it.

Spoiler (click to open)


Quote by BrentWilson
How do I make the My Best Et not appear in post bit if they dont have anything entered.

See this: http://www.mustang-forums.com/forums/index.php?t=6937

It says My Best ET: 00.00 if they dont have one entered.

I want to make it where it just doesnt appear
Put this in your postbit template where you want the ET to show up:

Code:
<if condition="$post[field55]>0">
<span class="smallfont">1/4 Mile ET: $post[field55]</span>
</if>

Close

*Set permissions for editing the Vehicle Profile per usergroup.

Spoiler (click to open)


Quote by Sidewindr
Is there a more elegant way to do this in the admincp and move the option "Can edit Vehicle Profile?" to the usergroup ???

In admincp/usergroup.php find:
Code:
	print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']);
Below it add:
Code:
		print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'usergroup[cantimeslip]', $ug_bitfield['cantimeslip']);
(in vb3.0.2 or earlier)
In includes/init.php find:
Code:
	'caneditownusernotes'      => 131072
Replace it with:
Code:
	'caneditownusernotes'      => 131072,
	'cantimeslip'              => 262144
---------------------------------------------------------------------
{edit} If you're using v3.0.3 or later skip the edit above and use this edit instead:
In includes/init.php find:
Code:
	'canseehiddencustomfields' => 262144,
Replace it with:

Code:
	'canseehiddencustomfields' => 262144,
	'cantimeslip'              => 16777216,
-----------------------------------------------------------------------

In profile.php find:
Code:
if ($_REQUEST['do'] == 'edittimeslip')
{
Below it add:
Code:
if (!($permissions['genericpermissions'] & CANTIMESLIP))
{
	print_no_permission();
}
Then just set the permission for each usergroup.

Close

*Require a link to the actual timeslip for all ETs that are 11.99 or quicker

Spoiler (click to open)


Add-on (for v2.0 only.. this comes standard in v2.1)

Require a link to the actual timeslip for all ETs that are 11.99 or quicker.

This bit of javascript will check the 1/4 mile ET field and the timeslip link field. If the 1/4 mile ET is less than 12.00 and the timeslip link field is empty, users will get a small pop-up box when they click the submit button telling them that a timeslip is required for ETs that are 11.99 or quicker.

Of coarse you can easily change it to any ET for the slip requirement.

In your modifytimeslip template find:
Code:
<form action="profile.php" method="post" id="profileform">
Replace it with:
Code:
<script language="javascript">
<!--
function validate(theform) {
	if ((theform.field55.value<12) && (theform.field55.value>0) && (theform.field57.value=="")) {
		alert("A link to your timeslip is required if your 1/4 mile ET is 11.99 or quicker.");
		return false; }
}
//-->
</script>
<form action="profile.php" method="post" id="profileform" onSubmit="return validate(this)">

Close
(for v2.0 only.. this comes standard in v2.1)

This hack has been confirmed to work with vB versions 3.0.0 - 3.0.8.

Many thanks to my beta testers: 350Chevy and Corsacrazy

Version History:
v2.1: -Added the ability for users to upload timeslips in their vehicle profile. Added the ability for admins to require an actual timeslip for specified ETs. New Timeslip Database settings added to the admincp to control maximum upload sizes and turn the upload feature on & off. (current version)
(Check this post

Spoiler (click to open)


v2.1 released!

New features:
* Users can upload their timeslip in the vehicle profile.
* Timeslip uploads can be disabled in the admincp (switches to link mode when disabled).
* Admin can delete user's uploaded timeslip.
* Maximum width, height and filesize for timeslip uploads can be set in the admincp.
* Admin can set an ET for which an actual timeslip is required if the user's ET is quicker.

A few notes about this version:
When upload mode is enabled, old linked timeslips that may have been added in the previous version will still be visible until the user updates his vehicle profile. When a slip is uploaded the old linked slip is automatically removed.

When uploads are disabled it will automatically switch to the link mode. Previously uploaded timeslips will still be visible unless the admin deletes them.

To see the new admincp settings go to admincp + vboptions + Timeslip Database Settings.

You can delete a user's uploaded slip by clicking "user options" on the 'view vehicle profile' page.

Close
for more info about the new features.)
v2.0: -Ported hack over for VB3 and added a few new fields to the vehicle profile.
v1.3: -Added the ability to sort by ET brackets or "clubs". (ie. show 10 second cars only. 11 second cars only, 13 sec cars, etc).
v1.2: -Added a new action that will show the average ET, trap speed, and horsepower for your site.
v1.1: -Added the seperate vehicle profile page to input timeslip data. Added a few new fields to the vehicle profile page (race weight, track, D/A, mods, tranny type, etc). Added a "details" column to the Timeslip Database page which lets you view all vehicle profile fields when clicked.
v1.0: -Initial release. (VB2)

NOTE: If you've recently upgraded your forum software and you're having trouble with timeslips.php showing all users (regardless if they have an ET) or it not sorting correcty, Read This!

Spoiler (click to open)


If you had already installed vB Timeslip Database before upgrading your forums to v3.0.2 or later you'll need to upload the attached file (TD302.php) to your admincp directory and run it. The upgrade script for vB 3.0.2 and newer versions sets the custom user fields to medium text. Some of the timeslip fields must be set to DECIMAL in order for the timeslips page to sort & display them correctly. The attached file (TD302.php) will correct that for you.
Attached Files
File Type: php TD302.php (1.2 KB, 78 views)

Close


If you find this script useful please click install.

Download

This modification is archived and cannot be downloaded.

Screenshots

       

 

Similar Mods

vB Timeslip Database - for Automotive websites vBulletin 3.5 Add-ons
vB Timeslip Database -for Automotive websites vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024