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)

pgp2003 07-20-2004 05:19 PM

I just get a blank page when I try to Edit the timeslip info... http://www.nostreetracing.org/main/

EvilLS1 07-20-2004 06:53 PM

Quote:

Originally Posted by pgp2003
I just get a blank page when I try to Edit the timeslip info... http://www.nostreetracing.org/main/

It can only be one of two things, either a missed edit to profile.php or a misspelled template name. First open profile.php and verify that you added this bit of code:

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 so, check the spelling and contents of your modifytimeslip template.

BTW, I tried to register on your site so that I could see for myself but I just get a blank page when I submit my registration info. This hack makes no edites to register.php so something else is causing that.

pgp2003 07-20-2004 08:03 PM

I already checked both template names and profile.php already... and it seems to be okay.. but I will redo profile.php again..

and as for register.php, thanks for catching that... The only mod that made changes in that file was the award hack... good thing I didn't try it on my other forum :)

I will let you know how things go as soon as I try it again

bmx269 07-27-2004 12:17 AM

Installed it on K-Series.com. Love it. Thanks.

-Trent

Sidewindr 07-27-2004 05:44 AM

Anyone got the Top 5 Times mod working for vBadvanced CMPS ??

Help!! :)

tteal 07-28-2004 01:42 AM

Dewayne (EvilLS1),
FYI I just dyno'd last Tuesday ---- 456.9rwhp/388rwtq and ran out of fuel pump/system at only 6k rpm. Going to upgrade.

Quick question actual request. I somehow mucked up my timeslip database... all of the info exists, however, I think I messed up field55 somehow. Anyway that you could tell me the structure of what belongs in there so I can use phpmyadmin to fix it? all of my timeslips won't show now. That will teach me to try and install another tool :)

Thanks,
Tim

EvilLS1 07-28-2004 02:14 AM

Nice numbers Tim!

To re-add field55, first make sure that field55 has been completely removed from the profilefield and userfield tables. Then upload this script to the admincp directory and run it. Keep in mind that doing this will cause everyone to have to re-enter thier info for that field. If you just want to see the structure open the file and take a look.

Later,
Dewayne

tteal 07-28-2004 02:22 AM

Quote:

Originally Posted by EvilLS1
Nice numbers Tim!

To re-add field55, first make sure that field55 has been completely removed from the profilefield and userfield tables. Then upload this script to the admincp directory and run it. Keep in mind that doing this will cause everyone to have to re-enter thier info for that field. If you just want to see the structure open the file and take a look.

Later,
Dewayne

DeWayne,
Thanks for teh quick resopnse. I figured it out and just manually input'd all of the data. I had custom fields with the ET in there so I used that. I didn't want to lose all that data :) Thanks!!!!!!!!

tbroush 07-28-2004 03:26 AM

I just added this to my website, I try to run the td302.php and I got a database error, but it seems to be working correctly, can you please check it out and let me know if there is something missing thanks.

http://www.modernmustangs-na.com/forums

EvilLS1 07-28-2004 03:33 AM

Quote:

Originally Posted by scroush
I just added this to my website, I try to run the td302.php and I got a database error, but it seems to be working correctly, can you please check it out and let me know if there is something missing thanks.

http://www.modernmustangs-na.com/forums

You don't need to run td302.php since this is a fresh install. Thats only for people who had installed the hack prior to upgrading to VB 3.0.2 or later.

Yours seems to be working just fine. :)


All times are GMT. The time now is 07:43 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.01547 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (3)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