Script Page Templates

Introduction

AutoRank Pro's template system allows you to control the HTML that is displayed by your account creation and maintenance pages as well as the search engine and gateway pages. Your templates can be changed at any time through the control panel. This makes it quick and easy to integrate these pages into your existing site design.

Control Panel Editing Interface

All changes to your script page templates will be made through the control panel. From the control panel menu, locate and click on the Script Pages link in the Templates section. AutoRank Pro will load a page where you will be able to select which of the template files you want to edit. Select the template you want to edit from the list, and press the Load Template button.

You will be returned to the same page, however now there will be a large text input box where you will edit your HTML code. The first time you do this, the text input box will contain AutoRank Pro's default HTML. You can edit that HTML or paste your own HTML code into this text input box. When you are satisfied with the changes you have made, click on the Save button at the top or bottom of the page.

All of the changes you make will be immediate. The next time you visit the submit form, the updated template will be used.

Control Structures

These templates will use some control structures, however you should not need to edit or add any to your customized templates. The only thing you may need to do is move the control structures to different locations in the template. For that reason, they will only briefly be covered here. Template Values

Each of the template files has it's own set of valid template values.

accounts.css
This is the style sheet that is included on most of the script page templates.

No template values for this template

accounts_add.tpl
This is the form that will be shown to webmasters who want to create an account.

##Name_Field_1## - The name of user defined field 1 taken from the value you entered in the Edit Options interface
##Name_Field_2## - The name of user defined field 2 taken from the value you entered in the Edit Options interface
##Name_Field_3## - The name of user defined field 3 taken from the value you entered in the Edit Options interface

accounts_added.tpl
This is the page that will be displayed after a webmaster has created an account.

##Tracking_URL## - The URL that the webmaster should send hits to in order for them to be tracked
##Email## - The e-mail address that the webmaster submitted
##Site_URL## - The site URL that the webmaster submitted
##Title## - The site title that the webmaster submitted
##Description## - The description that the webmaster submitted
##Banner_URL## - The banner URL that the webmaster submitted
##Banner_Width## - The banner width that the webmaster submitted
##Banner_Height## - The banner height that the webmaster submitted
##Category## - The category that the webmaster submitted
##Recip_URL## - The reciprocal link URL that the webmaster submitted
##Field_1## - The value submitted for user defined field 1
##Field_2## - The value submitted for user defined field 2
##Field_3## - The value submitted for user defined field 3
##Username## - The username that the webmaster selected
##Password## - The password that the webmaster selected
##Name_Field_1## - The name of user defined field 1 taken from the value you entered in the Edit Options interface
##Name_Field_2## - The name of user defined field 2 taken from the value you entered in the Edit Options interface
##Name_Field_3## - The name of user defined field 3 taken from the value you entered in the Edit Options interface

accounts_edit.tpl
This is the form members will see when they want to edit their account.

##Email## - The e-mail address on file for the account
##Site_URL## - The site URL on file for the account
##Title## - The site title on file for the account
##Description## - The description on file for the account
##Banner_URL## - The banner URL on file for the account
##Banner_Width## - The banner width on file for the account
##Banner_Height## - The banner height on file for the account
##Category## - The category on file for the account (only valid inside the Categories loop)
##Recip_URL## - The reciprocal link URL on file for the account
##Field_1## - The value on file for user defined field 1
##Field_2## - The value on file for user defined field 2
##Field_3## - The value on file for user defined field 3
##Username## - The username of the account
##Password## - The password for the account
##Name_Field_1## - The name of user defined field 1 taken from the value you entered in the Edit Options interface
##Name_Field_2## - The name of user defined field 2 taken from the value you entered in the Edit Options interface
##Name_Field_3## - The name of user defined field 3 taken from the value you entered in the Edit Options interface

accounts_edited.tpl
This is the confirmation page that will be displayed when a member edits their account.

##Email## - The e-mail address that the webmaster submitted
##Site_URL## - The site URL that the webmaster submitted
##Title## - The site title that the webmaster submitted
##Description## - The description that the webmaster submitted
##Banner_URL## - The banner URL that the webmaster submitted
##Banner_Width## - The banner width that the webmaster submitted
##Banner_Height## - The banner height that the webmaster submitted
##Category## - The category that the webmaster submitted
##Recip_URL## - The reciprocal link URL that the webmaster submitted
##Field_1## - The value submitted for user defined field 1
##Field_2## - The value submitted for user defined field 2
##Field_3## - The value submitted for user defined field 3
##Username## - The username of this account
##Password## - The password that the webmaster selected
##Name_Field_1## - The name of user defined field 1 taken from the value you entered in the Edit Options interface
##Name_Field_2## - The name of user defined field 2 taken from the value you entered in the Edit Options interface
##Name_Field_3## - The name of user defined field 3 taken from the value you entered in the Edit Options interface

accounts_error.tpl
This template is used to display error messages to the person creating or maintaining their account.

##Error## - A message indicating what the specific error is

accounts_links.tpl
This template is displayed when the account holder selects to view banners and links from the login page.

##Username## - The account username
##Tracking_URL## - The URL that the webmaster should send hits to in order for them to be tracked

accounts_login.tpl
This template is displayed when the account holder wishes to maintain their account.

No template values for this template

accounts_remind.tpl
This template is displayed when an account holder needs to be reminded of their username or password.

##Email## - The e-mail address that the account login information was sent to

accounts_statistics.tpl
This template is displayed when an account holder views their statistics.

##Signup_Date## - The signup date and time of the account
##Last_Reset## - The date and time of the last reset
##Total_Reset## - The date and time of the last total reset
##Weighted_In## - The number of hits the member has sent to your site since the last reset, with the weight applied
##Weighted_Out## - The number of hits you have sent to the member site since the last reset, with the weight applied
##Weighted_Total_In## - The total number of hits the member has sent to your site since the last total reset, with the weight applied
##Weighted_Total_Out## - The total number of hits you have sent to the member site since the last total reset, with the weight applied
##In_Per_Day## - The average number of hits the member has sent to your site each day since the last total reset
##In_Per_Week## - The average number of hits the member has sent to your site each week since the last total reset
##In_Per_Month## - The average number of hits the member has sent to your site each month since the last total reset
##Out_Per_Day## - The average number of hits you have sent to the member site each day since the last total reset
##Out_Per_Week## - The average number of hits you have sent to the member site each week since the last total reset
##Out_Per_Month## - The average number of hits you have sent to the member site each month since the last total reset

Valid inside the Stats loop:
##Date## - The date for these stats
##Weighted_In## - The number of hits the member site sent to you
##Weighted_Out## - The number of hits you sent to the member site
##Overall_Rank## - The member site's overall ranking
##Category_Rank## - The mebmber site's ranking within it's category

in_gateway.tpl
This is the gateway page template for the in.cgi script.

##In_URL## - The URL of the in.cgi script
##Session## - The session identifier created by the software
##ID## - The username of the account that generated this hit

search_results.tpl
This template is displayed when a search is done by a surfer.

##Total## - The total number of search results
##s## - This will display an s if the number of results is 0 or greater than 1 or nothing if there is only 1 result

Valid inside the Results loop:
##Overall_Rank## - The site's current overall rank
##Category_Rank## - The site's category rank
##Email## - The e-mail address of the account
##Site_URL## - The site URL of the account
##Title## - The site title of the account
##Description## - The description of the account
##Banner_URL## - The banner URL of the account
##Banner_Width## - The banner width of the account
##Banner_Height## - The banner height of the account
##Category## - The category of the account
##Recip_URL## - The reciprocal link URL of the account
##Field_1## - The value submitted for user defined field 1
##Field_2## - The value submitted for user defined field 2
##Field_3## - The value submitted for user defined field 3
##Weighted_In## - The number of hits the member has sent to your site since the last reset, with the weight applied
##Weighted_Out## - The number of hits you have sent to the member site since the last reset, with the weight applied
##Weighted_Total_In## - The total number of hits the member has sent to your site since the last total reset, with the weight applied
##Weighted_Total_Out## - The total number of hits you have sent to the member site since the last total reset, with the weight applied