flup
01-20-2009, 10:00 PM
This plugin is made for the CND Garage system (click (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:
<div>
$vbphrase[posts]: $post[posts]
</div>
Below it add:
<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:
<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):
$post[garage_cars]
Both can be placed between the following tags, these check if there are any cars found for the users:
<if condition="$show[garage_cars]">
and
</if>
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:
<div>
$vbphrase[posts]: $post[posts]
</div>
Below it add:
<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:
<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):
$post[garage_cars]
Both can be placed between the following tags, these check if there are any cars found for the users:
<if condition="$show[garage_cars]">
and
</if>