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-17-2004 07:55 PM

Quote:

Originally Posted by cteselle
Great Hack!

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

Thanks. I don't have any of the VB3 portals installed on my test site, but it should be pretty easy to do. In the old v1.3 Timeslip Database thread I posted instructions on how to add it (for VB2). You can probably figure out how to add it to your VB3 portal by looking at that code.

cteselle 03-02-2004 08:41 PM

Here's mine: http://www.socalloc.com/forums/timeslips.php

I modified and added to it a bit. I also wrote my own script to display the stats on the first page, since I'm not using a vB portal.

thanks again for your work on this! My users love it!

corsacrazy 03-02-2004 08:52 PM

all we need is this hack intergrated with a vb garage hack and all car sites will be sorted

EvilLS1 03-03-2004 03:20 AM

cteselle,
Looks great! Added your link. I like what you did with the mod list too. :)

joeychgo 03-08-2004 05:12 AM

Hack installed pretty easily...
(especially considering im learning all this as I go along - one whole week now-)
thanks for your hard work!

One strange thing. My navbar does not show Timeslips it shows Tineslips

LOL Please someone take pity on me and tell me how to fix!!!!! Ive looked EVERYWHERE I can think of and couldnt find it.


Second problem... After completing the Vehicle Profile Data form and clicking "save changes" it takes me to the New Subscribed Threads screen?


Third, the instructions say this should add a "Vehicle Profile" page to my forum - but I cant find anything

Im running vBulletin Version 3.0.0 Release Candidate 4--

www.lincolnvscadillac.com

EvilLS1 03-08-2004 07:18 AM

Quote:

One strange thing. My navbar does not show Timeslips it shows Tineslips
In your admincp under languages & phrases click "phrase manager" then click the "search in phrases" button. Search for "tineslips".. Then click edit and fix the spelling mistake.

Quote:

Second problem... After completing the Vehicle Profile Data form and clicking "save changes" it takes me to the New Subscribed Threads screen?
Thats the main page of your userCP. Thats not an error. Its supposed to go there (goes to the same page after editing your regular profile aswell).. But you can easily change it so that it redirects to somewhere else if you want..

Find this code in profile.php:
Code:

// ############################### 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]");
        }
$url = "usercp.php?$session[sessionurl]";
        eval(print_standard_redirect('redirect_updatethanks'));

}

In the code above, find this:
Code:

$url = "usercp.php?$session[sessionurl]";
if you want it to redirect to the timeslip database just replace it with this:
Code:

$url = "timeslips.php?$session[sessionurl]";
..or change it to whatever file that you want to be redirected to.


Quote:

Third, the instructions say this should add a "Vehicle Profile" page to my forum - but I cant find anything
Once you've added your ET to the timeslip database, go to the timeslips page (timeslips.php) and click "Details" next to the username and you'll see the vehicle profile page.

Or you can even add a link to your user's vehicle profile from their regular profile. Just put this link in the memberinfo template:
Code:

<a href="member.php?$session[sessionurl]&do=vehicledetails&userid=$userinfo[userid]">Vehicle Profile</a>

joeychgo 03-08-2004 09:37 AM

Thanks! But the second one didnt do anything......... ???

joeychgo 03-08-2004 06:47 PM

Got a problem~~~~

After installing this, I went to my user manager and tried to change info on a member. When I clicked save I got this.......

[COLOR=Red]There seems to have been a slight problem with the Lincoln vs Cadillac database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: UPDATE user SET tdban= WHERE userid=6
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid=6' at line 1

mysql error number: 1064

EvilLS1 03-08-2004 07:36 PM

Quote:

Thanks! But the second one didnt do anything......... ???
Make sure you changed the code in the right place. Theres a few places that have that same code. The one you want to change is a few lines below this code:
Code:

if ($_POST['do'] == 'updatevehicleprofile')

EvilLS1 03-08-2004 07:37 PM

Quote:

Originally Posted by joeychgo
Got a problem~~~~

After installing this, I went to my user manager and tried to change info on a member. When I clicked save I got this.......

[COLOR=Red]There seems to have been a slight problem with the Lincoln vs Cadillac database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: UPDATE user SET tdban= WHERE userid=6
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid=6' at line 1

mysql error number: 1064

You missed something when you edited admincp/user.php. Theres 3 changes in that file. Go back and make sure you did all 3 edits (I think you forgot the second one).


All times are GMT. The time now is 01:46 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.01458 seconds
  • Memory Usage 1,752KB
  • 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
  • (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