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 09-09-2004 03:10 AM

You must have another hack installed that effects image.php. Just email me your file and I'll add the code for you. My email address is in the post above ^.

94supratt 09-09-2004 03:13 AM

Quote:

Originally Posted by EvilLS1
You must have another hack installed that effects image.php. Just email me your file and I'll add the code for you. My email address is in the post above ^.

Thanks! I am a co-admin of a site. Someone else did an image gallery hack. Thats probably why the image.php file is different.

94supratt 09-09-2004 03:18 AM

Hmm...It seems to be working w/o the image.php hacked.

EvilLS1 09-09-2004 03:21 AM

hehe.. The reason you couldn't find the code is b/c you're looking in the wrong image.php. The file you sent me is /forums/admincp/image.php .. The one you need to edit is /forums/image.php . ;)

I guess I should mention that theres two of them in the instructions.. :)

94supratt 09-09-2004 03:41 PM

Everything works but I get a parse error when someone tries to click on the timeslip link.

94supratt 09-09-2004 04:14 PM

.....
Quote:


Parse error: parse error, unexpected T_ELSE in /home/horsepow/public_html/forums/image.php on line 201

Mike Bucy 09-09-2004 05:57 PM

Hi, I'm currently using Timeslips version 1.2 on VB2.3.5 and I thinkd it's great. I'm going to be updating to VB3.0.3 today and was wondering the best way to make the Timeslips upgrade at the same time?

EvilLS1 09-09-2004 07:05 PM

94supratt,
A parse error usually means that the code was copied and pasted incorrectly. Try carefully re-applying the file edits to a fresh image.php and that should fix it.

Mike,
It is possible to edit the installer script so that the old timeslip fields from 1.2 are still used after the upgrade, but if you only have a page or two of entries I'd suggest removing all of the old fields and doing a fresh install. It only takes each member a couple of minutes to re-enter their times and this way you'll avoid any problems with the installation script. Just go to the custom profile fields section in your admincp and remove all of the timeslips/vehicle fields before running the new installer.

Dewayne

Mike Bucy 09-09-2004 08:36 PM

Will do!

Thanks

Silverstangs 09-10-2004 01:23 AM

Hey Evil, I just wanted to update the location for my timeslips page
http://www.stangcountry.com/forums/timeslips.php?
I added torque to the list, so I hope you don't mind that at all. Matter of fact, I had a request to add Kilowatts too......

EvilLS1 09-10-2004 01:33 AM

Nice addition Silverstangs! Link updated.

DSM Turbos 09-10-2004 01:34 AM

this might be a really stupid question, but i don't understand how to add a template like in the last steps. any help would be great

EvilLS1 09-10-2004 01:40 AM

Quote:

Originally Posted by DSM Turbos
this might be a really stupid question, but i don't understand how to add a template like in the last steps. any help would be great

In your admin cp, look under the tab that says "Styles & Templates"... Click Style Manager, then next to your style click the drop down menu and select "Add new Template"... Then in the title box put the template name from the instructions, in the template box put the HTML. Click "save" and thats it.

Dewayne

DSM Turbos 09-10-2004 01:48 AM

i still can't figure out what is up with it, any help you can give me? I did the template part now.

Todd

http://carolinadsm.com/forum/timeslips.php

EvilLS1 09-10-2004 01:56 AM

Quote:

Originally Posted by DSM Turbos
i still can't figure out what is up with it, any help you can give me? I did the template part now.

Todd

http://carolinadsm.com/forum/timeslips.php

It looks like you still haven't added/edited all the templates. If you have more than one style make sure that the new templates have been added to all of them.

If you still can't get it, I can add them for you if you want. Just email me at webmaster@modernmusclecars.net .

DSM Turbos 09-10-2004 02:25 AM

Quote:

Originally Posted by EvilLS1
It looks like you still haven't added/edited all the templates. If you have more than one style make sure that the new templates have been added to all of them.

If you still can't get it, I can add them for you if you want. Just email me at webmaster@modernmusclecars.net .

email sent to you.

Tungsten 09-14-2004 12:00 PM

Our users are complaining that when you sort by 1/8th mile ET, the results are totally screwy. I can't make heads or tails of it, but it appears that the cars are not being sorted fastest to slowest.

http://www.tennesspeed.net/forums/ti...php?&do=eighth

Any ideas?

EvilLS1 09-14-2004 06:11 PM

Tungsten,
The reason your fields aren't sorting correctly is b/c your timeslip fields got set to text or varchar instead of decimal when you upgraded your vbulletin. Someone else had the same problem earlier.

To fix it, just upload this file to your admincp and run it:
https://vborg.vbsupport.ru/attachmen...chmentid=19550

Grant Sherwood 09-21-2004 08:26 PM

