Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBgarage
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Multiple Cars/Garages for vBGarage Details »»
Multiple Cars/Garages for vBGarage
Version: , by noppid noppid is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-24-2005 Last Update: Never Installs: 0
 
No support by the author.

I wrote some code today. I'm using some code snippets and the basic logic that magnus sent me. I believe the author was Action-N and magnus. Thanks again to both of them for sharing. We needed some logic, code, and templates to do this addition and again they cheerfully provided them.

vBGarage public release will be an adaptation using the above logic, some edited code, and some edited templates. If you have seen those branchs of the code, you may see some similarities and some differences in the adaptation.

You can see what I have so far at my Computer Rigs Forum. I have two garages set up to view. I really need a few testers to register and login to test using the garage to provide feedback on addition work.

There are database changes, template changes, template additions, and an updated vbgarage.php so far. URL's are also affected by including/passing addition variables.

Comments are needed in this thread, please give us your two sense and we'll see where the chips fall.

Here's the list of changes so far...
Quote:
// New vbgarage.php

// New vB file edits
Who's online instructions will be included

// Database changes

Table: vbgarage_comments
added field `vbgarageid`
added index on field `vbgarageid`

Table: vbgarage_users
dropped Primary Index on field `userid`
added field `garageid` int(10) unsigned NOT NULL auto_increment,
added index PRIMARY KEY (`garageid`),
added index KEY `userid` (`userid`)

Table: vbgarage_images
added field `id` smallint(6) unsigned NOT NULL default '0',
added index KEY `id` (`id`),
added index KEY `userid` (`userid`)

// templates changed

vbgarage_editgarage
vbgarage_editimagebits
vbgarage_imagebits
vbgarage_latestbits
vbgarage_listbits
vbgarage_viewgarage
vbgarage_commentbits
vbgarage_listgarage
vbgarage_popup

// template additions

vbgarage_editparkedbits
vbgarage_parkedbits
vbgarage_parkedlist
vbgarage_randombits
vbgarage_inactive_warning
vbgarage_error

//new settings
vbgwysiwyg
grouptitle = vbgarage
value = 1
default = 1
optioncode = yesno
displayorder = 60
advanced = 0
volatile = 0

// new phrases
Globals
vbgarage_alert_off = The Garage is Currently Turned OFF!!! Only Admins can see the Garage!
vbgarage_parked_cars = Car List
vbgarage_gallery = Photo Gallery
vbgarage_add_edit = (Add/Edit your Car)

Setting Phrases
setting_vbgwysiwyg_desc = Use the WYSIWYG Editor?
setting_vbgwysiwyg_title = Editor Options

// images
Two new images
forums/images/misc/deletegarage.gif
forums/images/misc/editgarage.gif
Thanks for your time.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-24-2005, 11:32 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's what I am using for mine ( well not exactly, i changed it quite a bit, but this should present the gist of the table structures. )

Code:
#
# Table structure for table `vbgarage_comments`
#

CREATE TABLE `vbgarage_comments` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `garageid` int(10) unsigned NOT NULL default '0',
  `username` varchar(50) NOT NULL default '',
  `pagetext` text NOT NULL,
  `dateline` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1;

# --------------------------------------------------------

#
# Table structure for table `vbgarage_images`
#

CREATE TABLE `vbgarage_images` (
  `imageid` int(10) unsigned NOT NULL auto_increment,
  `garageid` int(10) unsigned NOT NULL default '0',
  `name` varchar(50) NOT NULL default '',
  `data` longblob NOT NULL,
  `type` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`imageid`)
) TYPE=MyISAM AUTO_INCREMENT=1;

# --------------------------------------------------------

#
# Table structure for table `vbgarage_ratings`
#

CREATE TABLE `vbgarage_ratings` (
  `rateid` int(10) NOT NULL auto_increment,
  `garageid` int(10) NOT NULL default '0',
  `userid` int(10) NOT NULL default '0',
  `rating` int(10) NOT NULL default '0',
  PRIMARY KEY  (`rateid`)
) TYPE=MyISAM AUTO_INCREMENT=1;

# --------------------------------------------------------

#
# Table structure for table `vbgarage_users`
#

CREATE TABLE `vbgarage_users` (
  `garageid` int(10) unsigned NOT NULL auto_increment,
  `userid` int(10) unsigned NOT NULL default '0',
  `text` text,
  `lastactivity` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`garageid`)
) TYPE=MyISAM AUTO_INCREMENT=1;
Reply With Quote
  #3  
