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)

joeychgo 04-25-2004 12:25 PM

lets say the forum home page --- ??? can you point me in the right direction? im totally lost now........

magnus 04-25-2004 12:32 PM

Quote:

Originally Posted by joeychgo
lets say the forum home page --- ??? can you point me in the right direction? im totally lost now........

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.

joeychgo 04-25-2004 12:33 PM

Thanks!!!!!!! your the best!

Ugh --------- I cant find 'forumhome_subforumseparator_post'
); in the index file, right???????????????

joeychgo 04-25-2004 01:38 PM

ok, I found it --- im running vba so index really means forum.php to me

BUT........... when I did everything, I got this

Database error in vBulletin 3.0.0:

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

mysql error: Unknown column 'vbgarage_images.imageid' in 'order clause'

mysql error number: 1054

SVTOA 04-25-2004 01:57 PM

Quote:

Originally Posted by joeychgo
ok, I found it --- im running vba so index really means forum.php to me


BUT........... when I did everything, I got this

Database error in vBulletin 3.0.0:

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

mysql error: Unknown column 'vbgarage_images.imageid' in 'order clause'

mysql error number: 1054


Joey, you said "forum home page" so your VBadvanced has nothing to do with this- in this case "index.php" refers to the index.php in your vb3 root directory, not your vbadvanced index.php.

SVTOA 04-25-2004 01:59 PM

It sounds like you edited the wrong file, hence the database error. Revert or restore the file you edited and then apply the edits to /vbulletin/index.php (where "vbulletin" refers to your forums root directory- whatever that may be)

Shahrum 04-25-2004 02:41 PM

Thanks Magnus, your code worked great!

Xabbu 04-25-2004 03:09 PM

A couple Questions:

1. Is it possible to rename the vbgarage.php file to something else without a great deal of work? My forum isn't about cars...

2. How do I change the vBGarage phrase for the breadcrumb template? There doesn't seem to be a phrase for that somewhere.

GoTTi 04-25-2004 03:09 PM

magnus i dont know what im looking for......

i would like to just have it where users can upload image, removing the required fields in the "vbgarage.php?do=editgarage", how can i do this?

cuz i did remove the options, but when i go to upload a image, after i submit the attachment, i get a error:

"Please complete all the fields. Press the back button, correct the problem then try again."

and those fields arent there nemore.

flstreetscene 04-25-2004 03:12 PM

Magnus,

I'd like to add a simple image within another table above the "Latest Uploads" one on the Garage main page (and preferably above the rest of the pages). What would I edit?

Thanks.


All times are GMT. The time now is 03:17 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.02323 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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