Quote:
Originally Posted by INDYRPM
That would be awesome! Let me know what I need to change if you could.
I think that would be a great feature to add to your add-on, as well.
|
ACP->Plugins & Products->Plugin Manager
Scroll down and open the plugin
VB Pro Garage Forum Home Pictures
Find
Code:
$pic_query = $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " . TABLE_PREFIX . "garage_images gi LEFT JOIN " .TABLE_PREFIX . "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE guv.active = '1' GROUP BY gi.vehicle_id" . $orpic);
Replace with
Code:
$pic_query = $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " . TABLE_PREFIX . "garage_images gi LEFT JOIN " .TABLE_PREFIX . "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE gi.attach_type = 'vehicle' && guv.active = '1' GROUP BY gi.vehicle_id" . $orpic);