Old 01-24-2005, 11:54 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cinq
Here's what I am using for mine ( well not exactly, i changed it quite a bit, but this should present the gist of the table structures. )

Appreciate it, but I'm done. The list above reflects what I did, not intened to do.

In case you're interested, here's what the tables look like...

PHP Code:
CREATE TABLE `vbgarage_users` (
 `
useridint(10unsigned NOT NULL default '0',
 `
yearvarchar(50NOT NULL default '',
 `
makevarchar(50NOT NULL default '',
 `
modelvarchar(50NOT NULL default '',
 `
textmediumtext NOT NULL,
 `
lastactivityint(10unsigned NOT NULL default '0',
 `
garageidint(10unsigned NOT NULL auto_increment,
 
PRIMARY KEY  (`garageid`),
 
KEY `userid` (`userid`)
TYPE=MyISAM



CREATE TABLE 
`vbgarage_images` (
 `
vbgarageidsmallint(6unsigned NOT NULL auto_increment,
 `
useridint(10unsigned NOT NULL default '0',
 `
idsmallint(6unsigned NOT NULL default '0',
 `
namevarchar(50NOT NULL default '',
 `
datalongblob NOT NULL,
 `
typevarchar(50NOT NULL default '',
 `
thumblongblob NOT NULL,
 
PRIMARY KEY  (`vbgarageid`),
 
KEY `id` (`id`),
 
KEY `userid` (`userid`)
TYPE=MyISAM

CREATE TABLE 
`vbgarage_comments` (
 `
idint(10unsigned NOT NULL auto_increment,
 `
vbgarageidint(10unsigned NOT NULL default '0',
 `
usernamevarchar(50NOT NULL default '',
 `
pagetextmediumtext NOT NULL,
 `
datelineint(10unsigned NOT NULL default '0',
 
PRIMARY KEY  (`id`),
 
KEY `vbgarageid` (`vbgarageid`)
TYPE=MyISAM 
Reply With Quote
  #4  
Old 01-25-2005, 12:32 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Opps.
What kind of comments are you looking for then ?
Reply With Quote
  #5  
Old 01-25-2005, 12:47 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cinq
Opps.
What kind of comments are you looking for then ?
You're right, I was not very clear. I need some folks to go to my computer site and beat on the garage there for testing.

Thanks
Reply With Quote
  #6  
Old 01-26-2005, 04:02 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK folks, I can't call this new code tested till I get some folks to try it out. I'm not ready to let anyone beta test it yet and I have no immediate plans for release, but I need help debugging.

Come on over to http://www.cpurigs.com/forums please and register and test the multicar vBGarage.

P.S. Upgrading to multicar mode will require vBGarage 4.0.0 to have been installed first.
Reply With Quote
  #7  
Old 01-26-2005, 11:35 PM
oly51's Avatar
oly51 oly51 is offline
 
Join Date: Mar 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just uploaded "Multiples" to the test page.
Only issue, After you upload the image, you are taken back to the Submit screen. Hit "Submit' and you remain at that screen. It does not take you to the garage so you don't know if it uploaded or not.

Works great otherwise. I'll give it a shot whenever you are ready!

Also noticed that when you click on the thumb, the google ads are in front of the full size image.
Reply With Quote
  #8  
Old 01-27-2005, 01:32 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oly51
Just uploaded "Multiples" to the test page.
Only issue, After you upload the image, you are taken back to the Submit screen. Hit "Submit' and you remain at that screen. It does not take you to the garage so you don't know if it uploaded or not.

Works great otherwise. I'll give it a shot whenever you are ready!

Also noticed that when you click on the thumb, the google ads are in front of the full size image.
You know if the image was uploaded because it appears in the uploaded images list on the edit page you are taken back to. Then I have edited my directions next to that panel to let the users know to click on members garages to exit that page. This way you can upload a few images in a row easily.

What browser are you using when you see the ads in front of the full size image? I cannot duplicate that in IE or Firefox.

Thanks
Reply With Quote
  #9  
Old 01-27-2005, 02:16 AM
oly51's Avatar
oly51 oly51 is offline
 
Join Date: Mar 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by noppid
What browser are you using when you see the ads in front of the full size image? I cannot duplicate that in IE or Firefox.
Thanks
Opera 7.54 (It does work ok on IE)
Reply With Quote
  #10  
Old 01-27-2005, 02:24 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting. That may be a show stopper? The script is from 2003. I wonder if there is an update or similar more current version?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05273 seconds
  • Memory Usage 2,323KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete