View Full Version : vBGarage v3.1.1 (now with GD-Lib support!)
Pages :
[
1]
2
3
4
5
6
7
8
magnus
04-08-2004, 10:00 PM
***CLICK HERE FOR vB3.0.5 INSTALLER/UPDATE (https://vborg.vbsupport.ru/showpost.php?p=593882&postcount=1549)***
vBGarage v3.1.1 (now with GD-Lib support!)
Description
This hack will allow your users to create a virtual garage where they can store photos, details, etc.. about their vehicle (this can be modified to suit forums of other interests).
Latest Uploads will be displayed on Garage List.
Forum users can now leave comments in member garages.
Admin functions are available in the AdminCP.
This version contains the ability to limit access by usergroup(s). All templates are 100% XHTML Verified!
Information
Tested and developed on vB 3.0.0 Gold.
Requires
GD 2.0+ Library
Demo
http://www.sffba.net/forum/vbgarage.php?do=list (Temporary)
This hack, as like the rest of my hacks, are FREE. However, if you enjoy this hack and feel the need to donate something for my time you can do so by clicking the icon below:
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=magnux%40adelphia.net&no_note=1&tax=0¤cy_code=USD)
*NOTE: Those who donate are explicitly granted permission to remove the "Powered by" information from the vBGarage footer.
*NOTE: When donating, please include your forum url. Thanks!
Version History
v3 - Initial release. Let's hope I don't have alot of entries here. :)
v3.0.1 - Added GD-Lib Support!
v3.1.0 - Added User Comments, Latest Uploads on Garage List, AdminCP Options
v3.1.1 - Added ability for Admin to "edit" users' garages. Use ImageCopyResampled(); over ImageCopyResized(); for better thumbnail quality.
Planned Features
- Multiple entries per user.
- Possible integration with Photopost/Coppermine/etc..
If you use this, please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=63681)
* Installation script by John (https://vborg.vbsupport.ru/member.php?u=10079)
-
UPGRADES
v3.1.0 -> v3.1.1 UPGRADE INSTRUCTIONS (https://vborg.vbsupport.ru/showpost.php?p=500310&postcount=372)
v3.0.1 -> v3.1.0 UPGRADE INSTRUCTIONS (https://vborg.vbsupport.ru/showpost.php?p=498782&postcount=188)
v3.0 -> v3.0.1 UPGRADE INSTRUCTIONS (https://vborg.vbsupport.ru/showpost.php?p=498262&postcount=82)
-
MODIFICATIONS/ADD-ONS
1. Add "Who's Online" Location (https://vborg.vbsupport.ru/showpost.php?p=498914&postcount=232) by magnus (https://vborg.vbsupport.ru/member.php?action=getinfo&username=magnus)
2. Organize Your vBGarage Templates (https://vborg.vbsupport.ru/showpost.php?p=499516&postcount=334) by magnus (https://vborg.vbsupport.ru/member.php?action=getinfo&username=magnus)
3. Increase Thumbnail Image Quality (v3.1.1 and older) (https://vborg.vbsupport.ru/showpost.php?p=500482&postcount=381) by magnus (https://vborg.vbsupport.ru/member.php?action=getinfo&username=magnus)
4. Alphabetize Garage List (https://vborg.vbsupport.ru/showpost.php?p=500552&postcount=387) by magnus (https://vborg.vbsupport.ru/member.php?action=getinfo&username=magnus)
5. Add "Latest Uploads" to FORUMHOME (https://vborg.vbsupport.ru/showpost.php?p=505238&postcount=542) by magnus (https://vborg.vbsupport.ru/member.php?action=getinfo&username=magnus)
6. EvilLS1's Timeslip Database Integration (https://vborg.vbsupport.ru/showpost.php?p=506704&postcount=641) by SVTOA (https://vborg.vbsupport.ru/member.php?action=getinfo&username=SVTOA)
7. Installer/Uninstaller (https://vborg.vbsupport.ru/showpost.php?p=574542&postcount=1295) by Action-N (https://vborg.vbsupport.ru/member.php?action=getinfo&username=Action-N)
8. vBulletin 3.0.5 Compatible Installer/Update (https://vborg.vbsupport.ru/showpost.php?p=593882&postcount=1549) by noppid (https://vborg.vbsupport.ru/member.php?userid=32511)
rockergrrl
04-09-2004, 05:32 PM
Awesome!!
I'm installing it right now!
I'll let you know if there are any problems.
DarkJediKiller
04-09-2004, 05:34 PM
Whoa, looks good! ^_^ Nice job
i would like to setup it ;)
PS. where is the download link...? :(
rockergrrl
04-09-2004, 05:41 PM
I just tried installing.
And I got this error:
Parse error: parse error in /home/cv/public_html/forums/admincp/install_vbgarage.php on line 57
That line is:
<td class="tcat" colspan="2"><b>$bbuserinfo[username]'s $vbphrase[vbgarage]</b></td>
Suggestions?
rockergrrl
04-09-2004, 05:41 PM
Looks like he took it off for the time being?
magnus
04-09-2004, 05:49 PM
I'm an idiot. I forgot to include the correct .ZIP. All is fixed. :)
rockergrrl
04-09-2004, 06:07 PM
The /includes/init.php file edit would be:
Find:
#######################
'caneditownusernotes' => 131072
#######################
REPLACE with:
#######################
'caneditownusernotes' => 131072,
// START VBGARAGE HACK
'canvbgarage' => 262144,
// END VBGARAGE HACK
#######################
You forgot to add a , at the end of 262144
milkmycow
04-09-2004, 06:07 PM
just a suggestions.. maybe instead of just a big text box, why not have diff inputs for wheels/engine/etc that automatically makes a list? then an extra text box?
i installed it easily but when i go to let each usergroup USE the vBGarage i shows that there is a slight problem at ths SQL... does that happened to anyone else?
------------
Invalid SQL: UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Administrators',
description = '',
usertitle = 'Administrator',
opentag = '',
closetag = '',
passwordexpires = '180',
passwordhistory = '360',
canvbgarage = '1',
attachlimit = '0',
avatarmaxwidth = '80',
avatarmaxheight = '80',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
forumpermissions = '393215',
pmpermissions = '3',
calendarpermissions = '31',
wolpermissions = '31',
adminpermissions = '3',
genericpermissions = '262079',
genericoptions = '31'
WHERE usergroupid=6
mysql error: Unknown column 'canvbgarage' in 'field list'
----------------
????
rockergrrl
04-09-2004, 06:14 PM
I'm getting the same errors when I try and edit usergroup permissions.
Rampag33
04-09-2004, 06:20 PM
I seriously like this too bad my site don't have enough people with fancy cars or this would be great
ImportPassion
04-09-2004, 06:25 PM
This is awesome. GOtta get my vb3 running and ready!
Any chance of this getting integrated with Photopost? Instead of uploading images it would show thumbs you currently have and you select from those pics.
That would be cool for ppl with Photopost like me. ;)
is there any solution for the problem with the SQL while editing USERGROUPS...?
dede1
04-09-2004, 07:00 PM
my error:
Datenbankfehler in vBulletin 3.0.0:
Ungueltige SQL-Abfrage:
CREATE TABLE `vbgarage_images` (
`vbgarageid` smallint(6) unsigned NOT NULL auto_increment,
`userid` 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 (`vbgarageid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
mysql error: You have an error in your SQL syntax near ';
' at line 9
corsacrazy
04-09-2004, 07:00 PM
put This In Beta Testing 1st Mate!! ! !
worked for me!!
it was my mistake... :(
Gizmo
04-09-2004, 07:35 PM
Thanx for your work, it's an original hack. I will translate it in french. :)
corsacrazy
04-09-2004, 07:36 PM
any one got a live demo ?
White Knight
04-09-2004, 07:46 PM
just a suggestions.. maybe instead of just a big text box, why not have diff inputs for wheels/engine/etc that automatically makes a list? then an extra text box?
Yup.. I agree..
Your snapshot looks great.. maybe have it so people can just enter that information and it will show up just like that.
Looks good though.. keep up the good work
gibgib
04-09-2004, 07:49 PM
Can't wait to try this :)
Just downloaded but I'll have to install it tonight (aus time).
Thankyou!
dede1
04-09-2004, 07:52 PM
I have this SQL error have also still someone?
White Knight
04-09-2004, 07:52 PM
I have it running on my dec site no problem.
Suggestion.. i know its nice to have the Powered By:
however how about using this space for a direct link to edit your own garage?
and maybe then adding the powered by underneath it :)
Red Blaze
04-09-2004, 07:59 PM
Well, you can put it on your own editing the templates, no?
I modified mine the way I'd like it, (yes, the powered by thing is there :p). Working great for me.
* Red Blaze clicks install :)
White Knight
04-09-2004, 08:01 PM
Well, you can put it on your own editing the templates, no?
I modified mine the way I'd like it, (yes, the powered by thing is there :p). Working great for me.
* Sonikku clicks install :)
Ohhh you little fooker.. :).. why didnt i think of that :).. so used to hacking everything..
Ill have to take a look see and edit some stuff :)
magnus
04-09-2004, 08:13 PM
The /includes/init.php file edit would be:
Find:
#######################
'caneditownusernotes' => 131072
#######################
REPLACE with:
#######################
'caneditownusernotes' => 131072,
// START VBGARAGE HACK
'canvbgarage' => 262144,
// END VBGARAGE HACK
#######################
You forgot to add a , at the end of 262144
No, there should be no , (comma) after 262144.
magnus
04-09-2004, 08:16 PM
Thanx for your work, it's an original hack. I will translate it in french. :)
Please read the vbgarage_readme.txt file. Most specifically:
# - No, you may NOT translate/release this hack. Do not ask. #
I made the system work off phrases. People need to learn to use them.
magnus
04-09-2004, 08:31 PM
any one got a live demo ?
Here is a temporary demo: http://www.sffba.net/forum/vbgarage.php
magnus
04-09-2004, 08:32 PM
I have it running on my dec site no problem.
Suggestion.. i know its nice to have the Powered By:
however how about using this space for a direct link to edit your own garage?
and maybe then adding the powered by underneath it :)
Yup. The beauty of templates. This is all template driven, you can make it look however you like. :)
magnus
04-09-2004, 08:33 PM
I'm getting the same errors when I try and edit usergroup permissions.
Perhaps Clb could tell you what he did. He seems to have fixed the problem, and according to him, it was a mistake on his part.
rockergrrl
04-09-2004, 08:36 PM
No, there should be no , (comma) after 262144.
I tried that, and I got errors...
When I added a comma, it worked fine.
magnus
04-09-2004, 08:39 PM
I tried that, and I got errors...
When I added a comma, it worked fine.
Now *that* is weird.. unless of course you've modified the init.php with another hack. This hack assumes that it's an unhacked init.php. The canvbgarage line should be the last line in that array, if not, then you'll have to modify the 262144 as well.
dede1
04-09-2004, 08:50 PM
magnus
what is for my error?
Datenbankfehler in vBulletin 3.0.0:
Ungueltige SQL-Abfrage:
CREATE TABLE `vbgarage_images` (
`vbgarageid` smallint(6) unsigned NOT NULL auto_increment,
`userid` 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 (`vbgarageid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
mysql error: You have an error in your SQL syntax near ';
' at line 9
what i did wrong was that i removed the 'caneditownusernotes' => 131072 part and i simply replaced it with 'canvbgarage' => 262144 which was wrong...
i should add it after that and not replace it ;)
magnus
04-09-2004, 08:56 PM
magnus
what is for my error?
Datenbankfehler in vBulletin 3.0.0:
Ungueltige SQL-Abfrage:
CREATE TABLE `vbgarage_images` (
`vbgarageid` smallint(6) unsigned NOT NULL auto_increment,
`userid` 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 (`vbgarageid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
mysql error: You have an error in your SQL syntax near ';
' at line 9
Your SQL doesn't like the ; ? I assume you're getting this when you run the install_vbgarage.php?
Try running this query:
CREATE TABLE " . TABLE_PREFIX . "vbgarage_images (
`vbgarageid` smallint(6) unsigned NOT NULL auto_increment,
`userid` 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 (`vbgarageid`)
) TYPE=MyISAM AUTO_INCREMENT=1;
dede1
04-09-2004, 09:01 PM
No this error:
Error
SQL-Befehl :
CREATE TABLE " . TABLE_PREFIX . "vbgarage_images(
`vbgarageid` smallint( 6 ) unsigned NOT NULL AUTO_INCREMENT ,
`userid` 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 ( `vbgarageid` )
) TYPE = MYISAM AUTO_INCREMENT = 1
MySQL meldet:
#1064 - You have an error in your SQL syntax near '" . TABLE_PREFIX . "vbgarage_images( `vbgarageid` smallint( 6 ) unsigned NOT ' at line 1
magnus
04-09-2004, 09:03 PM
No this error:
Error
SQL-Befehl :
CREATE TABLE " . TABLE_PREFIX . "vbgarage_images(
`vbgarageid` smallint( 6 ) unsigned NOT NULL AUTO_INCREMENT ,
`userid` 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 ( `vbgarageid` )
) TYPE = MYISAM AUTO_INCREMENT = 1
MySQL meldet:
#1064 - You have an error in your SQL syntax near '" . TABLE_PREFIX . "vbgarage_images( `vbgarageid` smallint( 6 ) unsigned NOT ' at line 1
Errr.. if you're running this in phpmyadmin, or from mysqladmin, etc.. remove the " . TABLE_PREFIX . "
CREATE TABLE vbgarage_images (
`vbgarageid` smallint(6) unsigned NOT NULL auto_increment,
`userid` 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 (`vbgarageid`)
) TYPE=MyISAM AUTO_INCREMENT=1;
dede1
04-09-2004, 09:07 PM
That now registered into the data base over PHPmyadmin
dede1
04-09-2004, 09:15 PM
Database is ok per phpmyadmin :
vbgarage_images
vbgarage_users
but how get I now the new Pharasen added?
rockergrrl
04-09-2004, 09:17 PM
Now *that* is weird.. unless of course you've modified the init.php with another hack. This hack assumes that it's an unhacked init.php. The canvbgarage line should be the last line in that array, if not, then you'll have to modify the 262144 as well.
Init.php is unhacked for me..
The clean init.php file has this 'canseedelnotice' => 262144
So having 'canvbgarage' => 262144, just wouldn't work
what should it be then?
magnus
04-09-2004, 09:21 PM
Init.php is unhacked for me..
The clean init.php file has this 'canseedelnotice' => 262144
So having 'canvbgarage' => 262144, just wouldn't work
what should it be then?
Err.. 'canseedelnotice' is in a separate array. It's under:
$_BITFIELD['usergroup']['forumpermissions'] = array(
You need to be adding 'canvbgarage' under this array:
$_BITFIELD['usergroup']['genericpermissions'] = array(
In the end, it should look like this:
$_BITFIELD['usergroup']['genericpermissions'] = array(
'canviewmembers' => 1,
'canmodifyprofile' => 2,
'caninvisible' => 4,
'canviewothersusernotes' => 8,
'canmanageownusernotes' => 16,
'canseehidden' => 32,
'canbeusernoted' => 64,
'canprofilepic' => 128,
'canseeraters' => 256,
'canuseavatar' => 512,
'canusesignature' => 1024,
'canusecustomtitle' => 2048,
'canseeprofilepic' => 4096,
'canviewownusernotes' => 8192,
'canmanageothersusernotes' => 16384,
'canpostownusernotes' => 32768,
'canpostothersusernotes' => 65536,
'caneditownusernotes' => 131072,
// START VBGARAGE HACK
'canvbgarage' => 262144
// END VBGARAGE HACK
);
magnus
04-09-2004, 09:23 PM
Database is ok per phpmyadmin :
vbgarage_images
vbgarage_users
but how get I now the new Pharasen added?
Run the following queries:
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage', 'vBGarage', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage_allowed_total', 'You are allowed a preset number of images. Once that limit is reached, you will no longer be able to upload. Delete existing pictures to regain upload ability.', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage_file', 'File', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_footer', 'Powered by: <b>vBGarage</b> by magnus', 1)
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_year', 'Year', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_make', 'Make', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_model', 'Model', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_text', 'Text', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_text_desc', '<a href=\"$vboptions[bburl]/misc.php?do=bbcode\">vB code</a> is <b>On</b><br /> <a href=\"$vboptions[bburl]/misc.php?do=showsmilies\">Smilies</a> are <b>On</b><br /> <a href=\"$vboptions[bburl]/misc.php?do=bbcode#imgcode\">[IMG]</a> code is <b>Off</b><br /> HTML code is <b>Off</b><br />', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage_uploaded_images', 'Uploaded Image(s)', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_car', 'Car', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_listtitle', 'Member vBGarage(s)', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_edit', 'Edit vBGarage', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'can_vbgarage', 'Can use vBGarage?', 3);
rockergrrl
04-09-2004, 09:35 PM
Err.. 'canseedelnotice' is in a separate array. It's under:
$_BITFIELD['usergroup']['forumpermissions'] = array(
You need to be adding 'canvbgarage' under this array:
$_BITFIELD['usergroup']['genericpermissions'] = array(
[/PHP]
Bah.... Its been one of those days.... (Never try and hack of vBulletin when you have kids screaming)
now it works ;)
dede1
04-09-2004, 09:45 PM
@magnus
I thank you it run error free
magnus
04-09-2004, 10:10 PM
Glad to hear you both got it working. ;)
For those who are playing at home, I'm working on adding user comments to the pages as well.. this turned out to be easier than I thought, so I may release it as an add-on. :)
magnus
04-09-2004, 10:13 PM
dede1,
I checked out your site. One note, you might want to add a space to the end of your vbgarage_imagebits template. It will wrap the pictures, rather than having them all in a single line.
Just, literally, add a space to the end, that's it. :)
dede1
04-09-2004, 10:17 PM
magnus
schau times with you are please here the fig. 3 with me all 6 next to
each other next to each other sees bloed out with me which must I
change around there as with you the in addition-gotten?
http://63.246.136.220/Board/vbgarage.php?do=view&id=1
magnus
04-09-2004, 10:27 PM
magnus
schau times with you are please here the fig. 3 with me all 6 next to
each other next to each other sees bloed out with me which must I
change around there as with you the in addition-gotten?
http://63.246.136.220/Board/vbgarage.php?do=view&id=1
Like I said above, edit your vbgarage_imagebits template, go to the end of the last line, and press the spacebar, leaving a space at the end. Then, click save. That's it! :)
dede1
04-09-2004, 10:45 PM
Thanks :)
Envy-UK
04-09-2004, 10:55 PM
I've installed everything, it appeared to be fine.
However, when vbgarage.php is called (both by /vbgarage.php?do=list & vbgarage.php), I end up with a blank screen.
Anyone?
magnus
04-09-2004, 11:08 PM
I've installed everything, it appeared to be fine.
However, when vbgarage.php is called (both by /vbgarage.php?do=list & vbgarage.php), I end up with a blank screen.
Anyone?
You're missing templates. Check your templates list, you should have the following:
vbgarage_editgarage
vbgarage_editimagebits
vbgarage_imagebits
vbgarage_listbits
vbgarage_listgarage
vbgarage_popup
vbgarage_viewgarage
If they all exist, check to make sure there is data inside. :)
corsacrazy
04-09-2004, 11:17 PM
are pics thumnailed automatically?
magnus
04-10-2004, 12:55 AM
are pics thumnailed automatically?
No, there's no "thumbnails". The pictures are simply displayed using "width=" tags. Once I figure out exactly how GD works, I'll be adding that so it will create actual thumbnails.
RaceJunkies
04-10-2004, 05:01 AM
I installed everything but I don't see any of the options of vbgarage in the UserCP...
gmarik
04-10-2004, 06:47 AM
Great, are the pictures generated by thumbs?
Envy-UK
04-10-2004, 07:26 AM
You're missing templates. Check your templates list, you should have the following:
vbgarage_editgarage
vbgarage_editimagebits
vbgarage_imagebits
vbgarage_listbits
vbgarage_listgarage
vbgarage_popup
vbgarage_viewgarage
If they all exist, check to make sure there is data inside. :)
The install script only appears to add these templates to the initial style ID, however, I'm using another as default.
"New templates added to styleid 1", can I change this to install to both style ID's?
Edit: Templates were added to my second style manually.
Quick question, is there any way to remove the "text" aspects from vbgarage.php?do=editgarage and vbgarage.php?do=view&id=x?
I'm looking to just have the images on the page.
esoin
04-10-2004, 08:55 AM
I got it working! thanks
However
How can i change "Make:" into "Color:" ?
magnus
04-10-2004, 01:21 PM
I installed everything but I don't see any of the options of vbgarage in the UserCP...
There are no options in the UserCP. All the options are under the "Usergroup" options.
Ian Cunningham
04-10-2004, 01:22 PM
No, there's no "thumbnails". The pictures are simply displayed using "width=" tags. Once I figure out exactly how GD works, I'll be adding that so it will create actual thumbnails.
I think VB has a function to do this automatially? It shouldn't be too hard to add (I think!), so I might have a go at it later and send you the code if I can do it :)
magnus
04-10-2004, 01:30 PM
The install script only appears to add these templates to the initial style ID, however, I'm using another as default.
"New templates added to styleid 1", can I change this to install to both style ID's?
Edit: Templates were added to my second style manually.
Quick question, is there any way to remove the "text" aspects from vbgarage.php?do=editgarage and vbgarage.php?do=view&id=x?
I'm looking to just have the images on the page.
Sure. Replace the following templates with the specified data:
VBGARAGE_EDITGARAGE:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $vbphrase[vbgarage]</title>
$headinclude
</head>
<body>
$header
$navbar
<form action="vbgarage.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="max_file_size" value="1000000">
<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="2"><b>$bbuserinfo[username]'s $vbphrase[vbgarage]</b></td>
</tr>
<tr>
<td class="thead" colspan="2"><b>$vbphrase[edit_options]</b></td>
</tr>
$logincode
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_year]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" /></td>
</tr>
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_make]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="make" size="19" maxlength="50" value="$data[make]" /></td>
</tr>
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_model]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="model" size="19" maxlength="50" value="$data[model]" /></td>
</tr>
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_uploaded_images]:</b><br />
<span class="smallfont">$vbphrase[vbgarage_allowed_total]</span></td>
<td class="alt2"><table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" class="alt2">
<tr>
$editimagebits
</tr>
</table></td>
<tr>
<if condition="$count != $vbgarage_total_images">
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_file]:</b></td>
<td class="alt2"><input type="file" class="bginput" name="src" size="30" /></td>
</tr>
</if>
</table>
</td></tr></table>
<br />
<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<tr>
<td align="center">
<input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
<input type="hidden" name="do" value="edit" />
</td>
</tr>
</table>
</form>
$footer
</body>
</html>
VBGARAGE_VIEWGARAGE:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $user[username]'s vBGarage</title>
$headinclude
<script language="javascript" type="text/javascript">
function PopupPic(sPicURL) {
newWin=window.open( sPicURL, 'newWin',
'resizable=1,HEIGHT=200,WIDTH=200');
newWin.focus();
}
</script>
</head>
<body>
$header
$navbar
<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="2"><b>$user[username]'s $data[year] $data[make] $data[model]</b></td>
</tr>
<tr>
<td class="alt2" width="40%" valign="top" align="center">
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
<td class="tcat">Photos</td>
</tr>
<tr>
<td class="alt2">$imagebits</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tcat" colspan="3" align="right"><span class="smallfont">$vbphrase[vbgarage_footer]</span></td>
</tr>
</table>
</td></tr></table>
$footer
</body>
</html>
That should do the trick. :)
magnus
04-10-2004, 01:31 PM
I got it working! thanks
However
How can i change "Make:" into "Color:" ?
Edit the phrases. This is all template/phrase driven.
$vbphrase[vbgarage_year] = "Year"
$vbphrase[vbgarage_make] = "Make"
$vbphrase[vbgarage_model] = "Model"
etc ..
Just go into Phrase Manager, it's all there. :)
magnus
04-10-2004, 01:32 PM
I think VB has a function to do this automatially? It shouldn't be too hard to add (I think!), so I might have a go at it later and send you the code if I can do it :)
Have at it, that would be great. ;)
Ian Cunningham
04-10-2004, 01:35 PM
Have at it, that would be great. ;)
I have just had a look at the code, and I'm not sure how to do it after all - I thought you were using the vbulletin attachments system! doh :(
sorry
RaceJunkies
04-10-2004, 01:40 PM
There are no options in the UserCP. All the options are under the "Usergroup" options.
Magnus I was missing editing and saving something it the Phrase Manager...
Everything works perfect now...
Great Hack! ;)
magnus
04-10-2004, 02:31 PM
I have just had a look at the code, and I'm not sure how to do it after all - I thought you were using the vbulletin attachments system! doh :(
sorry
No problem. I've got my little GD howto guide, and once I figure it out completely, I'll be implementing it. :)
magnus
04-10-2004, 02:32 PM
Magnus I was missing editing and saving something it the Phrase Manager...
Everything works perfect now...
Great Hack! ;)
Glad you got it working. ;)
mixylplik3
04-10-2004, 02:36 PM
This looks awesome. So very relevant to the automotive community! Thank you!
+install
Floris
04-10-2004, 04:18 PM
vBGarage v3
Description
This hack will allow your users to create a virtual garage where they can store photos, details, etc.. about their vehicle (this can be modified to suit forums of other interests).
This version contains the ability to limit access by usergroup(s). All templates are 100% XHTML Verified!
Information
Tested and developed on vB 3.0.0 Gold.
Demo
http://www.sffba.net/forum/vbgarage.php (Temporary)
This hack, as like the rest of my hacks, are FREE. However, if you enjoy this hack and feel the need to donate something for my time you can do so by clicking the icon below:
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=magnux%40adelphia.net&no_note=1&tax=0¤cy_code=USD)
*NOTE: Those who donate are explicitly granted permission to remove the "Powered by" information from the vBGarage footer.
Version History
v3 - Initial release. Let's hope I don't have alot of entries here. :)
Planned Features
- Admin control. Ability to delete/modify user's garages.
- Multiple entries per user.
If you use this, please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=63681)
When a user uses the WYSIWYG editor, do you still get the standard editor with no toolbar?
If so, will it be included in future versions?
Floris
04-10-2004, 04:19 PM
Will a future version also include an option for users to add comments to that page (maybe show the last x comments with a link to 'all comments'. (kind of like usernotes used for that page). would be cool.
magnus
04-10-2004, 04:36 PM
When a user uses the WYSIWYG editor, do you still get the standard editor with no toolbar?
If so, will it be included in future versions?
Y'know, I never thought about that.. I like that idea. So, yes, that will be included in the next release. :)
magnus
04-10-2004, 04:37 PM
Will a future version also include an option for users to add comments to that page (maybe show the last x comments with a link to 'all comments'. (kind of like usernotes used for that page). would be cool.
Yes, this is already in the works. In fact, I'm almost finished with it.
magnus
04-10-2004, 04:41 PM
A little tweak I did for my forums, which some of you may find nifty was instead of having text input fields, I made it all drop down. See screenshot:
Socket-uk
04-10-2004, 04:47 PM
Thanks for the hack :)
A little tweak I did for my forums, which some of you may find nifty was instead of having text input fields, I made it all drop down. See screenshot:
Now that is handy...when u have the time can you post that tweak ;)
Cheers
Nige
magnus
04-10-2004, 04:53 PM
Thanks for the hack :)
Now that is handy...when u have the time can you post that tweak ;)
Cheers
Nige
Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:
In VBGARAGE_EDITGARAGE:
Find:
<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
<select name="year">
<option <if condition="$data[year]==2002"> selected</if>>2002</option>
<option <if condition="$data[year]==2001"> selected</if>>2001</option>
<option <if condition="$data[year]==2000"> selected</if>>2000</option>
etc ..
</select>
You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.
Ian Cunningham
04-10-2004, 05:13 PM
I'm really looking forward to future versions of this! It looks like its going to be good :)
Thumbnails would really stand out, I'll keep looking for a way to get them working :)
Socket-uk
04-10-2004, 05:51 PM
Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:
In VBGARAGE_EDITGARAGE:
Find:
<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
<select name="year">
<option <if condition="$data[year]==2002"> selected</if>>2002</option>
<option <if condition="$data[year]==2001"> selected</if>>2001</option>
<option <if condition="$data[year]==2000"> selected</if>>2000</option>
etc ..
</select>
You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.
Thanks Magnus :)
esoin
04-10-2004, 08:05 PM
Edit the phrases. This is all template/phrase driven.
$vbphrase[vbgarage_year] = "Year"
$vbphrase[vbgarage_make] = "Make"
$vbphrase[vbgarage_model] = "Model"
etc ..
Just go into Phrase Manager, it's all there. :)
NICE! it worked! Thanks a load! This is going to work very well in my Go-Ped Scooter Forum.
GamerJunk.net
04-10-2004, 08:12 PM
This is awesome. I can't wait to install this! I hope there is a limit on what they can upload because I only have a gig of space.
esoin
04-10-2004, 08:12 PM
Sure, here's the (basic) code -- you'll need to modify it, of course, to suit your needs. Here is the code for the Year dropdown:
In VBGARAGE_EDITGARAGE:
Find:
<input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" />
REPLACE with:
<select name="year">
<option <if condition="$data[year]==2002"> selected</if>>2002</option>
<option <if condition="$data[year]==2001"> selected</if>>2001</option>
<option <if condition="$data[year]==2000"> selected</if>>2000</option>
etc ..
</select>
You can obviously use this for the other fields as well, just be sure the <select name="foo"> variable matches the <input name="foo"> variable you're replacing.
Thanks, I used this too :banana:
magnus
04-10-2004, 08:42 PM
Good news.. GD support is finished.. and it works. ;) Gimmie a few minutes to package it all up, and it will be ready to download.
Action-N
04-10-2004, 08:56 PM
This was just the feature I needed for my forums, thanks. I did find some areas that need improvment, like use of image thumbnails. That's the biggy, then it would be nice to have more specific fields. This would help give the garages a more standard look instead of lteeting the user just add whatever to the text field.
I have already done this for myself, but just thought you might want to add some things to your "Features Planned" list. Below is a direct link to my garage, becuase it's eaiser than posting a screenshot. I have set it up to use the MultipleProfilePictures hack so images are thumbnailed. I reset the size for 250 wide, which is controlled in message attacthment options. Then I added more fields that I think are relevent to a vehicle profile. I still plan to add more features for my particular vbGarage. Thanks again for this hack
My vbGarage (http://www.action-host.com/forum/vbgarage.php?do=view&id=1)
magnus
04-10-2004, 08:59 PM
v3.0 -> v3.0.1 UPGRADE INSTRUCTIONS (enable GD-Lib support!)
1. Download the vbgarage301.zip from the first post (https://vborg.vbsupport.ru/showpost.php?p=498255&postcount=1), and upload the new vbgarage.php to your forum ROOT directory, overwriting the old one.
2. Edit the vbgarage_editimagebits TEMPLATE:
REPLACE with:
(be sure to leave a SPACE after the closing </td>)
<td class="alt2" valign="bottom"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&width=100&id=$image[vbgarageid]" alt="$image[name]" /><br />
<center><input type="checkbox" name="delete$image[vbgarageid]">$vbphrase[delete]</center>
</td>
3. Edit the vbgarage_imagebits TEMPLATE:
REPLACE with:
(be sure to leave a SPACE after the closing </a>)
<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&image=$vboptions[bburl]/vbgarage.php?do=getimage&id=$image[vbgarageid]" onclick="PopupPic(this.href); return false;" target="_blank"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&width=175&id=$image[vbgarageid]" alt="$image[name]" border="0" /></a>
Done !!
magnus
04-10-2004, 09:06 PM
This was just the feature I needed for my forums, thanks. I did find some areas that need improvment, like use of image thumbnails. That's the biggy, then it would be nice to have more specific fields. This would help give the garages a more standard look instead of lteeting the user just add whatever to the text field.
I have already done this for myself, but just thought you might want to add some things to your "Features Planned" list. Below is a direct link to my garage, becuase it's eaiser than posting a screenshot. I have set it up to use the MultipleProfilePictures hack so images are thumbnailed. I reset the size for 250 wide, which is controlled in message attacthment options. Then I added more fields that I think are relevent to a vehicle profile. I still plan to add more features for my particular vbGarage. Thanks again for this hack
My vbGarage (http://www.action-host.com/forum/vbgarage.php?do=view&id=1)
Scott, looks real good! I tried to make it as configurable as possible, so people, like yourself, could tune it to look how you like.
The layouts will vary from board to board, I'm sure, because many people intend to use this for non-automotive purposes. So, developing a strict automotive layout would sort of make it more difficult for other genres. With the generic text file, people can more-or-less enter whatever they desire, or, take it upon themselves to hack it up however they feel.
I'm sure people would love it if you could post your modifications for the rest of the board. Of course, that's up to you. ;)
GD-Lib support has been added, as it's just been released. You can modify the thumbnail size by editing the "width=" variable sent in the vbgarage_imagebits & vbgarage_editimagebits templates.
Floris
04-10-2004, 09:10 PM
Scott, looks real good! I tried to make it as configurable as possible, so people, like yourself, could tune it to look how you like.
The layouts will vary from board to board, I'm sure, because many people intend to use this for non-automotive purposes. So, developing a strict automotive layout would sort of make it more difficult for other genres. With the generic text file, people can more-or-less enter whatever they desire, or, take it upon themselves to hack it up however they feel.
I'm sure people would love it if you could post your modifications for the rest of the board. Of course, that's up to you. ;)
GD-Lib support has been added, as it's just been released. You can modify the thumbnail size by editing the "width=" variable sent in the vbgarage_imagebits & vbgarage_editimagebits templates.
I can't wait until all features are properly tested, extended and included.
Thank you for replying to my posts so quickly and I will keep my eyes out for version 1.x or even 2.x when it looks a bit more stable and organized. (not really complaining right though, just meaning that it feels like it is still in development).
magnus
04-10-2004, 09:31 PM
I can't wait until all features are properly tested, extended and included.
Thank you for replying to my posts so quickly and I will keep my eyes out for version 1.x or even 2.x when it looks a bit more stable and organized. (not really complaining right though, just meaning that it feels like it is still in development).
Yup. So far, it's stable. Of course, only time will tell. As for being in development, well, I think it'll more or less be that way forever.. I can see myself adding new things to this constantly. :)
Dsmed
04-10-2004, 09:46 PM
how do i get this to work with php4?
magnus
04-10-2004, 09:49 PM
how do i get this to work with php4?
This was designed on PHP Version 4.3.5. Are you having problems?
esoin
04-10-2004, 11:11 PM
How can I make it so that before they hit "submit", it says that AT LEAST ONE attached photo is required? I'm not very fimiliar with coding in php, so if anyone can help me, that'd be great.
Also, will there be sorting functions in the display mode?
Limit attachments?
Limit attachment size?
Thanks again
magnus
04-10-2004, 11:15 PM
How can I make it so that before they hit "submit", it says that AT LEAST ONE attached photo is required? I'm not very fimiliar with coding in php, so if anyone can help me, that'd be great.
In vbgarage.php:
FIND:
if (empty($year) OR empty($make) OR empty($model))
{
REPLACE with:
if (empty($year) OR empty($make) OR empty($model) OR empty($_FILES['src']['tmp_name'])
{
That should do it. ;)
Also, will there be sorting functions in the display mode? Thanks again
You bet'cha. ;)
Envy-UK
04-10-2004, 11:17 PM
I've just made the update, however, although thumbnails do display, when clicked, I get the dreaded red 'X'.
Secondly, the username of the garage has gone completely, both from list and view.
magnus
04-10-2004, 11:18 PM
Limit attachments?
Limit attachment size?
Thanks again
You can already limit attachments. Edit the $vbgarage_total_images variable in vbgarage.php. It's currently set to 6. This will eventually be an AdminCP option.
Attachment size will be added soon, too.
magnus
04-10-2004, 11:19 PM
I've just made the update, however, although thumbnails do display, when clicked, I get the dreaded red 'X'.
Secondly, the username of the garage has gone completely, both from list and view.
Re-download the .ZIP file and vbgarage.php. Upload and overwrite the existing vbgarage.php. Let me know if you still have problems.
Make sure you perform the template replacements, too.
Envy-UK
04-10-2004, 11:22 PM
Re-download the .ZIP file and vbgarage.php. Upload and overwrite the existing vbgarage.php. Let me know if you still have problems.
Make sure you perform the template replacements, too.
I've overwritten the previous version three times now, and yes, template replacements have been done. :speechless:
magnus
04-10-2004, 11:25 PM
I've overwritten the previous version three times now, and yes, template replacements have been done. :speechless:
Err.. vB.org is being weird, I've uploaded the corrected .zip 3 times and it's not accepting it. Try now, I think it took.
Envy-UK
04-10-2004, 11:27 PM
Bingo, all sorted. :)
Envy-UK
04-10-2004, 11:28 PM
Apart from the images, when clicked, still show up as red X's. :(
magnus
04-10-2004, 11:29 PM
Apart from the images, when clicked, still show up as red X's. :(
Hrm, that has to be template related. Highlight an image, and show me the link it's trying to go to. Look in the status bar at the bottom of your browser (if you're using IE).
It *should* be:
http://url/vbgarage.php?do=popup&image=http://url/vbgarage.php?do=getimage&id={x}
Envy-UK
04-10-2004, 11:31 PM
It's linked to the following:
/vbgarage.php?do=popup&image=http://www.envy-uk.co.uk/vbgarage.php?do=thumb&width=175&id=12
magnus
04-10-2004, 11:34 PM
My fault! Typo in my previous upgrade post. This is the correct instruction (I've gone ahead and updated the previous post, too):
3. Edit the vbgarage_imagebits TEMPLATE:
REPLACE with:
(be sure to leave a SPACE after the closing </a>)
<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&image=$vboptions[bburl]/vbgarage.php?do=getimage&id=$image[vbgarageid]" onclick="PopupPic(this.href); return false;" target="_blank"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&width=175&id=$image[vbgarageid]" alt="$image[name]" border="0" /></a>
Envy-UK
04-10-2004, 11:37 PM
Problem solved, however, now the initial thumbnail view of the image is broken. :(
EvilLS1
04-10-2004, 11:38 PM
Looks great magnus. Nice job! :)
magnus
04-10-2004, 11:38 PM
Problem solved, however, now the initial thumbnail view of the image is broken. :(
So, wait. Now you don't see the thumbnails? Yet, if you click the link it will open the image?
Is there anyway you could let me see the page?
Envy-UK
04-10-2004, 11:40 PM
So, wait. Now you don't see the thumbnails? Yet, if you click the link it will open the image?
Correct.
rockergrrl
04-10-2004, 11:40 PM
I just upgraded to the new version - actually I deleted all the tables before... and reinstalled...
I added a car, and my username isn't listed at all under username :/
Suggestions?
magnus
04-10-2004, 11:41 PM
I just upgraded to the new version - actually I deleted all the tables before... and reinstalled...
I added a car, and my username isn't listed at all under username :/
Suggestions?
Download the latest .ZIP. Replace the vbgarage.php file. It was a typo on my part.
magnus
04-10-2004, 11:41 PM
Correct.
Could you open your forum for a minute so I could see the page?
Envy-UK
04-10-2004, 11:44 PM
Could you open your forum for a minute so I could see the page?
Sure, it's open.
magnus
04-10-2004, 11:46 PM
Sure, it's open.
Thanks. I found the problem:
Warning: imagecreatetruecolor(): requires GD 2.0 or later in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 299
Warning: imagecopyresized(): supplied argument is not a valid Image resource in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 301
Warning: imagejpeg(): supplied argument is not a valid Image resource in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 302
Warning: imagedestroy(): supplied argument is not a valid Image resource in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 305
You're not using GD 2.0+. Is it possible for you to upgrade? If not, I'll see if I can find a workaround for ImageCreateTrueColor();
rockergrrl
04-10-2004, 11:47 PM
Download the latest .ZIP. Replace the vbgarage.php file. It was a typo on my part.
That fixed it!
Thanks
Envy-UK
04-10-2004, 11:48 PM
Thank you, I best update. :)
magnus
04-10-2004, 11:51 PM
Glad I could help. :)
That's the problem with GD1.6. You could use ImageCreate, but the thumbnail colors will be all whacked out. Only GD 2.0+ supports ImageCreateTrueColor.
Figures. There are a few 'workarounds', but they're sort of messy. If you can't get it upgraded, let me know, I'll code the workaround. :)
Envy-UK
04-10-2004, 11:53 PM
Glad I could help. :)
That's the problem with GD1.6. You could use ImageCreate, but the thumbnail colors will be all whacked out. Only GD 2.0+ supports ImageCreateTrueColor.
Figures. There are a few 'workarounds', but they're sort of messy. If you can't get it upgraded, let me know, I'll code the workaround. :)
The upgrade looks like a long road, but, at close to 2am, I'm guessing everything seems that way.
I'll take a closer look tomorrow.
Thank you again for the first class support. :D
rockergrrl
04-10-2004, 11:58 PM
How about an addon for multiple cars/galleries.
I know a lot of people have more than one car tha they would like to show off...
magnus
04-11-2004, 12:01 AM
How about an addon for multiple cars/galleries.
I know a lot of people have more than one car tha they would like to show off...
Yup. That's the #1 most requested feature. I've got a preliminary design of it, but before I release it, I'd like to make sure the current version is stable. Expect it soon, though. ;)
I need to get the AdminCP interface up first, though.. I hate requiring the end user to edit the .PHP file to make a configuration change.
joeychgo
04-11-2004, 12:34 AM
I just installed the new version - I added a car, and my username isn't listed at all under username ??
whats wrong? I just dl'd the zip an hour ago...?
Also -- one feature that would be great would be if I could assign a different number of images for each user group
Another that would be great would be some way to siplay a few random images on the forums page..
It looks fantastic Magnus --- thank you so much for this
Download the latest .ZIP. Replace the vbgarage.php file. It was a typo on my part.
rockergrrl
04-11-2004, 12:37 AM
Just redownload it.
That's what I had to do, and it worked fine.
joeychgo
04-11-2004, 12:46 AM
Didnt realize he had revised it that quik...it worked.
One think I just noticed, I just tried to upload a large pic --- 1.7meg -- it tooka long time to upload - then gave no warning that the upload was unsucessful -- when I resized the pic to 65kb, it uploaded fine. There should be some kind of error warning shouldnt there?
Just redownload it.
That's what I had to do, and it worked fine.
magnus
04-11-2004, 12:49 AM
Didnt realize he had revised it that quik...it worked.
One think I just noticed, I just tried to upload a large pic --- 1.7meg -- it tooka long time to upload - then gave no warning that the upload was unsucessful -- when I resized the pic to 65kb, it uploaded fine. There should be some kind of error warning shouldnt there?
Yea, it craps out on large images sometimes. That's more of a PHP limitation. I'll see what I can do.
joeychgo
04-11-2004, 12:57 AM
Is there a file size limit? I'll just add a note explaining this where it says how many images the user is limited to...
Yea, it craps out on large images sometimes. That's more of a PHP limitation. I'll see what I can do.
Dsmed
04-11-2004, 12:58 AM
This was designed on PHP Version 4.3.5. Are you having problems?
no i havent tried to install it yet, but my forum uses the php4 extension rather than the regular php extension, and i was just curious if i had to change anything before i installed it, sorry for the confusion..
Action-N
04-11-2004, 02:42 AM
I just upgraded with no problems, just had to revert back to the original template code. Yes that is so much better now with thumbnail support. Just had to remember to reupload the pictures. Now that I only have to add custom fields I could probably work towards a auto specific hack for this.
I found that you didn't add "where are they?" for vB Garage in the functions_online.php.
I also started making a htl file for this, but maybe you should be the one to make one magnus.
joeychgo
04-11-2004, 03:07 AM
Is it me or are there no admin controls for this? This is important -- for example....if someone uploads an inappropriate image, how do I delete it?
blitzkrg
04-11-2004, 03:23 AM
I cant get this to work at all.
i get this error running the install script
mysql error: You have an error in your SQL syntax near ';
' at line 9
i see others have as well.
i tried to add everything by hand, and it seems to have taken then with phpmyadmin.
but still no luck.
when i go to usercp, i dont see anything relating to vbgarage, and when i go into user groups to turn on permissions, the box it blank, i only have a yes/no opt. even if i select yes and save, nothing shows up in the user cp..
help?
magnus
04-11-2004, 03:30 AM
I cant get this to work at all.
i get this error running the install script
mysql error: You have an error in your SQL syntax near ';
' at line 9
i see others have as well.
i tried to add everything by hand, and it seems to have taken then with phpmyadmin.
but still no luck.
when i go to usercp, i dont see anything relating to vbgarage, and when i go into user groups to turn on permissions, the box it blank, i only have a yes/no opt. even if i select yes and save, nothing shows up in the user cp..
help?
You didn't follow the instructions completely. Read step 5 in the vbgarage_readme.txt.
5. In the ADMINCP, under Languages & Phrases -> Phrase Manager, click "Edit" on any random phrase, then click Save. You do not need to make any modifications. This is to update the phrases database to accept the phrases added during the automated install. THIS IS VERY IMPORTANT! :)
magnus
04-11-2004, 03:31 AM
Is it me or are there no admin controls for this? This is important -- for example....if someone uploads an inappropriate image, how do I delete it?
As stated before, this is all being added. It's not that it's been "forgotten", it's just being slated for a later release. Expect it very soon.
magnus
04-11-2004, 03:33 AM
I found that you didn't add "where are they?" for vB Garage in the functions_online.php.
Yup. I tried to keep this first release to as few file edits as possible. The next version will be full blown. Options, etc..
I also started making a htl file for this, but maybe you should be the one to make one magnus.
I don't support the HTL. I did at one point, but it's not really my cup of tea. You're more than welcome to create an HTL if you desire.
joeychgo
04-11-2004, 03:38 AM
Ohh ok lol I thought I was missing something..........
As stated before, this is all being added. It's not that it's been "forgotten", it's just being slated for a later release. Expect it very soon.
SVTBlackLight01
04-11-2004, 03:41 AM
This is awesome. GOtta get my vb3 running and ready!
Any chance of this getting integrated with Photopost? Instead of uploading images it would show thumbs you currently have and you select from those pics.
That would be cool for ppl with Photopost like me. ;)
Anymore thought on this?
blitzkrg
04-11-2004, 03:47 AM
You didn't follow the instructions completely. Read step 5 in the vbgarage_readme.txt.
i did read them.. i did that step 3 times just to make sure.
magnus
04-11-2004, 03:48 AM
Anymore thought on this?
Since I don't own/use Photopost, I don't see myself working on Photopost integration. Unless someone is going to buy me a license, that project will have to be a 3rd Party Add-On. ;)
magnus
04-11-2004, 03:50 AM
i did read them.. i did that step 3 times just to make sure.
If you're not seeing anything, and you've done step 5, then you haven't inserted all the phrases. Make sure you've run all of these:
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage', 'vBGarage', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage_allowed_total', 'You are allowed a preset number of images. Once that limit is reached, you will no longer be able to upload. Delete existing pictures to regain upload ability.', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage_file', 'File', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_footer', 'Powered by: <b>vBGarage</b> by magnus', 1)
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_year', 'Year', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_make', 'Make', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_model', 'Model', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_text', 'Text', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_text_desc', '<a href=\"$vboptions[bburl]/misc.php?do=bbcode\">vB code</a> is <b>On</b><br /> <a href=\"$vboptions[bburl]/misc.php?do=showsmilies\">Smilies</a> are <b>On</b><br /> <a href=\"$vboptions[bburl]/misc.php?do=bbcode#imgcode\">[IMG]</a> code is <b>Off</b><br /> HTML code is <b>Off</b><br />', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'vbgarage_uploaded_images', 'Uploaded Image(s)', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_car', 'Car', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_listtitle', 'Member vBGarage(s)', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_edit', 'Edit vBGarage', 1);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'can_vbgarage', 'Can use vBGarage?', 3);
SVTBlackLight01
04-11-2004, 03:52 AM
Sorry. I guess it wasn't really a request; just wondering if anyone had given it any thought as a possible "a 3rd Party Add-On"
Great job on this, BTW. It's definately on my list after I upgrade to vb3. :)
ImportPassion
04-11-2004, 03:54 AM
Since I don't own/use Photopost, I don't see myself working on Photopost integration. Unless someone is going to buy me a license, that project will have to be a 3rd Party Add-On. ;)
I will prolly tackle it when I get my vb3 going. waiting for vbportal to be ready. :ermm:
Also, is this all searchable from members search? Like, say I want to find someone with a kaminari body kit, i can search for kaminari?
magnus
04-11-2004, 03:54 AM
Sorry. I guess it wasn't really a request; just wondering if anyone had given it any thought as a possible "a 3rd Party Add-On"
Great job on this, BTW. It's definately on my list after I upgrade to vb3. :)
I may, however, do a Coppermine add-on. If I do, I'm sure it could be easily modified to accomodate PhotoPost.
magnus
04-11-2004, 03:55 AM
I will prolly tackle it when I get my vb3 going. waiting for vbportal to be ready. :ermm:
Also, is this all searchable from members search? Like, say I want to find someone with a kaminari body kit, i can search for kaminari?
At the moment? No. I'll look into search capabilities.
ImportPassion
04-11-2004, 04:16 AM
hey magnus,
Just curious why you didn't go the route of using the profile options and just displaying them on a new page? This way they can be made searchable, they can have any type of form element, make them required or not etc.
Just curious.
D
magnus
04-11-2004, 04:28 AM
hey magnus,
Just curious why you didn't go the route of using the profile options and just displaying them on a new page? This way they can be made searchable, they can have any type of form element, make them required or not etc.
Just curious.
D
Because, then I'm limited by those same options. This way, I'm free to do just about anything with no limitations.
TheCaver
04-11-2004, 04:59 AM
I had the same SQL errors on install.
What I had to do was open the install file and insert the SQL commands for creating the tables manually WITHOUT the . TABLE PREFIX . part....Thats whats screwing it up.
If you want, you could probably delete the table prefix stuff (assuming that your vb install does not require prefixes) and resave the file, then run it again.....Should work fine then.....
Hope it helps........It's a cool board add on, can't wait for further updates....
JC
SVTOA
04-11-2004, 05:26 AM
Magnus I think you did a great job with this, take a bow! I am making some customizations to my copy, I have photopost like another member mentioned in this thread, I have a code for the postbit template that generates a link to the indivudual member's gallery, I think I can import that into the "view_vbgarage" template. I also think it should be pretty easy to make this support multiple vehciles. I already have mine so I can list two.
Nice work man!
SVTOA
04-11-2004, 06:02 AM
I'm liking this hack more and more, make sure you claim the money I sent you. ;)
SVTOA
04-11-2004, 06:22 AM
I have some suggetions I wish to add- (sorry had WAY to much Starbucks tonight!)
It would be REALLY cool to have a link in the member's profile to his individual Garage page as a conditional statement- If the member has created one, then when someone views his/her profile, there is a link to that member's garage. I suppose one can add a custom user profile field for "MY VB GARAGE" and require the member to paste the link into it, but it should not be too hard to make that an automatic process...
With regard to PHOTOPOST, I edited the titlebar that says "PHOTOS" to say "(also check my Photopost gallery for more pix of my cars!)"
This is the postbit code that generates a automatic link to a member's gallery:
<!-- gallery code --><a href="http://www.yourwebsite.com/vbulletin/photopost/showgallery.php?cat=500&ppuser=$userinfo[userid]&thumb=1">View my photo gallery</a>
<!-- end gallery code-->
If your Photopost is not integrated with your VB3 database, then you must edit the path to properly reflect what directory your PHOTOPOST files are located in.
SVTOA
04-11-2004, 06:26 AM
Heheh!! Ok, all you really have to do with VB3 is place a link in your own signature to your VBGARAGE and then when someone views your profile, it shows up in the area that displays your signature. ;)
SVTOA
04-11-2004, 07:02 AM
And here is another nice addition for those who have installed this- place this code in your POSTBIT or POSTBIT_LEGACY template and it will automatically create a link to that member's garage. This can also be added to the user profile template.
If anyone wants to edit it to make it conditional (will only display if they have a garage page) please do so!
<!-- added garage code here --><a href="http://www.yourwebsite.com/vbulletin/vbgarage.php?do=view&id=$userinfo[userid]"><smallfont>View my VbGarage</smallfont></a>
<!-- end garage code-->
Envy-UK
04-11-2004, 09:00 AM
Just a couple of suggestions for future releases (as if you've not had enough already):
Firstly, I'd love for it to be able to post these images in threads with the [img] tags, as, at the moment, that's not possible.
Secondly, it would be nice to have some sort of either drop down or pop-up thumbnails that have been uploaded by a specific user available to them when posting in the forum, a click on one of these thumbnails would lead to the inserting of the [img] code into the editor.
Also, I use the following if statement in the MEMBERINFO template:
<if condition="$post['rank']"><td><strong><a href="/vbgarage.php?do=view&id=$post[userid]"><IMG SRC="http://www.envy-uk.co.uk/vb3bluesaint/buttons/garage_big.gif" BORDER="0"></a></td>
<else /><td><strong>This feature is only available to platinum members. <br><br>Further information regarding this membership can be found by clicking <a href="http://www.envy-uk.co.uk/subscriptions.php?">here.</a></strong></td></if>
See attached image for outcome. Obviously, they are the results in both cases.
I also use the following code in the user ranks, of those with permissions to upload, which acts as the if statement:
<a href="/vbgarage.php?do=view&id=$post[userid]">View Garage</a>
corsacrazy
04-11-2004, 11:47 AM
Just a couple of suggestions for future releases (as if you've not had enough already):
Firstly, I'd love for it to be able to post these images in threads with the [img] tags, as, at the moment, that's not possible.
Secondly, it would be nice to have some sort of either drop down or pop-up thumbnails that have been uploaded by a specific user available to them when posting in the forum, a click on one of these thumbnails would lead to the inserting of the [img] code into the editor.
Also, I use the following if statement in the MEMBERINFO template:
<if condition="$post['rank']"><td><strong><a href="/vbgarage.php?do=view&id=$post[userid]"><IMG SRC="http://www.envy-uk.co.uk/vb3bluesaint/buttons/garage_big.gif" BORDER="0"></a></td>
<else /><td><strong>This feature is only available to platinum members. <br><br>Further information regarding this membership can be found by clicking <a href="http://www.envy-uk.co.uk/subscriptions.php?">here.</a></strong></td></if>
See attached image for outcome. Obviously, they are the results in both cases.
I also use the following code in the user ranks, of those with permissions to upload, which acts as the if statement:
<a href="/vbgarage.php?do=view&id=$post[userid]">View Garage</a>
u mean i did ;)
Envy-UK
04-11-2004, 12:01 PM
u mean i did ;)
Yes, I just changed the code to fit this hack.
Thank you, though.
magnus
04-11-2004, 12:41 PM
Firstly, I'd love for it to be able to post these images in threads with the [img] tags, as, at the moment, that's not possible.
Actually, you can get around this.. create a new BBCODE, (you can of course name this whatever you like), and have it use the HTML:
<a href="$vboptions[bburl]/vbgarage.php?do=getimage&id={param}"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&width=100&id={param}" border=0 /></a>
This will allow the user to insert: [car]{picture id} in a thread, which will be replaced with a thumbnail of that id as well as a link to the original size.
Secondly, it would be nice to have some sort of either drop down or pop-up thumbnails that have been uploaded by a specific user available to them when posting in the forum, a click on one of these thumbnails would lead to the inserting of the [img] code into the editor.
Hrm.. this could get messy in the long run. I'll see if there's an efficient way to implement that.
SVTOA
04-11-2004, 12:43 PM
Well, I stayed up to the weeeee hours last night tweaking this and my members love it. We now have it so that there are automatic links to the member's Garage in the user profile and the postbit area.
It looks like with very little changes, this could be changed to something like "Member's Personal Pages" that would fit in with any website theme.
Once again, Great Job Magnus!!
joeychgo
04-11-2004, 12:44 PM
Like I said before, I would like to see a way to display a few random pics on other pages, and maybe the newest pics posted on the garage page itself...
Otherwise, im loving this.
Envy-UK
04-11-2004, 12:55 PM
Actually, you can get around this.. create a new BBCODE, [car] (you can of course name this whatever you like), and have it use the HTML:
<a href="$vboptions[bburl]/vbgarage.php?do=getimage&id={param}"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&width=100&id={param}" border=0 /></a>
Thanks, all I need now is for my host to update to GD 2.0, something which they ensure me will be done by the end of the week.
Ian Cunningham
04-11-2004, 12:57 PM
Well, I stayed up to the weeeee hours last night tweaking this and my members love it. We now have it so that there are automatic links to the member's Garage in the user profile and the postbit area.
It looks like with very little changes, this could be changed to something like "Member's Personal Pages" that would fit in with any website theme.
Once again, Great Job Magnus!!
How did you manage to do this? :)
Also, are user comments something that could be included in future releases?
magnus
04-11-2004, 01:03 PM
How did you manage to do this? :)
Also, are user comments something that could be included in future releases?
User comments are almost complete. :)
White Knight
04-11-2004, 01:03 PM
Hmm did the upgrade.. fixed the template.. and still getting the DREADED RED X.. i have no clue what i could be missing
Ian Cunningham
04-11-2004, 01:03 PM
User comments are almost complete. :)
Excellent! I'm looking forward to it :D
Envy-UK
04-11-2004, 01:04 PM
User comments are almost complete. :)
You're making great progress with this hack, I'm very impressed.
Envy-UK
04-11-2004, 01:05 PM
Hmm did the upgrade.. fixed the template.. and still getting the DREADED RED X.. i have no clue what i could be missing
Are you running GD 2.0 on your server? (Check your /admincp/index.php?do=phpinfo and find the GD heading)
That's my problem at the moment.
White Knight
04-11-2004, 01:18 PM
Blah stupid me.. just relized I am running Imagemagik.. lol.. I was running GD on my old box.. blah.. i knew something was bunked :)
spence2
04-11-2004, 02:36 PM
In your "to-do" list you say:
Planned Features
- Admin control. Ability to delete/modify user's garages.
- Multiple entries per user.
So, am I correct in assuming that currently users can only have one entry?
I'm very excited about this hack and thank you so much for your generosity in sharing it with everyone!
When you add comments, ability for users to have multiple entries and pagination for the entries pages then you have a great multi-purpose hack! One that could be used as an "articles" or "journals" hack as well...and, trust me, there is a huge demand for this! :)
corsacrazy
04-11-2004, 03:06 PM
possible to tidy up the image quality? at the moment imagecreatetruecolor is stil making images blurry unless that is the width tag doing that?
SVTOA
04-11-2004, 03:18 PM
How did you manage to do this? :)
Also, are user comments something that could be included in future releases?
Ian, look back in this thread, I included the code for POSTBIT/POSTBIT_LEGACY and USERINFO. It's really quite easy, just edit the paths to reflect your directory structure.
I have attached some screenshots of how these look on my board:
White Knight
04-11-2004, 03:48 PM
Thanks for the quick template changes SVTOA.. good idea..
SVTOA
04-11-2004, 04:15 PM
No problem White Knight!
I just had another idea- I also use Evil LS1's AWESOME Timeslip databse hack. I think I can edit the Garage to add those profile fields to the display page, and only if a member has filled them out. I think that would make this thing super cool. :D
magnus
04-11-2004, 04:21 PM
No problem White Knight!
I just had another idea- I also use Evil LS1's AWESOME Timeslip databse hack. I think I can edit the Garage to add those profile fields to the display page, and only if a member has filled them out. I think that would make this thing super cool. :D
Yea, I was planning on maybe doing that later.. but I figured I'd get out the priority stuff first. Although, if someone else wants to do it -- please, by all means. I'll post a link to the modifications in the first post.
On that note, User Comments are finished/tested/ready for release. I'm just tweaking a few things, and adding a couple other requested features. Expect an upgrade sometime today. :)
White Knight
04-11-2004, 04:33 PM
No problem White Knight!
I just had another idea- I also use Evil LS1's AWESOME Timeslip databse hack. I think I can edit the Garage to add those profile fields to the display page, and only if a member has filled them out. I think that would make this thing super cool. :D
Sure would be and something I was going to add soon anyways. I just know I have to modify the code for sportbikes a little bit :)
But just like the vbGarage it just takes a little template fixing and database changing :)
But yes that timeslip hack would be very nice!
magnus
04-11-2004, 04:39 PM
Progress update, see screenshots.
Added User Comments
Added Latest Uploads on Garage List.
magnus
04-11-2004, 04:40 PM
Y'know.. this is starting to turn into the elusive, "vBGallery". ROFL. :)
White Knight
04-11-2004, 04:42 PM
Yea, I was planning on maybe doing that later.. but I figured I'd get out the priority stuff first. Although, if someone else wants to do it -- please, by all means. I'll post a link to the modifications in the first post.
On that note, User Comments are finished/tested/ready for release. I'm just tweaking a few things, and adding a couple other requested features. Expect an upgrade sometime today. :)
Well I have users already trying it out on my website.
http://www.sportbikes.net/forums/vbgarage.php?do=list
Yes I changed a few things.. hope thats ok..
However as I mentioned people dont have the knowledge to edit there information page for vb code or html code
so it looks like this
http://www.sportbikes.net/forums/vbgarage.php?do=view&id=21883
or like this
http://www.sportbikes.net/forums/vbgarage.php?do=view&id=31134
Just something I noticed.. Is there a template i can change to add like modifications?
like this
Mods:
Future Mods:
Track Times:
Homes Page:
That way everything is clean looking.
Then leave the box so people can add whatever they want
these are just ideas
White Knight
04-11-2004, 04:44 PM
Y'know.. this is starting to turn into the elusive, "vBGallery". ROFL. :)
Ohhhhhh latest uploads.. your on the right track my friend
magnus
04-11-2004, 04:58 PM
White Knight, I thought I'd mention that pagination is fixed in this upgade, too. :)
ImportPassion
04-11-2004, 05:05 PM
Y'know.. this is starting to turn into the elusive, "vBGallery". ROFL. :)
I was gonna say Photopost.
I think us users with photopost this is getting redundant. This is of course great work, but I think I may do an addon for Photopost to be able to add a page with the cars stats.
Keep it going tho, it's about time we got something like this.
corsacrazy
04-11-2004, 05:14 PM
can admin edit/del latest comments? latest pics is great idea :)
magnus
04-11-2004, 05:22 PM
can admin edit/del latest comments? latest pics is great idea :)
Admin can delete latest comments, yes.
Envy-UK
04-11-2004, 05:29 PM
Admin can delete latest comments, yes.
Is there, or will there be, an option to disable comments?
I'd love to continue to upgrade, but I'm not looking to have comments.
magnus
04-11-2004, 05:36 PM
Is there, or will there be, an option to disable comments?
I'd love to continue to upgrade, but I'm not looking to have comments.
Sure, you can simply not perform the template edit that makes them available.
*edit: Actually, I'll make it a toggleable option in the AdminCP. That's what I'm working on now, AdminCP control.
SVTOA
04-11-2004, 05:40 PM
I was gonna say Photopost.
I think us users with photopost this is getting redundant. This is of course great work, but I think I may do an addon for Photopost to be able to add a page with the cars stats.
Keep it going tho, it's about time we got something like this.
I don't think it's redundant al all, because our photopost is also quite customized, and these two work together very nice! In my own "Garage" I have linked to my Photopost Dyno Sheet and best Timeslip image, as we have those as PP cats.
It's all good!
corsacrazy
04-11-2004, 05:40 PM
how about more options for modifications to your vehicle because all it really has is TEXT then a massice box which is confusing members
Envy-UK
04-11-2004, 05:41 PM
Sure, you can simply not perform the template edit that makes them available.
*edit: Actually, I'll make it a toggleable option in the AdminCP. That's what I'm working on now, AdminCP control.
Glad to hear. ;)
magnus
04-11-2004, 05:43 PM
how about more options for modifications to your vehicle because all it really has is TEXT then a massice box which is confusing members
As I've stated a number of times, it's designed to be configurable. Very few people are going to want the same settings I use, or you use, etc.. So, make it unique. That's why this is template/phrase driven. Make it how you want. :)
corsacrazy
04-11-2004, 05:45 PM
how about somthing similar to this ?
https://vborg.vbsupport.ru/
Envy-UK
04-11-2004, 05:47 PM
how about somthing similar to this ?
http://www.corsasport.co.uk/carimages/1332/newbie.jpg
Can't beat the old CS system. ;)
I'm trying to take my version of this to a level such as CS.
corsacrazy
04-11-2004, 05:49 PM
Can't beat the old CS system. ;)
I'm trying to take my version of this to a level such as CS.
oh yes so0me ideas i helped the owner with :)
dede1
04-11-2004, 06:46 PM
After the update have I now a red cross instead of a picture. If there
one the red cross clicks is the large picture.
What does that lie?
My GD Version is 1.6.2 or higher
magnus
04-11-2004, 06:48 PM
After the update have I now a red cross instead of a picture. If there
one the red cross clicks is the large picture.
What does that lie?
My GD Version is 1.6.2 or higher
You must be using GD2.0+, else thumbnailing will not work. You need to upgrade your GD version.
Action-N
04-11-2004, 06:54 PM
how about more options for modifications to your vehicle because all it really has is TEXT then a massice box which is confusing members
Yeah, I already asked about that. He is right, not everyone will want to use this just for automotive. Would be nice if in admin you could add custom fields though. Well just wanted to tell you I am working on building a custom "Automotive" version for myself. I think he'll let me release it as a add-on hack when I'm done. Right now I'm working on adding the "vB Garage" to the users' profile. Check out my garage an see if you have any suggestions for an auto only garage.
my vB Garage (http://www.action-host.com/forum/vbgarage.php?do=view&id=1)
dede1
04-11-2004, 06:56 PM
There is not however a Problem.
Wo could I old vbgarage.php I the any
more does not have those gotten there already had ago overwritten
webmaster@dede1.ch
corsacrazy
04-11-2004, 07:00 PM
Yeah, I already asked about that. He is right, not everyone will want to use this just for automotive. Would be nice if in admin you could add custom fields though. Well just wanted to tell you I am working on building a custom "Automotive" version for myself. I think he'll let me release it as a add-on hack when I'm done. Right now I'm working on adding the "vB Garage" to the users' profile. Check out my garage an see if you have any suggestions for an auto only garage.
my vB Garage (http://www.action-host.com/forum/vbgarage.php?do=view&id=1)
nicely done i will post some of my addons when i pull my finger out
SVTBlackLight01
04-11-2004, 08:18 PM
For photopost, I have an idea. How about some text fields where users can post the URL of their photos they want displayed in the garage? That way they only have to upload photos once (in the gallery), and they can choose which ones they wany displayed (as opposedd to just having a script pull random pics from the gallery).
magnus
04-11-2004, 08:25 PM
v3.0.1 -> v3.1.0 UPGRADE INSTRUCTIONS
1. Download vbgarage_upgrade310.php (which is attached to this post) and upload it to your ADMINCP directory.
2. Download vbgarage.php (which is attached to this post) and upload it to your ROOT directory, overwriting your existing copy.
3. Follow the instructions in vbgarage_update_readme.txt (which is also attached to this post)
Done !!
Added Features in v3.1.0
User Comments in garages
Latest Uploads displayed on Garage List
Admin "delete" garage, displayed on Garage View.
AdminCP option configuration, no need to edit the .PHP file.
Envy-UK
04-11-2004, 08:31 PM
To exclude comments, you do not do step 4c? Is that correct?
magnus
04-11-2004, 08:32 PM
To exclude comments, you do not do step 4c? Is that correct?
No. You can disable comments in the AdminCP.
*EDIT: See this screenshot: https://vborg.vbsupport.ru/attachment.php?attachmentid=18058
dede1
04-11-2004, 08:58 PM
magnus
top work. A question cannot one that in such a way change it starting
from GD 1,6 runs and/or, where one must change for a tip thanks I
spence2
04-11-2004, 09:02 PM
Progress update, see screenshots.
Added User Comments
Added Latest Uploads on Garage List.
Is it possible for the "author" of the comments to be a link to their profile?
Are photos optional (set limit to "0"...or how?)
Are you close to being able to have more than one entry per person?
Thanks again for your work and for sharing it.
esoin
04-11-2004, 09:05 PM
Hey,
Anyone know why I can't view page two during the DISPLAY MODE? Check it out here:
http://www.gopednation.com/forum/vbgarage.php?do=list
I can't hit page two to view the rest of the submissions. It goes back to page 1. Anyone else having that problem?
Envy-UK
04-11-2004, 09:09 PM
When I run the upgrade file, it only updates the initial style ID templates, could I change this to update, in my example, style ID 5?
corsacrazy
04-11-2004, 09:09 PM
v3.0.1 -> v3.1.0 UPGRADE INSTRUCTIONS
1. Download vbgarage_upgrade310.php (which is attached to this post) and upload it to your ADMINCP directory.
2. Follow the instructions in vbgarage_update_readme.txt (which is also attached to this post)
Done !!
Added Features in v3.1.0
User Comments in garages
Latest Uploads displayed on Garage List
Admin "delete" garage, displayed on Garage View.
AdminCP option configuration, no need to edit the .PHP file.
instructions say
Upload "vbgarage.php" to your forum ROOT directory, overwriting the existing one!
but u didnt attach new one !
joeychgo
04-11-2004, 09:13 PM
It absolutely is man, and your doing fantastic work magnus!!!!!
Now all we need is a chat module <hint>
Y'know.. this is starting to turn into the elusive, "vBGallery". ROFL. :)
Ian Cunningham
04-11-2004, 09:17 PM
Once I click submit, I just get the page refreshed and I have to go back to the garage manually? Is that correrect, or should it re-direct me after I click submit?
corsacrazy
04-11-2004, 09:20 PM
are my pics ment to look like this ? :( i have gd 2 +
corsacrazy
04-11-2004, 09:32 PM
<i>suggestion :</i> add Vbgarage Pages And Info To The Wol Page !
esoin
04-11-2004, 09:33 PM
Good news.. GD support is finished.. and it works. ;) Gimmie a few minutes to package it all up, and it will be ready to download.
is vbgarage301.zip file still available? I'm trying to upgrade from v3 to 3.0.1 to 3.1.0
joeychgo
04-11-2004, 09:34 PM
the first post in thie thread has the newest version
joeychgo
04-11-2004, 09:35 PM
How can I take the 'latest uploads' and place it on other pages also, like in the forums page below the navbar and on my vbadvanced page?
White Knight
04-11-2004, 09:42 PM
Yeah, I already asked about that. He is right, not everyone will want to use this just for automotive. Would be nice if in admin you could add custom fields though. Well just wanted to tell you I am working on building a custom "Automotive" version for myself. I think he'll let me release it as a add-on hack when I'm done. Right now I'm working on adding the "vB Garage" to the users' profile. Check out my garage an see if you have any suggestions for an auto only garage.
my vB Garage (http://www.action-host.com/forum/vbgarage.php?do=view&id=1)
Perfect.. what I am looking for. However I hope it would be ok if I change it to fit my sportbike website
White Knight
04-11-2004, 09:42 PM
It absolutely is man, and your doing fantastic work magnus!!!!!
Now all we need is a chat module <hint>
Chat module? Have you gone loopey?
joeychgo
04-11-2004, 09:46 PM
Loopy, yes, weeks ago when I first started my board :)
OK how do I get the pics toline in 2 columns? see what mine is doing now on the screenshot.......
FYI this should be the hack of the month............
magnus
04-11-2004, 09:53 PM
Hey,
Anyone know why I can't view page two during the DISPLAY MODE? Check it out here:
http://www.gopednation.com/forum/vbgarage.php?do=list
I can't hit page two to view the rest of the submissions. It goes back to page 1. Anyone else having that problem?
Download the vbgarage310.zip from the first post, extract vbgarage.php and overwrite your exsiting one with the new version.
magnus
04-11-2004, 09:56 PM
When I run the upgrade file, it only updates the initial style ID templates, could I change this to update, in my example, style ID 5?
Yes. Edit the upgrade_vbgarage310.php:
FIND:
$styleid=$vboptions['styleid'];
Change $vboptions['styleid']; to whatever styleid you want to update.
magnus
04-11-2004, 09:56 PM
instructions say
Upload "vbgarage.php" to your forum ROOT directory, overwriting the existing one!
but u didnt attach new one !
Correct. Mistake on my part, you need to download the vbgarage310.zip from the first post and extract the vbgarage.php from that file.
magnus
04-11-2004, 09:57 PM
Once I click submit, I just get the page refreshed and I have to go back to the garage manually? Is that correrect, or should it re-direct me after I click submit?
Yes, that's correct. Else, everytime you upload a picture you will be sent to View Garage. If you're uploading multiple pictures, that would be a serious PITA. :)
magnus
04-11-2004, 09:59 PM
is vbgarage301.zip file still available? I'm trying to upgrade from v3 to 3.0.1 to 3.1.0
Sure, it's attached to this post.
magnus
04-11-2004, 10:00 PM
How can I take the 'latest uploads' and place it on other pages also, like in the forums page below the navbar and on my vbadvanced page?
Possible? Yes. It would require you to do some hacking. If this is a big enough request, I can make it a bit easier in a future release.
Loopy, yes, weeks ago when I first started my board :)
OK how do I get the pics toline in 2 columns? see what mine is doing now on the screenshot.......
You'll either need to enlarge the table, or reduce the thumbnail size. By default, I set thumbnails to 100x100, and that way they display in 2 columns.
joeychgo
04-11-2004, 10:02 PM
I just think its a way to showcase the garage --- WOuldnt it be just a html block that would have to be inserted somewhere? (im getting better, but im still new lol)
corsacrazy
04-11-2004, 10:04 PM
i can make a latest pics on main page or a random images block if you guys want?
magnus
04-11-2004, 10:05 PM
magnus
top work. A question cannot one that in such a way change it starting
from GD 1,6 runs and/or, where one must change for a tip thanks I
I'm sorry, I'm not understanding the question. Are you asking if it's possible to use this with GD1.6+?
White Knight
04-11-2004, 10:07 PM
Magnus.. upgrade went perfectly.. very nice work.. this looks to be a hack many people are going to play with and hopefully add on :)
magnus
04-11-2004, 10:10 PM
I just think its a way to showcase the garage --- WOuldnt it be just a html block that would have to be inserted somewhere? (im getting better, but im still new lol)
Sort of. Except, in it's current state, the "Latest Uploads" are processed when vbgarage.php?do=view is called. Once it's called, it immediately outputs the vbgarage_viewgarage template.
You would need to isolate the "Latest Uploads" SQL queries in the 'view' function and copy them to index.php (or whichever file you want it called from). Then, edit the respective template to include provisions for the vbgarage_latestbits.
It's not really hard, and normally I wouldn't mind whipping it together real quick. But I'm sort of burned out right now. My TIVO has a few days of Law & Order episodes recorded, so I think I'm going to take a break for a bit. ;)
Of course, if there are any major problems or such, I will be here to help. If you can wait, I'll gladly modulize the Latest Uploads as well as include a Random Picture module.
magnus
04-11-2004, 10:14 PM
Magnus.. upgrade went perfectly.. very nice work.. this looks to be a hack many people are going to play with and hopefully add on :)
Glad to hear it. I did, however, notice that your navbar link isn't working. You have it pointing to /vbgarage.php?do=list, when it should be /forums/vbgarage.php?do=list. ;)
On a side note, nice site. I just picked up a '96 GSXR750 yesterday, I might just sign up. :)
dede1
04-11-2004, 10:15 PM
I'm sorry, I'm not understanding the question. Are you asking if it's possible to use this with GD1.6+?
Yes, whether there is a chance there also with GD 1,6 runs permits,
tip/assistance would be good
joeychgo
04-11-2004, 10:17 PM
I want! :)
Ideally, random......... and clickable so you can go right to the pic owners garage...... IM looking to put it right below the navbar on my forums page...Maybe add it as a block on my VBAdvanced
i can make a latest pics on main page or a random images block if you guys want?
magnus
04-11-2004, 10:18 PM
Yes, whether there is a chance there also with GD 1,6 runs permits,
tip/assistance would be good
Does it run? Sure.
In vbgarage.php:
FIND:
ImageCreateTrueColor(
REPLACE with:
ImageCreate(
The thumbnails will look weird though. I've read there are ways to tweak ImageCreate(); so the thumbnails display correctly. But, since I (and hopefully most people) use GD2.0+, I didn't pursue the issue.
corsacrazy
04-11-2004, 10:19 PM
I want! :)
Ideally, random......... and clickable so you can go right to the pic owners garage...... IM looking to put it right below the navbar on my forums page...Maybe add it as a block on my VBAdvanced
i can definatly do it i just had a play, and sorted it but pics link to main garage not image, im off to bed now lol its past midnight and im working at 8 am today ! i lll see wot i can do tonight :)
esoin
04-11-2004, 10:19 PM
You must be using GD2.0+, else thumbnailing will not work. You need to upgrade your GD version.
I upgraded from v3 to v3.1 successfully. I don't have GD support. I get red "x" where all the thumbnails used to be. Is there a way to revert back to thumbnail resizing? Thanks
corsacrazy
04-11-2004, 10:21 PM
MAGNUS - please read posts #
180 198 and 199
cheers
joeychgo
04-11-2004, 10:21 PM
Cool.........
i can definatly do it i just had a play, and sorted it but pics link to main garage not image, im off to bed now lol its past midnight and im working at 8 am today ! i lll see wot i can do tonight :)
White Knight
04-11-2004, 10:24 PM
Glad to hear it. I did, however, notice that your navbar link isn't working. You have it pointing to /vbgarage.php?do=list, when it should be /forums/vbgarage.php?do=list. ;)
On a side note, nice site. I just picked up a '96 GSXR750 yesterday, I might just sign up. :)
Thanks I didnt notice it off the front page.
Congrats on the Bike.. welcome to the dark side.. now we will never see you this summer.. unless its raining.. lol .. Make sure you login and post your bike :)
dede1
04-11-2004, 10:27 PM
MAGNUS
thanks it runs now :)
magnus
04-11-2004, 10:30 PM
are my pics ment to look like this ? :( i have gd 2 +
Yes. Unfortunately I'm not a GD wizard, so if the image quality for thumbnails is unsatisfactory, there's not much I can at the moment. I'm still learning about GD, so if I come across anything that might help, I'll share the info. ;)
magnus
04-11-2004, 10:31 PM
suggestion : add Vbgarage Pages And Info To The Wol Page !
Yup. Noted.
corsacrazy
04-11-2004, 10:32 PM
Yes. Unfortunately I'm not a GD wizard, so if the image quality for thumbnails is unsatisfactory, there's not much I can at the moment. I'm still learning about GD, so if I come across anything that might help, I'll share the info. ;)
Yeah i will look into it for you nice one
Yup. Noted.
Perfect , sounds gr8
magnus
04-11-2004, 10:33 PM
I upgraded from v3 to v3.1 successfully. I don't have GD support. I get red "x" where all the thumbnails used to be. Is there a way to revert back to thumbnail resizing? Thanks
Yes. In both vbgarage_imagesbits and vbgarage_editimagesbits you will change ?do=thumb&width=100 to ?do=getimage. Then, set appropriate width= variables for the <IMG> tags.
lasto
04-11-2004, 10:39 PM
good hack magnus.
/me clicks installs
magnus
04-11-2004, 10:41 PM
Add "Who's Online" Locations
In includes/functions_online.php:
FIND:
case 'bugs':
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
break;
Add BELOW:
case 'vbgarage':
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], $vbphrase[vbgarage]);
break;
FIND:
case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;
Add BELOW:
case 'vbgarage.php':
$userinfo['activity'] = 'vbgarage';
break;
Done!
joeychgo
04-11-2004, 10:44 PM
Did you see post 205 magnus?
magnus
04-11-2004, 10:47 PM
Did you see post 205 magnus?
Yes. See post 211 (https://vborg.vbsupport.ru/showpost.php?p=498878&postcount=211).
For future reference, if someone is going to reference a post.. please provide a link, it's much easier than me trying to find it in the list.
Thanks. ;)
joeychgo
04-11-2004, 10:49 PM
oops sorry... :)
"You'll either need to enlarge the table, or reduce the thumbnail size. By default, I set thumbnails to 100x100, and that way they display in 2 columns."
How do I enlarge the table?
magnus
04-11-2004, 10:51 PM
oops sorry... :)
"You'll either need to enlarge the table, or reduce the thumbnail size. By default, I set thumbnails to 100x100, and that way they display in 2 columns."
How do I enlarge the table?
By passing width="{x}%" variables for that specific <td> column. It's something you'll need to tinker with until you get it how you want it. :)
corsacrazy
04-11-2004, 10:51 PM
oops sorry... :)
"You'll either need to enlarge the table, or reduce the thumbnail size. By default, I set thumbnails to 100x100, and that way they display in 2 columns."
How do I enlarge the table?
in teh template view garage change the 40% to 50 and change the 60% to 50% aswell
joeychgo
04-11-2004, 10:59 PM
Errrr Where?
in teh template view garage change the 40% to 50 and change the 60% to 50% aswell
corsacrazy
04-11-2004, 11:03 PM
try using this template instead u will have to re add the changes for comment system if u are using it
joeychgo
04-11-2004, 11:06 PM
the 50%/50% change worked --- I just didnt know which template that was in, but I found it.......
esoin
04-11-2004, 11:07 PM
Yes. In both vbgarage_imagesbits and vbgarage_editimagesbits you will change ?do=thumb&width=100 to ?do=getimage. Then, set appropriate width= variables for the <IMG> tags.
I did that and I don't think it worked
<td class="alt2" valign="bottom"><img src="$vboptions[bburl]/vbgarage.php?do=getimage;width=100&id=$image[vbgarageid]" alt="$image[name]" /><br />
<center><input type="checkbox" name="delete$image[vbgarageid]">$vbphrase[delete]</center>
</td>
<td class="alt2" valign="bottom"><img src="$vboptions[bburl]/vbgarage.php?do=getimage;width=100&id=$image[vbgarageid]" alt="$image[name]" /><br />
<center><input type="checkbox" name="delete$image[vbgarageid]">$vbphrase[delete]</center>
</td>
I tried with and w/o the &
Any ideas? Thank you
magnus
04-11-2004, 11:43 PM
I did that and I don't think it worked
I tried with and w/o the &
Any ideas? Thank you
You need to completely remove ;width=100. Change alt= to width="100" alt=.
This is how it should look:
<td class="alt2" valign="bottom"><img src="$vboptions[bburl]/vbgarage.php?do=getimage&id=$image[vbgarageid]" width="100" alt="$image[name]" /><br />
<center><input type="checkbox" name="delete$image[vbgarageid]">$vbphrase[delete]</center>
</td>
joeychgo
04-11-2004, 11:44 PM
You need to completely remove ;width=100. Change alt= to width="100" alt=.
Who>?
magnus
04-11-2004, 11:48 PM
Who>?
esoin. Sorry.
SVTOA
04-11-2004, 11:54 PM
Magnus- Upgrade worked perfectly, just had to remember to manually add the new templates to my added styles.
Our members are just eating this up! :D
White Knight
04-12-2004, 01:24 AM
Magnus- Upgrade worked perfectly, just had to remember to manually add the new templates to my added styles.
Our members are just eating this up! :D
You got any screen shots of your template changes? I would love to take a peek
SVTOA
04-12-2004, 01:28 AM
Sure, give me a sec to process them for you... BRB...
SVTOA
04-12-2004, 01:32 AM
Hey before I forget- Magnus- Any chance of adding the ability for an admin to be able to edit a Garage for the user? Some of my members can barely type a reply much less type VB code, and I don't mind helping them with things like this. Also, the ability to enable IMG tags in the text area (controlled from the ADMIN CPANEL) would be really nice...
SVTOA
04-12-2004, 01:40 AM
You got any screen shots of your template changes? I would love to take a peek
Hey I just want to be sure I am going to show you the right screenshots. Do you want to see the template edits I did for USERINFO and POSTBIT/POSTBIT LEGACY?
Otherwise, for my added styles, I just made sure I copied the two new templates created by the upgrade over to my other styleset.
I also have shots of how the mod looks after the upgrade but I think Magnus already attached his?
esoin
04-12-2004, 01:46 AM
You need to completely remove ;width=100. Change alt= to width="100" alt=.
This is how it should look:
<td class="alt2" valign="bottom"><img src="$vboptions[bburl]/vbgarage.php?do=getimage&id=$image[vbgarageid]" width="100" alt="$image[name]" /><br />
<center><input type="checkbox" name="delete$image[vbgarageid]">$vbphrase[delete]</center>
</td>
Sweet. I got the thumbnails working. However, they are not working in the "Latest Uploads" table. Did I miss a part?
does my imagebits look correct to you?
<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&image=$vboptions[bburl]/vbgarage.php?do=getimage&id=$image[vbgarageid]" onclick="PopupPic(this.href); return false;" target="_blank"><img src="$vboptions[bburl]/vbgarage.php?do=getimage&id=$image[vbgarageid]" width="100" alt="$image[name]" /></a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.