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-26-2003 07:00 PM

Quote:

Originally Posted by NickCat
Thanks for the update. I added a few more tweaks of my own today. I used the custom dropdown to add a list of tracks and type of induction. My users were concerned about elevation effects on the 1/4 times in the registry so I figure as an alternative to trying to add elevation, temp, and humidity (which most users would leave blank anyway) I just added the track name field with a drop down of the most popular tracks.

And good idea on the image attachment thread.

I'll anxiously be awaiting the release of V2.0 with the built in attachment upload! ;)

-Nick
http://www.nasioc.com/

Looks nice Nick. I like the new track name field. :)

corsacrazy 10-26-2003 07:07 PM

hehe i made ur addon a while ago for myself but you version is alot neater :P


evil please can you read https://vborg.vbsupport.ru/showthread.php?t=58203 ? thanks

Drowned 10-27-2003 12:30 AM

:bowdown: :bowdown: :bowdown: :bowdown: :bowdown:

Best hack EVER!!!!!!!!! :surprised: Are you planning on working a version for vb3? Please say yes! :nervous: hehehehe...

EvilLS1 10-27-2003 07:11 PM

corsacrazy,
I would take a look at what Zed has offered if I were you.. His hacks are usually great and it can probably be altered to do exactly what you want. Something like that would require some time to make and right now my own "to do" list is pretty long.

Drowned,
Thanks. :) I don't plan on upgrading my own forum to VB3 but I do have it running on my PC. So I'll probably port over this hack and a couple of others whenever it goes final. That is if they release it before my membership expires. :rolleyes:

SVTOA 10-29-2003 12:27 AM

Yea, it figures... I have been asking about this for a LONG time, nobody would help me. So I did my own version. Yours is obviously much better. I just kinda hacked up memberlist.php and added Chen's custom profile search hack. You can see it here:
http://www.mustangcentral.net/mcforu...trmilelist.php


Great job, awesome hack...

EvilLS1 10-29-2003 01:00 AM

SVTOA,
Thanks. :) I think your version looks great too.

I had been wanting this hack for a while also but was just too lazy to make it. Previously we just had a thread in our drag racing forum where members posted their best ETs and were ranked on a list (manually).. But our ET thread got deleted a couple of weeks ago so I decided to go ahead and make the timeslips script rather than start a new one.

oly51 10-29-2003 01:02 AM

Great hack, EvilLS1. Very clean!!

I'm trying to tweak it to be a VIN and car info registry so we can end up with a page that will list by VIN when in the production cycle certain changes were introduced.

How can it be set up so a member can have multiple cars listed?

Also, could I create a user called say, 'Unknown' and enter data that I have gathered from 150 or so cars?

SVTOA 10-29-2003 01:13 AM

Quote:

Originally Posted by EvilLS1
SVTOA,
Thanks. :) I think your version looks great too.

I had been wanting this hack for a while also but was just too lazy to make it. Previously we just had a thread in our drag racing forum where members posted their best ETs and were ranked on a list (manually).. But our ET thread got deleted a couple of weeks ago so I decided to go ahead and make the timeslips script rather than start a new one.

The "static" 1/4 mile list is a staple all over the place. Some person has to be put in charge of it and then the members have to wait/rely on that person to post updates. That is what prompted me to do mine. It just kinda sucks because as I said, I had asked all around if anyone had a script like this and got a pretty lukewarm response to my inquiries.
I got the idea that I could probably make something out of the member list, but you have no idea how long I played with this thing to get it work like it does now. Chen was kind enough to point me to the "search custom profile fields" hack, and that was key in getting what I visualized in my minds eye to appear onscreen.

I just happened to pop in here and your subject caught my eye. I am sure there are plenty of people who will want that feature and make use of your hard work. Props are in order sir, nice going...!

EvilLS1 10-29-2003 01:26 AM

oly51,
Adding new fields to sort by is easy. Just add the new field in your admin control panel as usual, then make a note of the field ID#..

Then add a new section of code below where it says "// Do sorting methods" in timeslips.php something like this:
Code:

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

Just replace the fieldXX with the correct IDs for the new VIN field you added.

Then add the new URL to the drop down menu for sorting:
$bburl/timeslips.php?action=vin

If you wanted to show the VIN # on the page you would just add this below to the "// Set up vars" section of code:
Code:

$vin= $userinfo[fieldXX];
Replace the XX with the ID for your field, then add $vin to your timeslipsbit template and it'll show up..

It works the same way for adding more fields for multiple cars.

I'm not sure what you mean about adding the "unknown" user and all that info. But hopefully this helps with the other stuff. Good luck with customizing it.

oly51 10-29-2003 02:05 AM

Thanks for the quick reply and the code and sorting help.

As for the multiple cars...
Some of my members have 3 or more cars they would enter the info on. (I have 6) Plus I have VIN and other info from 150 or so cars that I have gathered over the years whose owners are not members. Could these be entered on the "Vehicle Profile" page?


All times are GMT. The time now is 01:44 AM.

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.01181 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (2)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