View Full Version : vBGarage v3.1.1 (now with GD-Lib support!)
Pages :
1
2
[
3]
4
5
6
7
8
spence2
04-21-2004, 04:35 PM
way cool!
magnus
04-21-2004, 05:52 PM
One more question...LOL
I have VBgarage installed and it would be nice to have 2 of them. 1 for members cars and one for my Pin-Up girls. Is this possible? Can I have 2 of them and users can both add vehicles and on a seprate page, add their pics?
You know like on the main nav bar have VBgarage then a title like pin-up girls. Then in the User CP have the same thing: edit Vbgarage edit you pics. or something like that. It would be cool if this would be possible.
Well, sure. You would have to create 3 new databases (pinupgirls_comments, pinupgirls_users, pinupgirls_images), rename vbgarage.php to pinupgirls.php, then edit all references to the vbgarage_* databases to reflect pinupgirls_* instead.
Oh, and you'd have to create all new templates, phrases, etc..
mbaskett
04-21-2004, 06:06 PM
This hack is top notch! I love it, and so do my members that I've given access to it so far!
I'll be implementing it into our Member of the Week rotation as well, and setup our home page to display info from it shorty.
One question that I have about it... While you can set the max image file size, when you try to upload an image that exceeds the threshold, there is no error notification that says your image wasn't accepted.. Did I miss something in the install, or is this on the 'to-do list' for this hack? Just curious, cause some of our members are not as 'internet saavy' as others and they don't understand why their image wasn't accepted....
It'd be nice to have a little note next to the upload option the user sees that lists their max filesize as well....
I've also tweaked the PHRASE's so that the various links show up as 'Member Garages' and 'Edit your Garage', etc... however, the tree structure that vBulletin uses in the top left to show you where you are in the structure of the forums still reads a vbGarage. I hope you don't mind that I'm changing all this, as I feel it's more comfortable for the users to personalize it slightly. I just couldn't find this one particular PHRASE anywhere... thoughts?
Other than that, AWESOME HACK!
Shahrum
04-21-2004, 08:45 PM
We just upgraded our VB 3.0.0 install to VB 3.0.1 and then upgraded our VB Garage from 3.1.0 to 3.1.1. Everything seems fine when you're in as an administraor (except commenting is gone) but when you go in as a guest or anyone else, you are denied access to the vBGarage. In the admincp, we can give the usergroups' access to vbgarage and all of them still have it, however, under vboptions, the vbgarage option is no longer listed.
Any idea what could be wrong?
DaveLogic
04-22-2004, 05:21 AM
The global phrase group is included by default, there's no reason to add it to the $phrasegroups(); array. Also, what variable are you using for the userid? If you're calling this in vbgarage_viewgarage template, you'll need to use $data[userid]
Many thanks Magnus.....working perfectly now...
magnus
04-22-2004, 10:02 AM
We just upgraded our VB 3.0.0 install to VB 3.0.1 and then upgraded our VB Garage from 3.1.0 to 3.1.1. Everything seems fine when you're in as an administraor (except commenting is gone) but when you go in as a guest or anyone else, you are denied access to the vBGarage. In the admincp, we can give the usergroups' access to vbgarage and all of them still have it, however, under vboptions, the vbgarage option is no longer listed.
Any idea what could be wrong?
If the vBGarage options are no longer listed in the AdminCP, then the 'settings' database entires are no longer there. The upgrade seems to have maybe reverted (or even deleted) these entries. You'll need to re-add the 'settings' portions.
DaveLogic
04-22-2004, 11:05 AM
Having the User's latest Garage uploads in the User Profile would be a touch IMO
Shahrum
04-22-2004, 04:39 PM
If the vBGarage options are no longer listed in the AdminCP, then the 'settings' database entires are no longer there. The upgrade seems to have maybe reverted (or even deleted) these entries. You'll need to re-add the 'settings' portions.
Thank you! That worked! :up:
magnus
04-22-2004, 04:59 PM
Just an update. v3.2.0 is coming along nicely. There's much more AdminCP control over how vBGarage acts now. I'm also devising a variable template engine, which will sort of allow you to design HOW you want the users detail input to be displayed. The template will be populated by the users input, rather than having the user design the "template" themselves, as they do now.
I'm also considering making some of the variables more 'global', so you can call them rather easily from other portions of the site. For instance, if you wanted to call the "Latest Uploads" from FORUMHOME, etc. Though, this is secondary, at the moment. :)
Oh, and there is definately going to be a need for database restructuring in v3.2.0. I'm hoping I can devise a "migration"-type script. Otherwise, there's going to be a little (read: repititious/tedious) work involved for the admin (read: YOU!). :)
If anyone here is a SQL genius, and would like to help with this migration-script, shoot me a PM. I'm decent with SQL, but by no means do I know it inside and out (yet).
Shahrum
04-22-2004, 06:12 PM
Can't wait to see how this comes along. Our Mustang network is definately making good use out of this program and very soon we're like to make a decent contribution to you in thanks of your great program and support. -- http://www.mustang-forums.com
White Knight
04-22-2004, 06:16 PM
Just an update. v3.2.0 is coming along nicely. There's much more AdminCP control over how vBGarage acts now. I'm also devising a variable template engine, which will sort of allow you to design HOW you want the users detail input to be displayed. The template will be populated by the users input, rather than having the user design the "template" themselves, as they do now.
I'm also considering making some of the variables more 'global', so you can call them rather easily from other portions of the site. For instance, if you wanted to call the "Latest Uploads" from FORUMHOME, etc. Though, this is secondary, at the moment. :)
Oh, and there is definately going to be a need for database restructuring in v3.2.0. I'm hoping I can devise a "migration"-type script. Otherwise, there's going to be a little (read: repititious/tedious) work involved for the admin (read: YOU!). :)
If anyone here is a SQL genius, and would like to help with this migration-script, shoot me a PM. I'm decent with SQL, but by no means do I know it inside and out (yet).
Well I am glad I dropped by to see how this is coming along.. Good work my friend. I for one am still running my customized Sportbike version with no problems at all.
I just had a thought.. if your going to have it so people can design how it looks for people.. maybe a search engine in this would be nice.. so there location being in IL can be found or FL or so on.. Just a idea.. dont know how hard it would be to add in. This way there can be a "Owners Registry" intergrated with it.
Keep up the good work my friend.. top notch
GoTTi
04-23-2004, 04:08 AM
when viewing the garage, instead of clicking on a thumbnail and it going to the users garage, can this link be made to popup the image?
also, this is a big step to a photo gallery for vb. anyway to make this a official gallery, instead of a car garage...with maybe editing the informtion that is inputed on images, changing the upload area through the user cpanel.
also, can multiple images be uploaded @ once instead of 1 @ a time.
also, doing "vbgarage.php?do=view&id=1" or any users garage, the pictures are aligned right, is there a way to just make them center when not having text in the "Text"field.
The ideas/throughts i got here are to make this more of a gallery for users...
magnus
04-23-2004, 10:04 AM
when viewing the garage, instead of clicking on a thumbnail and it going to the users garage, can this link be made to popup the image?
also, this is a big step to a photo gallery for vb. anyway to make this a official gallery, instead of a car garage...with maybe editing the informtion that is inputed on images, changing the upload area through the user cpanel.
also, can multiple images be uploaded @ once instead of 1 @ a time.
also, doing "vbgarage.php?do=view&id=1" or any users garage, the pictures are aligned right, is there a way to just make them center when not having text in the "Text"field.
The ideas/throughts i got here are to make this more of a gallery for users...
The answer to everything you asked is, yes. As I've stated before, over and over ad nauseum, this is completely template and phrase based. You can make it look and act almost however you feel like. It's just a simple matter of designing the templates differently.
Envy-UK
04-23-2004, 10:08 AM
Any plans to have the images use GD 1.6 to display?
Is there a way around using GD 2.0 (other than simply using a scaled down version of the image)?
My host are taking their time to upgrade.
magnus
04-23-2004, 11:16 AM
Any plans to have the images use GD 1.6 to display?
Is there a way around using GD 2.0 (other than simply using a scaled down version of the image)?
My host are taking their time to upgrade.
In vbgarage.php, replace all instances of CreateImageTrueColor with CreateImage.
GoTTi
04-23-2004, 05:35 PM
2 things:
1. i would like to just have it where users can upload image, removing the required fields in the "vbgarage.php?do=editgarage", how can i do this?
2. when viewing "vbgarage.php?do=list", be better if the thumbnails on here would be made to do the popup to the image instead of going to the uploaders gallery. how can this be done.
magnus
04-23-2004, 09:25 PM
2 things:
1. i would like to just have it where users can upload image, removing the required fields in the "vbgarage.php?do=editgarage", how can i do this?
2. when viewing "vbgarage.php?do=list", be better if the thumbnails on here would be made to do the popup to the image instead of going to the uploaders gallery. how can this be done.
https://vborg.vbsupport.ru/showpost.php?p=504573&postcount=513
eoc_Jason
04-24-2004, 12:48 AM
Here's a way to do the thumbnails using vB's function for creating the thumbnails in threads... You have to write a temp file for the image function to work from, not a big deal... I used all the vB variables for the temp directory and such.
if (!empty($_FILES['src']['tmp_name'])) {
require_once('./includes/functions_image.php');
$name = $_FILES['src']['name'];
$data = addslashes(fread(fopen($_FILES['src']['tmp_name'], "r"), filesize($_FILES['src']['tmp_name'])));
$type = $_FILES['src']['type'];
$filename = tempnam(ini_get('upload_tmp_dir'), 'tmpimg');
$fp = @fopen($filename, 'wb');
@fwrite($fp, stripslashes($data));
@fclose($fp);
$attachment[tmp_name] = $filename;
$attachment[name] = $name;
$thumb = addslashes(fetch_thumbnail_from_image($attachment, $imageerror));
@unlink($filename);
// insert into DB table here...
}
dede1
04-24-2004, 06:16 AM
@magnus
I have from vB 3.0.0 to vB 3.0.1 update now get I this error message and can
however nothing find:
Fatal error: Call to undefined function: can_administer() in /var/www/html/Board/vbgarage.php on line 50
Envy-UK
04-24-2004, 07:44 AM
Here's a way to do the thumbnails using vB's function for creating the thumbnails in threads... You have to write a temp file for the image function to work from, not a big deal... I used all the vB variables for the temp directory and such.
if (!empty($_FILES['src']['tmp_name'])) {
require_once('./includes/functions_image.php');
$name = $_FILES['src']['name'];
$data = addslashes(fread(fopen($_FILES['src']['tmp_name'], "r"), filesize($_FILES['src']['tmp_name'])));
$type = $_FILES['src']['type'];
$filename = tempnam(ini_get('upload_tmp_dir'), 'tmpimg');
$fp = @fopen($filename, 'wb');
@fwrite($fp, stripslashes($data));
@fclose($fp);
$attachment[tmp_name] = $filename;
$attachment[name] = $name;
$thumb = addslashes(fetch_thumbnail_from_image($attachment, $imageerror));
@unlink($filename);
// insert into DB table here...
}
A little more guidance with this would be great. :)
magnus
04-24-2004, 12:58 PM
@magnus
I have from vB 3.0.0 to vB 3.0.1 update now get I this error message and can
however nothing find:
Fatal error: Call to undefined function: can_administer() in /var/www/html/Board/vbgarage.php on line 50
Upgrading vB version shouldn't have anything to do with it, either download the latest vBGarage PHP file or see this link:
https://vborg.vbsupport.ru/showpost.php?p=499626&postcount=347
magnus
04-24-2004, 01:12 PM
Here's a way to do the thumbnails using vB's function for creating the thumbnails in threads... You have to write a temp file for the image function to work from, not a big deal... I used all the vB variables for the temp directory and such.
if (!empty($_FILES['src']['tmp_name'])) {
require_once('./includes/functions_image.php');
$name = $_FILES['src']['name'];
$data = addslashes(fread(fopen($_FILES['src']['tmp_name'], "r"), filesize($_FILES['src']['tmp_name'])));
$type = $_FILES['src']['type'];
$filename = tempnam(ini_get('upload_tmp_dir'), 'tmpimg');
$fp = @fopen($filename, 'wb');
@fwrite($fp, stripslashes($data));
@fclose($fp);
$attachment[tmp_name] = $filename;
$attachment[name] = $name;
$thumb = addslashes(fetch_thumbnail_from_image($attachment, $imageerror));
@unlink($filename);
// insert into DB table here...
}
Hah, beat me to it. I have this implemented in v3.2.0. :)
BTW, you have a PM.
dede1
04-24-2004, 02:10 PM
magnus
thanks :)
eoc_Jason
04-24-2004, 05:04 PM
You can make a little icon (or link, whatever you want) and have it display on the postbits template if they have created a profile.
Just edit showthread.php & find the big query around line 844, add your 'vbgarage_users.userid' to the SELECT part, and add a 'LEFT JOIN " . TABLE_PREFIX . "vbgarage_users AS vbgarage_users ON(vbgarage_users.userid = user.userid)
Then in your postbit (or postbit_legacy) template, you can add something like:
<if condition="$post['vbgarage']"><a href="vbgarage.php?$session[sessionurl]do=view&id=$post[userid]">(image or text here)</a></if>
That way as people read threads, they can go directly to that person's page...
magnus
04-24-2004, 05:19 PM
You can make a little icon (or link, whatever you want) and have it display on the postbits template if they have created a profile.
Just edit showthread.php & find the big query around line 844, add your 'vbgarage_users.userid' to the SELECT part, and add a 'LEFT JOIN " . TABLE_PREFIX . "vbgarage_users AS vbgarage_users ON(vbgarage_users.userid = user.userid)
Then in your postbit (or postbit_legacy) template, you can add something like:
<if condition="$post['vbgarage']"><a href="vbgarage.php?$session[sessionurl]do=view&id=$post[userid]">(image or text here)</a></if>
That way as people read threads, they can go directly to that person's page...
lol, you're taking all the fun out of v3.2.0. :) j/k, keep up the good work. ;)
Shahrum
04-24-2004, 08:27 PM
You can make a little icon (or link, whatever you want) and have it display on the postbits template if they have created a profile.
Just edit showthread.php & find the big query around line 844, add your 'vbgarage_users.userid' to the SELECT part, and add a 'LEFT JOIN " . TABLE_PREFIX . "vbgarage_users AS vbgarage_users ON(vbgarage_users.userid = user.userid)
Then in your postbit (or postbit_legacy) template, you can add something like:
<if condition="$post['vbgarage']"><a href="vbgarage.php?$session[sessionurl]do=view&id=$post[userid]">(image or text here)</a></if>
That way as people read threads, they can go directly to that person's page...
Hey, I tried to use your SQL code and while the field I added to the select statement works, the LEFT clause kept giving me errors... would you mind just copy/pasting the full SQL...? Thanks.
Shahrum
04-24-2004, 08:42 PM
Here's my code fyi...
$getpostids = $DB_site->query("
SELECT postid, 'vbgarage_users.userid', NOT ISNULL(deletionlog.primaryid) AS isdeleted
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
WHERE threadid = $threadid AND visible = 1
ORDER BY dateline $postorder
");
magnus
04-24-2004, 08:53 PM
Here's my code fyi...
$getpostids = $DB_site->query("
SELECT postid, 'vbgarage_users.userid', NOT ISNULL(deletionlog.primaryid) AS isdeleted
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
WHERE threadid = $threadid AND visible = 1
ORDER BY dateline $postorder
");
Yikes! You're editing the wrong variable/query. You need to be modifying the $posts variable/query. Something like this:
$posts = $DB_site->query("
SELECT
vbgarage_users.userid, post.*, post.username AS postusername, post.ipaddress AS ip,
user.*, userfield.*, usertextfield.*,
" . iif($forum['allowicons'], 'icon.title as icontitle, icon.iconpath,') . "
" . iif($vboptions['avatarenabled'], 'avatar.avatarpath, NOT ISNULL(customavatar.avatardata) AS hascustomavatar, customavatar.dateline AS avatardateline,') . "
" . iif($vboptions['reputationenable'], 'level,') . "
" . iif(!$deljoin, 'NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,') . "
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason,
post_parsed.pagetext_html, post_parsed.hasimages,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
" . iif(!can_moderate(), $datastore['hidprofilecache']) . "
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = post.userid)
LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
" . iif($forum['allowicons'], "LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = post.iconid)") . "
" . iif($vboptions['avatarenabled'], "LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)") .
iif($vboptions['reputationenable'], " LEFT JOIN " . TABLE_PREFIX . "reputationlevel AS reputationlevel ON(user.reputationlevelid = reputationlevel.reputationlevelid)") . "
" . iif(!$deljoin, "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND deletionlog.type = 'post')") . "
LEFT JOIN " . TABLE_PREFIX . "editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN " . TABLE_PREFIX . "post_parsed AS post_parsed ON(post_parsed.postid = post.postid)
LEFT JOIN " . TABLE_PREFIX . "vbgarage_users AS vbgarage_users ON(vbgarage_users.userid = user.userid)
WHERE $postids
ORDER BY dateline $postorder
");
Shahrum
04-24-2004, 09:25 PM
Great, the query works... but no links are showing up for the users who have garages.
from postbit_legacy:
<if condition="$post['vbgarage']"><br><div><a href="vbgarage.php?$session[sessionurl]do=view&id=$post[userid]">Check Out My Ride!</a></div></if>
Shahrum
04-24-2004, 09:29 PM
I think something's wrong with the variable used in the if statement because w/o the if statement, it works fine!
Shahrum
04-24-2004, 09:38 PM
And also... is there a way that in the template, instead of "Check out my ride" I can be like "My Ride: 1999 Ford Mustang" and get that info from the info I put in teh vbgarage?
Rick Sample
04-24-2004, 10:25 PM
Just an update. v3.2.0 is coming along nicely. There's much more AdminCP control over how vBGarage acts now. I'm also devising a variable template engine, which will sort of allow you to design HOW you want the users detail input to be displayed. The template will be populated by the users input, rather than having the user design the "template" themselves, as they do now.
I'm also considering making some of the variables more 'global', so you can call them rather easily from other portions of the site. For instance, if you wanted to call the "Latest Uploads" from FORUMHOME, etc. Though, this is secondary, at the moment. :)
Oh, and there is definately going to be a need for database restructuring in v3.2.0. I'm hoping I can devise a "migration"-type script. Otherwise, there's going to be a little (read: repititious/tedious) work involved for the admin (read: YOU!). :)
If anyone here is a SQL genius, and would like to help with this migration-script, shoot me a PM. I'm decent with SQL, but by no means do I know it inside and out (yet).
I'm just wondering when this new one will come out and whats its new features?
If I can make a suggestion.....it would be cool that you would be able to sort by year of car, make, model, newest car, etc. When our sites get huge and have thousands of cars, it would be hard to sort out all the ones that you want. For example if you loved SVT's, you wouldn't want to look at the V6's and so on :)
Also, a feature that would be cool would be some kind of a rating system, something like cardomain uses. You know you can rate everything on their ride like the overall appearance, sound, performance, etc.
I think those would be some cool freatures. But hey, I'm lovin this hack so far, one of the best in my books!
magnus
04-24-2004, 11:13 PM
I'm just wondering when this new one will come out and whats its new features?
If I can make a suggestion.....it would be cool that you would be able to sort by year of car, make, model, newest car, etc. When our sites get huge and have thousands of cars, it would be hard to sort out all the ones that you want. For example if you loved SVT's, you wouldn't want to look at the V6's and so on :)
Also, a feature that would be cool would be some kind of a rating system, something like cardomain uses. You know you can rate everything on their ride like the overall appearance, sound, performance, etc.
I think those would be some cool freatures. But hey, I'm lovin this hack so far, one of the best in my books!
Yes, sorting is implemented. At the momemt, I do have rating, however it's not what I would consider ready to be released. So, I'm not sure if it'll be out in v3.2.0. Possibly as an upgrade.
Keep in mind, v3.2.0 is a major upgrade. I still have to shift alot of focus on (hopefully) developing a migration script for your current database. I'll feel terrible if people are forced to start their databases from scratch.
magnus
04-24-2004, 11:17 PM
I think something's wrong with the variable used in the if statement because w/o the if statement, it works fine!
Use this query instead:
$posts = $DB_site->query("
SELECT
post.*, vbgarage_users.*, vbgarage_users.userid AS vbgarage, post.username AS postusername, post.ipaddress AS ip,
user.*, userfield.*, usertextfield.*,
" . iif($forum['allowicons'], 'icon.title as icontitle, icon.iconpath,') . "
" . iif($vboptions['avatarenabled'], 'avatar.avatarpath, NOT ISNULL(customavatar.avatardata) AS hascustomavatar, customavatar.dateline AS avatardateline,') . "
" . iif($vboptions['reputationenable'], 'level,') . "
" . iif(!$deljoin, 'NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,') . "
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason,
post_parsed.pagetext_html, post_parsed.hasimages,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
" . iif(!can_moderate(), $datastore['hidprofilecache']) . "
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = post.userid)
LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
" . iif($forum['allowicons'], "LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = post.iconid)") . "
" . iif($vboptions['avatarenabled'], "LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)") .
iif($vboptions['reputationenable'], " LEFT JOIN " . TABLE_PREFIX . "reputationlevel AS reputationlevel ON(user.reputationlevelid = reputationlevel.reputationlevelid)") . "
" . iif(!$deljoin, "LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND deletionlog.type = 'post')") . "
LEFT JOIN " . TABLE_PREFIX . "editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN " . TABLE_PREFIX . "post_parsed AS post_parsed ON(post_parsed.postid = post.postid)
LEFT JOIN " . TABLE_PREFIX . "vbgarage_users AS vbgarage_users ON(vbgarage_users.userid = user.userid)
WHERE $postids
ORDER BY dateline $postorder
");
And also... is there a way that in the template, instead of "Check out my ride" I can be like "My Ride: 1999 Ford Mustang" and get that info from the info I put in teh vbgarage?
Then, use this in your postbit:
<if condition="$post['vbgarage']"><br><div><a href="vbgarage.php?$session[sessionurl]do=view&id=$post[userid]">My Ride: $post[year] $post[make] $post[model]</a></div></if>
That should do it! ;)
spence2
04-25-2004, 01:51 AM
Since 3.2 will be a major upgrade, for those of us who are holding off installing until it's release...IF WE ALL SWEAR NOT TO HOLD YOU TO IT UNDER PENALTY OF HOT BAMBOOSHOOTS STUCK UNDER OUR FINGERNAILS...could you give us a guesstimate on when you might release 3.2? Days...or weeks?
Thanks.
magnus
04-25-2004, 02:52 AM
Since 3.2 will be a major upgrade, for those of us who are holding off installing until it's release...IF WE ALL SWEAR NOT TO HOLD YOU TO IT UNDER PENALTY OF HOT BAMBOOSHOOTS STUCK UNDER OUR FINGERNAILS...could you give us a guesstimate on when you might release 3.2? Days...or weeks?
Thanks.
Well, provided your prior disclaimer holds true.. about a week. I'm shooting for next weekend (possibly sooner). I was trying for this weekend, except I've been out of town in training this weekend. /sigh
Rick Sample
04-25-2004, 03:37 AM
Well, provided your prior disclaimer holds true.. about a week. I'm shooting for next weekend (possibly sooner). I was trying for this weekend, except I've been out of town in training this weekend. /sigh
We aren't in any hurry, just make it easy to install for us Newbes, and we won't mind :)
spence2
04-25-2004, 06:12 AM
Won't mind at all.
Thanks!
joeychgo
04-25-2004, 10:03 AM
Geeze, I go away for a few days and there is all this now.........Whew.
Question, has anyone come up with how to place the "latest uploads" panel on other pages, such as the forum home or vba page?
magnus
04-25-2004, 12:24 PM
Geeze, I go away for a few days and there is all this now.........Whew.
Question, has anyone come up with how to place the "latest uploads" panel on other pages, such as the forum home or vba page?
Just place the following code in the respective PHP file:
$result_latest = $DB_site->query("
SELECT vbgarage_images.*
FROM " . TABLE_PREFIX . "vbgarage_images
ORDER BY vbgarage_images.id DESC
LIMIT 5
");
while ($latest = $DB_site->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbgarage_latestbits') . '";');
}
$DB_site->free_result($result_latest);
Be sure to add the following line to the $globaltemplates(); array, too.
'vbgarage_latestbits',
Then, just add $latestbits into the template you want it displayed in.
joeychgo
04-25-2004, 12:25 PM
lets say the forum home page --- ??? can you point me in the right direction? im totally lost now........
magnus
04-25-2004, 12:32 PM
lets say the forum home page --- ??? can you point me in the right direction? im totally lost now........
In index.php:
FIND:
// ### WELCOME MESSAGE #################################################
Add ABOVE:
// START VBGARAGE HACK
// ### VBGARAGE ################################################## #######
$result_latest = $DB_site->query("
SELECT vbgarage_images.*
FROM " . TABLE_PREFIX . "vbgarage_images
ORDER BY vbgarage_images.vbgarageid DESC
LIMIT 5
");
while ($latest = $DB_site->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbgarage_latestbits') . '";');
}
$DB_site->free_result($result_latest);
// END VBGARAGE HACK
FIND:
'forumhome_subforumseparator_post'
);
REPLACE with:
'forumhome_subforumseparator_post',
'vbgarage_latestbits'
);
In template FORUMHOME:
FIND:
$navbar
Add BELOW:
<!-- START VBGARAGE HACK -->
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="5"><b>$vbphrase[vbgarage_latest_uploads]</b></td>
</tr>
<tr>
$latestbits
</tr>
</table>
</td></tr></table>
<!-- END VBGARAGE HACK -->
That should do it.
joeychgo
04-25-2004, 12:33 PM
Thanks!!!!!!! your the best!
Ugh --------- I cant find 'forumhome_subforumseparator_post'
); in the index file, right???????????????
joeychgo
04-25-2004, 01:38 PM
ok, I found it --- im running vba so index really means forum.php to me
BUT........... when I did everything, I got this
Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT vbgarage_images.*
FROM vbgarage_images
ORDER BY vbgarage_images.imageid DESC
LIMIT 5
mysql error: Unknown column 'vbgarage_images.imageid' in 'order clause'
mysql error number: 1054
SVTOA
04-25-2004, 01:57 PM
ok, I found it --- im running vba so index really means forum.php to me
BUT........... when I did everything, I got this
Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT vbgarage_images.*
FROM vbgarage_images
ORDER BY vbgarage_images.imageid DESC
LIMIT 5
mysql error: Unknown column 'vbgarage_images.imageid' in 'order clause'
mysql error number: 1054
Joey, you said "forum home page" so your VBadvanced has nothing to do with this- in this case "index.php" refers to the index.php in your vb3 root directory, not your vbadvanced index.php.
SVTOA
04-25-2004, 01:59 PM
It sounds like you edited the wrong file, hence the database error. Revert or restore the file you edited and then apply the edits to /vbulletin/index.php (where "vbulletin" refers to your forums root directory- whatever that may be)
Shahrum
04-25-2004, 02:41 PM
Thanks Magnus, your code worked great!
Xabbu
04-25-2004, 03:09 PM
A couple Questions:
1. Is it possible to rename the vbgarage.php file to something else without a great deal of work? My forum isn't about cars...
2. How do I change the vBGarage phrase for the breadcrumb template? There doesn't seem to be a phrase for that somewhere.
GoTTi
04-25-2004, 03:09 PM
magnus i dont know what im looking for......
i would like to just have it where users can upload image, removing the required fields in the "vbgarage.php?do=editgarage", how can i do this?
cuz i did remove the options, but when i go to upload a image, after i submit the attachment, i get a error:
"Please complete all the fields. Press the back button, correct the problem then try again."
and those fields arent there nemore.
flstreetscene
04-25-2004, 03:12 PM
Magnus,
I'd like to add a simple image within another table above the "Latest Uploads" one on the Garage main page (and preferably above the rest of the pages). What would I edit?
Thanks.
Envy-UK
04-25-2004, 06:38 PM
Here's a way to do the thumbnails using vB's function for creating the thumbnails in threads... You have to write a temp file for the image function to work from, not a big deal... I used all the vB variables for the temp directory and such.
if (!empty($_FILES['src']['tmp_name'])) {
require_once('./includes/functions_image.php');
$name = $_FILES['src']['name'];
$data = addslashes(fread(fopen($_FILES['src']['tmp_name'], "r"), filesize($_FILES['src']['tmp_name'])));
$type = $_FILES['src']['type'];
$filename = tempnam(ini_get('upload_tmp_dir'), 'tmpimg');
$fp = @fopen($filename, 'wb');
@fwrite($fp, stripslashes($data));
@fclose($fp);
$attachment[tmp_name] = $filename;
$attachment[name] = $name;
$thumb = addslashes(fetch_thumbnail_from_image($attachment, $imageerror));
@unlink($filename);
// insert into DB table here...
}
Jason or Magnus,
Where would I need to add this code?
joeychgo
04-26-2004, 01:22 AM
Not true svtoa. in my case, BOTH are installed in the same directory (it was the only way I could get them to work at the time) the index.php in my root directory is to VBA and the vb3 index was renamed to Forum.php. The index doesnt have the same coding as listed here, only the forum.php does.
Regardless, I made all the changes as specified, and got the DB error. how do i fix it?
Joey, you said "forum home page" so your VBadvanced has nothing to do with this- in this case "index.php" refers to the index.php in your vb3 root directory, not your vbadvanced index.php.
dede1
04-26-2004, 10:06 AM
My user have no access to the garage that can now lie?
Right ones I you gave
MrNase
04-26-2004, 11:55 AM
Some questions before i download and donate ;)
- How easy can i change it from a 'garage' to a user gallery?
I plan to do a website where young athlets could search for sponsors and so on :)
With your hack the users can describe themselves and upload pictures :)
- Did you use phrases? I would need to translate it to german :(
- Did you use templates for everything or would i need to edit the files to translate, modify, ...?
- when do you plan to release a new version? Not that i start to modify it and you release a new version ;)
kind regards,
dominik
spence2
04-26-2004, 02:33 PM
MrNASE, all of your questions have already been answered. You will find it all by reading what Magnus has previously posted.
MrNase
04-26-2004, 02:38 PM
https://vborg.vbsupport.ru/showpost.php?p=504573&postcount=513 :D
* MrNase has an
Addition: parse smilies in comments.
Open vbgarage.php and find:
$comment['dateline'] = vbdate($vboptions['dateformat'],$comment['dateline'],true);
eval('$commentbits .= "' . fetch_template('vbgarage_commentbits') . '";');
and replace it with
$comment['dateline'] = vbdate($vboptions['dateformat'],$comment['dateline'],true);
$comment['pagetext'] = parse_bbcode2($comment['pagetext'],'0','0','1','0','0','1');
eval('$commentbits .= "' . fetch_template('vbgarage_commentbits') . '";');
Replace
'0','0','1','0','0','1'
with
'0','0','1','1','0','1'
if bbcode should also be parsed. Have fun with it :)
I successfuly installed it.
Now I want to know how I can change it...so it's like...for Video Games, not ..Cars :nervous:
Rick Sample
04-26-2004, 05:16 PM
Geeze, I go away for a few days and there is all this now.........Whew.
Question, has anyone come up with how to place the "latest uploads" panel on other pages, such as the forum home or vba page?
Did you do this yet or are you going to? This might be something cool to try, but I don't know if it will take away from the rest of the forum or not. If anyone knows anyone who has done this please post a link to their site :)
Thanks,
MrNase
04-26-2004, 05:33 PM
Iam going to place the latest upload + latest entry on my own mainpage that i wrote :)
Don't know how yet but i guss i'll figure that out ;)
SVTOA
04-26-2004, 05:39 PM
I have an idea for this hack that users of Photopost will REALLY like. I want to see if I can get my idea to work first, but if it does this will be very cool. Stay tuned. :D
msimplay
04-26-2004, 05:42 PM
Vbgarage is excellent i am now wondering maybe it would be better if the garage had a wyziwyg interface or user choosable via usercp
magnus
04-26-2004, 07:36 PM
Did you do this yet or are you going to? This might be something cool to try, but I don't know if it will take away from the rest of the forum or not. If anyone knows anyone who has done this please post a link to their site :)
Thanks,
I posted the code for this a couple pages back.
magnus
04-26-2004, 07:37 PM
Vbgarage is excellent i am now wondering maybe it would be better if the garage had a wyziwyg interface or user choosable via usercp
I'm working on a WYSIWYG editor. If/When it's finished, it will be tied in with the UserCP.
magnus
04-26-2004, 07:37 PM
I successfuly installed it.
Now I want to know how I can change it...so it's like...for Video Games, not ..Cars :nervous:
Many people have modified it for their forums, just edit the phrases/templates.
Also, please click install! :)
magnus
04-26-2004, 07:38 PM
Magnus,
I'd like to add a simple image within another table above the "Latest Uploads" one on the Garage main page (and preferably above the rest of the pages). What would I edit?
Thanks.
Please see my previous reply to you in this thread.
magnus
04-26-2004, 07:40 PM
ok, I found it --- im running vba so index really means forum.php to me
BUT........... when I did everything, I got this
Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT vbgarage_images.*
FROM vbgarage_images
ORDER BY vbgarage_images.imageid DESC
LIMIT 5
mysql error: Unknown column 'vbgarage_images.imageid' in 'order clause'
mysql error number: 1054
Err.. that's my fault. I listed code for vb3.2.0. I forgot, you don't have vbgarage_images.imageid. Woops! I'll modify the code.
msimplay
04-26-2004, 07:42 PM
I'm working on a WYSIWYG editor. If/When it's finished, it will be tied in with the UserCP.
thank you your reply is much appreciated :)
Many people have modified it for their forums, just edit the phrases/templates.
Also, please click install! :)
Ok thanks!
* JaNa Clicks Install
EDIT:
I've edited the phrases and templates until they make me happy...but whenever I try to fill it in, and submit..it says I have to fill in all the Fields.
I don't get it though, because I removed almost all the fields except one.
This is what It looks like right now..
GoTTi
04-27-2004, 12:54 AM
jana im having same issue...
magnus u didnt answer my quesiton posted @
https://vborg.vbsupport.ru/showpost.php?p=505271&postcount=549
magnus
04-27-2004, 01:31 AM
jana im having same issue...
magnus u didnt answer my quesiton posted @
https://vborg.vbsupport.ru/showpost.php?p=505271&postcount=549
Because it's been answered before. The answer you seek lies in vbgarage.php.
if (empty($year) OR empty($make))
{
eval (print_standard_error('error_requiredfields'));
}
SVTOA
04-27-2004, 01:38 AM
What some of you need to do is use the "SEARCH THIS THREAD" option before you post redundant questions...
GoTTi
04-27-2004, 04:01 AM
i removed
eval (print_standard_error('error_requiredfields'));
and it the error went away...
thats all i had to do???not gunna have any future problems down the road am i?
will_lean
04-27-2004, 04:15 AM
Hi
does this hack conflict with any other hacks that any knows about?
id like to install this but im running the arcade and petz.
Can i change this to suit my site, permitted i keep the powered by of course?
Id like to change the car feilds to something different.
thank for a great hack
joeychgo
04-27-2004, 05:47 AM
Bad Magnus Bad...
LOL J/k
Err.. that's my fault. I listed code for vb3.2.0. I forgot, you don't have vbgarage_images.imageid. Woops! I'll modify the code.
joeychgo
04-27-2004, 05:57 AM
Did you do this yet or are you going to? This might be something cool to try, but I don't know if it will take away from the rest of the forum or not. If anyone knows anyone who has done this please post a link to their site :)
Thanks,
go here
https://vborg.vbsupport.ru/showpost.php?p=505238&postcount=542
gibgib
04-27-2004, 08:13 AM
Our board runs the arcade, thread/ post since last visit & vb garage in harmony.
Hi
does this hack conflict with any other hacks that any knows about?
id like to install this but im running the arcade and petz.
Can i change this to suit my site, permitted i keep the powered by of course?
Id like to change the car feilds to something different.
thank for a great hack
dede1
04-27-2004, 08:18 AM
White someone why except me no access rights has?
What is there now wrong?
DaveLogic
04-27-2004, 08:36 AM
Hi
does this hack conflict with any other hacks that any knows about?
id like to install this but im running the arcade and petz.
Can i change this to suit my site, permitted i keep the powered by of course?
Id like to change the car feilds to something different.
thank for a great hack
I'm running Vbgarage, Petz, Arcade...in fact , about 18 hacks with no conflicts....,
MrNase
04-27-2004, 10:12 AM
White someone why except me no access rights has?
What is there now wrong?
Hey Dede1, bist du eventuell in einer Gruppe die nicht darauf zugreifen kann?
Bei mir l?uft er ohne Probleme :)
gruss,
Dominik
dede1
04-27-2004, 12:44 PM
Hi MrNase
leider alle Gruppen ausser mir ,die nicht zugreifen können vor dem Update von 3.0.0 auf 3.0.1 ging das fehlerfrei, daher verstehe ich das nicht.
Und ich weiß nicht wo ich suchen soll
magnus
04-27-2004, 01:36 PM
Hi
does this hack conflict with any other hacks that any knows about?
id like to install this but im running the arcade and petz.
No.
Can i change this to suit my site, permitted i keep the powered by of course?
Yes.
thank for a great hack
You're welcome.
magnus
04-27-2004, 01:39 PM
Bad Magnus Bad...
LOL J/k
Code modified. See the original post. Or, just change vbgarage_images.imageid to vbgarage_images.vbgarageid. :)
MrNase
04-27-2004, 01:52 PM
Hi MrNase
leider alle Gruppen ausser mir ,die nicht zugreifen k?nnen vor dem Update von 3.0.0 auf 3.0.1 ging das fehlerfrei, daher verstehe ich das nicht.
Und ich wei? nicht wo ich suchen soll Dann kann es an ja nur an der neuen vB Version liegen :(
Oder hast du eventuell ne Datei ?berschrieben?!
magnus:
dede1 has some problems. He can't access the vbgarage but his usergroup setting is set to 'can enter vbgarage'. Everything worked fine for him but than he updated from vB 3.0.0 to vB 3.0.1 and now it's not working anymore.
Can you look into this please?
Rick Sample
04-27-2004, 02:12 PM
1 last suggestion for the new VBgarage your developing magnus.
I'm more of a show kind of guy than a performance kind of guy. I imagine their are many others, too. Anywase, lets say if our site has been up for years with vbgarage and we have like over 2000 members cars. I'm sure not a single person is going to click each and every car. Most, they want to see a nice exterior, no matter what the engine size is. Is their anyway, in the new version, to like put 1 thumbnail view of the users most current upload right beside their username or something? This will enable people to look for the best rides without having to click each and every one :) :)
let us know man! :)
MrNase
04-27-2004, 02:25 PM
1 last suggestion for the new VBgarage your developing magnus.
I'm more of a show kind of guy than a performance kind of guy. I imagine their are many others, too. Anywase, lets say if our site has been up for years with vbgarage and we have like over 2000 members cars. I'm sure not a single person is going to click each and every car. Most, they want to see a nice exterior, no matter what the engine size is. Is their anyway, in the new version, to like put 1 thumbnail view of the users most current upload right beside their username or something? This will enable people to look for the best rides without having to click each and every one :) :)
let us know man! :)
Should the user decide which image is displayed as thumbnail? Otherwise there would be the problem which picture to take. :(
I was thinking about this feature too :)
magnus
04-27-2004, 02:55 PM
1 last suggestion for the new VBgarage your developing magnus.
I'm more of a show kind of guy than a performance kind of guy. I imagine their are many others, too. Anywase, lets say if our site has been up for years with vbgarage and we have like over 2000 members cars. I'm sure not a single person is going to click each and every car. Most, they want to see a nice exterior, no matter what the engine size is. Is their anyway, in the new version, to like put 1 thumbnail view of the users most current upload right beside their username or something? This will enable people to look for the best rides without having to click each and every one :) :)
let us know man! :)
Well, technically, that can be done already with a couple edits. However, I'll consider making it configurable in 3.2.0.
magnus
04-27-2004, 02:56 PM
Dann kann es an ja nur an der neuen vB Version liegen :(
Oder hast du eventuell ne Datei ?berschrieben?!
magnus:
dede1 has some problems. He can't access the vbgarage but his usergroup setting is set to 'can enter vbgarage'. Everything worked fine for him but than he updated from vB 3.0.0 to vB 3.0.1 and now it's not working anymore.
Can you look into this please?
vB3.0.1 has obviously removed/modified some settings. He may need to manually run the vBGarage 'settings' SQL queries.
will_lean
04-27-2004, 03:00 PM
Hi
to edit this to suit my forum can i edit the installer file so it installs the new phrases?
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_text', 'Text', 1)
");
can i change the above sql insert from vbgarage_text to member_info etc to customize it or will this mess with the installer?
thanks again.
Envy-UK
04-27-2004, 03:29 PM
I'm still waiting to find out how I can use the vB function to provide me with thumbnails, I'm guessing my requests have been lost in the vast amount of questions. :)
magnus
04-27-2004, 03:29 PM
Hi
to edit this to suit my forum can i edit the installer file so it installs the new phrases?
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "phrase (languageid, varname, text, phrasetypeid) VALUES(0, 'vbgarage_text', 'Text', 1)
");
can i change the above sql insert from vbgarage_text to member_info etc to customize it or will this mess with the installer?
thanks again.
No, you cannot change the "vbgarage_text" unless you edit the script/templates as well to reflect the change. However, you can edit the "Text", to have that phrase return whatever you like. Do that through the Phrase Manager in the AdminCP. There's really no need to change the variable names, since the users never see them. It's just called by $vbphrase[vbgarage_text]. It will return whatever you define it to.
magnus
04-27-2004, 03:31 PM
I'm still waiting to find out how I can use the vB function to provide me with thumbnails, I'm guessing my requests have been lost in the vast amount of questions. :)
No, not lost. It's just that I don't want to get involved supporting that, because it's more than just adding that code snippet posted by Jason. You'll need to modify some additional code, templates as well as run additional sql queries. This feature is available in v3.2.0, however.
Envy-UK
04-27-2004, 03:50 PM
No, not lost. It's just that I don't want to get involved supporting that, because it's more than just adding that code snippet posted by Jason. You'll need to modify some additional code, templates as well as run additional sql queries. This feature is available in v3.2.0, however.
That's fine, thanks Magnus. :)
dede1
04-27-2004, 04:47 PM
vB3.0.1 has obviously removed/modified some settings. He may need to manually run the vBGarage 'settings' SQL queries.
magnus
SQL is ok.
MrNase
ich danke dir f?r die Hilfe die SQL sind in Ordnung
magnus
04-27-2004, 05:41 PM
magnus
SQL is ok.
MrNase
ich danke dir f?r die Hilfe die SQL sind in Ordnung
Then one of your original file edits has been reverted. Did you reapply all the file edits after the upgrade?
Because it's been answered before. The answer you seek lies in vbgarage.php.
if (empty($year) OR empty($make))
{
eval (print_standard_error('error_requiredfields'));
}
Thanks, it's working now.
It's kinda amazing how one line can totally screw something up :nervous:
Btw your giving good, quick, helpful support Magnus :)
dede1
04-27-2004, 06:22 PM
Everything examined, since after the update do not hack run.
Now it however only I runs can see there and the car adjust also can I
now as many pictures stop as I wants
will_lean
04-27-2004, 10:20 PM
Hi
ive managed to get this working no problem on 3.0.1
however i just got the error
Invalid SQL:
SELECT vbgarage_users.*,user.username FROM vbgarage_users LEFT JOIN user ON vbgarage_users.userid = user.userid ORDER BY username ASC LIMIT 0,25
mysql error: Table databasename.vbgarage_users' doesn't exist
mysql error number: 1146
i did have it working just before i tried to view the list?
my table is vb3_vbgarage_users not vbgarage_users
if i add in my table prefix it tells me
the table vbulletin.user' doesn't exist
$result_list = $DB_site->query("
SELECT vbgarage_users.*,user.username FROM vbgarage_users LEFT JOIN user ON vbgarage_users.userid = user.userid ORDER BY username ASC LIMIT $pos,$perpage
");
anyone help me with this???
Rick Sample
04-27-2004, 11:02 PM
joeychgo: Ok, I just saw how you have Vbgarage on your forum homepage, looks nice. Do you think it would look good with my layout?
Also, will this slow down our server dramastically if I only limmit the size to a couple 100 KB's? We're currently running our site off of a old 400Mhz processor. Actually somewhere around their, I'm not sure what the other admin said. It curently has 256MB of ram. We aren't that huge because we just started. So later on this summer we're planning on purchasing a brand new server. if you guys visit my forum: www.muscle-mustangs.com/forums you can see how everything loads on the forum and members rides. Let me know if you guys think our server can handle it. We only have like normally around 2-5 members on at once. Hence, we're new.
Thanks all, :)
magnus
04-27-2004, 11:31 PM
Hi
ive managed to get this working no problem on 3.0.1
however i just got the error
Invalid SQL:
SELECT vbgarage_users.*,user.username FROM vbgarage_users LEFT JOIN user ON vbgarage_users.userid = user.userid ORDER BY username ASC LIMIT 0,25
mysql error: Table databasename.vbgarage_users' doesn't exist
mysql error number: 1146
i did have it working just before i tried to view the list?
my table is vb3_vbgarage_users not vbgarage_users
if i add in my table prefix it tells me
the table vbulletin.user' doesn't exist
$result_list = $DB_site->query("
SELECT vbgarage_users.*,user.username FROM vbgarage_users LEFT JOIN user ON vbgarage_users.userid = user.userid ORDER BY username ASC LIMIT $pos,$perpage
");
anyone help me with this???
Eh? I'm confused. The code you pasted doesn't include " . TABLE_PREFIX . ", yet, you say you have a table prefix. So, of course it's not going to work. I have " . TABLE_PREFIX . " included in all SQL queries. Did you remove it or something?
will_lean
04-28-2004, 01:20 AM
sorry i meant to say my vb tables use the prefix vb3_
the error popped up after i tried to list the member garages.
ive fixed it now,it seemed to be trying to pull the data from the tables without my prefix "vb3_" causing the error,i simply added my vb3_ prefix and it seems to be fine now :banana:
sorry for the confusion and thanks for the quick reply
:up:
GoTTi
04-28-2004, 04:36 AM
magnus - can you please provide a text version of the install to be viewed like it would be manually done.
reason i need this, i need to know what modifications are made to my mySQL db, and the php file is hard to understand.....
GoTTi
04-28-2004, 04:44 AM
on the next version you might be releasing, is it possible to make it where the vbgarage can import the current images or attachments?
dede1
04-28-2004, 05:59 AM
Hello
Look is missing to me here in the AdminCP
https://vborg.vbsupport.ru/attachment.php?attachmentid=18058
How do I installation? Where do I find in addition the description?
DaveLogic
04-28-2004, 07:46 AM
Just place the following code in the respective PHP file:
$result_latest = $DB_site->query("
SELECT vbgarage_images.*
FROM " . TABLE_PREFIX . "vbgarage_images
ORDER BY vbgarage_images.id DESC
LIMIT 5
");
while ($latest = $DB_site->fetch_Array($result_latest))
{
eval('$latestbits .= "' . fetch_template('vbgarage_latestbits') . '";');
}
$DB_site->free_result($result_latest);
Be sure to add the following line to the $globaltemplates(); array, too.
'vbgarage_latestbits',
Then, just add $latestbits into the template you want it displayed in.
Is it possible to modify this to show a particular user's latest uploads on their profile page??
GoTTi
04-28-2004, 08:05 AM
another thing, i set the uploads to a high number, and when there gets to be about 7-10 images, the thumbnails in the "vbgarage.php?do=editgarage" are just spreading itself in 1 row going off the screen, making a scroll bar @ the bottom to view the row of thumbnails...
anyway to make these wrap or whatever so they stay in 1 page just filtering down.
magnus
04-28-2004, 09:52 AM
magnus - can you please provide a text version of the install to be viewed like it would be manually done.
reason i need this, i need to know what modifications are made to my mySQL db, and the php file is hard to understand.....
The PHP file shows the SQL queries in plaintext. Just remove the $DB_site->query(" from the beginning and ") from the end of each query. There's no mystery. :)
magnus
04-28-2004, 09:53 AM
on the next version you might be releasing, is it possible to make it where the vbgarage can import the current images or attachments?
Import what images and/or attachments, exactly?
magnus
04-28-2004, 09:54 AM
Hello
Look is missing to me here in the AdminCP
https://vborg.vbsupport.ru/attachment.php?attachmentid=18058
How do I installation? Where do I find in addition the description?
Like I said, if you're missing the vBGarage AdminCP options, then you're missing the 'settings' SQL queries.
magnus
04-28-2004, 09:55 AM
another thing, i set the uploads to a high number, and when there gets to be about 7-10 images, the thumbnails in the "vbgarage.php?do=editgarage" are just spreading itself in 1 row going off the screen, making a scroll bar @ the bottom to view the row of thumbnails...
anyway to make these wrap or whatever so they stay in 1 page just filtering down.
As stated before, include a space at the end of the vbgarage_imagebits template. Search this thread for more information.
dede1
04-28-2004, 11:41 AM
Thanks ist ok
GoTTi
04-28-2004, 03:10 PM
Import what images and/or attachments, exactly?
images already uploaded into a forum...in threads/post...would be loaded into the users garage
the vbgarage could possibly just load the users attached photos (extensions: bmp, jpg, jpeg) into their garage (or as i have modified into gallery) on command through the admin panel after install or a option added on...
GoTTi
04-28-2004, 03:19 PM
As stated before, include a space at the end of the vbgarage_imagebits template. Search this thread for more information.
you said this in #609
my template already has a space there, and i added 1 more, and in the editgarage, images are still crawling off to the right side and not wrapping.
my issue is in "vbgarage.php?do=editgarage" (thats editgarage template right?)
Rick Sample
04-28-2004, 03:40 PM
Ok I'm trying to put the Vbgarage latest uploads on my main vbulletin page. (index.php.) I followed the coding you have but when I save it and go to my forum it comes up with a white screen and a box that says something like invalid SQL quiry please hit refresh or contact your technical staff. Any suggestions?
Rick Sample
04-28-2004, 03:53 PM
EDIT: here is the exact error message:
Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT vbgarage_images.*
FROM vbgarage_images
ORDER BY vbgarage_images.id DESC
LIMIT 5
mysql error: Unknown column 'vbgarage_images.id' in 'order clause'
mysql error number: 1054
Date: Wednesday 28th of April 2004 12:54:08 PM
Script: http://www.muscle-mustangs.com/forums/index.php
Referer:
magnus
04-28-2004, 03:59 PM
EDIT: here is the exact error message:
Database error in vBulletin 3.0.0:
Invalid SQL:
SELECT vbgarage_images.*
FROM vbgarage_images
ORDER BY vbgarage_images.id DESC
LIMIT 5
mysql error: Unknown column 'vbgarage_images.id' in 'order clause'
mysql error number: 1054
Date: Wednesday 28th of April 2004 12:54:08 PM
Script: http://www.muscle-mustangs.com/forums/index.php
Referer:
Argh, damnit.. I need to stop drinking. My database is modified, so I have to try and remember what I had it set to previously. Change vbgarage_images.id to vbgarage_images.vbgarageid.
magnus
04-28-2004, 04:00 PM
you said this in #609
my template already has a space there, and i added 1 more, and in the editgarage, images are still crawling off to the right side and not wrapping.
my issue is in "vbgarage.php?do=editgarage" (thats editgarage template right?)
Well, all my experiences with that problem have been solved with a space. So, you have a problem elsewhere in a template then.
magnus
04-28-2004, 04:00 PM
images already uploaded into a forum...in threads/post...would be loaded into the users garage
the vbgarage could possibly just load the users attached photos (extensions: bmp, jpg, jpeg) into their garage (or as i have modified into gallery) on command through the admin panel after install or a option added on...
Err.. that's a bit out of the scope of of what vBGarage does. I don't really see myself doing that. I'm sure if it's requested, someone else may go ahead and make an importer.
Rick Sample
04-28-2004, 04:07 PM
Argh, damnit.. I need to stop drinking. My database is modified, so I have to try and remember what I had it set to previously. Change vbgarage_images.id to vbgarage_images.vbgarageid.
LOL...funny
Ok I got it but can you visit my forum real fast? Its not getting the whole box around like it does in latest uploads. Like the guy with the cadalac forum has the whole box around his. Is their still something missing?
*EDIT* also, is their a way to like block out the image? What I mean is when people are on my homepage it makes it looks like their viewing those images instead of viewing forumhome.
GoTTi
04-28-2004, 04:12 PM
the attachment is my problem.
template: 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="$vboptions[vbgmaxfilesize]">
<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 $vbphrase[vbgarage]</b></td>
</tr>
<tr>
</td>
<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 != $vboptions[vbgmaxupload]">
<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" />
<input type="hidden" name="id" value="$id" />
</td>
</tr>
</table>
</form>
$footer
</body>
</html>
magnus
04-28-2004, 05:02 PM
the attachment is my problem.
template: 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="$vboptions[vbgmaxfilesize]">
<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 $vbphrase[vbgarage]</b></td>
</tr>
<tr>
</td>
<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 != $vboptions[vbgmaxupload]">
<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" />
<input type="hidden" name="id" value="$id" />
</td>
</tr>
</table>
</form>
$footer
</body>
</html>
Put a space after the last character in vbgarage_editimagesbits.
magnus
04-28-2004, 05:07 PM
LOL...funny
Ok I got it but can you visit my forum real fast? Its not getting the whole box around like it does in latest uploads. Like the guy with the cadalac forum has the whole box around his. Is their still something missing?
*EDIT* also, is their a way to like block out the image? What I mean is when people are on my homepage it makes it looks like their viewing those images instead of viewing forumhome.
In FORUMHOME -
FIND:
$latestbits
REPLACE with:
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="5"><b>$vbphrase[vbgarage_latest_uploads]</b></td>
</tr>
<tr>
$latestbits
</tr>
</table>
</td></tr></table>
Rick Sample
04-28-2004, 05:12 PM
In FORUMHOME -
FIND:
$latestbits
REPLACE with:
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="5"><b>$vbphrase[vbgarage_latest_uploads]</b></td>
</tr>
<tr>
$latestbits
</tr>
</table>
</td></tr></table>
Pure Geniuses...........Thanks man! The forum looks alot better now! :)
dcevoclub
04-28-2004, 05:49 PM
ok i guess i jsut have issues, but i couldn't find anyone else with this problem....
there is no place to upload images when you edit your garage.... its just blank... what would be the issue?
magnus
04-28-2004, 06:02 PM
ok i guess i jsut have issues, but i couldn't find anyone else with this problem....
there is no place to upload images when you edit your garage.... its just blank... what would be the issue?
You didn't set the number of allowed uploads in the AdminCP as per the installation guide.
dcevoclub
04-28-2004, 06:16 PM
yes its set to 10
EDIT: nevermind, i closed my browser and now it works sorry to be bothersome
GoTTi
04-28-2004, 08:10 PM
Put a space after the last character in vbgarage_editimagesbits.
its in there already:
Template: vbgarage_editimagebits
<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>
GoTTi
04-28-2004, 08:51 PM
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.
from: https://vborg.vbsupport.ru/showpost.php?p=498548&postcount=147
the code you talk about here is not showing the image in a new thread. im using 3.1.1...any ideas?
GoTTi
04-28-2004, 09:25 PM
ok, ive looked threw PAGES of this thread here so here's my question i couldnt find answer to:
is it possible to put the Latest Uploads ("vbgarage.php?do=list") images also on the Forum home page below the navbar?
magnus
04-28-2004, 09:49 PM
ok, ive looked threw PAGES of this thread here so here's my question i couldnt find answer to:
is it possible to put the Latest Uploads ("vbgarage.php?do=list") images also on the Forum home page below the navbar?
You didn't look hard enough. This has been discussed, at great length. Recently, too.
magnus
04-28-2004, 09:50 PM
its in there already:
Template: vbgarage_editimagebits
<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>
Then you have a template error elsewhere. You need to try and debug it.
magnus
04-28-2004, 09:51 PM
from: https://vborg.vbsupport.ru/showpost.php?p=498548&postcount=147
the code you talk about here is not showing the image in a new thread. im using 3.1.1...any ideas?
This is going to be obsolete with v3.2.0. However, in the meantime if you wish, simply modify the code to reflect the v3.1.1 format. That was posted with v3.0.1 in mind, I believe.
GoTTi
04-28-2004, 10:34 PM
ight magnus, sorry for buggin so much...i set my page load on here to show 100 posts per page, so i see it now....
ANOTHER quesiton of mine...
when a thumbnail is viewed in the popup, its showing the entire image...but if the image is bigger then the viewable screen, its not showing a scroll bar...that is a problem cuz on some high res images, im only getting 50% or w/e of the image...how can this be fixed?
GoTTi
04-28-2004, 10:37 PM
oh, this is def a HOTM right here...i would consider this a great addon for vbulletin. if it was modified to be a actual photo gallery, its the first ever that is or the board by the board.
great job magnus.
GoTTi
04-28-2004, 10:45 PM
another idea:
placing the images on the forumhome has worked, thanx for that....idea is now, the images load on forum home, but can it be made to show the user beneath the image who loaded it as well?
magnus
04-28-2004, 11:06 PM
another idea:
placing the images on the forumhome has worked, thanx for that....idea is now, the images load on forum home, but can it be made to show the user beneath the image who loaded it as well?
Yea, look through the posts here where someone asked how to do that with the Latest Uploads. Just apply that same process.
GoTTi
04-28-2004, 11:36 PM
here is the information to put hte "Latest Uploads" on forumhome.
magnus if you can put this in your 1st post as modifications or something, make it easier for us to find these great modifications.
magnus
04-28-2004, 11:39 PM
here is the information to put hte "Latest Uploads" on forumhome.
magnus if you can put this in your 1st post as modifications or something, make it easier for us to find these great modifications.
No need for a .txt file, I'll just put a link like I did for all the other modifications.
GoTTi
04-28-2004, 11:43 PM
heres the link chief.
https://vborg.vbsupport.ru/showpost.php?p=505238&postcount=542
GoTTi
04-29-2004, 01:31 AM
when a picture is deleted through the garage area, does it remove the image from the DB as well?
SVTOA
04-29-2004, 01:42 AM
I have written a little add-on for this awesome hack. What this does is create a custom block of info that displays 1/4 Mile info in the text area. You create 4 custom fields for the mod, then edit one template and you're done. If a member does not fill in the first custom field, an alternate message displays. If they leave any of the other custom fields blank, no info for that field displays (as opposed to 00.00)
Attached is a screenshot of how it looks and the instructions, which I will also post:
ADD A CUSTOM BLOCK TO YOUR VB GARAGE TO DISPLAY MEMBER 1/4 MILE TIMES.
MAY BE CUSTOMIZED ANY WAY YOU WISH TO USE IT.
This minor template modification to the VB GARAGE by MAGNUS will create a custom block in the text area of the member's
garage that displays 1/4 mile stats and RWHP if the member has filled in these custom fields.
If the member has not filled them in, rather than display empty data the box displays an alternate message that you
Can also customize.
################################################## ################################################## ###########
Installation is quite easy.
Step 1:
Create 4 custom user profile fields:
"1/4 Mile ET"
"BEST MPH"
"BEST 60 FOOT TIME"
"RWHP"
Step 2:
Note the field ID numbers of the fields you created in step one, and edit the code below with your field #'s in order for
this mod to work on your forum. The field ID #'s in the code below are examples from my forum. If you do not match the proper
field id's from your forum then the info dispayed in the user's VB Garage will not be correct!
Step three: Open template "vbgarage_viewgarage" and find:
################################################## ###
<td class="alt2" width="60%">$data[text]
################################################## ###
Add this after:
##################################################
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"
width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<!-- YOU MUST EDIT THE FIELDS BELOW TO MATCH THE NUMBERS OF YOUR FORUM CUSTOM FIELDS -->
<if condition="$user[field6] !=''">
<font color="black"><b>My Best ET: <font color="red">$user[field6]</font>
<else />
<!-- the next line may be changed to say whatever you want it to say -->
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field8] !=''">
<font color="black"><b>My Best MPH: <font color="red">$user[field8]</font>
</if>
</span>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field11] !=''">
<font color="black"><b>My RWHP: <font color="red">$user[field11]</font>
</if>
</span>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field9] !=''">
<font color="black"><b>My Best 60 foot time: <font color="red">$user[field9]</font>
</if>
</span>
</td>
</tr>
</td>
</tr>
</table>
<br/>
<!-- End PERFORMANCE STATS BLOCK -->
################################################## ######
SVTOA
04-29-2004, 03:18 AM
If you are like me and use both Magnus's VB Garage Hack, and you also use EvilLs1's TIMESLIP DATABASE (https://vborg.vbsupport.ru/showthread.php?t=60945) then you're going to love this!
Simply edit your 'vbgarage_viewgarage' template this way:
FIND: <td class="alt2" width="60%">$data[text]
Add right after:
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<if condition="$user[field55] !='00.00'">
<b>My Best ET: <font color="red">$user[field55]</font>
<else />
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field56] !='00.00'">
<b>My Best MPH: <font color="red">$user[field56]</font>
</if>
</span>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field51] !='0.0'">
<b>My RWHP: <font color="red">$user[field51]</font>
</if>
</span>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field52] !='0.000'">
<b>My Best 60 foot time: <font color="red">$user[field52]</font>
</if>
</span>
</td>
</tr>
</td>
</tr>
</table>
<br/>
<!-- End PERFORMANCE STATS BLOCK -->
DONE!!!!
Now if a member has filled out the timeslip database "vehicle profile" fields, the info will display in this custom block! If they have not filled out the ET field, then all that will display is the message "This member has not added ET data to their vB Garage." (which you can edit to say whatever you want)
If they do not fill out the other fields, they simply will not display.
You do not have edit the field id's with this mod because EvilLS1's hack configures those fields the same on every board.
ENJOY!!!
SVTOA
04-29-2004, 04:04 AM
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!
Yes indeed. I did get it to work how I envisioned it would...
https://vborg.vbsupport.ru/showpost.php?p=506704&postcount=641
djnth
04-29-2004, 08:03 AM
Looks like a great hack!! Have you thought about adding the ability to have some custom fields that can be added via the admincp so that there is some information that all users must submit. It would add some uniformity to the garages and would open up more possibilities for boards that aren't car related.
Can't wait to see your future releases.
djnth
joeychgo
04-29-2004, 10:47 AM
Great addition svtoa
Ok, I have 2 issues. First, how can i make it so the user info stays at the top? See screenshot 1 below.........
Second -- I also have the ad colums hack --- but instead opf appearing on the side, it appears below on the users page-- (see screenshot2) but not on the main page of the garage. FYI I ahve the same probelm with the timeslips page.
joeychgo
04-29-2004, 10:58 AM
I have written a little add-on for this awesome hack. What this does is create a custom block of info that displays 1/4 Mile info in the text area. You create 4 custom fields for the mod, then edit one template and you're done. If a member does not fill in the first custom field, an alternate message displays. If they leave any of the other custom fields blank, no info for that field displays (as opposed to 00.00)
Attached is a screenshot of how it looks and the instructions, which I will also post:
Its not looking like your screenshot for me. what am I missing? I've barely started to learn html so maybe thats why --- here is a screenshot.
SVTOA
04-29-2004, 02:39 PM
Looks like a great hack!! Have you thought about adding the ability to have some custom fields that can be added via the admincp so that there is some information that all users must submit. It would add some uniformity to the garages and would open up more possibilities for boards that aren't car related.
Can't wait to see your future releases.
djnth
Like Magnus has said, this thing is template driven, so you can set things up how you wish to. Example- if you created some fields that you want the user to fill out for the VBgarage, you can certanly force them to do so. I'm just tinkering with my own version of this hack, and I know a lot of you use the timeslip hack as well, so I thought I'd toss this out. I mean, you could go as far as you want to with this- you could edit my conditional statements to return any number of results based on what they put in these fields.
The way I did this, there aren't any "empty" fields displayed. You could edit this to make it so NOTHING shows up, no box, no message, nothing, unless the user enters timeslip data.
Personally, I like being able to "freeform" UBB code in the text area. Many of my members have made some very cool garages using the free-form setup.
If you wanted to make this act like say "cardomain" you could setup a system where all the info that shows up in the text area is relative to input in custom fields for the garage.
SVTOA
04-29-2004, 02:48 PM
Its not looking like your screenshot for me. what am I missing? I've barely started to learn html so maybe thats why --- here is a screenshot.
Joey, it looks like your custom fields for the timeslip hack do not match mine, I haven't seen that before. it's easy to fix though, just view the properties of all your custom fields and make note of the numbers.
It looks like you have double-pasted the code into your template. You need to go back and look it over. In the screenshot you posted, your vehicle type is showing up as your best ET, so that field ID number is obviously wrong.
Here's what you should do:
List the field numbers for:
Best ET
Best MPH
RWHP
Best 60 foot
Make sure the numbers for these fields as they relate to YOUR forums match the code in the template. The way DeWayne constructed his hack, the custom fields for the timeslip database are numbered in the 50's. Not many forums have 50+ custom fields. Does yours?? I have no idea why your fields would have different numbers than mine, that's not how the timeslip hack was constructed. Unless you simply have fubared the whole code from moving things around?
With regard to your first post, you must have pasted the code into the wrong place. Now it appears you have solved that issue.
FWIW, you can put this anywhere in the garage you wish to. I had it over by the photo thumbs column but felt it looked better where it is now. You als can change the fonts and tables and such, it's not set in stone how this should look. I have installed this on two sites and it looks/works perfectly on each one.
Greg
joeychgo
04-29-2004, 03:23 PM
you know -- I read that 3 times svt and I still dont understand half of it. :)
I am very new at all this, although learning (slowly). Dont know where to find the custom field numbers you refer to and simply installed the hacks exactly as instructed.
SVTOA
04-29-2004, 03:36 PM
you know -- I read that 3 times svt and I still dont understand half of it. :)
I am very new at all this, although learning (slowly). Dont know where to find the custom field numbers you refer to and simply installed the hacks exactly as instructed.
I understand Joe, we've all been there. :D
Open your forums cpanel area and scroll down to "user profile fields" then expand that option and select "user profile field manager". Now all your custom fields should display in a list, which will also identify each one by number. On my board, here are how mine are numbered as they relate to this hack:
Best ET: 55
Best MPH: 56
RWHP: 51
Best 60 foot: 52
Yours should be the same. Also, you must have been doing some editing because you posted different screenshots. ;)
I am trustworthy and work for Ford Motor Company, I am not going to mess with your forum. If you want me to help, I can register, give me admin access and I'll fix it for you. I will be out for several hours this afternoon but will be back online tonight...
SVTOA
04-29-2004, 03:39 PM
I just registered on your board as SVTOA.
It's up to you if you want me to help.
joeychgo
04-29-2004, 04:00 PM
absolutely -- but im walking out the door til now and will be gone about dinnertime
GoTTi
04-29-2004, 04:34 PM
ive searched the thread and cant find anything...
how can i make the gallery load random images on load?
dcevoclub
04-29-2004, 05:11 PM
SVTOA, i did your hack for the Timeslip database.
however if you go here http://forums.dcevoclub.com/vbgarage.php?do=view&id=169
i have that black where is should be white... what am i missing?
SVTBlackLight01
04-29-2004, 05:38 PM
dcevoclub,
Check this part the timeslip add-on in your template.
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"
width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<!-- YOU MUST EDIT THE FIELDS BELOW TO MATCH THE NUMBERS OF YOUR FORUM CUSTOM FIELDS -->
<if condition="$user[field6] !=''">
<font color="black"><b>My Best ET: <font color="red">$user[field6]</font>
<else />
<!-- the next line may be changed to say whatever you want it to say -->
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
It looks your missing the part in bold itallics.
dcevoclub
04-29-2004, 06:01 PM
dcevoclub,
Check this part the timeslip add-on in your template.
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"
width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<!-- YOU MUST EDIT THE FIELDS BELOW TO MATCH THE NUMBERS OF YOUR FORUM CUSTOM FIELDS -->
<if condition="$user[field6] !=''">
<font color="black"><b>My Best ET: <font color="red">$user[field6]</font>
<else />
<!-- the next line may be changed to say whatever you want it to say -->
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
It looks your missing the part in itallics.
no that is there..
SVTBlackLight01
04-29-2004, 06:35 PM
I only say that because, looking at your page source this is what is on the page.
<td class="tcat"><span class="smallfont"><b>My 2003 Evolution Performance Stats</b></span></td>
</tr>
<tr>
<td class=""><span class="smallfont">
This member has not added ET data to their vB Garage.
</span>
</td>
</tr>
<!-- best mph field -->
The cell class is not defined (it wasn't showing up at all before).
SVTOA
04-29-2004, 07:26 PM
Joeychgo- I filled in all the fields in my profile on your website, and created a garage and everything displays just fine. Did you change something since this morning?
http://www.lincolnvscadillac.com/vbgarage.php?do=view&id=314
SVTOA
04-29-2004, 07:29 PM
SVTOA, i did your hack for the Timeslip database.
however if you go here http://forums.dcevoclub.com/vbgarage.php?do=view&id=169
i have that black where is should be white... what am i missing?
You may have to edit the table and text colors to match the style on your website, but this should adapt to the style it is used with. On my baord we have several styles and the colors change according to the style.
I just visited your page you linked to, and while you do see only a black rectangle, if you right-click and swipe the mouse over that box the text that is supposed to be there shows up as selected. This should be easy to fix.
SVTOA
04-29-2004, 07:36 PM
Here's what I see when I look at the two sites where you guys report trouble...
magnus
04-29-2004, 08:10 PM
SVTOA, good job! :) I hope you don't mind, but I went ahead and formatted/tinkered with your HTML a bit. I made it XHTML 1.0 Compliant, as well as cleaned it up a bit. I think I may have fixed the issue with joey's table, too. Not sure, so he'll have to test it and let me know:
<!-- performance stats block by SVTOA -->
<br />
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat smallfont">
<b>My $data[year] $data[model] Performance Stats</b>
</td>
</tr>
<!-- best et field -->
<tr>
<td class="$getbgrow smallfont">
<if condition="$user[field55] != '00.00'">
<b>My Best ET: <font color="red">$user[field55]</font>
<else />
This member has not added ET data to their vB Garage.
</if>
</td>
</tr>
<!-- best mph field -->
<tr>
<td class="$getbgrow smallfont">
<if condition="$user[field56] != '00.00'">
<b>My Best MPH: <font color="red">$user[field56]</font>
</if>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow smallfont">
<if condition="$user[field51] != '0.0'">
<b>My RWHP: <font color="red">$user[field51]</font>
</if>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow smallfont">
<if condition="$user[field52] !='0.000'">
<b>My Best 60 foot time: <font color="red">$user[field52]</font>
</if>
</td>
</tr>
</table>
<br />
<!-- End PERFORMANCE STATS BLOCK -->
I'll be sure to put a link to this in the first post. ;)
SVTOA
04-29-2004, 08:14 PM
Hey thanks, I'm no expert either, I just didn't want to bother you to do this for me, figured I'd try it myself. I'm going to use your code of course.. :D
SVTOA
04-29-2004, 08:24 PM
I just updated my tempates with your cleaned-up code Magnus. Thanks again bro. :)
joeychgo
04-30-2004, 01:19 AM
Ok - what do I do with this? LOL
SVTOA - the problem occurs when you have more then a few pics -- its like the data is vertically centered against the overall pics entered......... I am liberal and allow alot of pics ---- What I need to do is get the data to start at the top of the block
dcevoclub,
Check this part the timeslip add-on in your template.
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"
width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<!-- YOU MUST EDIT THE FIELDS BELOW TO MATCH THE NUMBERS OF YOUR FORUM CUSTOM FIELDS -->
<if condition="$user[field6] !=''">
<font color="black"><b>My Best ET: <font color="red">$user[field6]</font>
<else />
<!-- the next line may be changed to say whatever you want it to say -->
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
It looks your missing the part in bold itallics.
SVTOA
04-30-2004, 01:25 AM
Your forum setup is WIDE man! all those ad banners you have kind of expand things a little bit.
Without going off in 10 different directions here, first thing is to determine if your only issue is how this displays. As I said before, it worked fine for me when I created a garage on your board and filled out the custom fields.
djnth
04-30-2004, 08:18 AM
You know, thinking about it you're right. It definitely is nice that users can add their own touches with the code. I still would like to have the option of adding some custom fields because there is some information I would like to make sure that everyone includes and I'm definitely not a PHP coder so going in and adding my own fields would just be asking for trouble.
I would like to have one field be a checkbox asking the user if they are a DJ and then I would like to create a menu item that would take someone to a page that shows a listing of everyone that checked YES to the DJ question. Is this sort of thing possible?
Thanks!!
djnth
Like Magnus has said, this thing is template driven, so you can set things up how you wish to. Example- if you created some fields that you want the user to fill out for the VBgarage, you can certanly force them to do so. I'm just tinkering with my own version of this hack, and I know a lot of you use the timeslip hack as well, so I thought I'd toss this out. I mean, you could go as far as you want to with this- you could edit my conditional statements to return any number of results based on what they put in these fields.
The way I did this, there aren't any "empty" fields displayed. You could edit this to make it so NOTHING shows up, no box, no message, nothing, unless the user enters timeslip data.
Personally, I like being able to "freeform" UBB code in the text area. Many of my members have made some very cool garages using the free-form setup.
If you wanted to make this act like say "cardomain" you could setup a system where all the info that shows up in the text area is relative to input in custom fields for the garage.
joeychgo
04-30-2004, 09:37 AM
Your forum setup is WIDE man! all those ad banners you have kind of expand things a little bit.
Without going off in 10 different directions here, first thing is to determine if your only issue is how this displays. As I said before, it worked fine for me when I created a garage on your board and filled out the custom fields.
actually, its set to 100% ---
Here is 3 screenshots -- starting with yours ---see how even on yours the title bar on the data side isnt even with the title bar on the pic side?
as we add more pics it becomes lower and lower as demonstrated in pics 2 & 3
SVTOA
04-30-2004, 11:26 AM
You know, thinking about it you're right. It definitely is nice that users can add their own touches with the code. I still would like to have the option of adding some custom fields because there is some information I would like to make sure that everyone includes and I'm definitely not a PHP coder so going in and adding my own fields would just be asking for trouble.
I would like to have one field be a checkbox asking the user if they are a DJ and then I would like to create a menu item that would take someone to a page that shows a listing of everyone that checked YES to the DJ question. Is this sort of thing possible?
Thanks!!
djnth
What you are saying is that when the garage is created by the end user, if they check off this box they get a different display action in the finished product? You need to explain a little better what you are trying to do. It would be possible to use a conditional statement so that "if" that checkbox="yes" than "this style is displayed". That would actually be rather easy. Example- in my performance stats hack, "if" the et field = "0.00" then the text "this member has not entered any et info..." displays. You can make that text into a hyperlink or even display an image or an entire different block of data. So, using your request, say you want to display a header on any "garage" (using garage as a reference, your idea may have nothing to do with cars) where the member has checked off "yes" to "DJ? YES/NO" then a hyperlink leading to to a separate page displays, or a graphic that pertains to the subject displays, etc.
You have given me an idea... I could alter my own code so that "if" et field="12." then display graphic "12secondclub.gif"
As far as being a PHP coder- that's a state of mind. Take some code and play with it to see what the effect of your changes has on the end result. That's how you can learn.
These guys like Magnus and Evil LS1 are TRUE coders, I'm the kind who knows a little about a lot and just enough to get myself in trouble. :nervous:
SVTOA
04-30-2004, 11:33 AM
actually, its set to 100% ---
Here is 3 screenshots -- starting with yours ---see how even on yours the title bar on the data side isnt even with the title bar on the pic side?
as we add more pics it becomes lower and lower as demonstrated in pics 2 & 3
Joey, regardless of what width you have your tables configured at, the fact is that on a 1024x768 setting, I have to scroll to see the full page no matter what I am doing on your website, and that IMHO detracts from the look. As for the dropping headers, it seems somewhere in your viewgarage template you have placed code in the middle of a <tr> or <td> tag. What is happening on your pages is not happening on my website. Some of my members have 12 photos and all that happens is the page grows longer not wider. The top header of the garage never moves from the top. Perhaps you can test out the code by restoring to the original viewgarage template and seeing if there is a change in the look...
You have a very nice website, I just prefer to be able to see the whole page when I have my browser set to 1024x768.
dcevoclub
04-30-2004, 11:40 AM
I only say that because, looking at your page source this is what is on the page.
<td class="tcat"><span class="smallfont"><b>My 2003 Evolution Performance Stats</b></span></td>
</tr>
<tr>
<td class=""><span class="smallfont">
This member has not added ET data to their vB Garage.
</span>
</td>
</tr>
<!-- best mph field -->
The cell class is not defined (it wasn't showing up at all before).
Ok so this tells me that that variable is not set.... so where can i set this variable?
Also TO ANYONE, is there a way i can say X user group can view/edit garage but Y group can only view garage?
SVTOA
04-30-2004, 11:52 AM
That functionality is already built into the hack. For the group that you wish to have "view only" simply go to your usergroup manager and select said group. Scroll down to "can use vb garage yes/no" and select no. Now they will still be able to see the garages but will have no means to edit or create one.
Here's the area of my add-on that you could play with:
<if condition="!$user['userid']">
<else />
<if condition="$user[field55] !='00.00'">
<font color="black"><b>My Best ET: <font color="red">$user[field55]</font>
<else />
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
SVTOA
04-30-2004, 12:00 PM
I guess I should add: if you understand how the phrases work, you can create phrases that have the various code changes for the different results you desire and then make your code relate to the phrases, rather than have all the extra code in your template. Then just change the phrases in the if statements.
joeychgo
04-30-2004, 12:17 PM
Joey, regardless of what width you have your tables configured at,
You have a very nice website, I just prefer to be able to see the whole page when I have my browser set to 1024x768.
here is the code for that template:
$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><if condition="$bbuserinfo[usergroupid]==6"> <span class="smallfont">[<a href="$vboptions[bburl]/vbgarage.php?do=delgarage&id=$data[userid]">$vbphrase[delete]</a>] [<a href="$vboptions[bburl]/vbgarage.php?do=editgarage&id=$data[userid]">$vbphrase[edit]</a>]</span></if></td>
</tr>
<tr>
<td class="alt2" width="50%">$data[text]</td>
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>My $data[year] $data[model] Performance Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="!$user['userid']">
<else />
<if condition="$user[field55] !='00.00'">
<b>My Best ET: <font color="red">$user[field55]</font>
<else />
This member has not added ET data to their vB Garage.
</if>
</if>
</span>
</td>
</tr>
<!-- best mph field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field56] !='00.00'">
<b>My Best MPH: <font color="red">$user[field56]</font>
</if>
</span>
</td>
</tr>
<!-- rwhp field -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field51] !='0.0'">
<b>My RWHP: <font color="red">$user[field51]</font>
</if>
</span>
</td>
</tr>
<!-- best 60 foot time -->
<tr>
<td class="$getbgrow"><span class="smallfont">
<if condition="$user[field52] !='0.000'">
<b>My Best 60 foot time: <font color="red">$user[field52]</font>
</if>
</span>
</td>
</tr>
</td>
</tr>
</table>
<br/>
<!-- End PERFORMANCE STATS BLOCK -->
<td class="alt2" width="50%" 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>
<br />
<if condition="$vboptions[vbgcomments]">
<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">$vbphrase[vbgarage_author]</td>
<td class="tcat">$vbphrase[comment]</td>
<td class="tcat" width="10%">$vbphrase[date]</td>
</tr>
$commentbits
</table>
</td></tr></table>
<if condition="$bbuserinfo['userid']">
<br />
<form action="vbgarage.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="id" value="$user[userid]" />
<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="3">$vbphrase[vbgarage_add_a_comment]</td>
</tr>
$logincode
<tr>
<td class="alt2"><b>$vbphrase[comment]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="comment" size="$stylevar[tablewidth]" /></td>
</tr>
</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="addcomment" />
</td>
</tr>
</table>
</form>
</if>
</if>
$footer
</body>
</html>
Your the only one that has mentioned the scrolling...... I have looked at several resolutions including 1024x768 and find no scrolling necessary except just a little on the vba page---- so im confused......what am I missing? thanks for the compliment
dcevoclub
04-30-2004, 12:18 PM
where can i define the cell class $getbgrow
SVTOA
04-30-2004, 12:33 PM
Joey, it's easy to see the error. If you follow my instructions, is says
"find <td class="alt2" width="50%">$data[text]"
not this:
<td class="alt2" width="50%">$data[text]</td>
The error is that you have added my mod after the </td>
Edit your code to make the mod code start directly after $data[text]
That will fix your problem.
SVTOA
04-30-2004, 12:37 PM
FWIW, all you guys who read these posts, when you do any sort of template or file mod, you must pay close attention to the instructions- Otherwise you can fubar everything. You need to note the last character displayed when it says "find this" and do not place code anywhere but after that last noted character.
This is my instruction for this mod verbatim:
Step three: Open template "vbgarage_viewgarage" and find:
################################################## ###
<td class="alt2" width="60%">$data[text]
################################################## ###
Add this after:
##################################################
<!-- performance stats block by SVTOA -->
<br>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"
width="100%">
dcevoclub
04-30-2004, 12:56 PM
does this help me with my problem?
SVTOA
04-30-2004, 01:06 PM
does this help me with my problem?
devo, I am not sure what the problem is other than your font colors need changing. Simply add some simple HTML font tags and use white and see how things look...
dcevoclub
04-30-2004, 01:10 PM
devo, I am not sure what the problem is other than your font colors need changing. Simply add some simple HTML font tags and use white and see how things look...
like you said $getbgrow is not defined, so i need to define it, but where is the question
joeychgo
04-30-2004, 01:14 PM
Ok --- I made the change and moved the </td> to after your block. but --- part of the problem still remains. see screenshot - the title bar is proper but the data still vertically centers......
A hint for dealin with those of us who are newbies --- usually, instructions for something doesnt just get inserted in the middle of a line....... i thought the </td> part was a typo so I left it. If I was writing the instructions I would have said to replace that line and included it...... only cause newbies like me are dumb and trying to figure it out.. LOL
Joey, it's easy to see the error. If you follow my instructions, is says
"find <td class="alt2" width="50%">$data[text]"
not this:
<td class="alt2" width="50%">$data[text] </td>
The error is that you have added my mod after the </td>
Edit your code to make the mod code start directly after $data[text]
That will fix your problem.
joeychgo
04-30-2004, 01:16 PM
These guys like Magnus and Evil LS1 are TRUE coders, I'm the kind who knows a little about a lot and just enough to get myself in trouble. :nervous:
I would be more then happy to just get to your level SVTOA --
magnus
04-30-2004, 01:28 PM
but --- part of the problem still remains. see screenshot - the title bar is proper but the data still vertically centers......
In vbgarage_viewgarage:
FIND:
<td class="alt2" width="60%">$data[text]</td>
REPLACE with:
<td class="alt2" width="60%" valign="top">$data[text]</td>
I was wondering when someone would fall victim to that.. ;)
SVTOA
04-30-2004, 01:29 PM
Joey, want a tip that will make the garages look MUCH nicer? Enable the IMG tag and then place a nice photo of the car in the text area.
examples:
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=1
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=23
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=31
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=39
The reason your text is centering like it is, is because the table is set to align the text "center" versus "top" , so all those thumbnails in the other cell are causing the text area content to be centered in that table.
Hmmm... I have another idea.. (uh oh!) but I have to go to work now. I might have another "mod release" in the works for this.
evo dude- all you need to do is correct the missing code, that's all. For some reason your paste operation did not include that string, to say "define it" is causing you think this is more complicated than it has to be. Simply saying ADD IT would have been better. Just edit your template so that string is part of the code. ;)
TTL.
SVTOA
04-30-2004, 01:30 PM
In vbgarage_viewgarage:
FIND:
<td class="alt2" width="60%">$data[text]</td>
REPLACE with:
<td class="alt2" width="60%" valign="top">$data[text]</td>
I was wondering when someone would fall victim to that.. ;)
Hey, at least I identified it...! :) (we posted on top of each other)
SVTOA
04-30-2004, 01:33 PM
In vbgarage_viewgarage:
FIND:
<td class="alt2" width="60%">$data[text]</td>
REPLACE with:
<td class="alt2" width="60%" valign="top">$data[text]</td>
I was wondering when someone would fall victim to that.. ;)
Magnus, we have to be careful now- we have the last </td> in there, and if they have installed my mod, then they will not find that string, they will find:
<td class="alt2" width="60%">$data[text]
<!-- performance stats block by SVTOA -->
<br>
joeychgo
04-30-2004, 01:39 PM
In vbgarage_viewgarage:
FIND:
<td class="alt2" width="60%">$data[text]</td>
REPLACE with:
<td class="alt2" width="60%" valign="top">$data[text] </td>
I was wondering when someone would fall victim to that.. ;)
THAT fixed it --- except I didnt put the </td> in there (after svt yelled at me LOL)- I moved it to below svt's block and I havnged the 60% to 50% cause it gives me 2 columns of pics instead of one.
joeychgo
04-30-2004, 01:40 PM
Im way open to ideas -- Id love to hear what your thinking.......... I kinda like that layout - but shouldn't it automatically place the first pic there? in your garage it doesnt look automatic
Joey, want a tip that will make the garages look MUCH nicer? Enable the IMG tag and then place a nice photo of the car in the text area.
examples:
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=1
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=23
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=31
http://www.midwestmustangassociation.com/vb3/vbgarage.php?do=view&id=39
The reason your text is centering like it is, is because the table is set to align the text "center" versus "top" , so all those thumbnails in the other cell are causing the text area content to be centered in that table.
Hmmm... I have another idea.. (uh oh!) but I have to go to work now. I might have another "mod release" in the works for this.
evo dude- all you need to do is correct the missing code, that's all. For some reason your paste operation did not include that string, to say "define it" is causing you think this is more complicated than it has to be. Simply saying ADD IT would have been better. Just edit your template so that string is part of the code. ;)
TTL.
SVTOA
04-30-2004, 01:43 PM
Joey, I haven't yelled at you, I have taken time to HELP you. Ask Muscle-Mustangs how much help I gave him last night. I stayed up until 1:30 AM helping him with the timeslip hack. I'm not trying to yell at anyone, I am trying to help you dude...
I think I need to give this thread a rest for awhile. If my mod causes more problems then it's worth, don't use it guys. :(
SVTOA
04-30-2004, 01:44 PM
<i>SVTOA has left the building....</i>
joeychgo
04-30-2004, 01:44 PM
Joey, I haven't yelled at you, I have taken time to HELP you. Ask Muscle-Mustangs how much help I gave him last night. I stayed up until 1:30 AM helping him with the timeslip hack. I'm not trying to yell at anyone, I am trying to help you dude...
I think I need to give this thread a rest for awhile. If my mod causes more problems then it's worth, don't use it guys. :(
Lighten up I was teasin dude! It was my own fault ---- yell at me all you want -- it makes me learn!
SVTOA
04-30-2004, 01:50 PM
I gotta go to work, I'll check back later.
joeychgo
04-30-2004, 01:52 PM
I gotta go to work, I'll check back later.
Your help is appreciated dude- SMile :)
dcevoclub
04-30-2004, 01:54 PM
ok i found fixed it i changed it to "alt2" as the class, and i removed your first <br> and last <br/> thanks for all the help!
GoTTi
04-30-2004, 03:35 PM
3 questions i need answers on:
1. when a thumbnail is viewed in the popup, its showing the entire image...but if the image is bigger then the viewable screen, its not showing a scroll bar...that is a problem cuz on some high res images, im only getting 50% or w/e of the image...how can this be fixed?
2. how can i make the gallery load random images on load?
3. when a picture is deleted through the garage area, does it remove the image from the DB as well?
Envy-UK
04-30-2004, 03:48 PM
Da GoTTi, once the image has loaded fully, the window usually expands to fit the size.
Magnus, how is the next release coming along?
Any ideas when you'll be releasing it to us?
Keep up the good work bro. :)
magnus
04-30-2004, 04:24 PM
1. when a thumbnail is viewed in the popup, its showing the entire image...but if the image is bigger then the viewable screen, its not showing a scroll bar...that is a problem cuz on some high res images, im only getting 50% or w/e of the image...how can this be fixed?
Known problem. Not too common, as most people don't allow incredibly large images.. anyway, I'll get around to tweaking it.
2. how can i make the gallery load random images on load?
Wait for v3.2.0. This is implemented, see http://www.sffba.net/forum/vbgarage.php?do=list&userid=1
3. when a picture is deleted through the garage area, does it remove the image from the DB as well?
Yes, of course it does.
GoTTi
04-30-2004, 04:31 PM
/me cries
i am still having a issue with this wrap around thing...any ideas?
Rick Sample
04-30-2004, 04:37 PM
magnus: I got the latest uploads on my main page, however, when someone is viewing forumhome, when you go to whos online, it makes it look like their viewing the photos. Is their a way to still make it look like its viewing muscle-mustangs.com forum index? Instead of viewing those pics?
Thanks,
magnus
04-30-2004, 05:59 PM
magnus: I got the latest uploads on my main page, however, when someone is viewing forumhome, when you go to whos online, it makes it look like their viewing the photos. Is their a way to still make it look like its viewing muscle-mustangs.com forum index? Instead of viewing those pics?
Thanks,
Errr.. I'm not sure, really. Not that I know of, at least.. because once 'vbgarage.php' is called, that's what triggers the Who's Online Locator.
djnth
04-30-2004, 09:36 PM
What I would like is a MENU ITEM at the top of the forum along with Member List, Calendar, New Posts, etc.. This new menu item would say DJ PROFILES. When somebody clicked on the menu item DJ PROFILES it would take them to a listing of everybody that checked the box in the garage that asked them if they were a DJ.
In terms of cars the menu item could say MUSTANGS and when someone clicked on the MUSTANGS menu item it would take them to a listing of everyone who has a mustang.
djnth
What you are saying is that when the garage is created by the end user, if they check off this box they get a different display action in the finished product? You need to explain a little better what you are trying to do. It would be possible to use a conditional statement so that "if" that checkbox="yes" than "this style is displayed". That would actually be rather easy. Example- in my performance stats hack, "if" the et field = "0.00" then the text "this member has not entered any et info..." displays. You can make that text into a hyperlink or even display an image or an entire different block of data. So, using your request, say you want to display a header on any "garage" (using garage as a reference, your idea may have nothing to do with cars) where the member has checked off "yes" to "DJ? YES/NO" then a hyperlink leading to to a separate page displays, or a graphic that pertains to the subject displays, etc.
You have given me an idea... I could alter my own code so that "if" et field="12." then display graphic "12secondclub.gif"
As far as being a PHP coder- that's a state of mind. Take some code and play with it to see what the effect of your changes has on the end result. That's how you can learn.
These guys like Magnus and Evil LS1 are TRUE coders, I'm the kind who knows a little about a lot and just enough to get myself in trouble. :nervous:
joeychgo
04-30-2004, 09:41 PM
Have I missed something? Magnus I thought there was gonna be an update that would allow users to have multiple garage "bays" multiple vehicles? DId I miss it or is it coming?
magnus
04-30-2004, 09:52 PM
Have I missed something? Magnus I thought there was gonna be an update that would allow users to have multiple garage "bays" multiple vehicles? DId I miss it or is it coming?
That's v3.2.0. It will be released when it's done. Hopefully very, very soon. :)
joeychgo
04-30-2004, 09:55 PM
Cool. My guy was lookin
magnus
05-01-2004, 12:19 AM
Hrm.. bad news. There may be a delay in getting the new version out this weekend. My PC has apparently decided to kick the bucket. It's not all that suprising, considering I've been running an XP2100+ @ 2.1GHz 24/7 for almost a year.. hehe. I'm over a friends' house, about to order an Athlon64 setup.. /sigh
I'll update as things develop..
SVTOA
05-01-2004, 12:24 AM
No problem Magnus, good luck man!
SVTOA
05-01-2004, 12:42 AM
I have been playing with one of my styles and have been able to make quite a presentation. When I'm ready to show it off, I will. It's almost like "cardomain.com" style. :)
SVTOA
05-01-2004, 01:31 AM
I wish I wasn't such a Starbucks Junkie!
I have a new code mod. Installing it to work like it does on my board will take a ***little*** work but it's kinda cool.
I have coded my mod so that a user can display a large image in the text area. Even if you do not enable the IMG tag.
At some point I will have to create a tutorial for my members to read so they know how to get the most from this hack. However in testing, this works perfectly.
Step one: Create a new custom field and call it "Vb Garage Feature photo"
When you fill in the instructions, you may wish to be descriptive. This is what I put:
(this displays above the field when the member sees it in the EDIT PROFILE or REGISTER options)
"If you would like to display a full-size image of your car in your VB Garage (in addition to the uploads) enter the URL in this box. Be sure to add the full URL including http://"
You may also wish to hide this field from searches and public profile view. Once created, make note of the field ID number. (simply view your custom fields in your cpanel manager to get the ID number)
Now go to your vbgarage_viewgarage template. Find:
<td class="alt2" width="60%">$data[text]
REPLACE with this:
<td class="alt2" width="60%" valign="top">
<!-- member feature photo BE SURE TO CHANGE THE FIELD ID TO MATCH YOUR FORUM -->
<if condition="$user[field79] !=''">
<img src="$user[field79]" width="550">
</if>
<!-- end featurephoto -->
$data[text]
If the member does not enter any URL in the "Vb Garage Feature Photo" field, then nothing will display in the text area but that which they type in the text editor. However, if they correctly place the URL to an image they wish to display in that profile field, then that image will display in their VB garage and it will be resized to 550 pixels. There are dangers here-
1. If they link to a gigantic file it will slow the page down for dialup users.
2. If they fubar the link/url then the dreaded red X will display.
I don't know if this is going to be practical for anyone to use, but it DOES work.
WildStorm
05-01-2004, 03:07 AM
I'm confused, I have the lastest and greatest version of PHP, but I get red X's in place of the thumbnails...
www.cougarnuts.com is my board... please help me out.
Rick Sample
05-01-2004, 03:16 AM
I'm confused, I have the lastest and greatest version of PHP, but I get red X's in place of the thumbnails...
www.cougarnuts.com is my board... please help me out.
I had this same problem, first you need to make sure you have GD enabled in your php file. Just open up your php file and search for GD. when you find it take the ";" out in front of it then save it. This will enable it. Second go into your admin CP and make sure GD is selected at 2.0
hope this helps :)
Rick Sample
05-01-2004, 03:19 AM
Errr.. I'm not sure, really. Not that I know of, at least.. because once 'vbgarage.php' is called, that's what triggers the Who's Online Locator.
hmm....no prob. just so I won't have to search threw this huge thread page by page, do you have those codes handy you posted a while back? The ones where it will get rid of it saying stuff like UNKNOW LOCATION then gives the link to Vbgarage?
Thanks for your help
will_lean
05-01-2004, 04:50 AM
Hi
im still getting my images displaying in a vertical line instead of stacked up in twos?
ive added the space after the closing tag in imagebits/editimagebits but for some reason its using a vertical alignment still?
<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>
the above is my imagebits template data? is there something i missed?
im using gd2.0
joeychgo
05-01-2004, 06:30 AM
What I did was look for this line
<td class="alt2" width="60%">$data[text]
and changed 60% to 50% and I got 2 vertical colmns of pics instead of one. DOnt know if thats the best way, but it worked for me.
Hi
im still getting my images displaying in a vertical line instead of stacked up in twos?
ive added the space after the closing tag in imagebits/editimagebits but for some reason its using a vertical alignment still?
<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>
the above is my imagebits template data? is there something i missed?
im using gd2.0
Hialls
05-01-2004, 01:22 PM
Hmm does anyone else find every other uploaded image doesn't have a working thumbnails?
WildStorm
05-01-2004, 05:00 PM
I had this same problem, first you need to make sure you have GD enabled in your php file. Just open up your php file and search for GD. when you find it take the ";" out in front of it then save it. This will enable it. Second go into your admin CP and make sure GD is selected at 2.0
hope this helps :)
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled
This is what my GD says in my PHPinfo file....
I turned GD to 1.6.x in my AdminCP, and 2.0, but neither work.
WildStorm
05-01-2004, 07:52 PM
Hmm does anyone else find every other uploaded image doesn't have a working thumbnails?
I'm still having that problem myself...
Rick Sample
05-01-2004, 09:18 PM
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled
This is what my GD says in my PHPinfo file....
I turned GD to 1.6.x in my AdminCP, and 2.0, but neither work.
What version of PHP do you have? we're running PHP V. 4.3.4 and I had to go in and manually turn on GD. It looks like you have GD installed however, it says 1.6.2 or higher. The question is: does higher go up to 2.0? Magnus said 2.0 is required. I mean if your running PHP V 4.3.4 or higher I'm almost certain you have GD 2.0 enabled.
It has to do with that though. Because I had the same problem with the little red X's then if you click the little red X's it will bring the pic up. This was because GD wasn't enabled. It looks like you have GD enabled, but is it 2.0 or higher?
Here is what my GD info says for my site:
GD Support enabled
GD Version bundled (2.0.22 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
will_lean
05-01-2004, 11:34 PM
hi
Ive tried your edit joey as well as the space added in the templates but i still get my pictures in a vertical column,all other functions are fine i just cant seem to get more than 1 row.
im using php4.3.3 on the server with gd2
WildStorm
05-02-2004, 12:45 AM
Well... I'm having my host update my GD version... hopefully it won't take weeks.
I think he was referring to two separate garages. Although, your idea works fine for the meantime. I will be allowing multiple garages (which is definable in AdminCP) in a future release.
I'm not going to use this for cars but something else and I'm looking forward to this feaure being added
Envy-UK
05-02-2004, 07:03 AM
hmm....no prob. just so I won't have to search threw this huge thread page by page, do you have those codes handy you posted a while back? The ones where it will get rid of it saying stuff like UNKNOW LOCATION then gives the link to Vbgarage?
Thanks for your help
https://vborg.vbsupport.ru/showpost.php?p=498914&postcount=232 :)
Envy-UK
05-02-2004, 07:06 PM
Magnus,
I'm trying to use this hack with GD 1.6. However, the thumbnails still display as a red 'X' after I have the made changes you told me to; with the following error when the URL is typed into the browser:
Warning: imagecopyresampled(): requires GD 2.0 or later in /homepages/33/d84375326/htdocs/vbgarage.php on line 427
How can I change 'imagecopyresampled' to enable it to work with GD 1.6?
gibgib
05-03-2004, 07:35 AM
I am having to same problem as well. Now, imagecreate to use with GD 1.6
http://www.aussiefrogs.com/forum/vbgarage.php?do=list
Some images work OK.
Just figured I'd wait until Magnus releases the next version & fix it then or wait until my host upgrades GD, which would be a better option.
Magnus,
I'm trying to use this hack with GD 1.6. However, the thumbnails still display as a red 'X' after I have the made changes you told me to; with the following error when the URL is typed into the browser:
Warning: imagecopyresampled(): requires GD 2.0 or later in /homepages/33/d84375326/htdocs/vbgarage.php on line 427
How can I change 'imagecopyresampled' to enable it to work with GD 1.6?
Envy-UK
05-03-2004, 08:44 AM
Just figured I'd wait until Magnus releases the next version & fix it then or wait until my host upgrades GD, which would be a better option.
My host told me on the 11th that the upgrade would be complete by the end of that week, however, now they're saying it may be done by summer. :ermm:
Hialls
05-03-2004, 02:55 PM
This is what phpinfo() says for me..
gd
GD Support enabled
GD Version 2.0 or higher
JPG Support enabled
PNG Support enabled
WBMP Support enabled
SaN-DeeP
05-03-2004, 05:45 PM
<a href="http://forums.extremeoverclocking.com/myrig.php" target="_blank">http://forums.extremeoverclocking.com/myrig.php</a>
is this a modified version of vb garage ?
can someone tell more about this ??
how this can be achieved ?
Thnx.
Sandy...
Envy-UK
05-03-2004, 09:45 PM
http://forums.extremeoverclocking.com/myrig.php
is this a modified version of vb garage ?
can someone tell more about this ??
how this can be achieved ?
Thnx.
Sandy...
It is indeed. Extensive modifications to templates is the way to achieve something like that. :rolleyes:
djroketboy
05-04-2004, 02:15 AM
A couple questions, I read through this thread and didn't see 'em asked.
1, Is there a way to make it so only people that are logged in can see the vBGarage?
2, Is there a way to tie into the custom User Profile Fields? The reason i ask this is becuase I already have members using this to associate their cars, years, colors... and which state their from.
3, what is the acceptable minimum to donate, and have the powered by removed... $5, $10+?. (i'm really low on cash :()
thanks,
Aaron
magnus
05-04-2004, 10:24 AM
Magnus,
I'm trying to use this hack with GD 1.6. However, the thumbnails still display as a red 'X' after I have the made changes you told me to; with the following error when the URL is typed into the browser:
Warning: imagecopyresampled(): requires GD 2.0 or later in /homepages/33/d84375326/htdocs/vbgarage.php on line 427
How can I change 'imagecopyresampled' to enable it to work with GD 1.6?
Replace all instances of imagecopyresized with [bigh]imagecopy[/high], unfortunately, that's the only fix at the moment. The next release will use the vBulletin attachments system, so this problem will be a thing of the past.
magnus
05-04-2004, 10:25 AM
http://forums.extremeoverclocking.com/myrig.php
is this a modified version of vb garage ?
can someone tell more about this ??
how this can be achieved ?
Thnx.
Sandy...
Yes. That is John's site, although, it's more of a rewrite from what he tells me than a template modification. Although, most of what's been done can be accomplished by template modifications.
magnus
05-04-2004, 10:29 AM
A couple questions, I read through this thread and didn't see 'em asked.
1, Is there a way to make it so only people that are logged in can see the vBGarage?
Yes, the simple way is to simply hide the link to vBGarage from users who aren't logged in with in your navbar (or wherever you have it):
<if condition="$bbuserinfo[userid]"> link to vbgarage </if>
2, Is there a way to tie into the custom User Profile Fields? The reason i ask this is becuase I already have members using this to associate their cars, years, colors... and which state their from.
Sure. Just call $bbuserinfo[fieldXX] (where XX = field ID) wherever you like.
3, what is the acceptable minimum to donate, and have the powered by removed... $5, $10+?. (i'm really low on cash :()
A simple PM letting me know you enjoy the hack is acceptable enough to me. A donation is just that, something you can spare. Remember, this is a FREE hack. Anything you donate, whether it be $0.01 or $100.00 is completely appreciated. ;)
magnus
05-04-2004, 10:31 AM
Hey guys, just wanted to check in and let you all know I didn't abandon everyone, lol. I've all all the parts ordered for my new PC and they should, hopefully, be in this week. I'm really sorry about all this, but some things (as much as I refuse to believe it) are just out of my control.. /sigh
Glad to see everything is running pretty smoothly.. makes me feel more confident about the stability of the next release. :)
djroketboy
05-04-2004, 03:54 PM
Yes, the simple way is to simply hide the link to vBGarage from users who aren't logged in with in your navbar (or wherever you have it):
<if condition="$bbuserinfo[userid]"> link to vbgarage </if>
Sure. Just call $bbuserinfo[fieldXX] (where XX = field ID) wherever you like.
A simple PM letting me know you enjoy the hack is acceptable enough to me. A donation is just that, something you can spare. Remember, this is a FREE hack. Anything you donate, whether it be $0.01 or $100.00 is completely appreciated. ;)
Thank you magnus, donation has been sent. This is by far the most requested "mod" on my site, everyone has been asking for it.
Aaron
http://www.hpoa.org
SVTOA
05-05-2004, 01:16 PM
Vb Garage/Timeslip Database integration update:
Hey guys, if you have integrated your Timeslip database fields (or any custom fields for that matter) into your VB Garage display, you can easily edit DeWayne's "Edit Vehicle Profile" functions to include the custom fields you have created so they also display under "Edit Vehcile Profile". Simply add them to the "includes/functions_user.php" file in these four areas:
"Start verifyprofilefields"
"Start getprofilefields"
"Start verifyvehiclefields"
"Start gettimeslipfields"
Look for the lines where all the timeslip database custom fields are displayed- will look like this:
"(50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65) AND editable = 1"
Simply add the numbers of any custom fields that pertain to the VB Garage display, and when the user selects "Edit Vehcile Profile" then all the fields in that string that you want to display in that edit page will show up. On my board I also have edited template "modifytimeslip" to say:
"This information will be displayed on our Timeslip Database page and your VB Garage. Do NOT Submit false data! Vehicle Profile privileges will be taken away from those who submit false info."
I am in process of editing the instructions for "Edit Vb Garage" to instruct the user to be sure to edit "Vehicle Profile" info.
Hope this helps guys...
Greg
SVTOA
05-05-2004, 01:39 PM
Edit Garage instructions modification:
Want to make it easier on your members to be able to create/edit the Vb Garage?
You may wish to add some custom instructions to the "vbgarage_editgarage" template so members better understand how to create the coolest Garage possible.
NOTE! In the example below, the text for the instructions reflects how I have edited and integrated the timeslip database and VB Garage. You should edit this area to properly reflect both your file paths and also the actual instructions to the member as they pertain to YOUR forums!
To add a custom instructions table:
Open "vbgarage_editgarage"
Find:
<if condition="$bbuserinfo[userid] == $id">$logincode</if>
Directly below this add:
<!-- edit instructions -->
<tr>
<td class="alt2"><b>Instructions:</b></td>
<td class="alt2">You may enter personal info about you and your car below and create a personalized page here on (YOUR WEBSITE NAME GOES HERE). In addition, all the data you enter in your <a href="/vbulletin/profile.php?do=edittimeslip">Vehcile Profile</a> will also display in your Vb Garage if you add it. You may display a large picture that you have uploaded to the web, your best ET, best MPH, RWHP, Race weight, etc. All these will automatically display in your garage, so make sure that you remember to <a href="/vbulletin/profile.php?do=edittimeslip">EDIT YOUR VEHICLE PROFILE!</a> In the text area below, you may use VB code to format your text, font, and also use the [IMG] tag to display whatever you want. If you require assistance with your Garage, just ask! We will be happy to help you!</td>
</tr>
<tr>
<!-- end instructions -->
By customizing the instructions, you will make it much easier for your members to understand how to get the most out of the VB Garage feature.
SVTOA
joeychgo
05-05-2004, 01:49 PM
THanks SVTOA -- just made the change. great work.
One question --- it says my vb code is on but my img code is off?
ALso you spelled VEHICLE wrong in the coding -
SVTOA
05-05-2004, 02:04 PM
I caught the spelling error on mine and changed it-
Also, with regard to the IMG code- didn't we change that on yours or was that muscle-mustangs?
You can enable the IMG tag by editing the vbgarage.php file- that is covered in this thread. However, just enabling it will not change the text on the edit garage page- you have to edit the vbphrase "vbgarage_text_desc" to say "IMG code is ON"
joeychgo
05-05-2004, 02:05 PM
that was muscle. ill go diggin to change mine now. shouldnt take me more then all day LOLOL (im still new at this but learning)
Somthing else to mention......... in your coding it refers to call
<a href="/vbulletin/profile.php?do=edittimeslip">Vehcile Profile</a
when making this coding change pay attention to where your Vbulletin is -- if its in a "forums" directory, you'll have to change the vbulletin part that I bolded.
joeychgo
05-05-2004, 03:33 PM
Ok, im an idiot - cant find the post about changing the img tag --- Help??
Also -- how can I pull the "Photos" title bar out? It just doesnt look right to me... Maybe I have something wrong (see screenshot)
GoldnGT
05-05-2004, 07:21 PM
Edit the.. Phrases? i think is what its called.. i haven't been with VB enough yet to know everything.. bu ti think thats it.
Mike
SVTOA
05-05-2004, 10:23 PM
Ok, im an idiot - cant find the post about changing the img tag --- Help??
Also -- how can I pull the "Photos" title bar out? It just doesnt look right to me... Maybe I have something wrong (see screenshot)
Joey, dude you need to read a little more closely. ;)
In reference to the IMG tag:
https://vborg.vbsupport.ru/showpost.php?p=499101&postcount=267
With regard to this quote:
Somthing else to mention......... in your coding it refers to call
<a href="/vbulletin/profile.php?do=edittimeslip">Vehcile Profile</a
when making this coding change pay attention to where your Vbulletin is -- if its in a "forums" directory, you'll have to change the vbulletin part that I bolded.
You must have missed this clear instruction:
Edit Garage instructions modification:
NOTE! In the example below, the text for the instructions reflects how I have edited and integrated the timeslip database and VB Garage. You should edit this area to properly reflect both your file paths and also the actual instructions to the member as they pertain to YOUR forums!
Now, I'm not yelling at anybody, I am just REMINDING people to READ before posting or asking questions that have been answered already, or posting corrections to things that have already been correctly outlined. That will save you a lot of headaches. :rolleyes:
SVTOA
05-05-2004, 10:26 PM
Also -- how can I pull the "Photos" title bar out? It just doesnt look right to me... Maybe I have something wrong (see screenshot)
You will find that in your "vbgarage_viewgarage" template.
GoldnGT
05-06-2004, 12:44 PM
I'm still a novice at this.. so lemme get this right... this won't work with GD 1.6 / 1.8 but will work with 2.0+?
Mike
SVTOA
05-06-2004, 12:56 PM
If can't use GD, enable the IMG tag and alter the display templates to omit the upload feature...
joeychgo
05-06-2004, 01:12 PM
EEEK!!!!!!
Ok, I dont really know what this means but I just installed Erwins Microstats hack and my Garage Page shows this:
Page generated in 0.13469 seconds with 36 queries (3 queries for uncached templates) [Server Loads: 1.70 1.49 : 1.42]
Is this bad??????
Envy-UK
05-06-2004, 01:26 PM
I'm still a novice at this.. so lemme get this right... this won't work with GD 1.6 / 1.8 but will work with 2.0+?
Mike
I'm having the same problem still and I've decided to give up until the next release, which will remove this problem.
Rick Sample
05-06-2004, 04:28 PM
I'm having the same problem still and I've decided to give up until the next release, which will remove this problem.
Any new word on the progress of the new garage :)
msimplay
05-06-2004, 05:46 PM
quick question if its already been answered please forgive me but i did search
i'd like a link to the Vbgarage on users profile page
eg User Has x photos in his garage
click here to visit usernames gallery
exTracT
05-06-2004, 05:56 PM
ok well while people are waiting for 3.2 maybe can we discuss the impact of storing all these images in the DB. is this a concern?? is the size of the DB going to be greatly affected by this and will it hurt mysql performance...i really love this hack and i have played with it quite a bit already but this is something i am worried about.
although i read through 746 posts and didnt see any problems.
magnus
05-06-2004, 06:50 PM
ok well while people are waiting for 3.2 maybe can we discuss the impact of storing all these images in the DB. is this a concern?? is the size of the DB going to be greatly affected by this and will it hurt mysql performance...i really love this hack and i have played with it quite a bit already but this is something i am worried about.
although i read through 746 posts and didnt see any problems.
vBulletin attachments are stored in the DB, are they not? I don't see a problem.
On that note, I've been brainstorming alot in these past days w/o a PC.. I've got alot of notes, so once I get my PC back up and running, you all should be pleasantly suprised. :)
Envy-UK
05-06-2004, 07:01 PM
vBulletin attachments are stored in the DB, are they not? I don't see a problem.
On that note, I've been brainstorming alot in these past days w/o a PC.. I've got alot of notes, so once I get my PC back up and running, you all should be pleasantly suprised. :)
Sounds very good, Magnus. :)
joeychgo
05-06-2004, 07:33 PM
Hmmm maybe we should take your computer away more often :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.