vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Timeslip Database -for Automotive websites (https://vborg.vbsupport.ru/showthread.php?t=58076)

EvilLS1 10-22-2003 03:57 PM

Quote:

Originally Posted by corsacrazy
how to chnage it so that a user doesnt have to fill in EVERY field for it to appear on timeslips.php ?

They don't have to fill in every field for it to appear.. The default sort method is by 1/4 mile ET, so it will only show users who have entered something into the 1/4 mile ET field.. But if someone only posts an 1/8 mile ET, it will show them if you select "sort by 1/8 mile ET" from the drop down menu. Same with horsepower, mph, and 60' times. The username method sorts by username AND 1/4 mile ET. So if the 1/4 mile ET field is left blank, they won't show up. You can change the default sort method to something else, if thats what you mean.

Josh Combs 10-22-2003 06:54 PM

Has anyone installed it on 2.3.2??? Thanks

corsacrazy 10-22-2003 07:22 PM

Quote:

Originally Posted by EvilLS1
The default sort method is by 1/4 mile ET,



You can change the default sort method to something else


ok how can i change the default to 60 foot times ? cheers

drumsy 10-22-2003 09:44 PM

Quote:

Originally Posted by liquid ninja
Has anyone installed it on 2.3.2??? Thanks

I installed it and it works fine for me! :)

EvilLS1 10-22-2003 11:13 PM

Quote:

Originally Posted by corsacrazy
ok how can i change the default to 60 foot times ? cheers

In timeslips.php find:
Code:

// If no action is set order by quarter
if (!isset($action) or $action=="") {
  $action="quarter";
}

Replace it with:
Code:

// If no action is set order by sixty
if (!isset($action) or $action=="") {
  $action="sixty";
}

Find:
Code:

} else {
  $cond.=" WHERE userfield.field55>'".intval($number)."'";
  $condition.=" AND userfield.field55>'".intval($number)."'";
  $orderby="userfield.field55";
  $direction=ASC;
}

Replace it with:
Code:

} else {
  $cond.=" WHERE userfield.field52>'".intval($number)."'";
  $condition.=" AND userfield.field52>'".intval($number)."'";
  $orderby="userfield.field52";
  $direction=ASC;
}


Josh Combs 10-23-2003 12:43 AM

I have it running on my forums also now :) thanks for the great hack.

Josh
http://www.gmperformancetuning.com

EvilLS1 10-23-2003 03:31 AM

y/w Josh. Glad you like it. :)

corsacrazy 10-23-2003 06:20 AM

perfect :) i see good things in the future for this one and car sites :)

SVTBlackLight01 10-23-2003 07:34 AM

Great Hack!! :up:

This has been out for phpBB for a while. I was waiting on someone to make one for VB.

Good Job!

EvilLS1 10-23-2003 11:13 AM

Thanks.

Quote:

Originally Posted by SVTBlackLight01

This has been out for phpBB for a while. I was waiting on someone to make one for VB.

Do you mean this one?
http://phpbbhacks.com/viewhack.php?id=546

Thats my hack also. I made it about a year and a half ago when I was using phpBB. :)

Dewayne


All times are GMT. The time now is 10:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete