Log in

View Full Version : vBGarage v3.1.1 (now with GD-Lib support!)


Pages : 1 [2] 3 4 5 6 7 8

White Knight
04-12-2004, 01:46 AM
Hey I just want to be sure I am going to show you the right screenshots. Do you want to see the template edits I did for USERINFO and POSTBIT/POSTBIT LEGACY?
Otherwise, for my added styles, I just made sure I copied the two new templates created by the upgrade over to my other styleset.

I also have shots of how the mod looks after the upgrade but I think Magnus already attached his?

Ahh I thought you might have changed the edit garage template.. like modifications and so forth.. my mistake :).. i already did the postbit legacy.. works like a charm..

SVTOA
04-12-2004, 01:50 AM
Ok great! :D

White Knight
04-12-2004, 01:51 AM
Sweet. I got the thumbnails working. However, they are not working in the "Latest Uploads" table. Did I miss a part?

does my imagebits look correct to you?

Make sure you upload the latest vbgarage.php file.. he forgot to add that the first time around :)

White Knight
04-12-2004, 01:54 AM
Ok great! :D

Yeah i am going to dip into the code as soon as Magnus is done with all the additions.. but at this rate I love watching his updates and changes.. becuase I never know if its already going to cover what I am looking for.. hahaha

Ian Cunningham
04-12-2004, 11:45 AM
Excellent work Magnus :)

I do have a few ideas which I think might be good coded in!


WYSIWYG Editor - Should make posting MUCH easier for n00bs!
A small message posted after clicking "submit" to update details, informing that the page has actually been uploaded. A few of my users got confused and thought the script didn't work.
More than one vBGarage per person, which has been a frequent request from my users.


This is such a good hack you have created here! Let me know if I can help with any parts in anyway!

I am going to take a look at how GD2 works, as I use it for a gallery somewhere and the thumbs look a little different.

magnus
04-12-2004, 11:56 AM
WYSIWYG Editor - Should make posting MUCH easier for n00bs!
Yea, I'm looking into that. I believe filburt mentioned it earlier. I'm not sure I can use the vB WYSIWYG Editor, since I'm not using the vB posting system. But, we'll see.

A small message posted after clicking "submit" to update details, informing that the page has actually been uploaded. A few of my users got confused and thought the script didn't work.
Do you have vB redirects disabled? I'm pretty sure I put a redirect message in there.

More than one vBGarage per person, which has been a frequent request from my users.
Yup. Already working on it. It's pretty much done, just working out the kinks.

I am going to take a look at how GD2 works, as I use it for a gallery somewhere and the thumbs look a little different.
By all means.. if you stumble upon anything, let me know. :D

SVTOA
04-12-2004, 11:58 AM
Excellent work Magnus :)

I do have a few ideas which I think might be good coded in!


WYSIWYG Editor - Should make posting MUCH easier for n00bs!
A small message posted after clicking "submit" to update details, informing that the page has actually been uploaded. A few of my users got confused and thought the script didn't work.
More than one vBGarage per person, which has been a frequent request from my users.


This is such a good hack you have created here! Let me know if I can help with any parts in anyway!

I am going to take a look at how GD2 works, as I use it for a gallery somewhere and the thumbs look a little different.


Ian, the "more than one garage" is easy- you can do that now with no modifications other than to perhaps change the text of the first three input fields-

You can "cheat" so to speak by simply manipulating what text you enter in those boxes- I have two cars, so what I did:

field "year" entry: "2003"
field "make" entry: "Azure Blue Mach1 and"
field "model" entry: "1994 Rio Red Cobra"


Result is my Garage title appears as so:
"2003 Mach's 2003 Azure Blue Mach1 and 1994 Rio Red Cobra"

Then I just listed the Mach1 first and uploaded the pix for it first, then listed the Cobra second and uploaded the pix second, result is a garage with two cars in it. :D


See screenshot:

magnus
04-12-2004, 11:58 AM
Sweet. I got the thumbnails working. However, they are not working in the "Latest Uploads" table. Did I miss a part?

does my imagebits look correct to you?
Make the same changes in your vbgarage_latestbits template. Replace do=thumb&amp;width=100 with do=getimage and add width=100 in the <IMG> tag.

magnus
04-12-2004, 12:00 PM
Ian, the "more than one garage" is easy- you can do that now with no modifications other than to perhaps change the text of the first three input fields-

You can "cheat" so to speak by simply manipulating what text you enter in those boxes- I have two cars, so what I did:

field "year" entry: "2003"
field "make" entry: "Azure Blue Mach1 and"
field "model" entry: "1994 Rio Red Cobra"


Result is my Garage title appears as so:
"2003 Mach's 2003 Azure Blue Mach1 and 1994 Rio Red Cobra"

Then I just listed the Mach1 first and uploaded the pix for it first, then listed the Cobra second and uploaded the pix second, result is a garage with two cars in it. :D


See screenshot:
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.

SVTOA
04-12-2004, 12:00 PM
Magnus: Please see #248?

Can we:
Enable or disable the IMG tag in the cpanel for the Garage?
As admins have the option to EDIT a member's garage for them?

Thanks!

PranK
04-12-2004, 12:02 PM
So sweeet!!!!

2 Questions,

How hard would it be to integrate with Photopost (do you know?) I have an if statement atm so that if a user has a members gallery it will put a link to their gallery in the postbit - i was thinking of having a 'Click here for this users Gallery' type thing in the profile of the car.

Also, could this be integrated with the VB Timeslips?

Thanks again!! I'll install it regardless of the answers!! :)

Christian

* PranK clicks install.

White Knight
04-12-2004, 12:05 PM
Hmmmm.. but why multiple garage's? I mean when I open my Garage door I see both my vehicals in the same garage. Maybe have it so you can add to different cars in the same garage? This way it keeps someones "Garage Profile" on the same page

SVTOA
04-12-2004, 12:06 PM
Hmmmm.. but why multiple garage's? I mean when I open my Garage door I see both my vehicals in the same garage. Maybe have it so you can add to different cars in the same garage? This way it keeps someones "Garage Profile" on the same page


I agree. Multiple garages will mess up the postbit link also. :(

Ian Cunningham
04-12-2004, 12:08 PM
Yea, I'm looking into that. I believe filburt mentioned it earlier. I'm not sure I can use the vB WYSIWYG Editor, since I'm not using the vB posting system. But, we'll see.

I managed to integrate the WYSIWYG editor into the page, but I couldnt get it to submit the data correctly - I think that is just my lack of knowledge though, so I will keep trying.

Do you have vB redirects disabled? I'm pretty sure I put a redirect message in there.

I'll check this one out, as this must be at my end!

Yup. Already working on it. It's pretty much done, just working out the kinks.

You're good :D

By all means.. if you stumble upon anything, let me know. :D

Will do!

magnus
04-12-2004, 12:26 PM
I managed to integrate the WYSIWYG editor into the page, but I couldnt get it to submit the data correctly - I think that is just my lack of knowledge though, so I will keep trying.

Exactly. Getting the WYSIWYG Editor to display is easy, it's simply a template. However, getting to actually submit is the trick. I may just have to create a secondary WYSIWYG routine/template and implement it. It's redundant, but it would work.

We'll see.

Envy-UK
04-12-2004, 12:30 PM
Would it be possible for users to create seperate folders/garages within their initial garage?

Something like the attached image is what I'm thinking.

magnus
04-12-2004, 12:31 PM
Magnus: Please see #248?

Can we:
Enable or disable the IMG tag in the cpanel for the Garage?
As admins have the option to EDIT a member's garage for them?

Thanks!
At the moment, you would have to edit vbgarage.php and change the parse_bbcode2(); options. I will, however, be implementing AdminCP options for these. If you want to go ahead and change it now, to allow [IMG] tags simply perform the following edit:

In vbgarage.php:

FIND:

$data['text'] = parse_bbcode2($data['text'],'0','0','1','1');


REPLACE with:

$data['text'] = parse_bbcode2($data['text'],'0','1','1','1');


As for Admin ability to edit, yes, that will included.

magnus
04-12-2004, 12:31 PM
Would it be possible for users to create seperate folders/garages within their initial garage?

Something like the attached image is what I'm thinking.
That's pretty much exactly how it's going to be.

Envy-UK
04-12-2004, 12:35 PM
That's pretty much exactly how it's going to be.

:D

joeychgo
04-12-2004, 12:43 PM
Just sitting here eagerly awaiting the next update :)

magnus
04-12-2004, 12:44 PM
Just sitting here eagerly awaiting the next update :)
Well, it's the beginning of the week. I can't spit out updates as fast as I could over the weekend. :)

Envy-UK
04-12-2004, 12:44 PM
Another question - Instead of having images pop-up, could they appear on a seperate page?

joeychgo
04-12-2004, 12:45 PM
Well, it's the beginning of the week. I can't spit out updates as fast as I could over the weekend. :)



I hope not, you had me hoppin the last few days.

joeychgo
04-12-2004, 12:46 PM
Another question - Instead of having images pop-up, could they appear on a seperate page?

IM just curious as to why you want this (im learning as I go) ~~

magnus
04-12-2004, 12:52 PM
Another question - Instead of having images pop-up, could they appear on a seperate page?
Sure. Edit vbgarage_imagesbits and remove the references to the PopUp javascript:(). Just use regular <a href=> tags.

magnus
04-12-2004, 12:53 PM
I hope not, you had me hoppin the last few days.
Well, I try to make the updates as easy/painless as possible. ;)

joeychgo
04-12-2004, 12:56 PM
Well, I try to make the updates as easy/painless as possible. ;)


no no, not complaining in the least..... youve been perfect, just complicated enough that I learn something while doing it without feeling overwhelmed or over my head --- absolutely perfect --- thanks :)

SVTOA
04-12-2004, 12:56 PM
At the moment, you would have to edit vbgarage.php and change the parse_bbcode2(); options. I will, however, be implementing AdminCP options for these. If you want to go ahead and change it now, to allow [IMG] tags simply perform the following edit:

In vbgarage.php:

FIND:

$data['text'] = parse_bbcode2($data['text'],'0','0','1','1');


REPLACE with:

$data['text'] = parse_bbcode2($data['text'],'0','1','1','1');


As for Admin ability to edit, yes, that will included.


Your support for this hack is beyond compare. I think I will have to paypal another donation to the cause!
With that said... I sure do not mean to be a PITA, but.. Any ideas as to why the code that inserted into the POSTBIT_LEGACY and USERINFO templates that will create a link to the member's Photopost gallery will work fine in the postbit and user profile but nothing shows up or happens with the SHOWGARAGE when I insert the eaxct same code into that template?

This is how I am doing it in POSTBIT_LEGACY:
(my board url edited for example)

<!-- added gallery code here --><div class="smallfont"><br><br><a href="http://www.yourwebsite.com/vbulletin/photopost/showgallery.php?cat=500&ppuser=$userinfo[userid]&thumb=1"><smallfont>View my photo gallery</smallfont></a><br>
<!-- end gallery code-->

I would like it so that when a garage is viewed, there is a link generated to the user's photopost just like we have on the forums. Right now we are doing this manually.

White Knight
04-12-2004, 12:58 PM
Magnus:

