vb.org Archive

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

razer 05-14-2004 06:14 AM

Is it possible to make the timeslip available only to certain usergroups ? And a function to enable/disable the whole function would be nice.

EvilLS1 05-14-2004 06:33 AM

Quote:

Originally Posted by razer
Is it possible to make the timeslip available only to certain usergroups ? And a function to enable/disable the whole function would be nice.

You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?

If so, in profile.php find this:
Code:

if ($_REQUEST['do'] == 'edittimeslip')
{

Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
Code:

if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
        print_no_permission();
}


razer 05-14-2004 06:49 AM

Quote:

Originally Posted by EvilLS1
You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?

If so, in profile.php find this:
Code:

if ($_REQUEST['do'] == 'edittimeslip')
{

Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
Code:

if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
        print_no_permission();
}



Thats exactly what i want, thanks! :)

dmark101 05-18-2004 04:14 AM

i had a small problem with the add on for timeslips if 12sec or lower, but i figured it out.

forgot that i had to change the variable <12 to whatever i wanted it to be. :mad:

awesome hack. :tup:

paul_r 05-26-2004 03:22 AM

installed it and when i ran timeslips.php
here what it threw up

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: SELECT COUNT(*) AS users
FROM vb3_user, vb3_userfield
WHERE userfield.field55>'0'
AND user.userid = userfield.userid
mysql error: Unknown table 'userfield' in where clause

mysql error number: 1109

any ideas please ? id really like to get this working :)

EvilLS1 05-26-2004 03:33 AM

Paul,
Are you using the instructions from the first post of this thread? If so, did you download them recently or are you using a version that you downloaded some time ago? The reason I ask is because vbdev pointed out that the old version would give such an error if someone has table prefixes. I've updated the hack since then, so try redownloading the zip in the first post and replace timeslips.php with the new one. Also, re-apply the file edits to admincp/user.php as their was an update in that file aswell. Let me know if that doesn't solve your problem and we'll go from there.

paul_r 05-26-2004 03:59 AM

Quote:

Originally Posted by EvilLS1
Paul,
Are you using the instructions from the first post of this thread? If so, did you download them recently or are you using a version that you downloaded some time ago? The reason I ask is because vbdev pointed out that the old version would give such an error if someone has table prefixes. I've updated the hack since then, so try redownloading the zip in the first post and replace timeslips.php with the new one. Also, re-apply the file edits to admincp/user.php as their was an update in that file aswell. Let me know if that doesn't solve your problem and we'll go from there.

you are right :) i d/l them a while ago and tried to install :ermm:

thanks for the update and a great hack :D

http://www.mx5roadsters.com/forums/timeslips.php?

EvilLS1 05-26-2004 04:03 AM

Glad its workin' for ya now. :)

Silverstangs 05-27-2004 04:09 AM

I have it installed on Stang Country , works well, and we are running VB 3.0.1.
I did some minor adjusting for our needs, plus a conflick with another item that was installed, so I hope you don't mind.

EvilLS1 05-27-2004 05:22 PM

Looks good Silverstangs. :)

350Chevy 05-27-2004 07:37 PM

Installed at http://www.lssix.com/forums/timeslips.php? :)

Frank Peterson 05-28-2004 10:33 PM

Hello....We recently installed this at my website, http://www.stangcrazy.com This is a nice addition! We are still going to customize and add some things.

One thing I searched but haven't found was whether anybody had the set-up to allow for the timeslip to be uploaded, rather than the link?

Thanks, Great Mod!!

Silverstangs 05-29-2004 12:05 AM

Quote:

Originally Posted by Frank Peterson
Hello....We recently installed this at my website, http://www.stangcrazy.com This is a nice addition! We are still going to customize and add some things.

One thing I searched but haven't found was whether anybody had the set-up to allow for the timeslip to be uploaded, rather than the link?

Thanks, Great Mod!!

