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)

EvilLS1 02-08-2004 08:42 PM

DigitalEclipse,
Thanks for confirming that it works with RC4.

higabyte,
Looks nice! Added your link.

DeeperImage 02-11-2004 01:31 AM

I am using RC4 as well, I just added it tonight. I love it. It was easy to install. Thanks a bunch.

http://www.240sxforums.com/forums/timeslips.php

Tungsten 02-16-2004 03:23 PM

Hey Evil... how would I modify the code in this latest version for vB3 so that it sorts by 60' times by default? :)

And thanks again for this hack. You rock, man.

EvilLS1 02-16-2004 04:58 PM

Quote:

Originally Posted by Tungsten
Hey Evil... how would I modify the code in this latest version for vB3 so that it sorts by 60' times by default? :)

And thanks again for this hack. You rock, man.

In timeslips.php find:
Code:

// If no action is set order by quarter
if (empty($_REQUEST['do']))
{
  $_REQUEST['do'] ='quarter';
}

Replace it with:
Code:

// If no action is set order by sixty
if (empty($_REQUEST['do']))
{
  $_REQUEST['do'] ='sixty';
}

Find:
Code:

  }
  else
  {
        $cond.=" WHERE userfield.field55>'".intval($number)."'";
        $condition.=" AND userfield.field55>'".intval($number)."'";
        $orderby="userfield.field55";
        $direction=ASC;
        $bracket3="<b>[</b>";
        $bracket4="<b>]</b>";

Replace it with:
Code:

  }
  else
  {
        $cond.=" WHERE userfield.field52>'".intval($number)."'";
        $condition.=" AND userfield.field52>'".intval($number)."'";
        $orderby="userfield.field52";
        $direction=ASC;
        $bracket1="<b>[</b>";
        $bracket2="<b>]</b>";

That should do it. :)


DeeperImage,
Looks great! Added your link.

Tungsten 02-16-2004 06:50 PM

Quote:

Originally Posted by EvilLS1
That should do it. :)

Excellent... thanks! We're running it here:

http://www.tennesspeed.net/forums/timeslips.php

EvilLS1 02-16-2004 08:32 PM

Quote:

Originally Posted by Tungsten
Excellent... thanks! We're running it here:

http://www.tennesspeed.net/forums/timeslips.php

Looks great! Link added. :)

DeeperImage 02-17-2004 01:03 AM

Quote:

Originally Posted by EvilLS1
DeeperImage,
Looks great! Added your link.

Thank you for this excellent hack. One question I had, I am not very familiar with php. When the new RC of VB3 comes out, and I upgraed it, which files do I need to not replace so that they dont erase the hack? thanks again.

EvilLS1 02-17-2004 02:39 AM

Quote:

Originally Posted by DeeperImage
Thank you for this excellent hack. One question I had, I am not very familiar with php. When the new RC of VB3 comes out, and I upgraed it, which files do I need to not replace so that they dont erase the hack? thanks again.

Well, you really should replace all the files with the newer ones when you upgrade.. Then just re-apply the hack to the new files. You won't need to run the installer again or add/edit the templates. Just do the file edites.

BTW, just noticed that you're from Kennesaw GA.. I'm only a few miles from you (Rome GA). :)

cteselle 02-17-2004 06:33 AM

Great Hack!

Is there a way to add the top 5 (or whatever) to a non-vb page?

DeeperImage 02-17-2004 11:38 AM

Quote:

Originally Posted by EvilLS1
Well, you really should replace all the files with the newer ones when you upgrade.. Then just re-apply the hack to the new files. You won't need to run the installer again or add/edit the templates. Just do the file edites.

BTW, just noticed that you're from Kennesaw GA.. I'm only a few miles from you (Rome GA). :)

I guess thats not to bad. That is to funny that you live in Rome. We are just minutes away :nervous:


All times are GMT. The time now is 10:18 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.01621 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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