Difference between revisions of "New Downloadable Content Adtool Type"

From TMM Wiki
Jump to navigationJump to search
m
 
m
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
}}
 
}}
  
These instructions help you duplicate the Downloadable Content [[ct#Adtool|adtool]] type. The duplicate downloadable adtool type will have a different
+
[[NATS]] provides the ability to duplicate [[Ct#Adtool|adtool]] types, including [[NATS4 Content|Downloadable Content]] Adtools. This duplicate [[Ct#Adtool|adtool]] will have a different name and will appear separately from the [[NATS4 Content|Downloadable Content]] adtool type in the Affiliate Adtools list.  
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
+
'''Note''': You can further customize your duplicated Downloadable Content adtool, but you should not attempt to customize your new adtool type until you have completed the following instructions.
section, find the Content adtool type, and click its Duplicate Adtool
 
Type icon. Enter a [[ct#Short name|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.
+
== Duplicating Your Adtool ==
The templates are listed alphabetically; find the following two
 
templates:
 
  
* function_display_adtools_content_min
+
To duplicate your [[NATS4 Content|Downloadable Content]] Adtool type, go to the [[NATS4 Adtools Admin|Adtools Admin]]. Scroll down to the Downloadable Adtools Types section, find the Content adtool type, and click the Duplicate Adtool Type icon. Enter a [[ct#Short name|shortname]] to identify your new adtool type.
* function_display_adtools_content_max
 
  
You need to click the edit button for both of these templates, but when
+
[[File:New content adtool.PNG|Configuring Your New Downloadable Content Adtool]]
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
+
On the next page, edit your new [[Ct#Adtool|adtool]], change its Description, and click Save Changes. Once you have duplicated your adtool type, click the View Adtools tab and upload an initial downloadable content adtool.
  
Replace ''shortname'' with the shortname you chose earlier. In the Header drop-down, choose ''No Header;'' in the
+
== Creating Templates For Your Adtool ==
Footer drop-down, choose ''No Footer.'' Enter a description and click
+
 
Add. Go to the ''function_display_adtools_content_min'' page you opened  
+
In order to use your new [[NATS4 Content|Downloadable Content]] adtool type, you will need to create new templates in the [[NATS4 Skins and Templates Admin|Skins & Templates Admin]].
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.
+
To do this, go to the [[NATS4 Skins and Templates Admin|Skins & Templates Admin]], click the "Advance Skins" tab, and view the [[Ct#Template|template]] for your ''default'' skin. The templates are listed alphabetically; find the following two templates:
 +
 
 +
* ''function_display_adtools_content_min''
 +
* ''function_display_adtools_content_max''
 +
 
 +
[[File:Display adtool template.PNG|450px|Adtool Templates to Customize]]
 +
 
 +
Edit each of these [[Ct#Template|templates]] in a new browser tab or window. Without closing your new tabs/windows, go back to the template listing and scroll to the top of the screen. In the "Create Template" section, enter the following template name:
 +
 
 +
* ''function_display_adtools_shortname_min''
 +
 
 +
Choose "function_" from the first drop-down menu and fill in the rest of the name in the empty box next to it. Replace ''shortname'' with the [[Ct#Shortname|shortname]] you chose earlier. In the Header drop-down, choose ''No Header;'' in the Footer drop-down, choose ''No Footer.'' Next, enter a description and click Create. Go back to the ''function_display_adtools_content_min'' page you opened in a new window or tab earlier and copy the entire Template Body. Finally, paste the copied code in to the Template Body of your newly created template.
  
 
Find and remove the following code:
 
Find and remove the following code:
Line 51: Line 47:
 
   slra_adtools_content_min3">{$adtool_types[$type_details.short].fields.ign_type.mc_options[$tool.type]}</div>
 
   slra_adtools_content_min3">{$adtool_types[$type_details.short].fields.ign_type.mc_options[$tool.type]}</div>
 
</pre>
 
</pre>
 +
  
 
Click Save Template to save the template and return to the template
 
Click Save Template to save the template and return to the template
Line 57: Line 54:
 
* function_display_adtools_shortname_max
 
* function_display_adtools_shortname_max
  
Replace ''shortname'' with the shortname you chose earlier. In the Header drop-down, choose ''No Header;'' in the
+
Choose "function_" from the first drop-down menu and fill in the rest of the name in the empty box next to it. Replace ''shortname'' with the shortname you chose earlier. In the Header drop-down, choose ''No Header;'' in the Footer drop-down, choose ''No Footer.'' Next, enter a description and click Create. Go back to the ''function_display_adtools_content_max'' page you opened in a new window or tab earlier and copy the entire Template Body. Finally, paste the copied code in to the Template Body of your newly created template.
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:
 
Find and remove the following code:
Line 91: Line 84:
 
</pre>
 
</pre>
  
Click Save Template.
+
Click Save Template when you are finished making changes.
  
Return to the Adtools Admin and edit your new adtool type. In the
+
== Setting Up Your Duplicated Adtool ==
 +
 
 +
Once you have finished setting up the other aspects of your new [[NATS4 Content|Downloadable Content]] Adtool Type, return to the [[NATS4 Adtools Admin|Adtools Admin]] and edit your new adtool type. In the
 
Display Template field, click the drop-down box and select the option
 
Display Template field, click the drop-down box and select the option
with your adtool's shortname.  Click Save Changes.
+
with your [[Ct#Adtool|adtool]]'s [[Ct#Shortname|shortname]], then click Save Changes.
 +
 
 +
When you've finished configuring your duplicated Downloadable Content Adtool type, go to your Main Program Page. Navigate to the Affiliate Adtools page, find your duplicated adtool type, and try to get the initial adtool you added earlier. If this does not work, please [http://clients.toomuchmedia.com submit a ticket and we'll help you out.]
  
From the Main Program Page, go to the Affiliate Adtools, find your new
+
[[Category:NATS4 Adtools Admin]]
adtool type, and try getting the initial adtool you added earlier.  If
 
it doesn't work, please
 
[http://clients.toomuchmedia.com submit a ticket and we'll help you out.]
 

Latest revision as of 12:20, 19 May 2011

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Adtools Admin
The Adtools Admin
Duplicating Adtool Types
Add New Adtools
Add New Adtool Type
Bulk Import Adtools
Downloadable Content Adtool Type
Get Hosted Galleries
Adtool Templates
Content of the Day
Linkcodes and Tools Admin
Setting Rules

NATS provides the ability to duplicate adtool types, including Downloadable Content Adtools. This duplicate adtool will have a different name and will appear separately from the Downloadable Content adtool type in the Affiliate Adtools list.

Note: You can further customize your duplicated Downloadable Content adtool, but you should not attempt to customize your new adtool type until you have completed the following instructions.

Duplicating Your Adtool

To duplicate your Downloadable Content Adtool type, go to the Adtools Admin. Scroll down to the Downloadable Adtools Types section, find the Content adtool type, and click the Duplicate Adtool Type icon. Enter a shortname to identify your new adtool type.

Configuring Your New Downloadable Content Adtool

On the next page, edit your new adtool, change its Description, and click Save Changes. Once you have duplicated your adtool type, click the View Adtools tab and upload an initial downloadable content adtool.

Creating Templates For Your Adtool

In order to use your new Downloadable Content adtool type, you will need to create new templates in the Skins & Templates Admin.

To do this, go to the Skins & Templates Admin, click the "Advance Skins" tab, and view the template for your default skin. The templates are listed alphabetically; find the following two templates:

  • function_display_adtools_content_min
  • function_display_adtools_content_max

Adtool Templates to Customize

Edit each of these templates in a new browser tab or window. Without closing your new tabs/windows, go back to the template listing and scroll to the top of the screen. In the "Create Template" section, enter the following template name:

  • function_display_adtools_shortname_min

Choose "function_" from the first drop-down menu and fill in the rest of the name in the empty box next to it. Replace shortname with the shortname you chose earlier. In the Header drop-down, choose No Header; in the Footer drop-down, choose No Footer. Next, enter a description and click Create. Go back to the function_display_adtools_content_min page you opened in a new window or tab earlier and copy the entire Template Body. Finally, paste the copied code in to the Template Body of your newly created template.

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

Choose "function_" from the first drop-down menu and fill in the rest of the name in the empty box next to it. Replace shortname with the shortname you chose earlier. In the Header drop-down, choose No Header; in the Footer drop-down, choose No Footer. Next, enter a description and click Create. Go back to the function_display_adtools_content_max page you opened in a new window or tab earlier and copy the entire Template Body. Finally, paste the copied code in to the Template Body of your newly created template.

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 when you are finished making changes.

Setting Up Your Duplicated Adtool

Once you have finished setting up the other aspects of your new Downloadable Content Adtool Type, 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, then click Save Changes.

When you've finished configuring your duplicated Downloadable Content Adtool type, go to your Main Program Page. Navigate to the Affiliate Adtools page, find your duplicated adtool type, and try to get the initial adtool you added earlier. If this does not work, please submit a ticket and we'll help you out.