Looking into the latest pictures on front end. I noticed it would be kind of nice to have the username and there "Vehical" underneath there name. Not just a picture

I see you have this in the latestbits


<td class="alt2" colspan="1" align="center"><a href="$vboptions[bburl]/vbgarage.php?do=view&amp;id=$latest[userid]"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&amp;width=100&amp;id=$latest[vbgarageid]" border=0 /></a></td>


However whever when I add

$user[username]'s $data[year] $data[make] $data[model]


it doesnt add the correct name.. plus doesnt input the year/make/model field.. just a username is under the picture.

Just was wondering if there was something simple.. if not dont worry about it.. had time to kill at work and just playing with template changes and stuff :)

joeychgo
04-12-2004, 12:59 PM
maybe have it clickable, leading to that user's garage page?

SVTOA
04-12-2004, 01:01 PM
I think i already know what the answer to my question will be about the photopost link- there will be an edit to vbgarage.php with a $data parse of vbcode string I need to ad, and I should be able to figure this out myself.
but an answer from Magnus would be fine too!

Hey guys- if you haven't done so, send Magnus a little donation via paypal, he has gone WAY beyond the call of duty with the support for this hack.

Envy-UK
04-12-2004, 01:08 PM
Sure. Edit vbgarage_imagesbits and remove the references to the PopUp javascript:(). Just use regular <a href=> tags.

And what about putting the image on a page with the vbgarage surroundings?

Envy-UK
04-12-2004, 01:12 PM
IM just curious as to why you want this (im learning as I go) ~~

Well, I just feel that's the way I'd like to take my version. I've never been a fan of pop-ups.

From there, you could add further options, perhaps it could also display the vB code for the image, etc.

magnus
04-12-2004, 01:14 PM
Your support for this hack is beyond compare. I think I will have to paypal another donation to the cause!
With that said... I sure do not mean to be a PITA, but.. Any ideas as to why the code that inserted into the POSTBIT_LEGACY and USERINFO templates that will create a link to the member's Photopost gallery will work fine in the postbit and user profile but nothing shows up or happens with the SHOWGARAGE when I insert the eaxct same code into that template?

This is how I am doing it in POSTBIT_LEGACY:
(my board url edited for example)

<!-- added gallery code here --><div class="smallfont"><br><br><a href="http://www.yourwebsite.com/vbulletin/photopost/showgallery.php?cat=500&ppuser=$userinfo[userid]&thumb=1"><smallfont>View my photo gallery</smallfont></a><br>
<!-- end gallery code-->

I would like it so that when a garage is viewed, there is a link generated to the user's photopost just like we have on the forums. Right now we are doing this manually.
Use this instead:

<!-- added gallery code here --><div class="smallfont"><br><br><a href="$vboptions[bburl]/photopost/showgallery.php?cat=500&ppuser=$data[userid]&thumb=1"><smallfont>View my photo gallery</smallfont></a><br>
<!-- end gallery code-->

White Knight
04-12-2004, 01:17 PM
Welp just got done sending Magnus a little something for all his help and work. I must say he has taken the time to support this hack. I think he is a little suprised how many people wanted something like this :) I think this will be a very big turn out.

Thanks again Magnus.. I appreciate it

magnus
04-12-2004, 01:19 PM
Magnus:

Looking into the latest pictures on front end. I noticed it would be kind of nice to have the username and there "Vehical" underneath there name. Not just a picture

I see you have this in the latestbits



However whever when I add


it doesnt add the correct name.. plus doesnt input the year/make/model field.. just a username is under the picture.

Just was wondering if there was something simple.. if not dont worry about it.. had time to kill at work and just playing with template changes and stuff :)
Use this instead:


$user[username]'s $list[year] $list[make] $list[model]


Let me know if that works. :)

SVTOA
04-12-2004, 01:22 PM
At the moment, you would have to edit vbgarage.php and change the parse_bbcode2(); options. I will, however, be implementing AdminCP options for these. If you want to go ahead and change it now, to allow [IMG] tags simply perform the following edit:

In vbgarage.php:

FIND:

$data['text'] = parse_bbcode2($data['text'],'0','0','1','1');


REPLACE with:

$data['text'] = parse_bbcode2($data['text'],'0','1','1','1');


As for Admin ability to edit, yes, that will included.


This worked perfectly, only thing to add is that the phrase

vbgarage_text_desc has to be edited so "IMG code is ON" will display in the edit or creation panel. :D

I am sending another payment for your time Magnus. Please go claim it!

magnus
04-12-2004, 01:22 PM
I'm just really glad everyone likes the hack. I guess that's a hack authors biggest concern.. "will people like it?"

I appreciate all the support I've recieved from you guys, it really makes it all worthwhile. :)

As long as people keep using the hack, I'll keep working/adding/toiling over it. ;)

magnus
04-12-2004, 01:23 PM
This worked perfectly, only thing to add is that the phrase

vbgarage_text_desc has to be edited so "IMG code is ON" will display in the edit or creation panel. :D

I am sending another payment for your time Magnus. Please go claim it!
Yup. The vbgarage_text_desc will be updated automatically once I incorporate those toggles into the AdminCP. :)

Thanks for your donation! :)

SVTOA
04-12-2004, 01:24 PM
No, THANK YOU!!! Some people release hacks and then you are sort of left to your own defenses!!

Envy-UK
04-12-2004, 01:26 PM
I can't say enough about the quality and quantity of support given by Magnus, as well as the great updates. :)

White Knight
04-12-2004, 01:32 PM
Use this instead:


$user[username]'s $list[year] $list[make] $list[model]


Let me know if that works. :)

Funny you said that.. was the first way I tried it also. :) Would only make sence though. Still showing up the last person's name on the page and doesnt show anything for information

Anyways dont worry about it.. it was something I was just trying to help out with thats all. I will continue to look for it.. Maybe one day you might come across it and have it added :)

magnus
04-12-2004, 01:33 PM
Funny you said that.. was the first way I tried it also. :) Would only make sence though. Still showing up the last person's name on the page and doesnt show anything for information

Anyways dont worry about it.. it was something I was just trying to help out with thats all. I will continue to look for it.. Maybe one day you might come across it and have it added :)
Just to confirm, which template are you adding this information to?

Envy-UK
04-12-2004, 01:34 PM
I'm just wondering if you've missed the following request:

https://vborg.vbsupport.ru/showpost.php?p=499122&postcount=282

If not, please ignore this post. ;)

SVTOA
04-12-2004, 01:36 PM
Use this instead:

<!-- added gallery code here --><div class="smallfont"><br><br><a href="$vboptions[bburl]/photopost/showgallery.php?cat=500&ppuser=$data[userid]&thumb=1"><smallfont>View my photo gallery</smallfont></a><br>
<!-- end gallery code-->

That was the ticket! And what I did to make it fit in with the garage, is edit the vbgarage_viewgarage template like so:

found "PHOTOS" and replaced the table with:

<td class="tcat">My MMA Garage Photos <!-- added gallery code here --><div class="smallfont"><a href="$vboptions[bburl]/photopost/showgallery.php?cat=500&ppuser=$data[userid]&thumb=1"><smallfont>You may also click HERE to see my MMA photo gallery pix!</smallfont></a>
<!-- end gallery code--> </td>

White Knight
04-12-2004, 01:36 PM
Just to confirm, which template are you adding this information to?

vbgarage_latestbits

magnus
04-12-2004, 01:45 PM
I'm just wondering if you've missed the following request:

https://vborg.vbsupport.ru/showpost.php?p=499122&postcount=282

If not, please ignore this post. ;)
That would require an additional template to be create and a little hacking. Hrm.. when I get home today, I see if I can make it a toggle in the AdminCP, "Use Popups?".

magnus
04-12-2004, 01:51 PM
vbgarage_latestbits
In vbgarage.php:

FIND:

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


Add ABOVE:

$latestuser = fetch_userinfo($latest[userid]);


Then, you can use $latestuser[username] to display the username. However, if you really want to view the vehicle info, it would requiring an extra query. If you don't mind an extra query, I can paste code for that, too.

Envy-UK
04-12-2004, 01:51 PM
That would require an additional template to be create and a little hacking. Hrm.. when I get home today, I see if I can make it a toggle in the AdminCP, "Use Popups?".

Sounds good to me. :)

I know the basics, so I'd be able to build the template, however, calling the appropriate image may be a problem for me.

White Knight
04-12-2004, 02:04 PM
In vbgarage.php:

FIND:

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


Add ABOVE:

$latestuser = fetch_userinfo($latest[userid]);


Then, you can use $latestuser[username] to display the username. However, if you really want to view the vehicle info, it would requiring an extra query. If you don't mind an extra query, I can paste code for that, too.

Extra Query doesnt bother me.. heck im all about killing the CPU :P if it was on forumhome or something i would have to think twice :)

So sure another query would be fine.

BTW.. your addition worked fine. However now I am confused as ever. Im thinking I need to go open a php book or something. Just makes no sence to me why you have to basically do two things to make one output code.

But hey thats why i only do minor custom changes to fit my website now.. or I can get myself in real big trouble :)

Thanks for the code edit

spence2
04-12-2004, 02:07 PM
How much text can people enter as comments? Could this be expanded?

magnus
04-12-2004, 02:11 PM
Sounds good to me. :)

I know the basics, so I'd be able to build the template, however, calling the appropriate image may be a problem for me.
Actually, now that I think about it, this is cake:

In vbgarage_imagesbits:

REPLACE with:
(Be sure to include a SPACE at the end!)
<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&amp;image=$vboptions[bburl]/vbgarage.php?do=getimage&amp;id=$image[vbgarageid]"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&amp;width=175&amp;id=$image[vbgarageid]" alt="$image[name]" border="0" /></a>

In vbgarage_viewgarage:

FIND and DELETE:
<script language="javascript" type="text/javascript">
function PopupPic(sPicURL) {
newWin=window.open( sPicURL, 'newWin',
'resizable=1,HEIGHT=200,WIDTH=200');
newWin.focus();
}
</script>


Now, customize vbgarage_popup to look however you want. Simply ignore the fact that it says "popup".

magnus
04-12-2004, 02:14 PM
Just makes no sence to me why you have to basically do two things to make one output code.

I only store the userid in the vbgarage_images database. So, in order for it to return the username, I need to use the vB function fetch_userinfo(); which will parse the specified input (in this case $latest[userid] and return an array for that user consisting of his/her entry in the vB user database.

I'm then assigning that array as $latestuser and calling the specific field, username, with $latestuser[username].

I'll whip up the code for the vehicle info in a bit. :)

magnus
04-12-2004, 02:17 PM
How much text can people enter as comments? Could this be expanded?
I haven't defined any limits, it's using MEDIUMTEXT.

White Knight
04-12-2004, 02:19 PM
I only store the userid in the vbgarage_images database. So, in order for it to return the username, I need to use the vB function fetch_userinfo(); which will parse the specified input (in this case $latest[userid] and return an array for that user consisting of his/her entry in the vB user database.

I'm then assigning that array as $latestuser and calling the specific field, username, with $latestuser[username].

I'll whip up the code for the vehicle info in a bit. :)

Ohhh crap.. I accually knew what your where talking about.. :)

Makes a whole lot of sence.. thanks man.. damn i need to run away from this thread fast.. my wife is going to kill me on these late night hacks :)

