Fusion Scripts Documentation Glossary   
Search  
   
Browse by Category
Fusion Scripts Documentation .: Garage Module .: Tips / Addons .: Manually adding garage button to posts

Manually adding garage button to posts

Under normal circumstances skin inheritence will add the garage button to posts automatically by setting your skin as the child of the imported Garage skin. These instructions are provided if for some reason you need or want to do this process manually.


Adding the Macro

The first step is to create the macro for the button image.  In your ACP click on 'Skins & Templates' -> 'Skin Manager'. Then click on your particular skin set in the list shown and choose Edit Childs Replacement Macros.

Click Add Macro in the upper right corner of the screen. Enter the following values:

Variable = P_GARAGE
Replacement = <img src='style_images/<#IMG_DIR#>/p_garage.gif' border='0'  alt='View Vehicles' />.

Click Add This Macro

Make sure you have uploaded the p_garage.gif file to the image directory associated with your skin set.


Modifying the Template

Again in the Skin Manager click on your skin set and choose Edit Root Skin Template HTML. Scroll down and click 'Topic View' -> 'RenderRow' to bring up the template editor.

Search for this text:

{$post['report_link']}

Add this directly before it:

<a href="{ipb.script_url}act=garage&amp;CODE=06&amp;search=member&amp;member_name={$post['name']}"><{P_GARAGE}></a>


That's it, you should now see the Garage Button button on the bottom of posts while viewing a thread like this:

Garage Button in Posts


How helpful was this article to you?

Related Articles

article Adding IPDL Content Boxes for Garage v2.0.2
As of Garage v2.0.2 it has built in support...

  12-13-2004    Views: 2863   
article Adding IPDL Content Boxes for Garage v2.0.3
Garage Module v2.0.3 has adopted the new IPB...

(No rating)  10-5-2005    Views: 1172   
article How to add a link under profiles in posts
This guide will show you how to add a link to...

  12-7-2004    Views: 2050   

User Comments

Add Comment
No comments have been posted.


.: Powered by Lore 1.5.6
Copyright © 2005 Fusion Scripts. All Rights Reserved