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)

klaattu 11-09-2004 01:28 AM

Quote:

Originally Posted by EvilLS1
The temp field is not from this hack.


If you've restored the backup of DB to the state it was in before you ran the installer all of the settings and anything to do with the new version (2.X) of the timeslip hack should be gone (the previous versions didn't add any settings to the admincp). Once thats done, and fields 50-65 are clear, you should be able to run the script without errors.

OK I DID IT!!!! OMG I cant believe it I had to hack my database and remove all entries with timeslips (you are a very organized guy it was time consuming and quite easy a soon as I ran the succsesful installer I had up and running in 5 minutes.....

THANKS A LOT

and you can check it (with only one record now) at:

http://www.auto-mania.com.mx/foro/upload/timeslips.php?

now Ill add the hack to my portal page and one last question when I press 1/4 de milla (quarter of mille on the nav bar) while I am at the Vbadvanced it takes me to the root folder and looks for timeslips.php so I get a NOT found also It happens in my photopost navbar. If I click on the forum it lloks into the vb folder so it works... any hints on how to fix this small prob?

Best regards

EvilLS1 11-09-2004 01:43 AM

Glad ya got it working. :)

To fix the problem with the navbar links in your navbar template find this:
Code:

                <td class="vbmenu_control"><a href="timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>
Replace it with this:
Code:

                <td class="vbmenu_control"><a href="$vboptions[bburl]/timeslips.php?$session[sessionurl]">$vbphrase[timeslips]</a></td>
Dewayne

KidCharlemane 11-09-2004 05:42 PM

I read the majority of this post and didn't see this problem mentioned... hopefully I didn't miss it.

Single digit timeslips are being sorted to the end. I have some guys with 7 second timeslips on my page that are being listed last while the 10.00 guys are listed first.

Also, the "sort by single digit ETs" doesn't seem to work.

Has there been a fix for this?

** EDIT ** Adding a 0 before the single digit times makes them show up correctly. Hopefully this is an easy fix.

We're using the hack at http://t6p.com/forums/timeslips.php

Thanks!

EvilLS1 11-09-2004 08:34 PM

From the first post:
Quote:

For those who have recently upgraded to vB 3.0.2 or later: If you're having trouble with timeslips.php showing all users (regardless if they have an ET) or it not sorting correcty, Read This!
KidCharlemane,
Check the second paragraph of this post:

https://vborg.vbsupport.ru/showpost....&postcount=274

Upload and run TD302.php. That will solve both of the sorting problems.

KidCharlemane 11-10-2004 12:09 AM

Quote:

Originally Posted by EvilLS1
From the first post:


KidCharlemane,
Check the second paragraph of this post:

https://vborg.vbsupport.ru/showpost....&postcount=274

Upload and run TD302.php. That will solve both of the sorting problems.


Excellent.. thanks.. I scanned like 200 replys of this message and never saw the solution. Glad to see it's been fixed. For a car forum, the villagers love this hack.

EvilLS1 11-10-2004 12:55 AM

Quote:

Originally Posted by KidCharlemane
Excellent.. thanks.. I scanned like 200 replys of this message and never saw the solution. Glad to see it's been fixed. For a car forum, the villagers love this hack.

Always check the first post. ;) I try to keep this hack as bug free as possible and whenever I find something that needs to be fixed I'll always make a note of it in the first post and send out an update notice to those who clicked install.

{edit} Nice website btw.. I love GNs and T-Type Regals. Best sleepers ever. :)

Dewayne

integra99 11-10-2004 03:02 AM

Quote:

Originally Posted by EvilLS1
Always check the first post. ;) I try to keep this hack as bug free as possible and whenever I find something that needs to be fixed I'll always make a note of it in the first post and send out an update notice to those who clicked install.

{edit} Nice website btw.. I love GNs and T-Type Regals. Best sleepers ever. :)

Dewayne

My DSM will pull your LS1

:D

EvilLS1 11-10-2004 03:04 AM

Quote:

Originally Posted by integra99
My DSM will pull your LS1

:D

Oh yeah? Whats it run in the 1/4? I'll post my slip if you'll post yours. ;)

PranK 11-11-2004 10:29 PM

Hey Dewayne,

I have just re-installed my forums and a heap of hacks and I am getting a plank page on profile/php?do=edittimeslip. timeslips.php displays correctly tho and I have modified the templates to use my fields 80-96 as opposed to 50-56 (or whatever they are).

The only thing I can think of is that I didn't have 'modifytimeslip' before or the 'custom timeslip pic' db table... maybe i have skipped a crucial 'upgrade' step or something... any help?

Thanks mate.

Christian

EvilLS1 11-11-2004 10:42 PM

Christian,
Check and make sure that you added this bit of code to profile.php:
Code:


// ############################### EDIT VEHICLE PROFILE #######################
if ($_REQUEST['do'] == 'edittimeslip')
{

  if ($bbuserinfo[userid]==0  or $bbuserinfo[tdban]==0)
{
        print_no_permission();
  }


        unset($tempcustom);
        exec_switch_bg();
        // Get Custom profile fields
        $customfields = array();
        fetch_timeslipfields(0);

if ($vboptions[allowtimeslipupload]){
                $timeslippic = $DB_site->query_first("
                        SELECT userid, dateline
                        FROM " . TABLE_PREFIX . "customtimeslippic
                        WHERE userid = $bbuserinfo[userid]
                ");

                if ($timeslippic)
                {
                        $timeslippicchecked[1] = HTML_CHECKED;
                        $timeslippicchecked[0] = '';
                }
                else
                {
                        $timeslippicchecked[1] = '';
                        $timeslippicchecked[0] = HTML_CHECKED;
                }               
}

        // draw cp nav bar
        construct_usercp_nav('vehicleprofile');

        $navbits[''] = $vbphrase['edit_timeslip'];
        $templatename = 'modifytimeslip';
}
// ############################### start update ###############################
if ($_POST['do'] == 'updatevehicleprofile')
{
       
  if ($bbuserinfo[userid]==0  or $bbuserinfo[tdban]==0)
{
        print_no_permission();
  }
        $userfields = verify_vehiclefields(0);
        // insert custom user fields
        if (!empty($userfields))
        {
                $DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET userid=$bbuserinfo[userid]$userfields WHERE userid=$bbuserinfo[userid]");
        }
if ($vboptions[allowtimeslipupload]){

        globalize($_POST, array('timeslippic' => INT, 'avatarurl' => STR));

        if ($timeslippic==1)
        {
                require_once('./includes/functions_upload.php');
                process_image_upload('timeslippic', $avatarurl);
        }
        else if ($timeslippic==0)
        {
                $DB_site->query("DELETE FROM " . TABLE_PREFIX . "customtimeslippic WHERE userid = $bbuserinfo[userid]");
        }
}

$url = "timeslips.php?$session[sessionurl]";
        eval(print_standard_redirect('redirect_updatethanks'));

}

If it still doesn't work, check the spelling of the template name and the contents of the modifytimeslip template.


All times are GMT. The time now is 12:39 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.01907 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)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