magnus
04-12-2004, 02:29 PM
Extra Query doesnt bother me.. heck im all about killing the CPU :P if it was on forumhome or something i would have to think twice :)

Ask and ye shall recieve:

In vbgarage.php:

FIND:

while ($latest = $DB_site->fetch_Array($result_latest))
{


Add BELOW:

$result_data = $DB_site->query("
SELECT year,make,model FROM " . TABLE_PREFIX . "vbgarage_users WHERE userid = $latest[userid]
");

$data = $DB_site->fetch_Array($result_data);


Now, you should be able to return $data[year], $data[make], $data[model] in vbgarage_latestbits.

Let me know if you have any problems. :)

White Knight
04-12-2004, 03:07 PM
Ask and ye shall recieve:

In vbgarage.php:

FIND:

while ($latest = $DB_site->fetch_Array($result_latest))
{


Add BELOW:

$result_data = $DB_site->query("
SELECT year,make,model FROM " . TABLE_PREFIX . "vbgarage_users WHERE userid = $latest[userid]
");

$data = $DB_site->fetch_Array($result_data);


Now, you should be able to return $data[year], $data[make], $data[model] in vbgarage_latestbits.

Let me know if you have any problems. :)

No problems at all.. works like a charm.. thanks bro.. appreciate it

Envy-UK
04-12-2004, 03:12 PM
Actually, now that I think about it, this is cake:

In vbgarage_imagesbits:

REPLACE with:
(Be sure to include a SPACE at the end!)
<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&amp;image=$vboptions[bburl]/vbgarage.php?do=getimage&amp;id=$image[vbgarageid]"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&amp;width=175&amp;id=$image[vbgarageid]" alt="$image[name]" border="0" /></a>

In vbgarage_viewgarage:

FIND and DELETE:
<script language="javascript" type="text/javascript">
function PopupPic(sPicURL) {
newWin=window.open( sPicURL, 'newWin',
'resizable=1,HEIGHT=200,WIDTH=200');
newWin.focus();
}
</script>


Now, customize vbgarage_popup to look however you want. Simply ignore the fact that it says "popup".

Everything is fine, apart from the thumbnails do not display.

magnus
04-12-2004, 03:20 PM
Everything is fine, apart from the thumbnails do not display.
Eh? That's odd.. that shouldn't change. Can you see what URL it's trying to parse for the thumbnails?

Are they displaying as X's?

Envy-UK
04-12-2004, 03:28 PM
'vbgarage.php?do=thumb&width=175&id=20'

Yes, they're red X's.

The new page looks great though, see attachment.

Edit: Come to think of it, would it be possible to have the filename where I've added 'Return To Garage"? If so, what code would I need to add?

magnus
04-12-2004, 03:34 PM
'vbgarage.php?do=thumb&width=175&id=20'

Yes, they're red X's.

The new page looks great though, see attachment.

Edit: Come to think of it, would it be possible to have the filename where I've added 'Return To Garage"? If so, what code would I need to add?
Hrm, could you open your site real quick so I could take a look? Let's tackle this first, and then I'll paste the code how to do the filename.

Envy-UK
04-12-2004, 03:35 PM
Sure, it's open.

I've been having a few style problems, let me know if the style you're viewing is the default vB style, if so, then those problems are still there.

Envy-UK
04-12-2004, 03:41 PM
Just a quick note, my thumbnails were working today, as I received word from my host that they had upgraded to GD 2.0.

magnus
04-12-2004, 03:41 PM
Sure, it's open.

I've been having a few style problems, let me know if the style you're viewing is the default vB style, if so, then those problems are still there.
Well, in the default vB style you still have popups. I cannot select any alternative style as there's no dropdown selector. :)

magnus
04-12-2004, 03:43 PM
Well, nevermind.. here's your problem. When trying to access http://www.envy-uk.co.uk/vbgarage.php?do=thumb&width=175&id=20 directly, I recieved:


Warning: imagecreatetruecolor(): requires GD 2.0 or later in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 299

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 301

Warning: imagejpeg(): supplied argument is not a valid Image resource in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 302

Warning: imagedestroy(): supplied argument is not a valid Image resource in /homepages/33/d84375326/htdocs/envy/vbgarage.php on line 305


So, apparently they haven't upgraded. Or else, they haven't recompiled.

Unfortunately, I have a meeting to attend, so I probably won't be able to assist any further until around 5:30PM EST.

Here's the code for the filename, though:

In vbgarage.php:

FIND:

if ($_REQUEST['do'] == 'popup')
{
globalize($_REQUEST, array('image', 'id' => INT));


Add BELOW:
$result_data = $DB_site->query("
SELECT * FROM " . TABLE_PREFIX . "vbgarage_images WHERE vbgarageid = $id
");

$data = $DB_site->fetch_Array($result_data);


Now, you can call the filename with $data[name]. Good luck! :)

Clb
04-12-2004, 03:54 PM
Hey before I forget- Magnus- Any chance of adding the ability for an admin to be able to edit a Garage for the user? Some of my members can barely type a reply much less type VB code, and I don't mind helping them with things like this. Also, the ability to enable IMG tags in the text area (controlled from the ADMIN CPANEL) would be really nice...

;)

i really need it too ;)

ur work is perfect mangus ;) :ok

Envy-UK
04-12-2004, 03:56 PM
Thank you again, file name code works perfectly. ;)

I guess it's a case of waiting for my host to get themselves back on track regarding the GD 2.0 issue.

M@rkus
04-12-2004, 05:34 PM
Hello Magnus.

I have another problem. I`ve installed a [BIMG]-Code. What do i have to do to prevent or deny my users this code in the description field?

M@rkus
04-12-2004, 05:38 PM
Next Question: Can i change something on the pages of the user by myself?

corsacrazy
04-12-2004, 05:42 PM
Next Question: Can i change something on the pages of the user by myself?
not yet

White Knight
04-12-2004, 06:10 PM
Lol.. fixed it.. you dont even want to know what i did.. hahaha.. i am so bad :)

Its like Magnus giving me keys to a new car.. and me seeing how far I can take it without getting myself in trouble

magnus
04-12-2004, 07:07 PM
Hello Magnus.

I have another problem. I`ve installed a [BIMG]-Code. What do i have to do to prevent or deny my users this code in the description field?
Hrm.. that's a good question. I'll have to look into that for you.

esoin
04-12-2004, 08:13 PM
Make the same changes in your vbgarage_latestbits template. Replace do=thumb&amp;width=100 with do=getimage and add width=100 in the <IMG> tag.

Thanks magnus, it worked! Here's a screenshot of my website:

esoin
04-12-2004, 08:31 PM
One thing i've noticed however. The "add comments" TEXT BOX, doesn't stretch. I think it's at a fixed width? Do you know where I would make that change?

Envy-UK
04-12-2004, 08:33 PM
Magnus,

I'm looking forward to the next upgrade, can you reveal what you have in line for us next upgrade?

joeychgo
04-12-2004, 08:36 PM
Magnus,

I'm looking forward to the next upgrade, can you reveal what you have in line for us next upgrade?


I'll tell ya... Upon clicking a button, a little guy is gonna jump out of the computer, run to the users house, take the pic of his car, and run back and upload it. This will take 2 template changes, 1 uploaded file and 3 querys.

: :banana:

Envy-UK
04-12-2004, 08:38 PM
You made a funny! :ermm:

joeychgo
04-12-2004, 08:39 PM
lol its about the only thing one of us hasnt asked for...

Envy-UK
04-12-2004, 08:46 PM
lol its about the only thing one of us hasnt asked for...

To be honest, that's the truth. :tired:

SVTOA
04-12-2004, 09:44 PM
I'm having a little glitch I can't figure out? Some members have no "upload button" anymore, since the last upgrade. If I use the original vbgarage.php for testing, then the browse button comes back. If I use the upgraded version, the upload pix function goes away again, but for me as an admin, it always works?

Any ideas??

magnus
04-12-2004, 10:12 PM
I'm having a little glitch I can't figure out? Some members have no "upload button" anymore, since the last upgrade. If I use the original vbgarage.php for testing, then the browse button comes back. If I use the upgraded version, the upload pix function goes away again, but for me as an admin, it always works?

Any ideas??

Does just the button dissapear? Or does the entire field dissapear? The field will dissapear once the user reaches the preset number of images. The default is 6. Make sure you've set/saved the settings in the AdminCP.

magnus
04-12-2004, 10:14 PM
Magnus,

I'm looking forward to the next upgrade, can you reveal what you have in line for us next upgrade?
Well, I've got Admin garage editing finished. Do you guys want me to release that now, or wait until there's more things added? There are no new templates and no new queries. Just a new vbgarage.php and a couple minor template edits.

I was going to hold off until I finished the multiple garage function. Let me know what you would prefer.

magnus
04-12-2004, 10:19 PM
One thing i've noticed however. The "add comments" TEXT BOX, doesn't stretch. I think it's at a fixed width? Do you know where I would make that change?
In vbgarage_viewgarage:

FIND:
<input type="text" class="bginput" name="comment" size="$stylevar[tablewidth]" /></td>

Change size="$stylevar[tablewidth]" to whatever you wish.

magnus
04-12-2004, 10:26 PM
Organize Your vBGarage Templates

In includes/adminfunctions_templates:

FIND:

'subscription' => $vbphrase['group_paid_subscriptions'],


Add BELOW:

// START VBGARAGE HACK
'vbgarage' => $vbphrase['vbgarage'],
// END VBGARAGE HACK


You will now have a "vBGarage Templates" Category, which can be expanded and contracted, in your Template Editor. This is a nice little tweak which will clean up your template editor, Lord knows it's probably a mess. :)

blitzkrg
04-12-2004, 11:00 PM
any chance you'd add image magik support?

White Knight
04-12-2004, 11:04 PM
I'm having a little glitch I can't figure out? Some members have no "upload button" anymore, since the last upgrade. If I use the original vbgarage.php for testing, then the browse button comes back. If I use the upgraded version, the upload pix function goes away again, but for me as an admin, it always works?

Any ideas??

omg.. i had the same problem.. what i did was tool the installer.. grabbed the edit template and dumped it back in..

wow.. i thought it was something i did

White Knight
04-12-2004, 11:05 PM
Well, I've got Admin garage editing finished. Do you guys want me to release that now, or wait until there's more things added? There are no new templates and no new queries. Just a new vbgarage.php and a couple minor template edits.

I was going to hold off until I finished the multiple garage function. Let me know what you would prefer.

multiple garage function when ready :). right now my users are happy..

SVTOA
04-12-2004, 11:16 PM
Does just the button dissapear? Or does the entire field dissapear? The field will dissapear once the user reaches the preset number of images. The default is 6. Make sure you've set/saved the settings in the AdminCP.


Ok, what happens with even a "fresh" garage is that the browse box is not there, and this is even with members who have never uploaded even one pix?

I checked in the admin cpanel, even upped the minimum images to 8, still no joy. As I said, if I revert to the 3.01 version of the vbgarage.php file, the upload ability returns.