in the navbar template im not finding:

Code:

<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>


Here is all i have..

Code:

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/vb_bullet.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/vb_bullet.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
        <td class="vbmenu_control"><a href="timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>
        <if condition="$bbuserinfo['userid']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <!--<span style="float:$stylevar[right]">[<a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>
               
        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />
                <input type="hidden" name="forceredirect" value="1" />                       
                <input type="hidden" name="vb_login_md5password" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />

Thanks for your help.

SVTBlackLight01 09-21-2004 08:49 PM

That part of your navbar template has been modified. It would be where the buttons are now.

Grant Sherwood 09-21-2004 08:51 PM

So is there a place i can stick it where it will have the same effect?

Grant Sherwood 09-21-2004 09:26 PM

Also do i have to enable users to use this? Because its only showing up in thier UserCP where they can edit it. theres no link anywhere to look at anyones car info. and when they try to submit there timeslip's it just sends them back to there UserCP where they can edit there info... :-(

Leave it to me to screw stuff up.

EvilLS1 09-21-2004 10:12 PM

Grant Sherwood,
The part that you add to the navbar template will add a link to the timeslip database in your header so that its easy to access from any page. Your header has been modified so you'll have to experiment with it a little to find out where the link looks best. Or you could just make a timeslips button to put with the rest of your buttons. You can find a button in the other Timeslip Database thread (for vb2).
I just registered at your forum to test and your Timeslip Database is working fine. When you submit your info it forwards you to the timeslips.php page just like its supposed to. Your users can submit their times by clicking the link at the bottom of the timeslips page (http://www.ntsr.org/forums/timeslips.php? ) or by going to their usercp and clicking "edit vehicle profile". You just need to add a link to timeslips.php somewhere and you also need to upload the timeslip icon.

Grant Sherwood 09-21-2004 10:20 PM

everytime i click "submit your timeslip data" it sends me back to the profile page, then i click save changes then i go look and its still not there. Also for some reason the "slipicon" is trying to pull itslef from http://www.ntsr.org/forums/classic_i...//slipicon.gif ..lol, how do i get rid of the extra / ?

Thanks again for your help.

Grant Sherwood 09-21-2004 10:43 PM

Ok, well i figured out why it wasnt submiting mine, you have to put a 1/4 time in or it wont submit. now all i need to do is fix the f'in icon..

Grant Sherwood 09-21-2004 10:46 PM

NVM, i got it to work...Thanks for all your help. :-)

Great hack BTW.

EvilLS1 09-21-2004 10:55 PM

Quote:

Ok, well i figured out why it wasnt submiting mine, you have to put a 1/4 time in or it wont submit.
You don't have to put in a 1/4 mile ET to submit your info. The default sort method is 1/4 and will only show users who have entered the 1/4 mile time.. but you can view 1/8 mile ETs aswell. Just select 1/8 mile ET from the drop down menu at the top right hand side of the page and it'll list everyone who entered it..

Quote:

Thanks for all your help. :-)

Great hack BTW.
You're welcome, and thanks. :)

Grant Sherwood 09-21-2004 10:58 PM

Is there a way to set the default as 1/8th ET? The only 1/4 track around our area is Ennis and its not very close so 90% of the people only have 1/8 ET's.

EvilLS1 09-21-2004 11:07 PM

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 eighth
if (empty($_REQUEST['do']))
{
  $_REQUEST['do'] ='eighth';
}

find
Code:

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

replace it with
Code:

  else
  {
        $cond.=" WHERE userfield.field53>0";
        $condition.=" AND userfield.field53>0";
        $orderby="userfield.field53";
        $direction=ASC;
        $bracket5="<b>[</b>";
        $bracket6="<b>]</b>";
}


Grant Sherwood 09-21-2004 11:22 PM

Works Perfectly :banana:

Thanks again.

Grant Sherwood 09-22-2004 10:40 AM

Ok, i have another question. Alot of members use n2o so they have both N/A and P/A times. Is there a way I can make it where it show's both if they have it? Also, when i try and sort them by N/A, and Usernames yours is the only one that shows up.

EvilLS1 09-22-2004 07:50 PM

Quote:

Ok, i have another question. Alot of members use n2o so they have both N/A and P/A times. Is there a way I can make it where it show's both if they have it?
Its not possible to sort by more that one ET at a time so they would just have to choose one or the other.

Quote:

Also, when i try and sort them by N/A, and Usernames yours is the only one that shows up.
Thats because its sorting N/A 1/4 mile times. Everything is based on 1/4 mile times by default because thats the most popular track length when people discuss drag racing. So when you click "Show N/A cars only" the query selects all members who are N/A and orders by 1/4 mile ET. It has to order by something or else you would just have a mixed list of users not ranked in any specific order.

