Description
This hack will allow your users to create a virtual garage where they can store photos, details, etc.. about their vehicle (this can be modified to suit forums of other interests).
Latest Uploads will be displayed on Garage List.
Forum users can now leave comments in member garages.
Admin functions are available in the AdminCP.
This version contains the ability to limit access by usergroup(s). All templates are 100% XHTML Verified!
Information
Tested and developed on vB 3.0.0 Gold.
This hack, as like the rest of my hacks, are FREE. However, if you enjoy this hack and feel the need to donate something for my time you can do so by clicking the icon below:
*NOTE: Those who donate are explicitly granted permission to remove the "Powered by" information from the vBGarage footer.
*NOTE: When donating, please include your forum url. Thanks!
Version History
v3 - Initial release. Let's hope I don't have alot of entries here.
v3.0.1 - Added GD-Lib Support!
v3.1.0 - Added User Comments, Latest Uploads on Garage List, AdminCP Options
v3.1.1 - Added ability for Admin to "edit" users' garages. Use ImageCopyResampled(); over ImageCopyResized(); for better thumbnail quality.
Planned Features
- Multiple entries per user.
- Possible integration with Photopost/Coppermine/etc..
How can I take the 'latest uploads' and place it on other pages also, like in the forums page below the navbar and on my vbadvanced page?
Possible? Yes. It would require you to do some hacking. If this is a big enough request, I can make it a bit easier in a future release.
Quote:
Originally Posted by joeychgo
Loopy, yes, weeks ago when I first started my board
OK how do I get the pics toline in 2 columns? see what mine is doing now on the screenshot.......
You'll either need to enlarge the table, or reduce the thumbnail size. By default, I set thumbnails to 100x100, and that way they display in 2 columns.
I just think its a way to showcase the garage --- WOuldnt it be just a html block that would have to be inserted somewhere? (im getting better, but im still new lol)
I just think its a way to showcase the garage --- WOuldnt it be just a html block that would have to be inserted somewhere? (im getting better, but im still new lol)
Sort of. Except, in it's current state, the "Latest Uploads" are processed when vbgarage.php?do=view is called. Once it's called, it immediately outputs the [high]vbgarage_viewgarage[/high] template.
You would need to isolate the "Latest Uploads" SQL queries in the 'view' function and copy them to index.php (or whichever file you want it called from). Then, edit the respective template to include provisions for the [high]vbgarage_latestbits[/high].
It's not really hard, and normally I wouldn't mind whipping it together real quick. But I'm sort of burned out right now. My TIVO has a few days of Law & Order episodes recorded, so I think I'm going to take a break for a bit.
Of course, if there are any major problems or such, I will be here to help. If you can wait, I'll gladly modulize the Latest Uploads as well as include a Random Picture module.
Magnus.. upgrade went perfectly.. very nice work.. this looks to be a hack many people are going to play with and hopefully add on
Glad to hear it. I did, however, notice that your navbar link isn't working. You have it pointing to /vbgarage.php?do=list, when it should be /[high]forums/[/high]vbgarage.php?do=list.
On a side note, nice site. I just picked up a '96 GSXR750 yesterday, I might just sign up.
Ideally, random......... and clickable so you can go right to the pic owners garage...... IM looking to put it right below the navbar on my forums page...Maybe add it as a block on my VBAdvanced
Quote:
Originally Posted by corsacrazy
i can make a latest pics on main page or a random images block if you guys want?
Yes, whether there is a chance there also with GD 1,6 runs permits,
tip/assistance would be good
Does it run? Sure.
In vbgarage.php:
FIND:
PHP Code:
ImageCreateTrueColor(
REPLACE with:
PHP Code:
ImageCreate(
The thumbnails will look weird though. I've read there are ways to tweak ImageCreate(); so the thumbnails display correctly. But, since I (and hopefully most people) use GD2.0+, I didn't pursue the issue.