Difference between revisions of "New Downloadable Content Adtool Type"
m |
(No difference)
|
Revision as of 16:55, 18 December 2008
These instructions help you duplicate the Downloadable Content adtool type. The duplicate downloadable adtool type will have a different name and will appear separately from the Downloadable Content adtool type in the Affiliate Adtools list, but further customization will be up to you. You should not attempt to customize the new adtool type until you've completed these instructions.
Go to the Adtools Admin, go to the Downloadable Adtools Types section, find the Content adtool type, and click its Duplicate Adtool Type icon. Enter a shortname to identify your new adtool type. Edit your new adtool, change its Description, and click Save Changes. Click the View Adtools tab and upload an initial adtool.
Go to the Skins & Templates Admin and edit the default skin. The templates are listed alphabetically; find the following two templates:
- function_display_adtools_content_min
- function_display_adtools_content_max
You need to click the edit button for both of these templates, but when you do, make your web browser open each template in a new tab or window. Without closing the new tabs or windows, go back to the template listing and scroll to the top of the screen. In the create template box, enter the following template name:
- function_display_adtools_shortname_min
Replace shortname with the shortname you chose earlier. In the Header drop-down, choose No Header; in the Footer drop-down, choose No Footer. Enter a description and click Add. Go to the function_display_adtools_content_min page you opened in a new window or tab earlier and copy the entire Template Body; paste it into the Template Body of the template you just created.
Find and remove the following code:
<div class="slra slra_adtools_content_min2"><a href="fetch_zip.php?name={$tool.content_zip}&filename={$adid}_content_zip.zip&download=1">Download</a></div> <div class="slra slra_adtools_content_min3">{$adtool_types[$type_details.short].fields.type.mc_options[$tool.type]}</div>
Replace it with the following code:
<div class="slra slra_adtools_content_min2"><a href="fetch_zip.php?name={$tool.content_zip}&filename={$adid}_ign_content_zip.zip&download=1">Download</a></div> <div class="slra slra_adtools_content_min3">{$adtool_types[$type_details.short].fields.ign_type.mc_options[$tool.type]}</div>
Click Save Template to save the template and return to the template listing. In the create template box, enter the following template name:
- function_display_adtools_shortname_max
Replace shortname with the shortname you chose earlier. In the Header drop-down, choose No Header; in the Footer drop-down, choose No Footer. Enter a description and click Add. Go to the function_display_adtools_content_max page you opened in a new window or tab earlier and copy the entire Template Body; paste it into the Template Body of the template you just created.
Find and remove the following code:
<div style="padding-top: 8px; width: 235px; float: left; font-weight: bold; text-align: center; padding-right: 4px;"><a href="fetch_zip.php?name={$tool.content_zip}&filename={$adid}_content_zip.zip&download=1">Click HERE to Download Content</a></div>
Replace it with the following code:
<div style="padding-top: 8px; width: 235px; float: left; font-weight: bold; text-align: center; padding-right: 4px;"><a href="fetch_zip.php?name={$tool.content_zip}&filename={$adid}_ign_content_zip.zip&download=1">Click HERE to Download Content</a></div>
Find and remove the following code:
<div style="padding-top: 8px; width: 60px; float: left; text-align: left;">{$adtool_types[$type_details.short].fields.type.mc_options[$tool.type]}</div>
Replace it with the following code:
<div style="padding-top: 8px; width: 60px; float: left; text-align: left;">{$adtool_types[$type_details.short].fields.ign_type.mc_options[$tool.type]}</div>
Click Save Template.
Return to the Adtools Admin and edit your new adtool type. In the Display Template field, click the drop-down box and select the option with your adtool's shortname. Click Save Changes.
From the Main Program Page, go to the Affiliate Adtools, find your new adtool type, and try getting the initial adtool you added earlier. If it doesn't work, please submit a ticket and we'll help you out.