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)
-   -   vBGarage v3.1.1 (now with GD-Lib support!) (https://vborg.vbsupport.ru/showthread.php?t=63681)

SVTCobraLTD 11-13-2007 03:25 PM

What version vB are you using it on?

SVT

SVTCobraLTD 11-13-2007 03:26 PM

What version of vb are you using?

SVT

WtwSkippy 12-10-2007 09:56 PM

3.6.8pl2

Twin_Turbo 03-11-2008 09:49 AM

Your query has an error, it says do=$_REQUEST[do]&page=2 but it should say list instead of $_REQUEST[do] , try it...change the url manually in your browser and change it to list. Works fine then. I haven't installed this yet but that looks lika a super easy fix.

Twin_Turbo 03-11-2008 10:38 AM

Quote:

Originally Posted by SON240SX (Post 1303053)
I tried installing vbGarage 3.1.1 on vBulletin v3.6.7 and I get this error:

What's going on?

EDIT:
I guess this doesn't work with vBulletin 3.6.7 :(

Waiting paitently for 4.x.x


Fatal error: Call to a member function query_first() on a non-object in /home/xxxxx/forums/admincp/install_vbgarage.php on line 321


In the code it points to this:
Code:

if (!$preexists = $DB_site->query_first("SELECT templateid FROM " . TABLE_PREFIX . "template WHERE title = '" . addslashes($title) . "' AND styleid = $styleid")){
        $result = $DB_site->query("
                INSERT INTO " . TABLE_PREFIX . "template
                        (styleid, title, template, template_un, dateline, username, version)
                VALUES
                        ($styleid,
                        '" . addslashes("$title") . "',
                        '" . addslashes("$template") . "',
                        '" . addslashes("$template_un") . "',
                        " . TIMENOW . ",
                        '" . addslashes($bbuserinfo['username']) . "',
                        '" . addslashes($vboptions['templateversion']) . "')
        ");
}


I get the same error. Anyone know a fix for this? Looks like WtwSkippy managed to install this on the same ver. I'm using.

As for the error above, I think I found it.

In your vbgarage.php find
$pagenav = construct_page_nav($garagecount[garages],"vbgarage.php?$session[sessionurl]do=$_REQUEST[do]&perpage=$perpage");

and change to
$pagenav = construct_page_nav($garagecount[garages],"vbgarage.php?$session[sessionurl]do=$_REQUEST['do']&perpage=$perpage");

UK-Biker 05-02-2008 08:24 AM

So will this work with 3.7.0 ?????????

UK-Biker 05-02-2008 03:12 PM

Bump :(

05-07-2008 05:56 PM

If anyone is having with page 2 on the newest version of this mod...

Open the vbgarage.php file... Search for $pagenav...

And replace it with this:

$pagenav = construct_page_nav(
$pagenumber, $perpage, $garagecount[garages],
'vbgarage.php?' . $vbulletin->session->vars['sessionurl']
. (!empty($vbulletin->GPC['perpage']) ? "&perpage=$perpage" : "")
);

There was an extra . 'do=$_REQUEST[do]', '' function in there for some reason, and I can't figure out why... I removed that and I'm able to access page 2 without any problems.

PlayfulGod 05-17-2008 03:19 PM

I get this error
Quote:

Fatal error: Call to a member function query_first() on a non-object in /home/xxxxx/forums/admincp/install_vbgarage.php on line 321
I've tried the fixes listed and still get said error. VB version is 3.70

SVTOA 06-01-2008 01:36 PM

Quote:

Originally Posted by SVTOA (Post 506704)
If you are like me and use both Magnus's VB Garage Hack, and you also use EvilLs1's TIMESLIP DATABASE then you're going to love this!

Simply edit your 'vbgarage_viewgarage' template this way:

FIND:
Code:

<td class="alt2" width="60%">$data[text]

Add right after:

Code:

<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">

<if condition="!$user['userid']">
<else />
<if condition="$user[field55] !='00.00'">
<b>My Best ET: <font color="red">$user[field55]</font>
<else />
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field56] !='00.00'">
<b>My Best MPH: <font color="red">$user[field56]</font>
</if>
</span>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field51] !='0.0'">
<b>My RWHP: <font color="red">$user[field51]</font>
</if>
</span>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field52] !='0.000'">
<b>My Best 60 foot time: <font color="red">$user[field52]</font>
</if>
</span>
</td>
</tr>
</td>
</tr>

</table>
<br/>

<!-- End PERFORMANCE STATS BLOCK -->


DONE!!!!

Now if a member has filled out the timeslip database "vehicle profile" fields, the info will display in this custom block! If they have not filled out the ET field, then all that will display is the message "This member has not added ET data to their vB Garage." (which you can edit to say whatever you want)

If they do not fill out the other fields, they simply will not display.

You do not have edit the field id's with this mod because EvilLS1's hack configures those fields the same on every board.


ENJOY!!!

This still works on Vb3.7.x :up:


All times are GMT. The time now is 04:58 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.02764 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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