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..
thanks cinq, this mod needs to be stripped of all the b/s and an official FAQ written.
its to hard to search for anything if you don't want to go through 100 pages
I don't know what else it could be besides that. I went to check your garage out, but couldn't find it on your site. Try doing a search for "vbgarage" in your phrases to see if they are at least there.
Don't worry, next release will be in a new thread an I plan to stick around to keep it maintained.
Couldn't get the "View Members Garage" link to work in the postbit..
Tried using a pic and plain text, won't show up unless I remove the IF statement in the postbit and even then it links to the vbgarage homepage intead of the members garage.
Quote:
Originally Posted by cinq
In response to this :
In /includes/functions_showthread.php
FIND:
Code:
// ###################### Start process_highlight_postbit #######################
function process_highlight_postbit($text, $words, $prepend)
ADD ABOVE:
Code:
###################### FOR GARAGE ICON #######################
function fetch_garageicon($userid)
{
global $DB_site, $garagecache;
if (!is_array($garagecache))
{
$garagecache = array();
$garage = $DB_site->query
("
SELECT gu.userid, user.userid
FROM " . TABLE_PREFIX ."vbgarage_users AS gu
LEFT JOIN " . TABLE_PREFIX ."user AS user ON gu.userid = user.userid
");
while($garagequeryarray = $DB_site->fetch_array($garagequery))
{
$garagecache["$garagequeryarray[userid]"] = $garagequeryarray;
}
$DB_site->free_result($garagequery);
}
if($garageinfo = $garagecache[$userid])
{
if ($garageinfo[userid])
{
return "$stylevar[imgdir_misc]/viewgarage.gif";
}
}
return FALSE;
}
###################### FOR GARAGE ICON #######################
SAVE AND UPLOAD THE FILE
In showthread.php in the root directory of your forums.
FIND:
Lastly, upload your image into your forum images directory, in the MISC folder.
NOT TESTED but it should work. Do feedback for any errors and I will amend the errors accordingly. Would be good if this post can be linked in the hack post under the modifications/addons bit.
THIS SCRIPT IS INSECURE!
Last night i found 2 possible ways a hacker could gain entry via a hole in this script.
why isn't security a main issue with Vbulletin hacks? Its very sad, my vbgarage will now be taken down until i fix the hole..