I'm thinking something is not right with the 3.1.0 version of the file?

SVTOA
04-12-2004, 11:18 PM
Well, I've got Admin garage editing finished. Do you guys want me to release that now, or wait until there's more things added? There are no new templates and no new queries. Just a new vbgarage.php and a couple minor template edits.

I was going to hold off until I finished the multiple garage function. Let me know what you would prefer.


I would like to try it just to see if I can clear up this upload glitch I am seeing on mine...

SVTOA
04-12-2004, 11:36 PM
omg.. i had the same problem.. what i did was tool the installer.. grabbed the edit template and dumped it back in..

wow.. i thought it was something i did

Can you explain this a little better? You mean you ran the install process for the upgrade over again?

magnus
04-12-2004, 11:59 PM
Can you explain this a little better? You mean you ran the install process for the upgrade over again?
Hrm. STVOA, please paste your vbgarage_editgarage template. The one that's currently not working for you.

SVTOA
04-13-2004, 12:00 AM
Will do. I have tried everything!

Stand by

SVTOA
04-13-2004, 12:02 AM
$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>$bbuserinfo[username]'s $vbphrase[vbgarage]</b></td>
</tr>
<tr>
<td class="thead" colspan="2"><b>$vbphrase[edit_options]</b></td>
</tr>
$logincode
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_year]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="year" size="4" maxlength="4" value="$data[year]" /></td>
</tr>
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_make]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="make" size="19" maxlength="50" value="$data[make]" /></td>
</tr>
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_model]:</b></td>
<td class="alt2"><input type="text" class="bginput" name="model" size="19" maxlength="50" value="$data[model]" /></td>
</tr>
<tr>
<td class="alt2">
<b>$vbphrase[vbgarage_text]:</b><br /><br /><br /><br />
<span class="smallfont">$vbphrase[vbgarage_text_desc]</span>

</td>
<td class="alt2"><textarea name="text" rows="20" cols="70">$data[text]</textarea></td>
</tr>
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_uploaded_images]:</b><br />
<span class="smallfont">$vbphrase[vbgarage_allowed_total]</span></td>
<td class="alt2"><table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" class="alt2">
<tr>
$editimagebits
</tr>
</table></td>
<tr>
<if condition="$count != $vbgarage_total_images">
<tr>
<td class="alt2"><b>$vbphrase[vbgarage_file]:</b></td>
<td class="alt2"><input type="file" class="bginput" name="src" size="30" /></td>
</tr>
</if>
</table>
</td></tr></table>

<br />

<table cellpadding="2" cellspacing="0" border="0" width="$stylevar[tablewidth]" align="center">
<tr>
<td align="center">
<input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
<input type="hidden" name="do" value="edit" />
</td>
</tr>
</table>

</form>

$footer

</body>
</html>

SVTOA
04-13-2004, 12:04 AM
I guess my question is why does it work for me only, and why will it work when the OLD vbgarage.php file is used (renamed the upgraded file temp and re-uploaded the original)

SVTOA
04-13-2004, 12:23 AM
To add: If I turn the Garage off in the admin cpanel, I get this:

Fatal error: Call to undefined function: can_administer() in /home/edited/public_html/vb3/vbgarage.php on line 50

magnus
04-13-2004, 12:26 AM
Ok, what happens with even a "fresh" garage is that the browse box is not there, and this is even with members who have never uploaded even one pix?

I checked in the admin cpanel, even upped the minimum images to 8, still no joy. As I said, if I revert to the 3.01 version of the vbgarage.php file, the upload ability returns.

I'm thinking something is not right with the 3.1.0 version of the file?
In vbgarage_editgarage:

FIND:

$vbgarage_total_images


REPLACE with:

$vboptions[vbgmaxupload]


Make sure you're now using the 3.1.0 version of the file, also, be sure to do the modifications to the file in the post below this. Or, you can just download the already "fixed" vbgarage.php in the upgrade thread here (https://vborg.vbsupport.ru/showpost.php?p=498782&postcount=188)

magnus
04-13-2004, 12:28 AM
To add: If I turn the Garage off in the admin cpanel, I get this:

Fatal error: Call to undefined function: can_administer() in /home/edited/public_html/vb3/vbgarage.php on line 50
In vbgarage.php:

FIND:

require_once('./includes/functions_user.php');


Add BELOW:

require_once('./includes/adminfunctions.php');


Sorry about that. I need to update the .ZIP file.

SVTOA
04-13-2004, 12:37 AM
No need to be sorry. It's all good again, I am very happy. :D

You can release your latest update to me if you want me to test it?

magnus
04-13-2004, 12:42 AM
any chance you'd add image magik support?
I know even less about Imagemagick than I do about GD. I could possibly add Imagemagick support, but it would be later once everything has calmed down a bit.

joeychgo
04-13-2004, 01:28 AM
Same problem!

Help!




I'm having a little glitch I can't figure out? Some members have no "upload button" anymore, since the last upgrade. If I use the original vbgarage.php for testing, then the browse button comes back. If I use the upgraded version, the upload pix function goes away again, but for me as an admin, it always works?

Any ideas??

blitzkrg
04-13-2004, 01:30 AM
Same problem!

Help!

See post #346

magnus
04-13-2004, 02:27 AM
Same problem!

Help!

Yup. See 346 (https://vborg.vbsupport.ru/showpost.php?p=499624&postcount=346) and 347 (https://vborg.vbsupport.ru/showpost.php?p=499624&postcount=347).

SVTOA
04-13-2004, 02:32 AM
So Magnus, do you have the version where I would be able to edit member's garages for them?? Release it!

spence2
04-13-2004, 03:17 AM
When you say that access can be limited to usergroups do you mean that:

usergroups can be permitted/denied to view
usergroups can be permitted/denied to post
usergroups can be permitted/denied to comment

could commenter's name be a link to their profile?

is the database table used to hold model year able to accomodate alpha characters as well?

are you close to implimenting a WYSIWYG submission form?

have we told you lately that we love you?

alkatraz
04-13-2004, 07:13 AM
wow!! thanks for the hack

can't wait to try it out when I upgrade. Hopefully integration with photopost will be availible then.

magnus
04-13-2004, 10:00 AM
So Magnus, do you have the version where I would be able to edit member's garages for them?? Release it!
Look for it this evening. :)

magnus
04-13-2004, 10:09 AM
When you say that access can be limited to usergroups do you mean that:

usergroups can be permitted/denied to view
usergroups can be permitted/denied to post
usergroups can be permitted/denied to comment

At the moment, usergroups can only be permitted/denied to access vBGarage.

I am, however, planning to make it more selective in the future.


could commenter's name be a link to their profile?
Sure.

In vbgarage.php:

FIND:

while ($comment = $DB_site->fetch_Array($result_comment))
{


Add BELOW:

$user = fetch_userinfo($comment['username']);


In vbgarage_commentbits:

FIND:

$comment[username]


REPLACE with:

<a href="$vboptions[bburl]/member.php?u=$user[userid]">$comment[username]</a>


is the database table used to hold model year able to accomodate alpha characters as well?
The table you mean? Yes.


are you close to implimenting a WYSIWYG submission form?
No, not yet. That'll be next, after the multiple garage feature.

have we told you lately that we love you?

*blush* ;)

gibgib
04-13-2004, 11:11 AM
Hello Magnus,

I've just completed my donation as promised.

Your hack & support are of the highest quality. I installed your hack in the early hours of Sunday, running into much the same problems as dede1 in the first few pages. I believe my host's mysql database is rather ancient but is offered free due to the common interest in French cars.

It's taken me 3 days of interupted sittings to get through the 24 pages this thread has turned into.

I also bookmarked significant updates along this thread:

Post 82 (https://vborg.vbsupport.ru/showpost.php?p=498262&postcount=82) gave new files & instructions on upgrading from v3.0 -> v3.0.1
Post 188 (https://vborg.vbsupport.ru/showpost.php?p=498782&postcount=188) gave new files & instructions on upgrading from v3.0.1 -> v3.1.0
Post 232 (https://vborg.vbsupport.ru/showpost.php?p=498914&postcount=232) Adds "Who's Online" Locations

I'm going to upgrade now :)

White Knight
04-13-2004, 11:22 AM
Morning.. just wanted to give you a quick update.. Got 3 pages of user entries now.. people love it.. works very well. I will have to take a bite into the posting template again.. people want to just fill in fields instead of having to type code :)

White Knight
04-13-2004, 11:24 AM
Can you explain this a little better? You mean you ran the install process for the upgrade over again?

Sorry bro.. ran out of time last night and ended up playing with the kid for a while..

But anyways it looks like you guys found it

I didnt reinstall. I just took out the template code out of the install script and added it in. Thats how I got it to work again

SVTOA
04-13-2004, 11:26 AM
Look for it this evening. :)

Anxiously awaiting the next update. :)

SVTOA
04-13-2004, 11:42 AM
Sorry bro.. ran out of time last night and ended up playing with the kid for a while..

But anyways it looks like you guys found it
I didnt reinstall. I just took out the template code out of the install script and added it in. Thats how I got it to work again


Kids are most important, got a few of them running around here. No problem bro.
I don't think that would have mattered in my case- if you read the info Magnus supplied, my copy of vbgarage.php needed updating and so did the template code, I must have had an older version of the ZIP file. It's all good now.

Don't want to hijack this thread or be out of line- just want to say I was lurking on your site and was in awe of the amount of traffic! Nice job man...!
sorry all, back to the topic!

joeychgo
04-13-2004, 03:46 PM
Mangus,

the "Organize Your vBGarage Templates" link on page one, takes you to the same as the whos online mod........

scottct1
04-13-2004, 03:51 PM
I am gettiing the following error when I go and edit usergroup to use the Garage.

Database error in vBulletin 3.0.0:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Moderators',
description = '',
usertitle = 'Moderator',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
canvbgarage = '1',
attachlimit = '0',
avatarmaxwidth = '125',
avatarmaxheight = '125',
avatarmaxsize = '200000',
profilepicmaxwidth = '125',
profilepicmaxheight = '125',
profilepicmaxsize = '1000000',
pmquota = '100',
pmsendmax = '5',
forumpermissions = '391679',
pmpermissions = '1',
calendarpermissions = '31',
wolpermissions = '3',
adminpermissions = '0',
genericpermissions = '7879',
genericoptions = '31',
arcadepermissions = '23'
WHERE usergroupid=7
mysql error: Unknown column 'canvbgarage' in 'field list'

mysql error number: 1054

Anyone have any ideas?

M@rkus
04-13-2004, 05:31 PM
@magnus

Is there any chance to upload the users file not into the database. I want that these files get into an own directory on my server. Does the GD-Lib function would work anyway?

Envy-UK
04-13-2004, 07:12 PM
I am gettiing the following error when I go and edit usergroup to use the Garage.



Anyone have any ideas?

Take a look at page three and four, I believe, not sure, that the problem is addressed on those pages.

magnus
04-13-2004, 07:51 PM
@magnus

Is there any chance to upload the users file not into the database. I want that these files get into an own directory on my server. Does the GD-Lib function would work anyway?
Sorry, but no. This is exclusively written around SQL. You'd have to more or less rewrite the entire hack.