If you want it to sort N/A cars by 1/8 mile ET instead do this..

In timeslips.php find:
Code:

    else if ($_REQUEST['do'] == 'na')
  {
        $condition.=" AND userfield.field65='$natasp' AND userfield.field55>0";
        $cond.=" WHERE userfield.field65='$natasp' AND userfield.field55>0";
        $orderby="userfield.field55";
        $direction=ASC;
        $bracket13="<b>[</b>";
        $bracket14="<b>]</b>";
  }

replace it with:
Code:

    else if ($_REQUEST['do'] == 'na')
  {
        $condition.=" AND userfield.field65='$natasp' AND userfield.field53>0";
        $cond.=" WHERE userfield.field65='$natasp' AND userfield.field53>0";
        $orderby="userfield.field53";
        $direction=ASC;
        $bracket13="<b>[</b>";
        $bracket14="<b>]</b>";
  }


zer026 10-03-2004 03:34 AM

What would be the conditional statement to display a link to a users uploaded
timeslip(just the timeslip not the full "details" page) if they have submitted one from in their vbgarage?

or,
link to the users full "details" page(if they have submitted timeslip data)?

EvilLS1 10-03-2004 04:27 AM

Quote:

Originally Posted by zer026
What would be the conditional statement to display a link to a users uploaded
timeslip(just the timeslip not the full "details" page) if they have submitted one from in their vbgarage?

or,
link to the users full "details" page(if they have submitted timeslip data)?


Adding a link to the details page is easy. Just use a conditional to check if the user has entered something in the 1/4 mile ET field like this:

Code:

<if condition="$user[field55] >0">
<a href="member.php?$session[sessionurl]&do=vehicledetails&userid=$id">Timeslip Details</a>
</if>


As for adding a link to the timeslip itself, I believe that would require adding a query to vbgarage.php in order to get the dateline.

I didn't test this but it should work:

In vbgarage.php find:
Code:

    eval('$commentbits .= "' . fetch_template('vbgarage_commentbits') . '";');
        }

Below it add:
Code:

  $timeslip=$DB_site->query("SELECT dateline
                          FROM " . TABLE_PREFIX . "customtimeslippic WHERE userid = $id LIMIT 1
        ");
    $result_timeslip = $DB_site->fetch_Array($timeslip);
    $tdateline = $result_timeslip[dateline];

Then put this somewhere in your vbgarage_viewgarage template:
Code:

<if condition="$tdateline!=''">
<a href="image.php?u=$id&amp;type=timeslip&amp;dateline=$tdateline" target="_blank">View Timeslip <img src="$stylevar[imgdir_misc]/slipicon.gif" border=0></a>
</if>


zer026 10-03-2004 05:12 AM

Both of your answers worked perfectly! I also must say that was just about the quickest response known to mankind! Your help is massively appreciated.

zer026 10-03-2004 07:43 AM

When the timeslip input page loads in the userscp, it loads with the usercp menu on the lefthand side. How do I remove the usercp menu when it loads, i.e, just the timeslip edit vehicle profile section loads under the navbar, no lefthand side menu. I know this may sound odd but I would like timeslip usercp section to look uniform with the vbgarage usercp section since I have them linking to each other. Personally I like the lefthand side menu for all the cp sections however vbgarage doesn't incorporate it and there's probably little chance of me contacting magnus as to how to add it.

Any help would once again be greatly appreciated.

EvilLS1 10-03-2004 08:31 PM

Quote:

Originally Posted by zer026
When the timeslip input page loads in the userscp, it loads with the usercp menu on the lefthand side. How do I remove the usercp menu when it loads, i.e, just the timeslip edit vehicle profile section loads under the navbar, no lefthand side menu. I know this may sound odd but I would like timeslip usercp section to look uniform with the vbgarage usercp section since I have them linking to each other. Personally I like the lefthand side menu for all the cp sections however vbgarage doesn't incorporate it and there's probably little chance of me contacting magnus as to how to add it.

Any help would once again be greatly appreciated.


In your "USERCP_SHELL" template find:
Code:

$navbar
Below it add:
Code:

<if condition="$_REQUEST['do'] != edittimeslip">
Find:
Code:

<!-- main page contents -->
$HTML

Above it add:
Code:

</if>

zer026 10-03-2004 11:30 PM

And again it worked perfectly. Thanks so much for your fantastic support for your Timeslip mod. I'm sure my members are going to love it when the rest of the forum is finished. Thanks Again!:)

EvilLS1 10-06-2004 04:38 AM

You're welcome. :)

94supratt 10-15-2004 09:35 PM

nm found it


All times are GMT. The time now is 04:06 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.02140 seconds
  • Memory Usage 1,864KB
  • 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
  • (16)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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