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)

magnus 11-22-2004 02:15 PM

Action-N, I've edited the initial post and included a link to your uninstaller. If there are any other changes needed to be made, let me know.

Action-N 11-22-2004 06:25 PM

Quote:

Originally Posted by magnus
Action-N, I've edited the initial post and included a link to your uninstaller. If there are any other changes needed to be made, let me know.

Ok that's cool, that way it doesn't get lost. I thought I'd ask if you have time to look over what I have ready for 3.2. I sent a copy to integra99, but haven't heard back. He wanted me to send him a copy an talk about something before I released anything. Don't know what he wanted, but I'd like some coders to look it over and optimize code or help with the remaing bugs.

magnus 11-22-2004 06:42 PM

Quote:

Originally Posted by Action-N
Ok that's cool, that way it doesn't get lost. I thought I'd ask if you have time to look over what I have ready for 3.2. I sent a copy to integra99, but haven't heard back. He wanted me to send him a copy an talk about something before I released anything. Don't know what he wanted, but I'd like some coders to look it over and optimize code or help with the remaing bugs.

You've got a Private Message.

hasan2k 11-23-2004 11:59 PM

Quote:

Originally Posted by magnus
You've got a Private Message.

I can't wait to see the new version released. It will be awesome with multiple vehicle entries.

Silverstangs 11-24-2004 12:23 PM

Quote:

Originally Posted by magnus
In index.php:

FIND:
PHP Code:

// ### WELCOME MESSAGE ################################################# 

Add ABOVE:
PHP Code:

// START VBGARAGE HACK
// ### VBGARAGE #########################################################
$result_latest $DB_site->query(
    SELECT vbgarage_images.* 
    FROM " 
TABLE_PREFIX "vbgarage_images 
    ORDER BY vbgarage_images.vbgarageid DESC 
    LIMIT 5 
"
); 
     
while (
$latest $DB_site->fetch_Array($result_latest)) 

    eval(
'$latestbits .= "' fetch_template('vbgarage_latestbits') . '";'); 


$DB_site->free_result($result_latest); 
// END VBGARAGE HACK 

FIND:
PHP Code:

    'forumhome_subforumseparator_post'
); 

REPLACE with:
PHP Code:

    'forumhome_subforumseparator_post',
    
'vbgarage_latestbits'
); 

In template FORUMHOME:

FIND:
HTML Code:

$navbar
Add BELOW:
HTML Code:

<!-- START VBGARAGE HACK -->
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
        <td class="tcat" colspan="5"><b>$vbphrase[vbgarage_latest_uploads]</b></td>
</tr>
<tr>
$latestbits
</tr>
</table>
</td></tr></table>
<!-- END VBGARAGE HACK -->

That should do it.



I attempting to install this mod but I get the following error
Quote:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT vbgarage_images.*
FROM vb3vbgarage_images
ORDER BY vbgarage_images.vbgarageid DESC
LIMIT 5

mysql error: Unknown table 'vbgarage_images'

mysql error number: 1051

Date: Wednesday 24th of November 2004 08:19:06 AM
Script: http://www.stangcountry.com/forums/index.php?
Referer: http://www.stangcountry.com/forums/a...ex.php?do=head
Username: Silverstangs
IP Address: 69.xxx.xxx.xxx
What did I miss?

Silverstangs 11-24-2004 01:10 PM

Wadda you know, I left the index.php un modded and just put this part in FORUMHOME under the $navbar ....

PHP Code:

<!-- START VBGARAGE HACK --> 
<
table cellpadding="$stylevar[outerborderwidth]cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]align="center"><tr><td
<
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%"
<
tr
    <
td class="tcat" colspan="5"><b>$vbphrase[vbgarage_latest_uploads]</b></td
</
tr
<
tr
$latestbits 
</tr
</
table
</
td></tr></table></td></tr></table
<!-- 
END VBGARAGE HACK --> 

I get a 1/2inch bar, that says "latest uoloads" but no pic's. Anyone have a idea?

magnus 11-24-2004 05:56 PM

Quote:

Originally Posted by Silverstangs
Wadda you know, I left the index.php un modded and just put this part in FORUMHOME under the $navbar ....

I get a 1/2inch bar, that says "latest uoloads" but no pic's. Anyone have a idea?

The error you posted earlier indicates that one of the critical databases doesn't exist --

[sql]
mysql error: Unknown table 'vbgarage_images'

mysql error number: 1051
[/SQL]

You need to check and verify that the vbgarage_images database exists, first. :D

Action-N 11-24-2004 06:18 PM

Quote:

SELECT vbgarage_images.*
FROM vb3vbgarage_images
ORDER BY vbgarage_images.vbgarageid DESC
LIMIT 5
As you can see from the error, it's trying to grab the information out of "vb3vbgarage_images ". Not knowing if this is a table prefix I'd just do a search for this code an check/ fix that line. I don't use a prefix so maybe this mod doesn't work with prefixes. In the mean time just do a search for "ORDER BY vbgarage_images.vbgarageid DESC" an that should find the above problem query.

magnus 11-24-2004 10:07 PM

Quote:

Originally Posted by Action-N
As you can see from the error, it's trying to grab the information out of "vb3vbgarage_images ". Not knowing if this is a table prefix I'd just do a search for this code an check/ fix that line. I don't use a prefix so maybe this mod doesn't work with prefixes. In the mean time just do a search for "ORDER BY vbgarage_images.vbgarageid DESC" an that should find the above problem query.

Action-N, have you gotten any of my PM's? I haven't gotten any replies, so I'm just wondering.. :D

Silverstangs 11-24-2004 10:23 PM

Quote:

Originally Posted by Action-N
As you can see from the error, it's trying to grab the information out of "vb3vbgarage_images ". Not knowing if this is a table prefix I'd just do a search for this code an check/ fix that line. I don't use a prefix so maybe this mod doesn't work with prefixes. In the mean time just do a search for "ORDER BY vbgarage_images.vbgarageid DESC" an that should find the above problem query.

This section is in INDEX.php

PHP Code:

START VBGARAGE HACK 
// ### VBGARAGE ######################################################### 
$result_latest $DB_site->query(
    SELECT vbgarage_images.* 
    FROM " 
TABLE_PREFIX "vbgarage_images 
    ORDER BY vbgarage_images.vbgarageid DESC 
    LIMIT 5 
"
); 
      
while (
$latest $DB_site->fetch_Array($result_latest)) 

    eval(
'$latestbits .= "' fetch_template('vbgarage_latestbits') . '";'); 


$DB_site->free_result($result_latest); 
// END VBGARAGE HACK 

and this section is in VBGARAGE.PHP

PHP Code:

}
    
    
$result_latest $DB_site->query("
        SELECT * FROM " 
TABLE_PREFIX "vbgarage_images ORDER BY vbgarageid DESC LIMIT 5
    "
);
    
    while (
$latest $DB_site->fetch_Array($result_latest))
    { 



All times are GMT. The time now is 09:25 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.02670 seconds
  • Memory Usage 1,782KB
  • 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
  • (2)bbcode_html_printable
  • (7)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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