magnus
04-13-2004, 07:52 PM
Mangus,


the "Organize Your vBGarage Templates" link on page one, takes you to the same as the whos online mod........
Woops. Fixed. Thanks for pointing that out. ;)

magnus
04-13-2004, 07:55 PM
I am gettiing the following error when I go and edit usergroup to use the Garage.



Anyone have any ideas?
You've accidentally misedited a file. See page 2 (https://vborg.vbsupport.ru/showthread.php?t=63681&page=2&pp=15) and page 3 (https://vborg.vbsupport.ru/showthread.php?t=63681&page=3&pp=15). One other person had this problem, and figured out what he edited incorrectly.

magnus
04-13-2004, 07:56 PM
Hello Magnus,

I've just completed my donation as promised.

Your hack & support are of the highest quality. I installed your hack in the early hours of Sunday, running into much the same problems as dede1 in the first few pages. I believe my host's mysql database is rather ancient but is offered free due to the common interest in French cars.

It's taken me 3 days of interupted sittings to get through the 24 pages this thread has turned into.

I also bookmarked significant updates along this thread:

Post 82 (https://vborg.vbsupport.ru/showpost.php?p=498262&postcount=82) gave new files & instructions on upgrading from v3.0 -> v3.0.1
Post 188 (https://vborg.vbsupport.ru/showpost.php?p=498782&postcount=188) gave new files & instructions on upgrading from v3.0.1 -> v3.1.0
Post 232 (https://vborg.vbsupport.ru/showpost.php?p=498914&postcount=232) Adds "Who's Online" Locations

I'm going to upgrade now :)
Thanks for the donation! I'm glad to see you've got it working. If you run into any additional problems, don't hesitate to post them here. I (rather, we) will help however we can. :D

Also, most important posts are already linked in the first post. :)

BamaStangGuy
04-13-2004, 08:00 PM
<a href="http://www.mustang-forums.com" target="_blank">www.mustang-forums.com</a>

WE just got done installing it! Didnt run into any problems. Thanks for this and look for a donation coming from us as soon as we are able to!

magnus
04-14-2004, 12:21 AM
v3.1.0 -> v3.1.1 UPGRADE INSTRUCTIONS

1. Download vbgarage311.zip (which is attached to the first post).

2. Extract and upload vbgarage.php from the archive and upload it to your server, overwriting your existing copy.

3. In vbgarage_editgarage:

FIND:

$bbuserinfo


REPLACE with:

$user[username]


FIND:

$logincode


REPLACE with:

<if condition="$bbuserinfo[userid] == $id">$logincode</if>


FIND:

<input type="hidden" name="do" value="edit" />


Add BELOW:

<input type="hidden" name="id" value="$id" />


4. In vbgarage_viewgarage:

FIND:

<td class="tcat" colspan="2"><b>$user[username]'s $data[year] $data[make] $data[model]</b><if condition="$bbuserinfo[usergroupid]==6">&nbsp;<span class="smallfont">[<a href="$vboptions[bburl]/vbgarage.php?do=delgarage&amp;id=$data[userid]">$vbphrase[delete]</a>]</a></span></if></td>


REPLACE with:

<td class="tcat" colspan="2"><b>$user[username]'s $data[year] $data[make] $data[model]</b><if condition="$bbuserinfo[usergroupid]==6">&nbsp;<span class="smallfont">[<a href="$vboptions[bburl]/vbgarage.php?do=delgarage&amp;id=$data[userid]">$vbphrase[delete]</a>]&nbsp;[<a href="$vboptions[bburl]/vbgarage.php?do=editgarage&amp;id=$data[userid]">$vbphrase[edit]</a>]</span></if></td>


Done !!

[u]Added Features in v3.1.1

Admin "edit" garage displayed on garage view.
Fixed missing require_once(); call.

magnus
04-14-2004, 12:23 AM
Well, here it is, as promised. The only new thing added is the ability for the Admin to edit a user's garage. I didn't feel it was worth an upgrade, but, apparently you guys did. So.. here it is. I tested this on my forum for a bit, and I saw no problems.

As always, let me know if you have any problems! :)

Remember, if you've made any modifications to your vbgarage.php, you'll need to reapply them! :)

SVTOA
04-14-2004, 12:34 AM
I am in process of upgrading and will let you know how it goes. Funny, I was just answering a post on my forum where a member was raving about this feature.

Am I the only one who thinks Magnus's hack should be "HACK OF THE MONTH"????

SVTOA
04-14-2004, 12:54 AM
PERFECT!!!! THANKS MAGNUS!!! Being able to edit as an admin will make it so I can help my members get the most from this feature.

joeychgo
04-14-2004, 07:31 AM
Updated, works great!!!!!

What about being able to place the latest uploads on another page? i.e. forums main below the navbar?

Ian Cunningham
04-14-2004, 09:36 AM
Looking forward to the next release - multiple garages will be great! You can be sure of a nice donation from me once I get my adsense cheque cashed!

magnus
04-14-2004, 10:10 AM
Updated, works great!!!!!

What about being able to place the latest uploads on another page? i.e. forums main below the navbar?
Yup. Working on modulizing that. :)

magnus
04-14-2004, 10:11 AM
Looking forward to the next release - multiple garages will be great! You can be sure of a nice donation from me once I get my adsense cheque cashed!
Yes, multiple garages will definately be in the next release. Hopefully, it'll be one of the last releases for a while.. I really can't think of much more to add, lol. :)

Envy-UK
04-14-2004, 10:21 AM
Have you found anything relating to the quality of the thumbnails?

I had a look at a few tutorials, but, sad to say, it's all over my head.

magnus
04-14-2004, 11:51 AM
Increase Thumbnail Image Quality (v3.1.1 and older)


Have you found anything relating to the quality of the thumbnails?

Actually, yes.

In vbgarage.php:

FIND:

imagecopyresized($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file']));


REPLACE with:

imagecopyresampled($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file']));


That should increase thumbnail quality quite a bit. :)

DaveLogic
04-14-2004, 01:37 PM
It would be nice,if possible to have the garages listed in alphabetical order instead of submitted order on the main page..

Envy-UK
04-14-2004, 01:41 PM
It would be nice,if possible to have the garages listed in alphabetical order instead of submitted order on the main page..

Indeed. Would it also be possible to remove the '#' column?

Edit: Nevermind, I figured out.

magnus
04-14-2004, 01:49 PM
It would be nice,if possible to have the garages listed in alphabetical order instead of submitted order on the main page..
Hrm. Being as only the userid is stored in the vbgarage_users database, it wouldn't be very simple, unfortunately.

spence2
04-14-2004, 02:19 PM
For an alphabetical listing...how about adding a table to the members list with a conditional link to their garage (if one exists)?

magnus
04-14-2004, 02:43 PM
For an alphabetical listing...how about adding a table to the members list with a conditional link to their garage (if one exists)?
You could do that, too. Or, you could add a 'username' field to the vbgarage_users table and just stuff the username in there as well. That way, it's all inclusive into a single table.

magnus
04-14-2004, 02:54 PM
Alphabetize Garage List


Actually, I take that back. Yes, you CAN alphabatize your listing very easily using LEFT JOIN. :D

In vbgarage.php:

FIND:

SELECT * FROM " . TABLE_PREFIX . "vbgarage_users ORDER BY userid ASC LIMIT $pos,$perpage


REPLACE with:

SELECT vbgarage_users.*,user.username FROM vbgarage_users LEFT JOIN user ON vbgarage_users.userid = user.userid ORDER BY username ASC LIMIT $pos,$perpage


Done! :)

White Knight
04-14-2004, 03:21 PM
nice upgrade.. im going to hold off untill the next one i think :) or when i get bored at work (damn busy day) nice job magnus

gibgib
04-15-2004, 10:55 AM
My host is using "GD Lib 1.6.2 or higher" & as a result, all new image additions are not working (X) on the latest vb garage releases.

What would I need to do to take out all thumbnailing but keep the latest features you have added?

How hard would it be to add support to earlier versions of GD-Lib?

I am doubting the host will upgrade, & the current version is thumbnailling posting image attachments ok.

SVTOA
04-15-2004, 11:03 AM
Increase Thumbnail Image Quality (v3.1.1 and older)




Actually, yes.

In vbgarage.php:

FIND:

imagecopyresized($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file']));


REPLACE with:

imagecopyresampled($thumb['data'],$thumb['file'],0,0,0,0,$width,$thumb['height'],ImageSX($thumb['file']),ImageSY($thumb['file']));


That should increase thumbnail quality quite a bit. :)

Yet another nice fix. :D Makes quite a difference!

Ian Cunningham
04-15-2004, 11:53 AM
How is the multiple garage part coming on ;)

The image quality is much better now! Excellent!

spence2
04-15-2004, 12:07 PM
Will members garage list, multiple entries and multiple comments be paginated?

With admin restrictions as to how many of each are shown per page?

Are they perhaps, already?

BfB
04-15-2004, 05:30 PM
I need help with teh GD stuff ... pictures not working. The other GD stuff works (verficiation images works)

Please help, I'm retarted about some of this linux stuff

Envy-UK
04-15-2004, 06:25 PM
You need GD 2.0 with this hack.

Right click on one of the red X's, then click properties. Type in the URL that it is looking for and click enter. Let me know what comes up.

BfB
04-15-2004, 07:08 PM
Acctually there is no red "X" it seems to upload then doesnt display anything. Its a little frusturating.

M@rkus
04-15-2004, 07:24 PM
so, how about changing the usergallery`s as an admin? and next question: how about uploading the pictures into a directory on my server, not into the db!?

Envy-UK
04-15-2004, 07:26 PM
Acctually there is no red "X" it seems to upload then doesnt display anything. Its a little frusturating.

I'm not an expert and can only go on problems that I've had in the past. Your best bet is to wait for Magnus. Sorry I couldn't be more of a help. :ermm:

magnus
04-15-2004, 08:06 PM
Will members garage list, multiple entries and multiple comments be paginated?

With admin restrictions as to how many of each are shown per page?

Are they perhaps, already?

Garage List is already paginated. I'll tackle the rest when I come to them. :)

magnus
04-15-2004, 08:07 PM
so, how about changing the usergallery`s as an admin? and next question: how about uploading the pictures into a directory on my server, not into the db!?
Upgrade to 3.1.1, it has admin editing capabilities. As stated before, I have no intention of storing images as files. This entire script revolves around SQL, changing it would mean re-writing the basic structure.

Envy-UK
04-15-2004, 08:11 PM
My host is using "GD Lib 1.6.2 or higher" & as a result, all new image additions are not working (X) on the latest vb garage releases.

What would I need to do to take out all thumbnailing but keep the latest features you have added?

How hard would it be to add support to earlier versions of GD-Lib?

I am doubting the host will upgrade, & the current version is thumbnailling posting image attachments ok.

I could do with the following information too, Magnus.

magnus
04-15-2004, 08:15 PM
I need help with teh GD stuff ... pictures not working. The other GD stuff works (verficiation images works)

