This chapter will explain several advanced concepts, allowing you to customize your program around your exact needs. This chapter explains several topics, from multiple program structures and commission plans, to editing the HTML templates.
The concepts discussed in this chapter are only for those who are technically minded. You must have a good understanding of both, HTML code and FTP in order to fully understand this chapter.
Almost the entire Web Site Replicator is completley template based. This allows you to change the look of virtually everything you and your members see. The only part of the script which is not template based are things such as the error messages which the script gives off. These are coded directly in the script.
The HTML templates which the script uses are simply web pages which contain a few special HTML tags. The following parts of this section will explain details on all special HTML tags which the Web Site Replicator uses.
6.1.1 Merge Fields
The HTML templates contain many merge fields, exactly as you use in your self replicating web sites, such as ~name~ and ~email~. When the script displays the templates, these merge fields are replaced with specific information. Under no circumstances, should you change or modify any of the merge fields found in the HTML templates.
6.1.2 <REPRODUCE> HTML tags
Throughout the HTML templates, you will you notice several sets of <REPRODUCE ... > HTML tags. When the script prints out an HTML template , it will take everything between these HTML tags and copy it over and over. For example, if the script is displaying a list of members, the HTML template will contain one set of <REPRODUCE ... > HTML tags, and the script will copy everything between the HTML tags over and over, for every member.
You may edit the HTML code inside of these HTML tags, but should never delete or modify the actual HTML tags themselves. Only the HTML code inside of them.
6.1.3 <IF> HTML tags
Another special set of HTML tags which you will see in many HTML templates are the <IF ... > tags. Depending on how your program is setup, the script may or may not display the contents between these tags when it prints an HTML template. For example, several HTML tags contain special sections for multiple program structures. If your program contains multiple program structures, the script will display the contents between the <IF ... > tags. However, if your program does not contain multiple program structures, the script will "hide" the contents between these tags.
Again, you may modify the contents between these tags, but should never modify or delete the HTML tags.
6.1.4 <INCLUDE> HTML tags
The <INCLUDE ... > HTML tags are quite rare in the Web Site Replicator. These simply act exactly as Server Side Includes do. The <INCLUDE ... > HTML tag will contain the location of another HTML template. When the script prints the HTML template it will simply replace the <INCLUDE ... > HTML tag with the contents of the specified template. You should not modify these HTML templates at all, and they should remain exactly as they are.
6.1.5 HTML Template Descriptions
All HTML templates used by the script are stored in the /wsr_data/htmlt/ directory of your web server. This section explains exactly where each HTML template is located, and what it is used for. You can edit these HTML templates just like normal web pages, but please keep in mind all of the special HTML tags explained above.
All HTML templates described in the below table are located in the /wsr_data/htmlt/ directory of your web server.
HTML Template Description deactivated.htmlt When a member has been deactivated through the Admin Control Panel, this HTML template will be displayed when the member tries to login to the Member's Only Area, or when someone tries to view the member's self replicating web site. error.htmlt When any error occurs, this HTML template will be displayed. For example, if a new member enters an invalid e-mail address in the newuser HTML form, the script will display this HTML template. error_validate.htmlt This HTML template is displayed when a validation error occurs. When a member deletes themselves from the Member's Only Area, the script first validates all needed information in the database. If an error occurs while validating the information, this HTML template will be displayed. marea_delete_account.htmlt This is the HTML template which is shown when a member goes to delete themselves from the Member's Only Area. marea_edit_profile.htmlt When a member edits their profile from the Member's Only Area, this HTML template is displayed. marea_email_downline.htmlt This HTML template is displayed when a member goes to e-mail their downline from the Member's Only Area. marea_expired.htmlt During First Time Setup, you specified how many minutes of inactivity until a member is automatically logged out of the Member's Only Area (eg. 30 minutes). If a member has been automatically logged out due to inactivity, the script will display this template, asking the member to login again. marea_invalid.htmlt If a member enters an invalid username or password when trying to login to the Member's Only Area, the script will display this HTML template. marea_view_commission.htmlt This HTML template is displayed when a member views a summary of their commissions from the Member's Only Area. marea_view_commission_details.htmlt When a member click on the More Info link, while viewing all commission transactions on their account from one month, the script will display this HTML template. marea_view_commission_month.htmlt When a member first views their commissions from the Member's Only Area, they see a summary of commissions earned every month. When they view specific details on any one month, the script will print this HTML template. marea_view_stats.htmlt This HTML template is displayed when a member views their stats from the Member's Only Area. marea_view_stats_add.htmlt When a member views additional information on their downline through the Member's Only Area, the script will display this HTML template. marea_view_stats_level.htmlt This HTML template is displayed when a member views the exact members who are in their downline from the View Stats section of the Member's Only Area. marea_view_stats_website.htmlt This HTML template is displayed when a member views their web site statistics from the Member's Only Area newuser_thankyou.htmlt After a member has joined your program through the newuser HTML form, the script will display this HTML template. processing.htmlt This HTML template is displayed while the script executes a large process, such as sending an e-mail to a members downline. It is recommended that you do not modify this HTML template in any way. reminder.htmlt If a member forgets their password, they can have it automatically e-mailed to them using the password reminder feature. This HTML template will be displayed when a member needs their password e-mailed to them. reminder_noemail.htmlt If a member enters an e-mail address in the password reminder form, which does not exist in the member database, the script will display this HTML template. reminder_success.htmlt Once a member has entered a valid e-mail address into the password reminder form, the script will display this HTML template. success.htmlt This HTML template is displayed after an action has been successfully completed from the Member's Only Area, such as after a member has edited their profile.
One of the great features of the Web Site Replicator is the ability to support multiple program structures. For example, you could have three different phases of your program, first a 2x3 forced matrix, then a 3x5 forced matrix, and after, a 10 level network (unlimited width) program structure. Each of the program structures can also have different commission plans.
To create multiple program structures, go to the Setup->Program Settings menu of the Admin Control Panel and create as many program structures as needed, exactly as you did in Section 5.2 Create Your Program Structure of this manual. Once you have created all needed program structures, there will be a new select box when you create or edit a member, asking for the member's program structure.
Each program structure is completley different than each other. The script treats each program structure as a completley different set of downlines. Each member can only be in one program structure at a time, and there is no way for a member to be in two program structures at once.
When a member is moved from one program structure to the other, the script deletes the member from the old program structure, and places them in the new one, exactly as it would place a new member. All of the member's downline information from the old program structure will be deleted, and there will be no way to retrieve the member's old downline.
Each program structure can have multiple commission plans. To do this, go to the Setup->Program Settings menu of the Admin Control Panel and create as many commissions as needed, exactly as you did in Section 5.3 Create Your Commission Plan of this manual.
Each program structure has their own set of commission plans, and there is no way use one commission plan for two program structures. This is because the script assumes that all program structures are completley different.
After you have created all needed commission plans, there will be a new select box when you edit a member, asking for the member's commission plan. When a new member is created, the script will assign the member the Default Commission Plan which you have set.
One of the excellent features of the Web Site Replicator is the ability to define commission bonuses. These allow you to define a condition, and when a member meets that condition, they will receive a bonus. For example, you could set a commission bonus so once a member earns a total of $500 in commission, they will automatically receive a bonus of $100. Or, once a Silver member recruits 25 people, they will be automatically upgraded to a Gold member type.
To create a commission bonus, first complete the following steps:
- Go to the Setup->Program Settings menu of the Admin Control Panel
- On the next page, select a program structure from the list and click on the Manage Commission Plans submit button.
- If you have not yet created a commission plan for the selected program structure, you must create one now by clicking on the Create New Commission Plan submit button.
- Once a commission plan has been created, select it from the list, and click on the Manage Commission Bonuses submit button.
You should now be at a page which contains two sections titled Current Bonuses and Add New Bonus. Scroll down to the second section. You should currently be looking at something which looks like:
The first section asks for the Bonus Condition. This is the condition which the customer must meet before receiving the commission bonus. The member will not receive the bonus until this condition has been met. Simply, select one of the conditions from the table, and the next page will ask for specific information regarding the condition.
The next part of this section looks like:
This part of the section asks which rewards you would like to give a member, once they have fulfilled the bonus condition. You may specify more than one reward for your members. Simply check all rewards you would like to give a member, and click on the Create Bonus submit button.
The next page contains four sections, asking for specific information regarding the commission bonus. The first two sections titled, Bonus Condition and Bonus Reward ask specific information regarding what you entered on the previous page. For the first two sections, simply fill out all needed fields.
The third section is titled Confirmation Messages and allows you specify who will receive an e-mail message when a member is awarded the commission bonus. For everyone you check in this section, an e-mail message will be created which you can edit through the Communicate->Edit Message menu.
The fourth and last section of this page is titled Additional Information and asks two questions about how often to award this commission bonus. You should almost always leave both questions as is. Every night the script will run through all members, and check to see if they qualify to receive the commission bonus.
For example, if you have a commission bonus which says Once a member earns $500 in commission, add $100 commission to their account, the script will run every night and will add $100 commission every night to member's who have earned $500 in commission. The two questions in this section will stop that from happening, and only allow each member to receive the commission bonus once.
The only reason you should change the fields in this section is if the bonus condition is, Member earned an X amount of commission, in an X number of days. This way, you could set the bonus so once a member has received the bonus, they will not receive it again for 30 days.
This section of the chapter will go through all additional settings such as changing member types, self replicating web sites, Member Only Areas, plus more. To access the additional settings section, go to the Setup->General Settings menu of the Admin Control Panel. Once there, click on the Additional Settings submit button at the top of the screen.
The first three sections are titled Member Types, Self Replicating Web Sites and Member Only Areas. Through these sections you can rename and add the needed fields. There is no way to delete any of these fields, as there is too great of a chance of your database becoming corrupt. If you add new entries to any of these fields, you should go back to the Setup->Generate HTML Forms menu and generate your newuser HTML form again.
The last two questions are titled Program Structures and Commission Plans. These two sections allow you to change the names of your program structures and commission plans. If you need to add any new entries to these sections, you must do this thorough the Setup->Program Settings menu.