Difference between revisions of "Affiliate Join Page Linkcodes"
TMMStephenY (talk | contribs) (Created page with '{{NATS4 Manual | show_skins_and_templates_admin_section = true }} In NATS4, the Affiliate Link Codes page only provides [[Ct#Linkcode|linkcode…') |
TMMStephenY (talk | contribs) m |
||
Line 39: | Line 39: | ||
When you have finished adding ''/join'' to the appropriate locations, click "Save Template." Your Affiliate Link Codes page should now display [[Ct#Linkcode|linkcodes]] for both your [[Ct#Tour|tour]] and [[Ct#Join Form|join]] pages. | When you have finished adding ''/join'' to the appropriate locations, click "Save Template." Your Affiliate Link Codes page should now display [[Ct#Linkcode|linkcodes]] for both your [[Ct#Tour|tour]] and [[Ct#Join Form|join]] pages. | ||
+ | |||
+ | [[Category:NATS4 Skins and Templates]] |
Latest revision as of 14:50, 18 May 2011
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.