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)

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


All times are GMT. The time now is 02:31 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.01669 seconds
  • Memory Usage 1,786KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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