Good idea --- maybe when I get borred I'll try that. It can't be much harder than adding a Torque colum...

EvilLS1 05-29-2004 12:18 AM

Quote:

Originally Posted by Frank Peterson
Hello....We recently installed this at my website, http://www.stangcrazy.com This is a nice addition! We are still going to customize and add some things.

One thing I searched but haven't found was whether anybody had the set-up to allow for the timeslip to be uploaded, rather than the link?

Thanks, Great Mod!!

Yeah I need to add that. One of these days I'll start working on v2.1 which will include that feature.

<---- Very lazy :)

SVTOA 05-29-2004 12:26 AM

Lazy??? That hardly describes you Dewayne...

Frank, does your site have "Photopost"? Just create a cat for timeslips... Takes two secs to paste the URL to a timeslip from the PP gallery...

EvilLS1 05-29-2004 12:36 AM

Quote:

Originally Posted by SVTOA
Lazy??? That hardly describes you Dewayne...

Yeah, I'm just motivationally challenged. :p

It should be fairly easy to add uploads though.. That is definitely on my to-do list for 2.1.

Frank Peterson 05-29-2004 07:00 PM

Thanks for the quick responses, I most certainly look forward to this. We do not have photopost but perhaps that is something I should look into...so much going on though.

EvilLS1 05-31-2004 08:38 PM

I've started working on v2.1 which will include the ability to upload timeslips. Its turning out to be a little more work than I expected but I should be able to post it within the next week or two.. I'm about half way through it now but I still have to beta test it on my site for a while, update the original instructions to 2.1, and create an upgrade script.

I'll send an email update when its posted. :)

0ptima 05-31-2004 10:45 PM

Quote:

Originally Posted by EvilLS1
I've started working on v2.1 which will include the ability to upload timeslips. Its turning out to be a little more work than I expected but I should be able to post it within the next week or two.. I'm about half way through it now but I still have to beta test it on my site for a while, update the original instructions to 2.1, and create an upgrade script.

I'll send an email update when its posted. :)

Sounds kewl! I will definetly upgrade form version 2.

joeychgo 06-01-2004 05:45 PM

thanks evil, its a great hack

443dds 06-01-2004 08:43 PM

Quote:

Originally Posted by EvilLS1
You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?

If so, in profile.php find this:
Code:

if ($_REQUEST['do'] == 'edittimeslip')
{

Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
Code:

if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
        print_no_permission();
}


This doesn't seem to work for me. I had a line existing, so I just added the membergroupids thing after it.

Code:

