Affiliate Join Page Linkcodes

From TMM Wiki
Jump to navigationJump to search
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
Skins and Templates Admin
The Skins and Templates Admin
Skins
Templates
Site Templates
Language Skins
Language Files
custom_errors.php
Join Page Variables
Skipping NATS Join Form
Post URL Variables
Member Usernames & Passwords
Form Validation
Username Recommendations
Password Retrieval
Post-Biller Templates
Geo-Target Join Options
Random Usernames and Passwords
Smarty
Smarty print array
Smarty Plugins
Available Smarty Functions
Affiliate Support Template
Adding a Verification Image
Custom Program and Campaign Selection Pages
Output An Affiliate's Last Paid Date
Affiliate Signup Email
Affiliate Join Page Linkcodes
Approval/Upgrade/Denial Variables
Approval/Upgrade/Denial Template Variables
CSS Theme Builder

In NATS4, the Affiliate Link Codes page only provides linkcodes for each of your site's tour pages to your affiliates by default. By editing the appropriate template, however, you can edit the Affiliate Link Codes page to display join links as well, allowing affiliates to directly link surfers to your NATS join form.

Editing Your Template

If you wish to provide your affiliates with a direct link, containing the appropriate linkcode, to your join form, go to the Skins and Templates Admin.

In the Skins and Templates Admin, find the skin you wish to edit, and click the "Edit Templates" action icon. You cannot edit default skins in NATS, so make sure that you select a non-default skin to edit.

On the next page, locate the function_list_linkcodes template and click the "Edit" action icon. This will open the template in NATS, so you can make your desired edits.

In your function_list_linkcodes template body, you will see a block of code that is similar to the following:

<label for="" class="box_info_field" style="margin-top: 9px; width: 160px;">{$sites[$siteid]} ({$tours[$siteid][$tourid]|truncate:10:'':1}):</label>
<input type="text" value="{$tourlink[0][0][0]}" style="width: 428px;" readonly> 
<a href="{$tourlink[0][0][0]}" target="_blank" style="text-decoration: underline;">Link</a> | 
<a href="internal.php?page=code_info&natscode={$tourlink[0][0][0]}" target="_blank" style="text-decoration: underline;">Details</a><br class="formspace" /> 

If you wish to display both the appropriate tour and join page linkcodes, simply copy that block of code from your template and paste it directly underneath the block of code detailed above.

You will then have to add /join to the two lines in the copied code that display your linkcodes. For example:

<input type="text" value="{$tourlink[0][0][0]}/join" style="width: 428px;" readonly> 
<a href="{$tourlink[0][0][0]}/join" target="_blank" style="text-decoration: underline;">Link</a> | 

So, the final block of code underneath the pre-existing code detailed above should look similar to the following:

<label for="" class="box_info_field" style="margin-top: 9px; width: 160px;">{$sites[$siteid]} ({$tours[$siteid][$tourid]|truncate:10:'':1}):</label>
<input type="text" value="{$tourlink[0][0][0]}/join" style="width: 428px;" readonly> 
<a href="{$tourlink[0][0][0]}/join" target="_blank" style="text-decoration: underline;">Link</a> | 
<a href="internal.php?page=code_info&natscode={$tourlink[0][0][0]}" target="_blank" style="text-decoration: underline;">Details</a><br class="formspace" /> 

When you have finished adding /join to the appropriate locations, click "Save Template." Your Affiliate Link Codes page should now display linkcodes for both your tour and join pages.