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)

sticky 01-21-2004 07:30 AM

Question: Would it be possible to sort by make? I could really use that feature so a user could see what the fastest car in each make was.

Another thing, with the whp column, would you be able to make it so someone can link to their dyno run the same way you do it with the slip?

Edit: What if a person has more than one car?

EvilLS1 01-21-2004 11:04 PM

Thanks for the kind words.

Quote:

Question: Would it be possible to sort by make? I could really use that feature so a user could see what the fastest car in each make was.
It is possible but would require alot of work. As it is right now your users can add their vehicle in a regular text input field.. Since its not fool-proof they could enter several different things which would not sort correctly.. For example, if one user enters "Mustang" and another user enters "Ford Mustang" and yet another user enters "stang" they will not be sorted together.

In order to make it possible to sort by vehicles you would need separate select box input fields for vehicle make, model, and year. This would take some time to add, and unfortunately I don't have alot of free time right now. However, if you feel comfortable editing a little php code you could do it yourself. If you'll read back through this thread I've posted instructions on how to add select box input fields and sort by them.

Quote:

Another thing, with the whp column, would you be able to make it so someone can link to their dyno run the same way you do it with the slip?
Yes, its all explained in this post:
https://vborg.vbsupport.ru/showpost....&postcount=136

Quote:

Edit: What if a person has more than one car?
You could add an extra field to list other cars, but the timeslips page can only show/sort the info for one car per user.

Carnage Media 01-22-2004 12:19 AM

Evil, I've been searching but can't find it.

My members would like for the timeslips to be able to show what engine size instead of WHP.

How can I do that?

Thanks.

sticky 01-22-2004 12:53 AM

Evil, if necessary, I will pay you to have a custom version of this made for my site to compensate for your time.

EvilLS1 01-22-2004 12:56 AM

Quote:

Originally Posted by Carnage Media
Evil, I've been searching but can't find it.

My members would like for the timeslips to be able to show what engine size instead of WHP.

How can I do that?

Thanks.

In timeslips.php find:
Code:

} else if ($action=="rwhp") {
  $cond.=" WHERE userfield.field51>'".intval($number)."'";
  $condition.=" AND userfield.field51>'".intval($number)."'";
  $orderby="userfield.field51";
  $direction=DESC;
  $bracket7="<b>[</b>";
  $bracket8="<b>]</b>";

Replace it with:
Code:

} else if ($action=="cubes") {
  $cond.=" WHERE userfield.field61>'".intval($number)."'";
  $condition.=" AND userfield.field61>'".intval($number)."'";
  $orderby="userfield.field61";
  $direction=DESC;
  $bracket7="<b>[</b>";
  $bracket8="<b>]</b>";

Find:
Code:

if ($userinfo[field51]>0){
  $rwhp= $userinfo[field51];
}else{
  $rwhp="";
}

Replace it with:
Code:

if ($userinfo[field61]!=""){
  $cubes= $userinfo[field61];
}else{
  $cubes="";
}

In your timeslips template find:
Code:

<option value="$bburl/timeslips.php?s=$session[sessionhash]&action=rwhp">Horsepower</option>
Replace it with:
Code:

<option value="$bburl/timeslips.php?s=$session[sessionhash]&action=cubes">Displacement</option>
Find:
Code:

<b>WHP</b>
Replace it with:
Code:

<b>C.I.</b>
In your timeslipsbit template find:
Code:

<td bgcolor="{secondaltcolor}">$avghp$rwhp</td>
Replace it with:
Code:

<td bgcolor="{secondaltcolor}">$cubes</td>

EvilLS1 01-22-2004 01:04 AM

Quote:

Originally Posted by sticky
Evil, if necessary, I will pay you to have a custom version of this made for my site to compensate for your time.

Thanks for the offer, but $$ is not really the issue. I'm just so busy with other things right now that I don't have time to do any custom work. I haven't even got around to upgrading my own site yet.

Maybe after I finish with all of my own projects.. But that'll probably be a while.

Carnage Media 01-22-2004 01:15 AM

thank you for the fast response and it worked perfect

EvilLS1 01-22-2004 01:17 AM

You're welcome. :)

EvilLS1 01-24-2004 08:15 PM

For those interested, I've started working on a new version of this for VB3. I can only work on it in my spare time (and my spare time is limited) so its probably gonna be a few weeks before I release it. Should be pretty nice though.

Dewayne

0ptima 01-24-2004 08:21 PM

Quote:

Originally Posted by EvilLS1
For those interested, I've started working on a new version of this for VB3. I can only work on it in my spare time (and my spare time is limited) so its probably gonna be a few weeks before I release it. Should be pretty nice though.

Dewayne

Woohoo !!! Thanks!!!


All times are GMT. The time now is 05:52 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.01364 seconds
  • Memory Usage 1,750KB
  • 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
  • (10)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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