Please help, I'm retarted about some of this linux stuff
First, be sure you're not uploading an image with a filesize greater than what's set in AdminCP. If you've checked that, and it still doesn't work, I'll need for you to create an account on your forum for me to use so I can test it. Just PM me with the details.

magnus
04-15-2004, 08:18 PM
My host is using "GD Lib 1.6.2 or higher" & as a result, all new image additions are not working (X) on the latest vb garage releases.

What would I need to do to take out all thumbnailing but keep the latest features you have added?

How hard would it be to add support to earlier versions of GD-Lib?

I am doubting the host will upgrade, & the current version is thumbnailling posting image attachments ok.
If you have to use GD1.6, you can change all instances of ImageCreateTrueColor to ImageCreate in vbgarage.php That will work, however, the thumbnails will look sort of weird. I am told that this can be corrected with additional settings, but I'm not too familiar with GD. The only other option, that I'm aware of, is it set it up like the first release of vBGarage. You'll need to change do=thumb to do=getimage and include width= within the <IMG> tags in the templates.

Envy-UK
04-15-2004, 08:40 PM
Could you please post the code from imagebits to show the thumbnails via the do=getimage within the <IMG> tag, please?

I've been playing about with the original, without creating a back-up. :(

Perhaps you could also post the GD code, for when my host finally upgrades.

Hialls
04-15-2004, 10:34 PM
Would it be ok if i released an addon for vbadvanced to have a random image from the garage shown?

magnus
04-15-2004, 10:46 PM
Would it be ok if i released an addon for vbadvanced to have a random image from the garage shown?
Of course! In fact, I encourage it! :)

magnus
04-15-2004, 10:49 PM
Could you please post the code from imagebits to show the thumbnails via the do=getimage within the <IMG> tag, please?

I've been playing about with the original, without creating a back-up. :(

Perhaps you could also post the GD code, for when my host finally upgrades.
Template: vbgarage_imagesbits
(be sure to include a space at the end!)


<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&amp;image=$vboptions[bburl]/vbgarage.php?do=getimage&amp;id=$image[vbgarageid]" onclick="PopupPic(this.href); return false;" target="_blank"><img src="$vboptions[bburl]/vbgarage.php?do=getimage&amp;id=$image[vbgarageid]" alt="$image[name]" border="0" width="100" /></a>


As requested, the following is the original template:

<a style="cursor:pointer; cursor-hand" href="vbgarage.php?do=popup&amp;image=$vboptions[bburl]/vbgarage.php?do=getimage&amp;id=$image[vbgarageid]" onclick="PopupPic(this.href); return false;" target="_blank"><img src="$vboptions[bburl]/vbgarage.php?do=thumb&amp;width=175&amp;id=$image[vbgarageid]" alt="$image[name]" border="0" /></a>

joeychgo
04-15-2004, 10:54 PM
If you could make a block that could be inserted on the forumhome page as well that would be great!

Would it be ok if i released an addon for vbadvanced to have a random image from the garage shown?

joeychgo
04-15-2004, 10:55 PM
Magnus - I have a user with 2 show cars. He asked if there was a more organized way for him to display them....Maybe where the display box could be divided in half if the user so chose? This way he could have two cars listed with the mods and so on.

magnus
04-15-2004, 10:57 PM
Magnus - I have a user with 2 show cars. He asked if there was a more organized way for him to display them....Maybe where the display box could be divided in half if the user so chose?
Sure. When the next version is released, it will support multiple garages.

joeychgo
04-15-2004, 11:05 PM
Great... Not to nag, but when might that be coming?

Sure. When the next version is released, it will support multiple garages.

magnus
04-15-2004, 11:38 PM
Great... Not to nag, but when might that be coming?
I couldn't begin to tell you when.. I have alot of work on my plate right now (I do have a job), so most of my vBGarage time is on weekends. I don't anticipate it to take too long, but I won't make promises.. ;)

aliencode
04-16-2004, 12:54 AM
Any chance you can add Imagemagick support for this hack magnus, not very complicated actually since its a command line driven program that is quite popular on many hosts. It also does GIF which of course later GD versions dont.

blitzkrg
04-16-2004, 01:11 AM
i asked for IM support about 20 pages ago.. i think he said he'd look into it..
lets hope so.. i think getting GD2.0 to work on windows 2003 server is a problem.

magnus
04-16-2004, 01:12 AM
Any chance you can add Imagemagick support for this hack magnus, not very complicated actually since its a command line driven program that is quite popular on many hosts. It also does GIF which of course later GD versions dont.
As I stated before here (https://vborg.vbsupport.ru/showpost.php?p=499642&postcount=349), if I get time, I may entertain the idea of toying with Imagemagick. However, at the moment, I'm more focused on getting what I currently have finished.

Anyone else is more than welcome to incorporate Imagemagick support, and I would be glad to include it with future releases.

exTracT
04-16-2004, 03:25 PM
if someone has devised a way to add more sections than just the one text area, that would be great.

even tho i know its not technically the 'right' way to design a DB, id rather concat them all together and post it into the DB than add a new column for each one in the db. the reason, is so that i wouldnt have to alter the table to add more sections at a later point.

ie: rather than adding to vbgarage_users (userid, year, make, model, performance, appearance, etc, lastactivity)
just leave it as vbgarage_users(userid, year, make, model, text), concat everything into one text and add it.

then again, its not like it would be hard to add columns for these things.

not sure which direction to go...comments?

magnus awesome hack.

higabyte
04-16-2004, 05:09 PM
I'm sorry if this has already been answered, I searched and couldnt find anything, probably because its such an easy question and any moron should already know but since im apparently stupider than the average moron I guess I'm going to ask:

Where do I need to go/need to do to enable HTML just for the vbGarage area?

Thanks in advance!

M@rkus
04-16-2004, 06:06 PM
So.. last question.. how can i deny the use of my [BIMG]-code?

magnus
04-16-2004, 07:37 PM
I'm sorry if this has already been answered, I searched and couldnt find anything, probably because its such an easy question and any moron should already know but since im apparently stupider than the average moron I guess I'm going to ask:

Where do I need to go/need to do to enable HTML just for the vbGarage area?

Thanks in advance!
No, this isn't a stupid question. This ability will be automated in the next release, as it will have a toggle in the AdminCP. However, for the time being:

In vbgarage.php:

FIND:

$data['text'] = parse_bbcode2($data['text'],'0','0','1','1');


REPLACE with:

$data['text'] = parse_bbcode2($data['text'],'1','0','1','1');

magnus
04-16-2004, 07:39 PM
So.. last question.. how can i deny the use of my [BIMG]-code?
M@rkus, in order to disabled , you would need to disable BBCode altogether. There's no way to specify individual codes to allow/disallow. In order to disable BBCode, do the following.

In [b]vbgarage.php

FIND:

$data['text'] = parse_bbcode2($data['text'],'0','0','1','1');


REPLACE with:

$data['text'] = parse_bbcode2($data['text'],'0','0','1','0');

higabyte
04-16-2004, 08:18 PM
thanks magnus, where at in miami are you? im down in kendall...

gyrus
04-16-2004, 09:13 PM
I am sorry I have to ask this but, magnus, can you please tell approximately when do you plan to make a new release of this great hack?
And also will there be any sort of approval system so that images added by users would not go public before administrator approval?

Thank you.

magnus
04-16-2004, 09:17 PM
thanks magnus, where at in miami are you? im down in kendall...
I'm in Kendall myself, actually. In the Hammocks area.

higabyte
04-16-2004, 10:19 PM
I'm in Kendall myself, actually. In the Hammocks area.

haha small world, me too, im in biscayne beach club apt's...

Eladesor
04-16-2004, 11:35 PM
Is the link for the vBGarage v3.1.1 upgrade wrong? I only see the upgrade to the previous version?

Rick Sample
04-17-2004, 02:46 AM
Ok you guys, I hope you all can help me out. Anyway, I got VBgarage installed, but it won't work. I deleted the install file and uploaded the other file to my forums root directory. I edited the templates and everything else it asked for. but when you click on the VBgarage button, it says forum cannot be displayed? Any suggestions on whats wrong? take a look: www.muscle-mustangs.com/forum

please let me know :)

SVTOA
04-17-2004, 02:54 AM
Ok you guys, I hope you all can help me out. Anyway, I got VBgarage installed, but it won't work. I deleted the install file and uploaded the other file to my forums root directory. I edited the templates and everything else it asked for. but when you click on the VBgarage button, it says forum cannot be displayed? Any suggestions on whats wrong? take a look: www.muscle-mustangs.com/forum

please let me know :)

It appears you have not uploaded vbgarage.php into your forums root directory...

Rick Sample
04-17-2004, 02:58 AM
It appears you have not uploaded vbgarage.php into your forums root directory...


hmmm....its their I just checked *scatches head*

SVTOA
04-17-2004, 02:58 AM
It also looks like you have a style on your forum that has none of the VBGARAGE templates installed...
Are you sure you didn't place the vbgarage.php file in your admincp directory by mistake?

SVTOA
04-17-2004, 03:00 AM
hmmm....its their I just checked *scatches head*

Well then something appears to be fubared with your directory structure.
If the file is there, it should do something when called up in the browser, even if that something is to show a "no permissions" error.

Did you properly extract the ZIP files?

Rick Sample
04-17-2004, 03:08 AM
It also looks like you have a style on your forum that has none of the VBGARAGE templates installed...
Are you sure you didn't place the vbgarage.php file in your admincp directory by mistake?

Ok, I deleted the other template, so their is only one now!



Yep, I'm positive its in the right place, here I'll attach a screenshot (I use pcanywhere to attach to my server.) Anywase if you look in the address bar you'll see the forum folder, and at the bottom is the VBgarage.php file.

hmm....confusing

Rick Sample
04-17-2004, 03:10 AM
*bangs head on wall* LOL....thanks you guys, I just figured it out by your last post! The file had a security thing on it, I had to set it to EVERYONE!

SVTOA
04-17-2004, 03:12 AM
Well, that may be, but it looks to me like the name of the folder/directory you displayed in that thumbnail says ADMINCP?

Rick Sample
04-17-2004, 03:13 AM
crap another error! :tired:

It won't let me upload pictures. Theirs a box that says upload pictures. but now upload button, do I have to install this my self or is it messed up?

Rick Sample
04-17-2004, 03:14 AM
Well, that may be, but it looks to me like the name of the folder/directory you displayed in that thumbnail says ADMINCP?

nope, if you enlarge it, at the top left corner theirs a huge folder icon and it says forum. :)

SVTBlackLight01
04-17-2004, 03:15 AM
Well, I'm getting a log-in screen. If that's the way you have it set up then that part is working. ;)

Rick Sample
04-17-2004, 03:23 AM
Well, I'm getting a log-in screen. If that's the way you have it set up then that part is working. ;)


Well I have everything working now, but when I try to go into my control panel. I click on edit vbgarage, then it lets me enter all my info, however, theirs not an upload picture option, it just has text.

Rick Sample
04-17-2004, 03:34 AM
ok, thats fixed


however, when I go to submit my car and click the submit button it gives me this error: Help/navagation error-server error. then it says stuff like server failed to return www.muscle-mustangs.com/for.............