if ($_REQUEST['do'] == 'edittimeslip')
{
  if ($bbuserinfo[userid]==0  or $bbuserinfo[tdban]==0 or in_array($bbuserinfo['membergroupids'], array(1,2,3,4,5,6,7,8,9,10)))
{
        print_no_permission();
}
        unset($tempcustom);
...

When I login as anybody, it still allows me to edit the Vehicle Profile. I have added all the groupids, but still I seem to be missing something.

Any ideas?

EvilLS1 06-01-2004 09:49 PM

Try this on a seperate line:
Code:

if (in_array($bbuserinfo['usergroupid'], array(x,x,x)))
{
        print_no_permission();
}


Boofo 06-01-2004 10:24 PM

Quote:

Originally Posted by EvilLS1
Try this on a seperate line:
Code:

if (in_array($bbuserinfo['usergroupid'], array(x,x,x)))
{
        print_no_permission();
}


The first one you had here will work if you have merk's change for the is_member_of installed. ;)

EvilLS1 06-01-2004 10:31 PM

Quote:

Originally Posted by Boofo
The first one you had here will work if you have merk's change for the is_member_of installed. ;)

I wasn't sure... I've never used the is_member_of function so I figured I'd better stick with what I know.

EvilLS1 06-01-2004 10:37 PM

BTW, I have v2.1 with the upload feature running on my site right now.. So far it seems to be working flawlessly but I wanna test it for a few more days and then I'll start working on the upgrade script & instructions. :)

r6xual 06-02-2004 05:38 AM

added to my website at

http://gpfanatix.com/forums/timeslips.php?

tteal 06-05-2004 07:15 PM

Quote:

Originally Posted by EvilLS1
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, a link to 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.
*Vehcile Profile (separate from user profile)
*Ability to ban users from editing their vehicle profile
*Installer
*Uninstaller


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

vb.org member sites w/Timeslip Database v2.0 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/vb34sc/timeslips.php
http://www.lssix.com/forums/timeslips.php
http://gpfanatix.com/forums/timeslips.php

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:
Timeslips main page
Vehicle Profile
Edit Vehicle Profile


Installation overview:
Files to edit: (5)- admincp/user.php, member.php, includes/functions_user.php, profile.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:
I will support basic installation and troubleshooting only. Since I don't use VB3 on my own site, I will not be offering support for customizing or adding new features.
Instead, I urge those of you who install it to share your customizations & add-ons with others. If you have a useful addition to this hack, post it here and I'll add a link to your post in the add-ons section below.

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:
https://vborg.vbsupport.ru/showthread.php?t=58076


Add-ons & How to's:
*Show the Top 5 ETs on your front page portal (vb Advanced Homepage)
*Require a link to the actual timeslip for all ETs that are 11.99 or quicker
*Change the default sort method
*Show the ET club that users belong to in the postbit.


This has been confirmed to work with vB 3.0.0, 3.0.1, and all RC versions.

Thanks to Corsacrazy for beta testing this for me.

Download vB Timeslip Database v2.0


If you find this script useful please click install. :)

Could you add my site to the list please? http://www.tealnet.com/forum

Thanks,
Tim

P.S. Thank you for making this available for those of us with car related sites!!!!

tteal 06-05-2004 07:25 PM

EvilLS1,
Thanks again for this modification!!!! It is awesome! Just one suggestion possibly if you don't mind?

Some folks like myself really keep track of our timeslips and the way this database is currently setup it only allows for one timeslip. Possibility in the future that you'll allow one user to have multiple slips so they can compare mods vs times? :) You know my supercharged Mustang is very slow so I have to keep up with what mod works vs doesn't...

Cheers,
Tim

EvilLS1 06-05-2004 09:11 PM

Added gpfanatix and tealnet.com. :)

Tim,
Nice site. I used to visit tealnet back when I had my 92 GT. :) Anyway, adding the ability for users to show the data from a second timeslip in the vehicle profile shouldn't be too difficult. But I'm pretty sure that adding the ability for the timeslips database page to sort more than one timeslip per user would require a re-write of the entire hack. :( I'll think on it more and maybe I can come up with something by the time v2.2 is released.

@ everyone else,
350Chevy and I are currently beta testing v2.1 and so far its running smoothly. If we don't find anymore bugs within the next few days I'll release it.

tteal 06-05-2004 09:17 PM

Quote:

Originally Posted by EvilLS1
Added gpfanatix and tealnet.com. :)

Tim,
Nice site. I used to visit tealnet back when I had my 92 GT. :) Anyway, adding the ability for users to show the data from a second timeslip in the vehicle profile shouldn't be too difficult. But I'm pretty sure that adding the ability for the timeslips database page to sort more than one timeslip per user would require a re-write of the entire hack. :( I'll think on it more and maybe I can come up with something by the time v2.2 is released.

@ everyone else,
350Chevy and I are currently beta testing v2.1 and so far its running smoothly. If we don't find anymore bugs within the next few days I'll release it.

Thanks! I used to really keep up with my site back in the day when I was doing a lot of custom scripting (*.asp / SQL) but I don't know much about *.php / MySQL / Perl or I'd offer to help you. My knowledge is very limited so I have a big learning curve. You got rid of the 92? LOL.... I've had my 98 GT for over 6 years now and just got new forged 284 ci to run a lot of boost... we'll see how it goes.

No rush on the modification that I requested (multiple timeslips for one person) just a suggestion.

Thanks!!!!
Tim

EvilLS1 06-05-2004 09:30 PM

Quote:

Originally Posted by tteal
You got rid of the 92? LOL.... I've had my 98 GT for over 6 years now and just got new forged 284 ci to run a lot of boost... we'll see how it goes.

Tim

Yeah I sold it shortly after purchasing the T/A. I do miss it.. That car was alot of fun! I can't complain about the T/A's performance though considering it went high 11s N/A with only boltons. I just wish it was a little easier to work on. :)

