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)

tealv6 02-09-2005 09:22 PM

Ok... I feel like an a$$... I knew that many hours of looking at code would rot my brain.

Thank you for enlightening me!!! On to the next hack :nervous:

Steve

zurih 02-10-2005 08:51 PM

is it possible to make "modifytimeslip" template to be recognized as an individual? I want to make an if condition with define('THIS_SCRIPT', 'xxxx');

how can I do this with modifytimeslip?

thanks

EvilLS1 02-10-2005 10:41 PM

Quote:

Originally Posted by zurih
is it possible to make "modifytimeslip" template to be recognized as an individual? I want to make an if condition with define('THIS_SCRIPT', 'xxxx');

how can I do this with modifytimeslip?

thanks

I think you could do it like this:

in profile.php find:
Code:

define('THIS_SCRIPT', 'profile');
Replace it with:
Code:


if ($_REQUEST['do'] == 'edittimeslip')
{
define('THIS_SCRIPT', 'modifytimeslip');
}
else
{
define('THIS_SCRIPT', 'profile');
}

If that doesn't work you could try something like this in your template conditional:
Code:

<if condition="$templatename == 'modifytimeslip'">
I haven't tried either of those but I think it'll work.

zurih 02-11-2005 08:50 AM

thanks! it works
I used the first way :)

Protoman 02-16-2005 10:30 PM

installed.
would there be a way to add a dyno chart upload to the timeslips display?

I'd be willing to loose the 'Induction' Column to make room for it

EvilLS1 02-16-2005 11:10 PM

Quote:

Originally Posted by corollasbest
installed.
would there be a way to add a dyno chart upload to the timeslips display?

I'd be willing to loose the 'Induction' Column to make room for it

Its possible but will require alot of code edits to add that feature. I may add something like that in v2.2 but it'll be a while.

Protoman 02-16-2005 11:46 PM

I can wait.. thanks, love the mod even as-is.

wynode 02-22-2005 07:40 AM

I'm having a problem with the condition for uploading a timeslip.

I presently have the Require a Timeslip variable set to 13.95, however there seems to be a bit of a flaw when entering say a value quicker than that for the 1/4mile ET

For example, I just tested it using a value of 9 seconds for the 1/4mile ET and the pop up box didn't come up asking for a timeslip.

I then edited the same entry and put a value of 13 and then the dialogue box came up!

Any reason why?

PS: This is a great mod......and the install went fine :)

URL is --> http://www.ozhonda.com/forum

Thanks!

EvilLS1 02-22-2005 09:52 PM

wynode,
Thats a bug in my javascript code. Thanks for pointing it out to me.

To fix it, in your modifytimeslip template find this:
Code:

<if condition="$vboptions[allowtimeslipupload]">
<script language="javascript">
<!--

function validate(theform) {

        if ((theform.field55.value<='$vboptions[tdsliprequired]') && (theform.field55.value>0) && (theform.upload.value=="") && (theform.timeslipdateline.value=="")) {
                alert("An uploaded copy of your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
                return false; }
}
//-->
</script>

<else />
<script language="javascript">
<!--
function validate(theform) {
        if ((theform.field55.value<='$vboptions[tdsliprequired]') && (theform.field55.value>0) && (theform.field57.value=="")) {
                alert("A link to your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
                return false; }
}
//-->
</script>
</if>

And replace it with this:
Code:

<if condition="$vboptions[allowtimeslipupload]">
<script language="javascript">
<!--

function validate(theform) {

        if ((theform.field55.value<=$vboptions[tdsliprequired]) && (theform.field55.value>0) && (theform.upload.value=="") && (theform.timeslipdateline.value=="")) {
                alert("An uploaded copy of your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
                return false; }
}
//-->
</script>

<else />
<script language="javascript">
<!--
function validate(theform) {
        if ((theform.field55.value<=$vboptions[tdsliprequired]) && (theform.field55.value>0) && (theform.field57.value=="")) {
                alert("A link to your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
                return false; }
}
//-->
</script>
</if>


The instructions have been updated.

wynode 02-22-2005 11:22 PM

Thanks for fixing that up EvilLS1 !!

I'm surprised nobody picked it up (actually I didn't either, another member did and pointed it out to me)

Great work and thanks for adding my site to your list! :)

-Win


All times are GMT. The time now is 09:29 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.01798 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)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