Do I have to set up a seperate MYSQL data base or something for this?

magnus
04-17-2004, 12:42 PM
haha small world, me too, im in biscayne beach club apt's...
Hah, so do I! :)

magnus
04-17-2004, 12:44 PM
ok, thats fixed


however, when I go to submit my car and click the submit button it gives me this error: Help/navagation error-server error. then it says stuff like server failed to return www.muscle-mustangs.com/for.............

Do I have to set up a seperate MYSQL data base or something for this?
I'll need you do show me the entire error, or create an account on your forum for me so I can check it out myself. You can PM me the details.

All MySQL tables were created when you ran the installer, which I assume ran without any problems. Yes?

magnus
04-17-2004, 12:48 PM
Is the link for the vBGarage v3.1.1 upgrade wrong? I only see the upgrade to the previous version?
v3.1.0 -> v3.1.1 UPGRADE INSTRUCTIONS (https://vborg.vbsupport.ru/showpost.php?p=500310&postcount=372)

corsacrazy
04-17-2004, 05:55 PM
i have a small prob, i cant edit others garages ...

higabyte
04-17-2004, 06:13 PM
Hah, so do I! :)

weird... haha

Rick Sample
04-17-2004, 06:15 PM
I'll need you do show me the entire error, or create an account on your forum for me so I can check it out myself. You can PM me the details.

All MySQL tables were created when you ran the installer, which I assume ran without any problems. Yes?

Thanks man, I'll set you up an account when I get back in a half hour or so. Ummm....did you want just an admin account in vbulletin or an account on my server? I use pcanywhere to attach to the server. Just let me know man.
Thanks,

magnus
04-17-2004, 06:28 PM
Thanks man, I'll set you up an account when I get back in a half hour or so. Ummm....did you want just an admin account in vbulletin or an account on my server? I use pcanywhere to attach to the server. Just let me know man.
Thanks,
Oh, I just need a regular user account with access to simply USE vBGarage. I do not need Admin access or anything of the sort.

Also, if you could show me your vbgarage_editgarage template.

magnus
04-17-2004, 06:29 PM
i have a small prob, i cant edit others garages ...
Unfortunately, that's not very descriptive. If you've upgraded to 3.1.1, I see no reason not to. What error are you getting, if any? Etc..

corsacrazy
04-17-2004, 07:04 PM
Unfortunately, that's not very descriptive. If you've upgraded to 3.1.1, I see no reason not to. What error are you getting, if any? Etc..
sorry i replied in a rush yes im all upto date i goto the edit page then can see all the users car details i proceed to edit them by adding a few [b] tags here and there press submit it forwards me to the main garage page o then look at that persons garage to find nothing has been changed

Rick Sample
04-17-2004, 07:05 PM
Oh, I just need a regular user account with access to simply USE vBGarage. I do not need Admin access or anything of the sort.

Also, if you could show me your vbgarage_editgarage template.

Thanks man, I sent you a userid and password via PM. :) let me know what you find out.

magnus
04-17-2004, 08:29 PM
sorry i replied in a rush yes im all upto date i goto the edit page then can see all the users car details i proceed to edit them by adding a few [b] tags here and there press submit it forwards me to the main garage page o then look at that persons garage to find nothing has been changed
It sounds as if you're not using the latest vbgarage.php. Can you verify it's v3.1.1? At the top of the file, it should read:

|| # vBGarage v3.1.1 # ||

I really can't imagine any other reason. If it is the correct version, I'll need access to troubleshoot this myself.

joeychgo
04-17-2004, 08:32 PM
Magnus

FYI---the Increase Thumbnail Image Quality (v3.1.1 and older) link on the first post links to the "organizing your templates"

magnus
04-18-2004, 12:35 AM
Magnus

FYI---the Increase Thumbnail Image Quality (v3.1.1 and older) link on the first post links to the "organizing your templates"
Woops. Fixed, thanks. ;)

exTracT
04-18-2004, 12:53 AM
after playing with this a bit, i've noticed the following:

re: requiring at least 1 picture ->using the code provided here (https://vborg.vbsupport.ru/showpost.php?p=498310&postcount=89) will prevent people from updating their vbgarage if they arent adding a picture.

re: uploading pictures -> people can only upload one picture and then they have to click submit and start again.

magus your code is legible and easy to read, makes it a lot more fun

Ganon
04-18-2004, 01:41 AM
In version 3.0.1 is there a way to delete a member's entry, if for example they spam it instead of using it to post their car?

If not, does one of the newer versions contain that feature?

flstreetscene
04-18-2004, 05:39 AM
I've searched this thread but I can't seem to find the way to add additional fields for the car information?

Also, what do I edit to place a link to the users "edit garage" page perhaps opposite of the "Powered by: vBGarage by magnus" row.

corsacrazy
04-18-2004, 07:01 AM
It sounds as if you're not using the latest vbgarage.php. Can you verify it's v3.1.1? At the top of the file, it should read:

|| # vBGarage v3.1.1 # ||

I really can't imagine any other reason. If it is the correct version, I'll need access to troubleshoot this myself.
fixed, i was reading upgrade wrong i thought you had to replace

<input type="hidden" name="do" value="edit" />

but it said ADD below... so hard to misread when your so used to replacing these template edits lol

magnus
04-18-2004, 12:43 PM
In version 3.0.1 is there a way to delete a member's entry, if for example they spam it instead of using it to post their car?

If not, does one of the newer versions contain that feature?
No, v3.0.1 has no edit/delete support. v3.1.0 was the first version with delete functions. However, v3.1.1 (latest) has delete AND edit functions. I highly suggest upgrading. :)

magnus
04-18-2004, 12:50 PM
I've searched this thread but I can't seem to find the way to add additional fields for the car information?
There is no "walkthrough" for this, as it requires a fair amount of hacking. This is why I simply had an "text" box. I few people have added what you're asking for, perhaps they'll share?

Also, what do I edit to place a link to the users "edit garage" page perhaps opposite of the "Powered by: vBGarage by magnus" row.

In vbgarage_viewgarage:

FIND:

<tr>
<td class="tcat" colspan="3" align="right"><span class="smallfont">$vbphrase[vbgarage_footer]</span></td>
</tr>


REPLACE with:

<tr>
<td class="tcat" width="50%" align="left"><span class="smallfont"><a href="$vboptions[bburl]/vbgarage.php?do=editgarage">$vbphrase[vbgarage_edit]</a></td>
<td class="tcat" width="50%" align="right"><span class="smallfont">$vbphrase[vbgarage_footer]</span></td>
</tr>


That should do it. :)

Rick Sample
04-18-2004, 03:35 PM
I GOT VBGARAGE up and running!

However, I have one slight quesiton. You know where the VBgarage link is with all the other links like faq, member list and so on. Is their anyway to change the text VBgarage to Members Rides?

That way new members and guests will know what it is. New members may not of heard of VBgarage before.

thanks,

Rick Sample
04-18-2004, 03:37 PM
Also, is their a way to change it to a different color like red? this way it will stand out from the other buttons up their. :)

corsacrazy
04-18-2004, 03:45 PM
I GOT VBGARAGE up and running!

However, I have one slight quesiton. You know where the VBgarage link is with all the other links like faq, member list and so on. Is their anyway to change the text VBgarage to Members Rides?

That way new members and guests will know what it is. New members may not of heard of VBgarage before.

thanks,
edit the phrase or hard code the text when editing the navbar template

magnus
04-18-2004, 06:53 PM
Exactly. It''s all phrase driven. :)

Glad to hear you got it working! :D

magnus
04-18-2004, 07:20 PM
Well, here's a screenshot of the multiple cars progress. I've basicially been rewriting from the ground up, optimizing here and there, adding more security precautions, etc..

Unfortunately, so far it's looking like either you're going to need to do some manual editing to each user's garage, as well as each image, in the MySQL Database, or you're going to need to re-install. Quite a few things have had to be modified/added for this upgrade.

I'll know more for sure soon, though.

corsacrazy
04-18-2004, 07:26 PM
looking good how about a colomn to cout how many pics u have uploaded to that car ? plus is it poss to have pics stored in files rather than database?

magnus
04-18-2004, 07:38 PM
looking good how about a colomn to cout how many pics u have uploaded to that car ?
Yea, I've already added that.

plus is it poss to have pics stored in files rather than database?
As stated before, no. It would require almost a complete re-write of the script.

joeychgo
04-18-2004, 07:48 PM
Unfortunately, so far it's looking like either you're going to need to do some manual editing to each user's garage, as well as each image, in the MySQL Database, or you're going to need to re-install. Quite a few things have had to be modified/added for this upgrade.

I'll know more for sure soon, though.


oh if we could avoid having to make the members re-upload ----- please do so........

SVTBlackLight01
04-18-2004, 07:54 PM
plus is it poss to have pics stored in files rather than database?

The pics are basically attachments, right? I believe attachments are stored in the database.

Although, while you are rewriting everything, the option to store the mages in a file may make gallery (PhotoPost) integration easier. Just an idea.


I have to say what a great job you have done on this. It has turned out to be more than anything I had imagined, and just keeps getting better. :up:

joeychgo
04-18-2004, 08:51 PM
I think there is one addition that hasnt been requested magnus...

Maybe there could be a button where when the user clicks it, a little man with a camera runs out or the back of the CPU, runs outside, takes ad quality pics of the user's car, then runs back to the computer and uploads them automatically.

Shouldnt be harder then making a littleman.php file and a few queries right?

-----------------------------------------

Your doing great work on this one man.

-----------------------------------------

corsacrazy
04-18-2004, 09:33 PM
If It Was Like This Or Similar For The Users Edit Garages Page It Would Be Awsome

joeychgo
04-18-2004, 09:48 PM
OH I LIKE THAT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Only thing I would add to that is an intergration with the timeslips info....... combining the 2 hacks into one, and giving a more complete place for all the info of a member's car(s)......

If It Was Like This Or Similar For The Users Edit Garages Page It Would Be Awsome

magnus
04-18-2004, 11:09 PM
If It Was Like This Or Similar For The Users Edit Garages Page It Would Be Awsome
Well, since this is all template driven, you could make it look however you like.

spence2
04-19-2004, 01:53 PM
Magnus,

I noticed this comment on another hack:
"PS: I would be interested in working with others on additional hacks specifically for Coppermine and vBulletin. if you are interested, PM me..."

Posted in this thread (https://vborg.vbsupport.ru/showthread.php?t=62778&page=1&pp=15) by the author of the hack.

Didn't know if this might interest you or not.
Personally, I'm a photopost user, but heck, I love the way this community is supposed to pull together....and your whole attitude, progress and hack has given me some notion of what vB.org can be.

flstreetscene
04-19-2004, 03:03 PM
There is no "walkthrough" for this, as it requires a fair amount of hacking. This is why I simply had an "text" box. I few people have added what you're asking for, perhaps they'll share?



In vbgarage_viewgarage:

FIND:

<tr>
<td class="tcat" colspan="3" align="right"><span class="smallfont">$vbphrase[vbgarage_footer]</span></td>
</tr>


REPLACE with:

<tr>
<td class="tcat" width="50%" align="left"><span class="smallfont"><a href="$vboptions[bburl]/vbgarage.php?do=editgarage">$vbphrase[vbgarage_edit]</a></td>
<td class="tcat" width="50%" align="right"><span class="smallfont">$vbphrase[vbgarage_footer]</span></td>
</tr>


That should do it. :)
I saved and reloaded the template it made no differnce... (I even checked the other style)