tteal 06-05-2004 09:34 PM

Quote:

Originally Posted by EvilLS1
Yeah I sold it shortly after purchasing the T/A. I do miss it.. That car was alot of fun! I can't complain about the T/A's performance though considering it went high 11s N/A with only boltons. I just wish it was a little easier to work on. :)

I almost traded the 98 in for a 99 WS6 but already had thousands of $$$ in it and couldn't justify it to myself. I"m not in 11's yet but hope to be in 11's if not better with the new combination... only time will tell though. I had the mph with my previous combination but only made 2 passes before changing over to forged internals and cranking up the boost. So we'll see what this season brings.

By the way, what chat program are you running on your board? I'd like to integrate some kind of chat that already knows usernames, etc on my forums in the chat.

EvilLS1 06-05-2004 09:38 PM

Quote:

Originally Posted by tteal
I almost traded the 98 in for a 99 WS6 but already had thousands of $$$ in it and couldn't justify it to myself. I"m not in 11's yet but hope to be in 11's if not better with the new combination... only time will tell though. I had the mph with my previous combination but only made 2 passes before changing over to forged internals and cranking up the boost. So we'll see what this season brings.

By the way, what chat program are you running on your board? I'd like to integrate some kind of chat that already knows usernames, etc on my forums in the chat.

Sounds cool! I bet your car will run pretty hard if you can get it to hook up. :)

I'm using jpilot IRC chat on my site. Check out this link:
https://vborg.vbsupport.ru/showthrea...threadid=65099
There you'll find a hack to show whos in chat on your forum home and also a link to get the jpilot chat software.

EvilLS1 06-06-2004 01:59 AM

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.

0ptima 06-06-2004 02:50 AM

Ill upgrade to 2.1 after the grandprix weekend. Thanks EvilLS1!

tteal 06-06-2004 03:04 AM

Quote:

Originally Posted by 0ptima
Ill upgrade to 2.1 after the grandprix weekend. Thanks EvilLS1!

EvilLS1,
Awesome upgrade! I just did it and it works great.

Couple of recommendations:

1. Multiple timeslips for single user :) hahahaha...
2. Admin ability to delete the actual timeslip (just in case someone put a bogus one in there).

That's all I can think of right now. Thanks again for making this available!!!!

Thanks,
Tim

EvilLS1 06-06-2004 03:09 AM

Quote:

Originally Posted by tteal
2. Admin ability to delete the actual timeslip (just in case someone put a bogus one in there).

Thats already in there. When viewing a user's vehicle details page click "user options" & scroll down to where it says "Delete Uploaded Timeslip?". ;)

BamaStangGuy 06-07-2004 02:51 PM

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...ead.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

EvilLS1 06-07-2004 06:42 PM

Quote:

Originally Posted 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...ead.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>


dcevoclub 06-18-2004 02:10 PM

anyone willing to help me? i'd like to add classes, like drag class, street class, ect. to better catigorize the different times, and display them on the timeslips.php page,

i just need to know where to edit to add these features.... but i'd really like another column on the main page showing "Class"


All times are GMT. The time now is 11:54 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.01830 seconds
  • Memory Usage 1,875KB
  • 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
  • (18)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
  • (40)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