Back to vBulletin 3.7 Add-ons

Status of PHP 8.5 support: Possible. Open Contacts for details.

CND Garage add-on: Show cars in postbit
Mod Version: 1.01, by flup

This modification is in the archives.
vB Version: 3.7.x Rating: (2 votes - 4.50 average) Installs: 18
Released: 21 Jan 2009 Last Update: 21 Jan 2009 Downloads: 86
Not Supported Uses Plugins Template Edits  

This plugin is made for the CND Garage system (http://www.cnd-systems.com/support/forums/forumdisplay.php?f=30) and will display the cars a user has in his garage. If there are no cars in the users garage, there wont be displayed anything

EDITS / UPLOADS / IMPORTS
- 1 plugin import
- 1/2 template edits

INSTALLATION GUIDE
First of all, import the plugin using: admincp -> Plugins & Products -> Download / Upload Plugins, the import form is on the bottom of the page.

After that, edit your postbit and/or postbit_legacy templates and find:
HTML Code:
<div>
$vbphrase[posts]: $post[posts]
</div>
Below it add:
HTML Code:
<if condition="$show[garage_cars]"><div><small><b><a href="garage.php?do=user_garage_view&id=$post[userid]">$post[musername]'s Garage</a></b>:<br />$post[garage_cars]</small></div></if>
RESULT
See the attached screenshot for the result, of course this one is customized to fit my forum style

VERSIONS
  • 1.00 - Vehicles order by date of adding to the CND Garage
  • 1.01 - Order of the vehicle list by putting the main vehicle on top followed by the other/previous vehicles

CUSTOM TEMPLATE EDIT GUIDE
If you have a custom style, you can use these codes in your postbit templates:

To display the link to a users garage:
HTML Code:
<a href="garage.php?do=user_garage_view&id=$post[userid]">$post[musername]'s Garage</a>
To display the users cars (+ links to the cnd garage car page):
HTML Code:
$post[garage_cars]
Both can be placed between the following tags, these check if there are any cars found for the users:
HTML Code:
<if condition="$show[garage_cars]">
and
HTML Code:
</if>

Download

This modification is archived, downloads are still allowed.

File Type: %1$s cnd_garage_cars_in_postbit_v101.xml (1,011 Bytes, 83 downloads)
File Type: %1$s cnd_garage_cars_in_postbit_v100.xml (981 Bytes, 26 downloads)

Screenshots

Click image for larger version
Name:	cnd_garage_cars_in_postbit.png
Views:	461
Size:	48.6 KB
ID:	93184  

Similar Mods

Cars vBulletin 3.6 Styles

vblts.ru supports vBulletin®, 2022-2025