Rick Sample
04-19-2004, 04:17 PM
A quick question, Vbgarage seems to be ok, but when I go to view whos online and those that are in the Vbgarage it says UNKNOWN LOCATION in bold. Then it gives the address, is this normal or is something wrong?

magnus
04-19-2004, 04:44 PM
A quick question, Vbgarage seems to be ok, but when I go to view whos online and those that are in the Vbgarage it says UNKNOWN LOCATION in bold. Then it gives the address, is this normal or is something wrong?
https://vborg.vbsupport.ru/showpost.php?p=498914&postcount=232

magnus
04-19-2004, 04:48 PM
I saved and reloaded the template it made no differnce... (I even checked the other style)
I just tested it, and it worked fine. Remember, this change was only made to the vbgarage_viewgarage template. Thus, you'll only see it when actually viewing a garage. In order to make it appear on other pages, you'll need to apply that change to each template.

Rick Sample
04-19-2004, 05:34 PM
https://vborg.vbsupport.ru/showpost.php?p=498914&postcount=232

Thanks man, I just wanted to make sure it wasn't malfunctioning or anything!

flstreetscene
04-19-2004, 06:23 PM
Thanks that worked.

However what could be causing this?

Lite style;
http://www.floridastreetscene.com/forums/vbgarage.php?do=list&styleid=1

Nite style;
http://www.floridastreetscene.com/forums/vbgarage.php?do=list&styleid=10

During the Nite style when you click to view someone's garage it's a empty page..

Thanks,

magnus
04-19-2004, 07:22 PM
Thanks that worked.

However what could be causing this?

Lite style;
http://www.floridastreetscene.com/forums/vbgarage.php?do=list&styleid=1

Nite style;
http://www.floridastreetscene.com/forums/vbgarage.php?do=list&styleid=10

During the Nite style when you click to view someone's garage it's a empty page..

Thanks,
It appears you're missing the vbgarage_viewgarage template in your "Nite" style.

On another note, I would appreciate it if you left the "Powered by" footer intact.

magnus
04-19-2004, 08:56 PM
Here's a screenshot of the new Garage List page..

corsacrazy
04-19-2004, 09:04 PM
maybe use vehcile(s) instead of cars? and chance of another coloumn totalling images??

magnus
04-19-2004, 10:38 PM
maybe use vehcile(s) instead of cars? and chance of another coloumn totalling images??
Like I've said over and over. It's all template and phrase driven. Make it say whatever you want.

See v3.2.0 in action @ http://www.sffba.net/forum/vbgarage.php?do=list

obsidian
04-20-2004, 12:37 AM
Amazing hack.....I am planning on using your new version to build an Airsoft Armory so that my users will be able to show off their guns as well as the upgrades and mods they have done to them. This hack has serious potential to expand beyond just vehicles.

magnus
04-20-2004, 02:05 AM
Amazing hack.....I am planning on using your new version to build an Airsoft Armory so that my users will be able to show off their guns as well as the upgrades and mods they have done to them. This hack has serious potential to expand beyond just vehicles.
That's the point. :) I'm actually thinking of turning this into vBGallery. We'll have to see. :)

spence2
04-20-2004, 02:20 AM
Magnus,

One of the great things about this hack is its versatility. Presently, I am thinking of using this as a hack where photos may be secondary to the actual entry. Some users may have them, some not...like icing on the cake if they do.

So, if you develop a vb...garage...gallery would you consider making that a hack of its own? To preserve the versatility of this hack as it now stands? Or am I misunderstanding your notion entirely?

Rick Sample
04-20-2004, 02:45 AM
Sorry to bother you so guys so much about this hack, but its a cool hack, so I gotta have it perfect on my site:

Anywase I have the following ?'s

1. I'm still having trouble changing VBgarage text into Members Rides. Everytime I edit something in navbar, it gives me an error message, so I'm not sure if i'm editing the right thing or not!

2. like on top of the garage page or bottom is their a way to add a link so members can edit their garage, many don't know you do it though User control panel. If they see an "edit your car" button, their more likely to add their car!

3. what is last activity? is it just when they last updated or the last time they were online? mine keeps saying last activity was yesterday, and I've been online all day. just wondering :)

Thanks for your help guys, :) :) :)

SVTOA
04-20-2004, 02:53 AM
Sorry to bother you so guys so much about this hack, but its a cool hack, so I gotta have it perfect on my site:

Anywase I have the following ?'s

1. I'm still having trouble changing VBgarage text into Members Rides. Everytime I edit something in navbar, it gives me an error message, so I'm not sure if i'm editing the right thing or not!

2. like on top of the garage page or bottom is their a way to add a link so members can edit their garage, many don't know you do it though User control panel. If they see an "edit your car" button, their more likely to add their car!

3. what is last activity? is it just when they last updated or the last time they were online? mine keeps saying last activity was yesterday, and I've been online all day. just wondering :)

Thanks for your help guys, :) :) :)


1. You have to edit the PHRASE for the navbar. Search in PHRASES for "vbgarage" and edit the translation to say "Members Rides"

2.Look in the template "USERCP_SHELL" for this:

<if condition="$permissions['genericpermissions'] & CANVBGARAGE">
<tr>
<td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="vbgarage.php?$session[sessionurl]do=editgarage">$vbphrase[vbgarage_edit]</a></td>
</tr>
</if>

Edit as needed and insert into SHOWGARGE template where you want it to display.


3. Last activity refers to the last edit made to that Garage.

Hope this helps.

Rick Sample
04-20-2004, 03:10 AM
1. You have to edit the PHRASE for the navbar. Search in PHRASES for "vbgarage" and edit the translation to say "Members Rides"

2.Look in the template "USERCP_SHELL" for this:

<if condition="$permissions['genericpermissions'] & CANVBGARAGE">
<tr>
<td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="vbgarage.php?$session[sessionurl]do=editgarage">$vbphrase[vbgarage_edit]</a></td>
</tr>
</if>

Edit as needed and insert into SHOWGARGE template where you want it to display.


3. Last activity refers to the last edit made to that Garage.

Hope this helps.


Thanks, I got everything, but how do I find the showgarage template? I searched the templates and phrases for showgarage, and came up empty. any suggestions?

SVTOA
04-20-2004, 03:20 AM
Sorry, that should be "vbgarage_viewgarage" not "showgarage"

Rick Sample
04-20-2004, 03:47 AM
Sorry, that should be "vbgarage_viewgarage" not "showgarage"


Ok I got it! Thanks,

bob46802
04-20-2004, 05:06 AM
I had this fine on my board for a couple days

then today i updated to the newest version of vb

installed the link hack and just changed a few other things

the actual vb garage is fine

but admin vb garage is missing from the admin cp.

its a problem because I need to change user permissions so that everyone can look at the vb garage.
its currently set for admin only.

someone help me out :(

I even donated 10 bux to the writer cause this is a cool hack :)

www.honda-central.com

edit:
i think a few things got reset.
i added vb garage to the user group php file

but i get a sql error;
mysql error: Unknown column 'canvbgarage' in 'field list'

mysql error number: 1054

should i have a fresh re-install done tomorrow?

DaveLogic
04-20-2004, 10:03 AM
I'm trying to add a PM this Member link below the Photo in Vbgarage_viewgarage..I've taken this code from MEMINFO but it doesn't seem to work..

<if condition="$userinfo['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>

Any ideas???

DaveLogic
04-20-2004, 10:04 AM
Didn't mean to cross post this...Sorry..I thought I'd posted it in the wrong section..

magnus
04-20-2004, 10:11 AM
Magnus,

One of the great things about this hack is its versatility. Presently, I am thinking of using this as a hack where photos may be secondary to the actual entry. Some users may have them, some not...like icing on the cake if they do.

So, if you develop a vb...garage...gallery would you consider making that a hack of its own? To preserve the versatility of this hack as it now stands? Or am I misunderstanding your notion entirely?
The whole goal of this hack is to be versatile. No worries there. :)

magnus
04-20-2004, 10:13 AM
I had this fine on my board for a couple days

then today i updated to the newest version of vb

installed the link hack and just changed a few other things

the actual vb garage is fine

but admin vb garage is missing from the admin cp.

its a problem because I need to change user permissions so that everyone can look at the vb garage.
its currently set for admin only.

someone help me out :(

I even donated 10 bux to the writer cause this is a cool hack :)

www.honda-central.com

edit:
i think a few things got reset.
i added vb garage to the user group php file

but i get a sql error;
mysql error: Unknown column 'canvbgarage' in 'field list'

mysql error number: 1054

should i have a fresh re-install done tomorrow?
Most likely a typo, a couple people have gotten that error and each time it turns out they made a typo. Go over each edit, and verify each character, each closing ;. Make sure your ADDED lines rather than REPLACED them where applicable.

magnus
04-20-2004, 10:15 AM
I'm trying to add a PM this Member link below the Photo in Vbgarage_viewgarage..I've taken this code from MEMINFO but it doesn't seem to work..

<if condition="$userinfo['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>

Any ideas???
What's not working? You get an error, or the link doesn't show up? If it's a matter of not seeing the link, chances are you need to enable the phrase group in the vbgarage.php file. Find out what phrase group the phrase send_private_message_to_x is in.

Ian Cunningham
04-20-2004, 02:46 PM
Like I've said over and over. It's all template and phrase driven. Make it say whatever you want.

See v3.2.0 in action @ http://www.sffba.net/forum/vbgarage.php?do=list

V3.2.0 looks excellent!!! Is it in stable release form now?

Skipsoutdoors
04-20-2004, 10:03 PM
Thanks Magnus.

I just converted over to v-3 and this was the first thing I installed on it. I was using the v-2 version. Some tweaking yet to do, but I'll figure it out eventually. It made a dandy trophy room.

Skip

DaveLogic
04-21-2004, 11:30 AM
What's not working? You get an error, or the link doesn't show up? If it's a matter of not seeing the link, chances are you need to enable the phrase group in the vbgarage.php file. Find out what phrase group the phrase send_private_message_to_x is in.

I've changed this in vbgarage.php

// get special phrase groups
$phrasegroups = array('user','global');

to include Global phrases

The link is showing up but not adding the userID i.e

http://www.my_test_site.com/forums/private.php?do=newpm&u=

This also occurs for send Email to....

magnus
04-21-2004, 03:58 PM
I've changed this in vbgarage.php

// get special phrase groups
$phrasegroups = array('user','global');

to include Global phrases

The link is showing up but not adding the userID i.e

http://www.my_test_site.com/forums/private.php?do=newpm&u=

This also occurs for send Email to....
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]

SVTOA
04-21-2004, 04:19 PM
Just letting everyone know, I have installed this on another site with vb 3.0.1 and it works great. (If this has been mentioned already, sorry!, 30-something pages here)

Rick Sample
04-21-2004, 04:28 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.