Top Level Category

Table of Contents

  1. Contents of Top Level Category
    1. Administration
      1. Affiliate Management (Managing and Communicating with Affiliates)
        1. Automatic Signup Module (Modules used for automatically adding...)
      2. Commissions and Payments (Managing Your Commissions and Payments)
      3. Marketing Tools (Marketing Tools available for use in JAM)
        1. Articles (Article Management)
        2. Banner Ads (Banner Ad Management)
        3. Email Ads (Email Ad Management)
        4. Follow-Up Messages (Setting Up the Built-In Follow-Up Messaging...)
        5. Hover Ads (Hover Ad Management)
        6. Offline Marketing (Offline Marketing Module)
        7. One-Time Offer (Setting Up the One-Time Offer Option)
        8. Replicated Websites (Setting Up Static Website Replication)
        9. Text Ads (Text Ad Management)
        10. Text Links (Text Link Management)
        11. Viral PDFs
      4. Membership Management (Setting Up and Managing Memberships in JAM)
      5. Program Management (Managing Different Affiliate and Membership...)
      6. Stats and Reporting (Statistics and Reporting Data in JAM)
    2. Systems Management (Managing and Monitoring Your JAM system)
    3. Installation (JAM Installation)
    4. Quick Config / How Tos
    5. Troubleshooting
    6. Configuration
      1. Content Publishing (How to publish different types of content using...)
      2. Downloadable Files (How to provide downloadable files and products...)
      3. Payment Modules (How to Configure Payment Modules)
        1. Commission Payments (These are used to pay affiliate commissions)
        2. Membership Payments (These are used for collecting payment from...)
      4. Signup Modules (Optional Signup Modules and how to configure them)
      5. Settings (The different configuration settings and...)
      6. Email Settings (Email Templates and Settings)
      7. Cron Jobs (Setting up CRON jobs or scheduled tasks in JAM)
    7. Customization
      1. Custom Links (Information on custom affiliate links)
      2. Language (How to add or edit the language files)
      3. Members Area (How to customize the look and feel of the...)
    8. System Integration (Integration instructions for JAM with other...)

Top Level Category

Parent category to all other categories

What is Affiliate Marketing?

Affiliate marketing is a system of revenue sharing between a merchant (website) and an advertiser (the affiliate).  This system allows the merchant to recruit or signup affiliates/advertisers to advertise their products and/or services in return for a commission on sales sold by that affiliate.

Normally, this type of marketing works by having the merchant website create an affiliate program that affiliate members can join.  Upon joining, the affiliate is given a unique website URL to promote that merchant's products and/or services.  By promoting this link, any referrals that click on this unique link are tracked.  When the referring customer buys from the merchant, the affiliate member is given a commission for that referring sale.

Merchants can pay affiliates in many different ways.  These include pay-per-sale, pay-per-lead, or pay-per-click.  This depends entirely on the merchant website and how they want to reward their affiliate members.

Ryan Roxas

What is JROX.COM Affiliate Manager (JAM) ?

JROX.COM Affiliate Manager, also known as JAM, is an affiliate and membership management system. This system allows you to recruit, manage, and build an army of online affiliates that can help promote your products and services throughout the Internet.

What is an Affiliate?

An affiliate can be described as a 'virtual salesperson', one that can help refer new customers to your online business in exchange for a commission when sales are generated.  This affiliate can come in the form of a website owner, another internet business, or an Internet webmaster.

Where does JAM come in?

JAM can be used to help you recruit and manage these affiliates as well as give them exclusive access to marketing and promotional tools to promote your business.  These tools have unique tracking codes that your affiliate can use so that any referring customer that they send to you, they will get the proper commission for it.

JAM will help you manage most of the aspects of your affiliate marketing strategy from signup, to member management, to payment of affiliates, and to keeping proper records of commissions.  It will also manage your affiliate marketing tools such as banner ads, text links, email ads, and so forth that you will assign to each affiliate to help you promote your Internet business.

Ryan Roxas

your default affiliate signup URL

your default affiliate signup URL is usually:

http://www.yourdomain.com/affiliates/index.php?req=newaccount&pid=1

alternatively,  you can click on the 'create account link on your affiliate's login page to get to it.
Ryan Roxas

Administration

Navigation Links Overview

JROX.COM Affiliate Manager allows you to manage and administer every facet of your affiliate program. It has rich and extensive features that allow you to efficiently administer all of your affiliates as well as the commissions that they generate.

To begin the administration tasks of managing your affiliates using JAM, here is a quick rundown of the main navigation and sections of JAM:

  1. Affiliates

  2. Commissions

  3. Reports

  4. Marketing

  5. Programs

  6. Settings

Some of these site map links have drop-down menus to make it even easier to access specific functions, such as Affiliates>Edit / Delete Affiliates.

Using the JAM Bookmarking Feature

JAM has a great feature in its bookmarks module.  By using the bookmarking feature, you can save and bookmark any page on JAM so you can easily get to it from any page on the site, without having to click back to it too many times.

The bookmarks module is located on the upper right of the screen.

Create a Bookmark

To create a bookmark, click on the  Star Icon to launch the bookmark window:

Accessing Bookmarks

To access your bookmarks, click on the View Bookmarks link and a drop-down list will appear, listing the 10 most recent bookmarks you have.

Deleting Bookmarks

To delete a bookmark, click on the View Bookmarks link and select Manage Bookmarks from the drop-down menu. You will now have all your bookmarks listed, and you can delete one by clicking on the  Delete Icon.


Affiliate Management

Managing and Communicating with Affiliates

Affiliate and Commission Groups

You can also assign your affiliates to specific affiliate groups for better management and emailing.  

Affiliate Groups are used to help segment your affiliate members for mass emailing, group commissions, and exclusive access to downloadable files.  

Here are a few examples of what to use affiliate groups for:

  1. If you want to be able to email affiliates that are assigned to the "Top Performers" group, you can assign these affiliates to this group, and you can send an email just to that group.
  2. You want a certain number of affiliates to have a different set of commissions payouts per level, than the default members of a particular program.
  3. You want to provide downloadable files to specific groups of members only.

Creating Affiliate Groups

To create affiliate groups, go to Settings > Affiliate Settings > Add Group.

  1. Affiliate Group Name - the name of your group
  2. Commission Per Level - If you want to use group commissions, enter the amounts here
  3. Affiliate Group Description - Enter a description for this group.  This is shown when affiliate members upgrade from one group to another.

Assigning To Groups

To assign affiliates to certain groups, follow these steps:

  1. Go to Affiliates > Edit / Delete Affiliates 
  2. Select which affiliates you want to put in the group by checking the checkbox on the right of the affiliate
  3. Scroll down to the bottom and select the Assign To GROUP option on the drop down box and click Go
  4. The selected affiliates will automatically be added to the selected group.

Viewing Group Members

To view group members, select the View By Group drop down menu near the bottom of Affiliates > Edit / Delete Affilates

 

 

Custom Options Available for Individual Affiliates

Sometimes, certain affiliates have different requirements and different options than other affiliates.  JAM allows for a number of custom options to be set for individual affiliates.

Custom Payout

This option can be set if you want this affiliate to have a different minimum payout balance than the one you set in Settings > Payment Settings.  

For example, an affiliate does not want to get paid until his balance reaches $500, but your default minimum balance is $100.  You can enable the Custom Payout option in the Affiliate Details and set the number for it to 500.  This way, when you click on the Pay Affiliates link and view affiliates with minimum balances, this affiliate will not appear until his custom payout amount has been reached.

Custom Commissions Per Program Per Level

JAM allows you to create custom commissions for an affiliate for each of your programs different levels.

For example, if you normally pay affiliates a 10% commission for Program 1 and 15% commission for Program 2, but want to pay this affiliate 15% on Program 1 and 25% on Program 2, just click on the Create Custom Commissions link in their Affiliate Details and fill in the custom commissions amounts for each of your programs for this affiliate. Make sure you set it to Enable so that the system knows that this affiliate requires a custom amount when a commission is generated for that particular program.

You can specify custom amounts for those programs that have multiple levels as well.

Custom URL

This option allows you to point your affiliates to a specific URL of your choice, instead of the default product URL that you set in the Products Area.

Custom ID (For Offline Marketing)

This is used in conjunction with the Offline Marketing Module for setting up offline codes.  You can change this to any alphanumeric phrase that you want.

 

Deleting Existing Affiliates

To delete an existing affiliate, click on the Edit / Delete Affiliates from the drop down menu and click on the Delete Button to delete an affiliate.

*Remember, deleting an affiliate that has existing commissions, payments, or traffic data will erase all of that existing data as well.  If you want to keep an existing affiliate's records, you can just change that affiliiate's status to Inactive, so that person no longer can login or use his/her account.

Emailing Affiliates

The built-in email function of JAM allows you to keep in touch with all of your affiliates by sending them the latest updates and news regarding your program and services.  You can send a broadcast email to any of your affiliates manually, or schedule them on a specific date.

Broadcast Email

To send a broadcast email to your affiliate members, click on Email Affiliates on the main drop down menu.

Send an Email to One Affiliate Member

You can also send a single email to any affiliate member by clicking on the email icon in the Account Details page for each affiliate.

Email Format - Send your email either in HTML, Text, or both.  Sending both types means it will automatically select between Text or HTML depending on what your affiliate member's email reader can view.

Send Email To - Select which affiliate groups to send to. This option is only available when sending a broadcast email.

Schedule Email - Select whether to schedule the email to be sent now, or sometime in the future.

Subject - Enter the subject of your email message

Custom Tags - Custom tags are used to automatically represent your affiliates' information details.  For instance, the custom tag: %%%USERNAME%%% represents the current affiliate's username.  You can use these tags in your messages to represent your affiliate members info in your emails.  Some of the custom tags you can use are:

- %%%USERNAME%%% - Username Variable
- %%%FIRST_NAME%%% - First Name Variable
- %%%LAST_NAME%%% - Last Name Variable
- %%%AFFILIATE_URL%%% - Affiliate URL Variable

*Certain tags are only available to use for certain templates.  Please use the drop down custom tag menu to see what choices are available for that email or template.

HTML Editor

The HTML Editor can be used to format your email messages in HTML format.  For more information on the HTML Editor and its settings, click here

Once you're done, just click on Send Email Message to send your email.

*All emails that are sent "now" are first queued and are automatically sent via the cron job on the next scheduled interval, usually 10 or 15 minutes.

System Templates

System Templates can also be used to create email templates that are used often.  This allows you to quickly send an email to your affiliates without having to rewrite it every time.  For more on system templates, click here.

Exporting Data

The Data Export function allows you export data directly from your JAM database. You can export Affiliates, Commissions and Events.

Export Formats can be: Tab Separated, Comma Separated, or Excel-Format.

Data Export can be run by clicking Settings>Data Export.

To generate the export, click on Export Data once you've chosen your export options.

How to Add New Affiliates

You can add affiliates into JAM using two methods.  First, you can use the signup form or add them manually in the admin area by clicking on Affiliates > Add New Affiliate

The only required fields when adding affiliates are First Name, Last Name, Email Address, and whatever fields you set in Settings > Signup Settings

How To Import Affiliate Members Into JAM

JAM allows you to import your affiliate members directly into the database via a tab-separated or comma-separated file.

To import your members, follow these steps:

  1. Export or Save your affiliate member data to a tab-separated (.txt) or comma-separated (.csv) file. The proper format is as follows:

    first_name, last_name, email_address, username, password, company_name, address_1, address_2, city, state, country, zip, phone, fax, tax_id, website, paypal_email, stormpay_email, safepay_id, moneybookers_id, alertpay_id, egold_id, bank_transfer, custom_field_value_1, custom_field_value_2, custom_field_value_3, custom_field_value_4, custom_field_value_5 
     
  2. The only required columns for import are first name, last name, and email address. All other columns are optional. Only .txt or .csv file extensions allowed.

  3. Click on Settings > Import / Export > Click Here to Import Data.

  4. Once you are on the Import Screen, browse for your .txt or .csv file.  The maximum upload size is 2 MB, so make sure your file size is less than that.
  5. An example .CSV file is available for you to download and copy as well.

How to Use the Built-In HTML Editor

The HTML Editor is a feature in JAM that allows you to add /edit/ and create HTML-based templates and ads easily, with very minimal HTML knowledge.

The HTML Editor is available to use if you use the following browsers:

  1. Internet Explorer 5.5 and up

  2. Netscape / Firefox 1.0 and up

The icons in the HTML Editor can do the following:

 Preview

Search

Paste from Microsoft Word

Undo

Redo

Foreground Color

Background Color

Insert Hyperlink

Insert Image

Insert Table

Absolute

Special Characters

Insert Line

Remove Formatting

View /Edit HTML Source

Paying Affiliate Commissions

The Pay Affiliates function is used to record payments to your affiliates.

Once an affiliate has reached the minimum required balance set in Settings > Payment Settings, they will automatically appear in the Pay Affiliates section.

There are several options for paying affiliates, depending on your chosen payment options. Here are some examples:

  1. Print Payment Invoices

  2. Pay via Paypal Email Address

  3. Pay via Paypal Mass Payment option

Print Payment Invoices

You can print out payment invoices for each of your affiliates if you want.  This can be used to accompany the check payment you will be sending to them.

Customizing Payment Invoices

You can customize the payment invoice template by opening and editing the following file to suit your needs:

admin/includes/html/themes/templates/forms/form_admin_pay_affiliates_invoice.php

Pay via Paypal Email Address

You can pay your affiliate directly if they have a paypal email address set.  By clicking the Paypal icon in the list, you can send a Paypal payment directly.

Pay via Paypal Mass Payment

If you have a number of paypal payments to make, you can use the Paypal Mass Payment option to upload payments to Paypal using a tab-delimited file.  To generate this file, check all of the Paypal users you have on the list and select Paypal Mass Payment on the drop-down menu near the bottom of the list.  

When you generate the Paypal Mass Payment file, you will download a tab-delimited file which you can then upload directly to Paypal to pay your affiliates quickly.

*Other Mass Payment options are available, such as SafePay, AlertPay, and Moneybookers Mass Payment Files.

 How to Pay Affiliates

JAM has a specific method in paying affiliates.  Follow these steps to properly pay affiliate members their commissions.

  1. Login to JAM and click on Edit / Delete Commissions.

  2. If you have any Pending commissions, review them first and make sure they are all valid.  If they're all good to go, scroll down to the bottom of the screen, and select Unpaid in the Mark Checked As drop down menu. Select the checkbox for all those commissions you want to update.

  3. If you have the Alert Affiliate on Commission Generated option set in Settings > Affiliate Settings, an email will be sent to each affiliate notifying them of the commission.

  4. Before you pay affiliates, you now will have to set any commissions that are not yet approved to Approved status. Those that are still not approved are marked with the following icon:  All approved commissions will be marked with this icon:

  5. Select all the commissions you want to approve for payment in the Edit / Delete Commissions page.

  6. Once you have approved commissions, you now can proceed to the Affiliates > Pay Affiliates section to generate invoices or download the  Mass Payment file.  You can also pay affiliates manually using direct payment option or creating an invoice for printing here.

  7. Once you've finished paying affiliates, in the Pay Affiliates screen, scroll down to the bottom to the Mark Checked For drop down menu and select the method you have paid affiliates with.  From there, check all the affiliates you have paid in the right hand side checkboxes and click Go.

  8. You have now recorded successful payments for your affiliate members.

  9. You can view all Payment History by clicking on the Payment History link in Commissions > Payment History.

Searching For Affiliate Members

The Search Affiliates function allows you to search your Affiliate Members' information based on a select criteria.  

To search affiliates, click on the Search Affiliates link on the main drop-down menu.

You can search affiliates using the following search categories:

After executing the search query, all matching search terms are displayed in row function.

Viewing and Editing Affiliates

To view your existing affiliates, click on the Edit / Delete Affiliates drop down menu.

To edit an affiliate, click on the Edit Affiliate button


Automatic Signup Module

Modules used for automatically adding affiliates to JAM

Automatic Signup Module Integration with 1ShoppingCart

To integrate the Automatic Signup Module with 1ShoppingCart, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit your thank you page.  Make sure this is in .php format.

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = '1shoppingcart';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in 1ShoppingCart.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with 2Checkout

To integrate the Automatic Signup Module with 2Checkout, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit your thank you page.  Make sure this is in .php format.

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = '2checkout';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in 1ShoppingCart.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with AlertPay

To integrate the Automatic Signup Module with AlertPay, follow these instructions:
  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, open up your /plugins/payments/alertpay/plugin_alertpay_payments.php file. 

  10. Scroll down to this line and add the following snippet of code:

    if ($_POST['ap_status'] == 'Success')
        {
         require "../../../sale.php";

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'alertpay';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

  11. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  12. Save the file.

  13. Now,  run a test transaction in AlertPay.

  14. Once you've created it, login to JAM and verify that the new affiliate exists.

  15. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with aMember

To integrate the ASM with aMember, follow these instructions:

  1. Download the jrox_affiliate.zip file.
  2. Unzip and upload the contents into your aMember/plugins/protect folder
  3. Login to your aMember admin area and go to Setup / Configuration >  Plugins
  4. Click to enable the jrox_affiliate plugin and Save.
  5. Once the jrox_affiliate link appears on the top menu, click on it, and fill in the details on the configuration page.
  6. Click Save. 
  7. Login to JAM. Click on Settings > Signup Settings.
  8. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.
  9. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.
  10. Click Edit Settings to save the form.

You now have JAM integrated into aMember for Automatic Signups.

Automatic Signup Module Integration with Authorize.Net

To integrate the Automatic Signup Module with Authorize.Net, follow these instructions:
  1. Login to your Authorize.Net account.

  2. Click on Settings > Silent Post URL

  3. Enter the following URL String: http://www.domain.com/affiliates/plugins/signup_automation/external/authorize_net/autosignup.form.php

  4. Change the www.domain.com/affiliates to your JAM installation URL.

  5. Click Submit.

  6. Login to JAM. Click on Settings > Signup Settings.

  7. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  8. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  9. Click Edit Settings to save the form.

  10. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  11. Scroll to the section that says //SET JAM VARIABLES.

  12. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  13. Save the file.

  14. Now, you will need to edit the /plugins/signup_automation/external/authorize_net/autosignup.form.php.

    //SET AUTHORIZE.NET HASH
    $auth_secret = "yoursecrethash";
    $auth_login = "yourauthlogin";

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'authorize_net';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

  15. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  16. Save the file.

  17. Now,  run a test transaction in Author.

  18. Once you've created it, login to JAM and verify that the new affiliate exists.

  19. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Installation Notes:
JAM will only create the affiliate if at least the following data values are present in your Authorize.Net transaction:

  1. First  Name (x_first_name)
  2. Last Name (x_last_name)
  3. Email Address (x_email)

 

Automatic Signup Module Integration with CubeCart 3

 

To integrate the Automatic Signup Module with CubeCart, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to open up the includes/content/reg.inc.php file in your CubeCart folder and add the following code block:

    $record["phone"] = $db->mySQLSafe($_POST['phone']);
    $record["mobile"] = $db->mySQLSafe($_POST['mobile']);
    $record["regTime"] = $db->mySQLSafe(time());
    $record["ipAddress"] = $db->mySQLSafe($_SERVER['REMOTE_ADDR']);
      
    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Country_Query = $db->select("SELECT * FROM ".$glob['dbprefix']."CubeCart_iso_countries WHERE (id = ".$db->mySQLSafe($_POST['country']).")");
    $JAM_CCountry = $JAM_Country_Query[0]['iso'];
    $JAM_Aff_Directory = '/home/USERNAME/public_html/affiliates';
    $JAM_ASM_Type = 'cubecart';
    $JAM_Program_ID = '1'; 
    include $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

  10. You will need to change /home/USERNAME/public_html/affiliates to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in CubeCart.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with Mal's E-Commerce

*Currently, JAM can integrate ASM with Mal's E-Commerce using the standard Paypal Payment Option Only with a Return Link Web Page Setup.

To integrate the Automatic Signup Module with Mal's E-Commerce, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit your Mal's E-Commerce Return Link web page.  On the very last line of your page, copy and paste the following php code:

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'mals_ecommerce;
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in Mals.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with ModernBill 4

 To integrate the Automatic Signup Module with ModernBill 4.x, follow these instructions:
  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to open up the include/misc/mod_orderwiz/wizard_submit_process.case.inc.php

          // $invoice_id
          // $order_totals['sub_total']
          // $order_totals['pre_tax']
          // $order_totals['tax_due']
          // $order_totals['post_tax']
          ?>
         </td>
        </tr>
        REMOVE THIS LINE WHEN ACTIVE -->
    <?php

     //BLOCK FOR JAM-ASM MODULE INTEGRATION
     $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
     $JAM_ASM_Type = 'modernbill';
     require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
     //END JAM-ASM MODULE INTEGRATION

    ?>
     
     // +----------------------------------------------+
     // | GENERIC AFFILIATE BLOCK - STOP
     // +----------------------------------------------+

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in ModernBill.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with OSCommerce

To integrate the Automatic Signup Module with OSCommerce Shopping Cart, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit some files in OSCommerce.  Open up the file create_account.php.  Scroll down to the following section and make these changes:


    if (SESSION_RECREATE == 'True') {
            tep_session_recreate();
          }
          $customer_first_name = $firstname;
          $customer_default_address_id = $address_id;
          $customer_country_id = $country;
          $customer_zone_id = $zone_id;
          tep_session_register('customer_id');
          tep_session_register('customer_first_name');
          tep_session_register('customer_default_address_id');
          tep_session_register('customer_country_id');
          tep_session_register('customer_zone_id');

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'oscommerce';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

    // restore cart contents
          $cart->restore_contents();

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now, create a test account in OSCommerce.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with Paypal

To integrate the Automatic Signup Module with Paypal, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit  your /plugins/payments/paypal/plugin_paypal_payments.php. Scroll down to the following area, and add the ASM module integration code:

    if (!empty($custom_mid))
         {
          if (!empty($_POST['payment_status']) AND $_POST['payment_status'] == 'Completed')
          {
           require "../../../sale.php";
           
           //BLOCK FOR JAM-ASM MODULE INTEGRATION
           $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
           $JAM_ASM_Type = 'paypal';
           require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
           //END JAM-ASM MODULE INTEGRATION
        
    }
         }

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in Paypal.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with SafePay Solutions

To integrate the Automatic Signup Module with SafePay Solutions, follow these instructions:

  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit  your thank you page. Make sure it is a .php file.
           
           //BLOCK FOR JAM-ASM MODULE INTEGRATION
           $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
           $JAM_ASM_Type = 'safepay;
           require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
           //END JAM-ASM MODULE INTEGRATION

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now,  run a test transaction in SafePay Solutions.

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module Integration with WHMAutoPilot

Module Activation Instructions:

From inside your admin area, click on the 'Utilities' tab and click on 'Custom Modules'. Once there, click on the 'Add

New Module' and choose 'jam_affiliate' from the dropdown selector. Follow the instructions at the bottom of the screen

to activate the module. Once complete, click on the quick link on the left menu that will now appear after you have

activated the module.

Three items to setup:

Path to sale: ex: http://yoursite.com/affiliates/sale.php

Enable Auto-Signup: [ yes / no ]

Folder Path to Install: ex: /home/youruser/public_html/affiliates

After those items are filled in, select the products that you will permit affiliate commissions to be paid out on and

click the 'save configuration' button. Once saved, you will not be tracking sales referred to your website made through

the WHM.AutoPilot V3 system.

Now, you will have to open up  /plugins/signup_automation/external/plugin.autosignup.php in your JAM affiliates folder.

Scroll to the section that says //SET JAM VARIABLES.

Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

$JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
$JAM_Affiliate_URL = "
http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

Save the file.

Automatic Signup Module Integration with Zencart

 To integrate the Automatic Signup Module with Zencart Shopping Cart, follow these instructions:
  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to edit some files in ZenCart.  Open up the file includes/templates/template_name/checkout_success/tpl_footer.php.  Scroll down to the following section and make these changes. template_name refers to the zencart template folder you are using

    *For ZenCart 1.3.0 and above:

     $group_pricing_amount = $JAM->fields['value'];
            break;
        }
        $JAM->MoveNext();
      }

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'zencart';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

    $commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);
    $commissionable_order = number_format($commissionable_order,2,'.','');
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"
    http://www.yourdomain.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>
    </table>";

  10. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  11. Save the file.

  12. Now, create a test account in Zencart AND order an item from the store AND complete check out..

  13. Once you've created it, login to JAM and verify that the new affiliate exists.

  14. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

Automatic Signup Module with Modernbill 5

To integrate the Automatic Signup Module with ModernBill 4.x, follow these instructions:
  1. Login to JAM. Click on Settings > Signup Settings.

  2. To enable the Automatic Signup Module, set the Enable Automatic Signup Module to Enable.

  3. Enter a Secret Word for the Auto Signup Secret Word field.  This is used to ensure that your automatic signups come from a trusted application.

  4. Click Edit Settings to save the form.

  5. Now, you will have to open up and edit a few files. First, open up /plugins/signup_automation/external/plugin.autosignup.php.

  6. Scroll to the section that says //SET JAM VARIABLES.

  7. Edit the following section with your Auto Signup Secret Word and the full URL to your affiliates directory:

    $JAM_Secret = "secret_word"; //SET THIS VARIABLE TO ENABLE SECURITY CHECK OF AUTOSIGNUP
    $JAM_Affiliate_URL = "
    http://www.domain.com/affiliates"; //DO NOT ADD TRAILING SLASH

  8. Save the file.

  9. Now, you will need to open up the /app-modernbill-order/include/lib-action/shopping/ProcessCartCheckout.php.

  10. Add the integration code according to the following text in bold:

          $this->smartyVars["transaction"]["secondary"][0]["form"] = (array)$this->smartyVars["transaction"]["secondary"][0]["form"];
         $this->smartyVars["transaction"]["secondary"][0]["link"] = (array)$this->smartyVars["transaction"]["secondary"][0]["link"];
         $this->smartyVars["transaction"]["secondary"][0]["linkurl"] = (array)$this->smartyVars["transaction"]["secondary"][0]["linkurl"];

     //BLOCK FOR JAM-ASM MODULE INTEGRATION
     $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
     $JAM_ASM_Type = 'modernbill5';
     require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
     //END JAM-ASM MODULE INTEGRATION

    $j = file_get_contents("http://www.domain.com/affiliates/sale.php?amount=".$this->smartyVars["invoiceInfo"]["invoiceAmount"]."&trans_id=".$this->smartyVars["invoiceInfo"]["invoiceNumber"]."&custom_mid=".$_COOKIE['jrox']);

     } else {

        
    $this->smartyVars["transaction"] = correctArray($result["mbapi"][0]["results"][0]["transaction"][0]);
         $this->addTemplate("shopping/CheckoutFailure", $this->smartyVars);


  11. You will need to change /home/username/public_html/affiliates_directory to point to your affiliates directory. 

  12. Save the file.

  13. Now,  run a test transaction in ModernBill.

  14. Once you've created it, login to JAM and verify that the new affiliate exists.

  15. When all is working, you will now have JAM automatically signing up your customers as new affiliates as well.

How To Create a Custom Automatic Signup Module

JAM allows you to create your own custom Automatic Signup Module for integration into your web applications.

To do this, follow these steps:

  1. Create a folder structure like this, where CUSTOM is the name of your custom ASM:

    /plugins/signup_automation/external/CUSTOM
    /plugins/signup_automation/external/CUSTOM/config.autosignup.inc.php
  2. Inside the config.autosignup.inc.php file, you can map the JAM variables with your web applications data values. Here is an example of  the variables that you can map:

    $JAM_First_Name = $_POST['first_name'];
    $JAM_Last_Name = $_POST['last_name'];
    $JAM_Primary_Email = $_POST['payer_email'];
    $JAM_Username = '';
    $JAM_Company = '';
    $JAM_Address_1 = $_POST['address_street'];
    $JAM_City = $_POST['address_city'];
    $JAM_State = $_POST['address_state'];
    $JAM_Country = $_POST['address_country_code'];
    $JAM_Zip = $_POST['address_zip'];
    $JAM_Phone = '';
    $JAM_Website = '';
    $JAM_ISO_Country = 1;
  3. The only required fields are the following:

    $JAM_First_Name = $_POST['first_name'];
    $JAM_Last_Name = $_POST['last_name'];
    $JAM_Primary_Email = $_POST['payer_email'];


    Everything else can be blank.
  4. Once you are done, just point to it the same way as the other ASM modules and integrate it to your post-signup page:

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'CUSTOM';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

What is the Automatic Signup Module (ASM)?

The Automatic Signup Module allows you to integrate JAM into your existing ECommerce Applications or Shopping Carts to allow for the automatic affiliate account creation in JAM.  This works well if you'd like your customers or members to have an affiliate account automatically setup for them upon their payment or registration with your web site or shopping cart.  There will be no need to re-register for an affiliate membership, as the Automatic Signup Module will do that for them instantly.

ASM Examples and Benefits

Automatically Build Your Affiliate Network

For example, you have an Internet Store running on OSCommerce Shopping Cart.  If you wanted to use the Automatic Signup Module in JAM, all you have to do is enable it in the Signup Settings, and insert two lines of code in  a file in OSCommerce.  From there, everytime you have a new customer that registers during the payment process or creates an account in OSCommerce, his / her details will also be created in JAM, along with all of their personal information.

Use JAM Tools to Build and Connect with Customers

JAM has some great tools that will help you stay in touch with your customers even more.  For instance, if your current shopping cart does not have any means to send out newsletters, you can use JAM to do that, since JAM has its own built-in HTML editor for sending out emails, both in Text or HTML format.

Give Your New Customers More Incentives
By automatically creating an affiliate account for your customers, they can in turn start making some extra money by referring new customers to you. And since they have already bought from you, they know that your company has good products and services that they can easily promote to their friends and colleagues.

  1. PHP Curl Functions - In order to use the JAM Automatic Signup Module, you must have Curl compiled into PHP.  Curl will be used to connect with JAM in order to send the affiliate details automatically. To verify if Curl is installed, you can create a small test.php file, and enter the following code in it:

    <?php phpinfo(); ?>


    Upload this to your web server and view it in your browser.  Scroll down until you find a reference to Curl being installed.

  2. Turn Off Affiliate Verification - This is optional, but you may have to turn off the Require Admin Approval on Signup and the Require Affiliate Confirmation via Email setting in the Signup Settings.  This allows for a more seamless integration without having to hassle your new customers for affiliate approval.

  3. Affiliate Program Notice - You may want to make your customers aware that they are now your affiliate members as well.  This will work well for helping to promote more of your products and services, since they have already bought from you and you have gained their trust.  Now, they can easily refer more of their friends and colleagues while earning a commission from you.  We suggest tailoring your Affiliate Welcome Email to reflect this.

Plugins for Automatic Signup Module

We are currently developing a number of plugins for the Automatic Signup Module.  Here are the ones that are currently available:

  1. 1ShoppingCart
  2. 2Checkout
  3. AlertPay
  4. CubeCart
  5. Mals E-Commerce
  6. ModernBill
  7. OSCommerce
  8. Paypal
  9. Safe Pay Solutions
  10. ZenCart

Commissions and Payments

Managing Your Commissions and Payments

Adding New Commissions Manually

To add a new commission, click on the Commissions drop-down menu and select Add Commission.

Add Commission Details:

  1. Date - Date the commission is generated. To enter a date, click on the calendar icon to select a date.
  2. Program- Select the product that is associated with this commission.
  3. Use Program  Values - Use the commission values that you have set for that program.
  4. Status - Set the commission as unpaid, paid, or pending.
  5. Username - Select the affiliate to associate this commission with.
  6. Transaction ID - Enter the transaction ID for this commission.
  7. Recur Commission - Select whether to recur this commission again in the future.
  8. Commission Amount - Enter the commission amount.
  9. Commission Level - If there are multiple levels for this product, enter the level you want.
  10. Total Sale Amount - Enter the total sale amount.
  11. Website Referrer - If you want to enter a website URL that referred this commission, enter it here
  12. Ad Tracker - If an affiliate used an ad tracker, and you want to put it here, you can.
  13. Credit Upline - If the program you selected has more than 1 level, you can check this box to credit any upline members this affiliate has.
  14. Custom Extra Fields - You have up to 5 fields to add miscellaneous data to.
  15. Commission Notes - Enter any miscellaneous notes you may want with this commission.

Affiliate and Commission Groups

You can also assign your affiliates to specific affiliate groups for better management and emailing.  

Affiliate Groups are used to help segment your affiliate members for mass emailing, group commissions, and exclusive access to downloadable files.  

Here are a few examples of what to use affiliate groups for:

  1. If you want to be able to email affiliates that are assigned to the "Top Performers" group, you can assign these affiliates to this group, and you can send an email just to that group.
  2. You want a certain number of affiliates to have a different set of commissions payouts per level, than the default members of a particular program.
  3. You want to provide downloadable files to specific groups of members only.

Creating Affiliate Groups

To create affiliate groups, go to Settings > Affiliate Settings > Add Group.

  1. Affiliate Group Name - the name of your group
  2. Commission Per Level - If you want to use group commissions, enter the amounts here
  3. Affiliate Group Description - Enter a description for this group.  This is shown when affiliate members upgrade from one group to another.

Assigning To Groups

To assign affiliates to certain groups, follow these steps:

  1. Go to Affiliates > Edit / Delete Affiliates 
  2. Select which affiliates you want to put in the group by checking the checkbox on the right of the affiliate
  3. Scroll down to the bottom and select the Assign To GROUP option on the drop down box and click Go
  4. The selected affiliates will automatically be added to the selected group.

Viewing Group Members

To view group members, select the View By Group drop down menu near the bottom of Affiliates > Edit / Delete Affilates

 

 

Automatic Refund Module(ARM)

JAM includes an Automatic Refund Module that can be integrated into your shopping cart to automatically update the commissions in your JAM database. This script can be included into your refund payment process, similar to the sale.php file when generating commissions.

ARM Features and Benefits:

  1. The Automatic Refund Module can automatically refund any affiliate commissions made if you have refunded a sale from one of your customers.

  2. If you already paid the affiliate, the Automatic Refund Module will debit their affiliate account for the commission amount you paid, and will be deducted on their next affiliate pay schedule. 

  3. If you haven't paid out the commission yet and it exists in the database, you can automatically do 1 of 3 things:

    - Delete the existing commission and send an email alert
    - Set the commission to pending and send and email alert
    - Email the Administrator only

  4. Using JAM-ARM will help you especially if you have a good number of returns or chargebacks and don't want to have to hunt through the commission table just to refund the commission associated with that refund / chargeback.

Automatic Refund Module Integration with Paypal or StormPay

JAM is already setup to automatically process your Paypal or StormPay refunds in conjunction with any affiliate commissions you may have with that payment.  This works great if you want to be able to automatically refund any commissions generated from Paypal or StormPay sales that you refunded.

To setup the Automatic Refund Module for Paypal or StormPay Payments, follow these steps:

  1. Login to your JAM Admin Panel

  2. Click on Settings > Payment Settings, and scroll down to the Automatic Refund Module section.

  3. Select Enable for the Enable Automatic Refund Module option

  4. Enter the secret word for processing refunds.  This adds a layer of security when processing refunds. This can only be letters or numbers.

  5. Select how you want to process pending or unpaid refunds.  The setting Refund Status for Pending or Unpaid Commissions has 3 options:

    -
    Delete and Alert - This will delete any pending or unpaid commissions affiliated with the Paypal Transaction ID.

    - Set to Pending and Alert
    - This will set the commission back to pending status if its status is unpaid.

    -
    Email Alert Only - This will only alert you if a Paypal Commission has been refunded.  No action will be taken on the affiliate commissions.

  6. Click Edit Settings.

  7. Now open up the file /plugins/paymetns/plugin_paypal_payments.php in your affiliates directory. For StormPay, open the /plugins/payments/stormpay/plugin_stormpay_payments.php file.

  8. Scroll down the file to the following code, and update the line with your secret word:
     

  9.  

    //-----------------------------------------------------//

    // ENABLE SECRET VARIABLE FOR AUTOMATIC REFUND MODULE  //

    //-----------------------------------------------------//

    // If you want to enable the Automatic Refund Module,  //

    // just uncomment and change the secret variable below //

    //-----------------------------------------------------//

    //$secret = "secret";

     


  10. Save the file.

  11. Now, run a test transaction that will generate a commission.

  12. Once the commission has been generated, refund it via your Paypal or StormPay Account.

  13. Once the Paypal or StormPay payment has been refunded, check your primary administrator's email for the refund alert as well as the corresponding commission in the JAM system.

 Custom Automatic Refund Module Integration

*This option requires some advanced skills in php and website configurations. If you are not familiar with php, please do not try this, or consult your system administrator for help. We also offer services for custom configuration, so please contact us for pricing and availability.

To integrate the Automatic Refund Module, it must meet the following requirements:

  1. You must be using unique transaction IDs for payments.  This is usually the norm for most payment processors.

  2. You must know how refunds are created in your shopping cart or payment system.

  3. You must be able to pass the Transaction ID variable and the Transaction ID variable must always be unique.

  4. The refund.php file must be able to read the Transaction ID variable. For example, through a $_GET or $_POST variable.

To setup the Automatic Refund Module, follow these steps:

  1. Login to your JAM Admin Panel

  2. Click on Settings > Payment Settings, and scroll down to the Automatic Refund Module section.

  3. Select Enable for the Enable Automatic Refund Module option

  4. Enter the secret word for processing refunds.  This adds a layer of security when processing refunds. This can only be letters or numbers. 

  5. Select how you want to process pending or unpaid refunds.  The setting Refund Status for Pending or Unpaid Commissions has 3 options:

    -
    Delete and Alert - This will delete any pending or unpaid commissions affiliated with the Paypal Transaction ID.

    - Set to Pending and Alert
    - This will set the commission back to pending status if its status is unpaid.

    -
    Email Alert Only - This will only alert you if a Paypal Commission has been refunded.  No action will be taken on the affiliate commissions.
     

  6. Click Edit Settings, then go back to Settings > Payment Settings to get the integration code.

  7. Scroll back down to the Automatic Refund Module section, and you should now have the integraton code setup.

  8. Copy the integration code.  Make sure to change the TRANSACTION_ID_VARIABLE_OF_REFUND to the transaction ID variable used by your ecommerce application or shopping cart.

  9. Make sure to change the path to refund.php to point properly to your affiliates directory.

  10. Now open up your shopping cart / payment processor's script that does the payment refunds.

  11. Include the integration code into your payment refund script.

You can also redirect your refunds via a URL, so if you can point to the refund.php file with the Transaction ID as a $_GET variable, you can process the refund via an HTTP GET request, similar to browsing a website.  

For example: http://www.yourdomain.com/refund.php?transaction_id=12345789&secret=yoursecretcode.

To do this you must set the TRANSACTION_ID_VARIABLE_OF_REFUND to the $_GET variable that you are passing, which should be set to the transaction ID, like this:

$transaction_id = $_GET['transaction_id_variable'];

$secret = $_GET['secret'];

If you'd like some help on integration, please make sure to visit our Customer Forums at http;//forums.jrox.com

Deleting Commissions

To view your existing commissions, click on the Commissions drop-down menu and select Edit / Delete Commissions

To delete a commission, click on the Delete icon to delete the commission.

*Please remember that deleting a commission that has been paid does not automatically update the amount paid for the affiliate that generated that commission.

Exporting Data

The Data Export function allows you export data directly from your JAM database. You can export Affiliates, Commissions and Events.

Export Formats can be: Tab Separated, Comma Separated, or Excel-Format.

Data Export can be run by clicking Settings>Data Export.

To generate the export, click on Export Data once you've chosen your export options.

How to Change the Default Currency for Paypal Payments

If you want to change the default currency used when paying affiliates for Paypal, you can change it by opening up the /includes/config.php file, and editing this line:

define("PAYPAL_CURRENCY_CODE", "USD");

Managing Refunds and Chargebacks

JAM allows you to manage refunds and chargebacks as well.  For instance, if one of your customers requests a refund from you, but you already paid your affiliate the commission, you can refund that commission in JAM. 

Refunding a Commission

To refund a commission that has already been paid, just click on the Refund Commission button when editing commissions and it will mark that commission as refunded. It will also create a new commission that will deduct the commission amount from future payments to the affiliate. This new commission will be in a negative amount.

Setting Up the Automatic Refund Module (ARM)

The Automatic Refund Module allows you to integrate your System Refund Process with JAM. To set up the Auto Refund feature, click here

Paying Affiliate Commissions

The Pay Affiliates function is used to record payments to your affiliates.

Once an affiliate has reached the minimum required balance set in Settings > Payment Settings, they will automatically appear in the Pay Affiliates section.

There are several options for paying affiliates, depending on your chosen payment options. Here are some examples:

  1. Print Payment Invoices

  2. Pay via Paypal Email Address

  3. Pay via Paypal Mass Payment option

Print Payment Invoices

You can print out payment invoices for each of your affiliates if you want.  This can be used to accompany the check payment you will be sending to them.

Customizing Payment Invoices

You can customize the payment invoice template by opening and editing the following file to suit your needs:

admin/includes/html/themes/templates/forms/form_admin_pay_affiliates_invoice.php

Pay via Paypal Email Address

You can pay your affiliate directly if they have a paypal email address set.  By clicking the Paypal icon in the list, you can send a Paypal payment directly.

Pay via Paypal Mass Payment

If you have a number of paypal payments to make, you can use the Paypal Mass Payment option to upload payments to Paypal using a tab-delimited file.  To generate this file, check all of the Paypal users you have on the list and select Paypal Mass Payment on the drop-down menu near the bottom of the list.  

When you generate the Paypal Mass Payment file, you will download a tab-delimited file which you can then upload directly to Paypal to pay your affiliates quickly.

*Other Mass Payment options are available, such as SafePay, AlertPay, and Moneybookers Mass Payment Files.

 How to Pay Affiliates

JAM has a specific method in paying affiliates.  Follow these steps to properly pay affiliate members their commissions.

  1. Login to JAM and click on Edit / Delete Commissions.

  2. If you have any Pending commissions, review them first and make sure they are all valid.  If they're all good to go, scroll down to the bottom of the screen, and select Unpaid in the Mark Checked As drop down menu. Select the checkbox for all those commissions you want to update.

  3. If you have the Alert Affiliate on Commission Generated option set in Settings > Affiliate Settings, an email will be sent to each affiliate notifying them of the commission.

  4. Before you pay affiliates, you now will have to set any commissions that are not yet approved to Approved status. Those that are still not approved are marked with the following icon:  All approved commissions will be marked with this icon:

  5. Select all the commissions you want to approve for payment in the Edit / Delete Commissions page.

  6. Once you have approved commissions, you now can proceed to the Affiliates > Pay Affiliates section to generate invoices or download the  Mass Payment file.  You can also pay affiliates manually using direct payment option or creating an invoice for printing here.

  7. Once you've finished paying affiliates, in the Pay Affiliates screen, scroll down to the bottom to the Mark Checked For drop down menu and select the method you have paid affiliates with.  From there, check all the affiliates you have paid in the right hand side checkboxes and click Go.

  8. You have now recorded successful payments for your affiliate members.

  9. You can view all Payment History by clicking on the Payment History link in Commissions > Payment History.

Searching for Commissions

The Search Commissions function allows you to search your Affiliate Commissions based on two sets of criteria, Status and Term.

Search Commissions by Date and by Status

Just enter the Start Date for when commissions were generated and the End date.  Select what commission status you want to search for:  All, Pending, Unpaid, Or Paid.

Search Commisisons By Term

You can search commissions using the following search categories:

After executing the search query, all matching search terms are displayed in row function

Setting Up a Forced Matrix System

To enable the forced matrix option in JAM, do the following:

  1. Click on Settings > System Settings
  2. Scroll down to the Commission Settings area.
  3. Set the Enable Forced Matrix option to Enable
  4. Select the width of your Forced Matrix. JAM supports between 2 and 5 maximum members for the width of the matrix.

 

Setting Up Commission Levels and Payouts

To setup the commission levels and payouts for each of your affiliate programs, you need to do the following:

Go to Programs > Edit  for your selected affiliate program. The following fields are used for setting up your commission structure.

  1. Program Type - Select what type of Pay structure you want, examples are pay-per-sale, pay-per-lead, pay-per-click.
  2. PPC Interval Type - If you are using pay-per-click, enter the interval here that is used to monitor the time in between clicks
  3. Total Impressions for CPM - If you use CPM, enter the total impressions here before a commission is generated.
  4. Commission Type - Select Flat or Percentage payments for commissions
  5. Set New Commissions - Select either Unpaid or Pending for new commissions
  6. Auto-Approve Commissions After - If you want commissions to be automatically approved after a certain time, enter a number here. If you want to disable it, just set it to zero.
  7. Commission Levels - The number of levels you want this program to have.
  8. Commission Frequency - If you want to have recurring commissions, select the option here.
  9. Commissions Per Level - Enter the amount you want to pay per level

 

Viewing and Editing Existing Commissions

To view your existing commissions, click on the Commissions drop-down menu and select Edit / Delete Commissions

To edit a particular commission, click on the Edit icon to edit the commission.

What is a Forced Matrix System?

JROX.COM Affiliate Manager allows you to create a custom commission structure with multiple levels and a forced matrix option. You can have up to 10 commission levels and a maximum matrix width of 5 members.

What is Forced Matrix System?

A Forced Matrix is a system where there is a limit to the number of referrals any affiliate member can refer . For example, if you set the matrix width to be 4, an affiliate member (Affiliate 1) can refer a maximum number of 4 people.  Any future referrals will automatically be placed below one of the 4 members he referred right below him, forcing the matrix to fill up, up to the number of commission levels you have specified.

Setting up Multiple Commission Levels and / or Enabling the Forced Matrix

To enable  the forced matrix option, click on Settings>System Settings.

To enable the number of commission levels, click Programs > Edit Program for the program you want to specify the commission levels for. Under the Commissions Per Level heading, you can select how many levels you want your commission structure to be, as well as enable / disable the forced matrix option and matrix width.

*You should only change these settings once per installation.  Once you've set these options, do not change them, or any future commission calculations for your downline will not work properly.  So make sure to plan out what commission structure you want for your sites, so that you don't have to make any changes again in the future.

 


Marketing Tools

Marketing Tools available for use in JAM

Downline Tools

Downline tools allow your affiliates to view and/or email their entire downline.  This is only available if you have a multi-level commission structure setup for your affiliate program.  For instance, if you setup your afffiliate program to have 5 levels, the affiliate on  levels 1 - 4  can view and/or email their downline (up to level 5), if you enable it.

View Downline option:

Click on Settings>Affiliate Settings. Select Yes on the Allow Members to View Downline option to enable

*This option can take up a lot of load on your system if you have a lot of affiliate members with downlines.  Please make sure you have adequate computing power if you want to have thousands of affiliate members with this option set.

Email Downline option:

Click on Settings>Affiliate Settings. Select Yes on the Allow Members to Email Downline option to enable

By enabling this option, your members will not have access to their downline members' information, such as email address, username and such.  They can only send them an email and the system will do the custom tag replacement for them.

Enable Member HTML Editor

You can give your members access to the built-in HTML editor if you want them to send emails to their downlines in HTML format.  To enable this feature, click on Settings>Affiliate Settings, and select Yes on the Enable Member HTML Editor option.

*This option can take up a lot of load your system if you have a lot of affiliate members with downlines.  Please make sure you have adequate computing power if you want to have thousands of affiliate members with this option set.

Show Downline Names

If you want your sponsors to see their sub affiliates' names, you can enable this option in Settings > Affiliate Settings

Show Downline Email Addresses

With this option enabled,  your sponsors will see their sub affiliates' email addresses, and be able to contact them via a regular mailto: link

Enabling the Website Replication Feature

JAM has a website replication feature that you can use for creating static websites for affiliates.

To enable the website replication feature, follow these steps:

  1. Open up the example replicated.html web page in /plugins/misc/replicated.html.  This is an example template of what you can edit for your own replicated website.
  2. You can either edit this file directly, or create a new one.  Just make sure that you upload the new one to a folder that JAM can access.
  3. Create the directory where you want your new replicated web pages will go.  Make sure to set the permissions on this folder to 777 or world-writeable.
  4. Open up the /includes/config.php file for editing
  5. Scroll down to the following area and edit the following:

    This line needs to be set to 'true':

    define("JAM_ENABLE_REPLICATED_SITES", true);

    This line should be set to 'php':

    define("JAM_REPLICATION_EXTENSION", "php");

    This line should be set to 'true':

    define("JAM_USE_DYNAMIC_VARIABLES_REPLICATION", true);

    Ths line should be the physical path to the replication template that you want to use:

    define("JAM_REPLICATION_TEMPLATE", "/home/username/public_html/affiliates/plugins/misc/replicated.html");

    This is the directory where your replicated web pages for your users will automatically be created.  You need to create this folder and leave it empty:

    define("JAM_REPLICATION_DIRECTORY", "/home/username/public_html/affiliates/pages");

  6. Save your /includes/config.php and reupload.
  7. Once all this has been configured, every time a new affiliate signs up to your program, a new replicated web page will be created in your JAM_REPLICATION_DIRECTORY, and can be used by your affiliate as their website.  An example of this would be:

    http://www.yourdomain.com/affiliates/pages/joesmith.php

    Where joesmith is the affiliate's username

 

Member Ad Trackers

The Ad Tracker option allows your affiliate members to append custom tracking codes onto their affiliate links to help them track each and every ad that they place to promote your product.  This helps in finding out which ads are working best for them as well as which ones are a waste of time.

To enable ad trackers, click on the Settings>Affiliate Settings and select Yes for the Allow Ad Tracker Links option.

To use it, all your affiliates have to do is append the tracking name to the link they want to track, for example:

http://www.yourdomain.com/affiliates/jrox.php?id=1000_tlid_8_1_ADTRACKER

ADTRACKER can be anything they want, as long as it is no more than 10 letters or numbers long, and is preceded with an underscore '_'. This will help them keep track of how well each ad is doing.

Tell-a-Friend

The Tell-a-Friend marketing tool gives your affiliates the option to send a custom message to up to 10 of their friends/colleagues regarding your affiliate products and services.  When this option is enabled, your affiliates will see a Tell Your Friends About Us section in their Affiliate Tools area after logging in.  They can then type in up to 10 people's email addresses as well as a short note about your products and services.

To enable the Tell-a-Friend tool, click on Settings>Affiliate Settings, and select Yes on the Enable the Tell-a-Friend Tool option.

Tell-a-Friend Email Template

You can customize the email template that goes out to your affiliate's friends by going to the Email Templates section and editing the Affiliate - Tell a Friend Email Template.

For more on templates, visit our Email Templates section.

Viewing Marketing Tool Statistics

JAM collects statistics for 6 of your online marketing tools.  These include:

  1. Banner Ads
  2. Text Links
  3. Text Ads
  4. Hover Ads
  5. Email Ads
  6. Articles

The statistics for these tools can be viewed by going to Reports and selecting the drop down menu under Marketing Reports for that particular marketing tool

Additionally, JAM collects the number of impressions and clicks for the following tools:

  1. Banner Ads
  2. Text Ads
  3. Hover Ads
  4. Articles

These stats are viewable by clicking on Marketing > Edit under the tool selected.  JAM also calculates the click-through rate (CTR), total sales and total commissions generated for each of those tools.

 

What are Affiliate Follow-Up Autoresponders?

The Affiliate Follow-Up Module allows you to create follow-up email messages that are sent to your affiliates on predetermined intervals.  This is similar to an autoresponse follow up message that is sent one at a time, separated by a number of days that you specify.  

Setting up follow-up messages are great especially if you want to send some email correspondence to your new affiliates.

This shows your new members that you are serious about getting them to make money not just for you, but for themselves as well.

Here are some examples of what the follow-up module can do for you:

  1. Create an Affiliate E-Course to train your affiliates
  2. Follow-Up with preset emails to see how your affiliates are doing

  3. Automatically send preset emails to introduce new affiliate tools or marketing strategies.

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Articles

Article Management

Adding New Articles

You can add an unlimited number of articles that your members can publish on their site to promote your products and services.

To add a new article, follow these steps:

  1. Click on Marketing > Article Ads > Add
  2. The Add New Article form appears.
  3. Article Status - Set this article to Active/Inactive
  4. Select Program - Select which program this article will be associated to.
  5. Article Name - A short name for your article
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Article Title - The title of your article
  9. Article Content - The content of your article
  10. Article Notes - Any side notes you may want for this article

* When creating the article, make sure to use the Custom Tags available in the HTML Editor to represent certain information on the article, such as the affiliate URL, or Name.  You will need these so that when an affiliate copies and pastes this article on their site, their affiliate links would have been automatically generated for them already.

 

 

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Banner Ads

Banner Ad Management

Adding Banners

You can add an unlimited number of Banners that your members can publish on their site to promote your products and services.

* Only .gif, .jpeg, or .swf (flash) banners are allowed to be used in JAM.

To add a new Banner, follow these steps:

  1. Click on Marketing > Banner Ads > Add
  2. The Add New Banner form appears.
  3. Banner Status - Set this Banner to Active/Inactive
  4. Select Program - Select which program this Banner will be associated to.
  5. Banner Name - A short name for your Banner
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Banner Dimensions - The width and height of your banner
  9. Upload Banner - Click the Browse button to search for your banner to upload in your computer.
  10. Store in Database - If you want to store the banner in the database, set this to Yes.

    * Storing the banner in your database may use up unnecessary resources on your database, as each and every time someone calls your banner picture, it will need to be retrieved from the database.  If you don't have a dedicated server, set this option to No.
  11. Banner Notes - Any side notes you may want for this Banner

How to Add Flash Banners To Work with JAM Affiliate Links

You can also upload Flash banners. However, Flash banners cannot be stored in the
database.

To use Flash banners, you must make sure that when you create your Flash banner,
the hyperlink action in flash points to an external URL like this:

on (release) {
affiliate_link = JROX_URL;
getURL(affiliate_link, "_blank");
}

You can now add flash-banners to your program.

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Email Ads

Email Ad Management

Adding Email Ads

You can add an unlimited number of Email Ads that your members can publish on their site to promote your products and services.

To add a new Email Ads, follow these steps:

  1. Click on Marketing > Email Ads > Add
  2. The Add New Email Ads form appears.
  3. Email Ads Status - Set this Email Ad to Active/Inactive
  4. Select Program - Select which program this Email Ad will be associated to.
  5. Email Ad Name - A short name for your Email Ad
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Email Ad Subject - The subject of the Email Ad
  9. Email Ad Content - The content of your Email Ad
  10. Email Ad Notes - Any side notes you may want for this Email Ad

* When creating the Email Ad, make sure to use the Custom Tags available in the HTML Editor to represent certain information on the Email Ad, such as the affiliate URL, or Name.  You will need these so that when an affiliate copies and pastes this Email Ads on their site, their affiliate links would have been automatically generated for them already.

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Follow-Up Messages

Setting Up the Built-In Follow-Up Messaging Module in JAM

How Many Follow-Up Messages can JAM accomodate?

JAM can setup up to 20 follow up messages, separated by as many days as you need it to.

This is done in Settings > Email Templates

Setting Up Affiliate Follow-Up Messages

You can create up to 20 follow-up messages to automatically send to your affiliate members.

* This option requires you to have the CRON job setup and running.  If the cron does not run, your messages will not be sent.  Click here for more information on setting up the required CRON job.

Setting up the Affiliate Follow-Up Module

To setup the Affiliate Follow-Up Module, follow these steps:

  1. Click on Settings > Marketing Settings > Enable Follow Ups Option and set this to Enable

  2. Click on Settings > Email Templates > Add Follow Up near the bottom of the page, under the Follow Up Templates section.

  3. In the Add New Template area, go ahead and fill in the appropriate fields:

    Select Email Type
    - Select HTML, Text, or Bothz
    Email Template Name - Enter a friendly name for your email follow up.From Name - Enter the from name that will appear when this email is sent out.
    From Email Address - Enter the from email address that will appear when this email is sent out.
    Email Subject - Enter the subject for this email follow up.
    Email Template Message - Enter the HTML and /or Text Content of your Follow Up.

  4. Click on Save Email Template to save this email follow up.

  5. Repeat these steps for all of your follow up messages, up to a maximum of 20 follow ups.

  6. Once you've finished adding your follow up templates, go back to Settings > Email Templates and scroll down to the Follow Ups  section.  Here you will edit the sequence of your follow ups as well as the number of days each follow will wait before being sent. *Make sure to keep the sequence numbers in numerical order, (for example 1,2,3,4,5,6,7,8,910) as JAM calculates the next follow up sequence according to the next sequence number.

  7. Once you're done updating the sequence of your follow ups, just click on Update Follow-Up Sequence and you should be set.  The next time an affiliate signs up for your program, they will automatically be queued for the first follow up message to be sent on the day set for it.

What are Affiliate Follow-Up Autoresponders?

The Affiliate Follow-Up Module allows you to create follow-up email messages that are sent to your affiliates on predetermined intervals.  This is similar to an autoresponse follow up message that is sent one at a time, separated by a number of days that you specify.  

Setting up follow-up messages are great especially if you want to send some email correspondence to your new affiliates.

This shows your new members that you are serious about getting them to make money not just for you, but for themselves as well.

Here are some examples of what the follow-up module can do for you:

  1. Create an Affiliate E-Course to train your affiliates
  2. Follow-Up with preset emails to see how your affiliates are doing

  3. Automatically send preset emails to introduce new affiliate tools or marketing strategies.


Hover Ads

Hover Ad Management

Adding Hover Ads

You can add an unlimited number of Hover Ads that your members can publish on their site to promote your products and services.

To add a new Hover Ads, follow these steps:

  1. Click on Marketing > Hover Ads > Add
  2. The Add New Hover Ads form appears.
  3. Hover Ad Status - Set this Hover Ad to Active/Inactive
  4. Select Program - Select which program this Hover Ad will be associated to.
  5. Hover Ads Name - A short name for your Hover Ad
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Hover Ad Type - Select whether this hover ad will drop in from the top or just float on the screen.
  9. Hover Ad Title - The title of your Hover Ad
  10. Hover Ad Width - The width of your Hove Ad in pixels
  11. Hover Ad Content - The content of your Hover Ad
  12. Hover Ad Notes - Any side notes you may want for this Hover Ad

* When creating the Hover Ad, make sure to use the Custom Tags available in the HTML Editor to represent certain information on the Hover Ads, such as the affiliate URL, or Name.  You will need these so that when an affiliate copies and pastes this Hover Ads on their site, their affiliate links would have been automatically generated for them already.

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Offline Marketing

Offline Marketing Module

Exporting Data

The Data Export function allows you export data directly from your JAM database. You can export Affiliates, Commissions and Events.

Export Formats can be: Tab Separated, Comma Separated, or Excel-Format.

Data Export can be run by clicking Settings>Data Export.

To generate the export, click on Export Data once you've chosen your export options.

Offline Marketing Module

The Offline Marketing Module is meant for those who want to utilize JAM to build an affiliate network offline.  This module can be used to create offline codes that designate an offline marketing code along with a custom affiliate ID that you can use to track the referral of offline affiliates.  

For example:

You have a number of offline salespeople who want to give out flyers or coupons to potential customers.  You can use JAM to create the offline codes necessary to print on these flyers/coupons that are handed out to each salesperson.  When a customer comes into your store to redeem the flyer/coupon that was handed to them by your salesperson, the salesperson's offline code will be printed on there.  From there, you can login to JAM and redeem this code to give that salesperson the commission he has generated.

To enable the Offline Marketing Module, follow these steps:

  1. Click on Settings > Marketing Settings.  Scroll down to the area on Offline Marketing.

  2. In the Enable Offline Marketing option, select Enable

  3. In the Offline Prefix section, you can enter a unique phrase for each of your offline marketing campaigns separated by a comma.  You can use this to specify different offline marketing campaigns, for instance, different flyers, coupon codes, etc.  This will need to be present before the affiliate's custom ID when you redeem the offline codes for commissions.

    For example: if you have an offline prefix of shoppermag that you will use to identify a certain flyer you give out, this will be appended to the affiliate's custom ID like this:  shoppermag-affuser1, where shoppermag is the offline prefix and affuser1 is the affiliate's custom ID.  

    In the text area for Offline Prefix, type in shoppermag,coupon1,coupon2 to have 3 different offline marketing campaigns.

    The affiliate's custom ID can be found when you view his/her details, under Custom ID.

  4. In the Offline Separator option, select the separator you want to use to separate the offline prefix from the affiliate's custom ID.  You can select dash, underscore, slash, colon, dot, or pound.  

    For example, if you select underscore, your offline code will look like this: shoppermag_affuser1 

  5. Once you are done, just click on Edit Settings to save.

Download Affiliate Custom IDs for Printing

  1. Once you have enabled the Offline Marketing settings, you can export and download your affiliate's custom IDs by going to Settings > Data Export

  2. In the Data to Export list, select Affiliates.

  3. You can sort this by Custom ID if you want by selecting Custom ID in the Sort By menu.

  4. We suggest downloading it in Excel Spreadsheet format under the Export Format menu, so that you can just open it up in Microsoft Excel and remove any unnecessary columns that you don't need.

  5. You can now just prepend your offline prefixes to each of your affiliates' custom IDs for marketing offline.

Redeem Offline Codes

  1. To redeem offline codes, click on Marketing > Redeem Offline Marketing Codes.

  2. Select the product group you are redeeming the codes for.

  3. Enter the sale amount for each code.  If the sale amount is the same for multiple offline codes, you can enter up to 10 offline codes for redemption.  Remember, the sale amount is for each sale per offline code, not the total amount of sales for all offline codes.  

    The offline codes should be in the format:

    offlineprefixofflineseparatoraffiliatecustomID

    For example:  shoppermag-affuser1 where shoppermag is the offline prefix, - (or dash) is the offline separator, and affuser1 is the affiliate's custom ID.

  4. Once you have redeemed your codes, a new commission will be generated for each affiliate as well as any one in their downline.


One-Time Offer

Setting Up the One-Time Offer Option

How to Create a One-Time Offer

To setup a one-time offer for your programs, follow these steps:

  1. Click on Programs > Content Publisher > One Time Offers
  2. You will be presented with the One Time Offer Content From
  3. Fill out the required fields.
  4. Make sure to set the Enable option to Yes.
  5. Once you are done, click Submit to Save.

When creating a one-time offer, make sure you create two links:

  1. The link to take advantage of your one-time offer
  2. A link to NOT take advantage of your one-time offer

 

What is a One-Time Offer?

A One-Time Offer is precisely what the words mean, a "one time offer".  This feature allows you to give your new affilate members an exclusive , "one time offer", after they sign up.  This can be anything from an exclusive deal on a product, a discount, a coupon, or anything that you want to offer your members.

The catch here is that they need to take advantage of that exclusive deal right then and now, or once they click on the next page, they cannot go back to that page again. This can work well if you want to give your users an exclusive deal when they first sign up


Replicated Websites

Setting Up Static Website Replication

Enabling the Website Replication Feature

JAM has a website replication feature that you can use for creating static websites for affiliates.

To enable the website replication feature, follow these steps:

  1. Open up the example replicated.html web page in /plugins/misc/replicated.html.  This is an example template of what you can edit for your own replicated website.
  2. You can either edit this file directly, or create a new one.  Just make sure that you upload the new one to a folder that JAM can access.
  3. Create the directory where you want your new replicated web pages will go.  Make sure to set the permissions on this folder to 777 or world-writeable.
  4. Open up the /includes/config.php file for editing
  5. Scroll down to the following area and edit the following:

    This line needs to be set to 'true':

    define("JAM_ENABLE_REPLICATED_SITES", true);

    This line should be set to 'php':

    define("JAM_REPLICATION_EXTENSION", "php");

    This line should be set to 'true':

    define("JAM_USE_DYNAMIC_VARIABLES_REPLICATION", true);

    Ths line should be the physical path to the replication template that you want to use:

    define("JAM_REPLICATION_TEMPLATE", "/home/username/public_html/affiliates/plugins/misc/replicated.html");

    This is the directory where your replicated web pages for your users will automatically be created.  You need to create this folder and leave it empty:

    define("JAM_REPLICATION_DIRECTORY", "/home/username/public_html/affiliates/pages");

  6. Save your /includes/config.php and reupload.
  7. Once all this has been configured, every time a new affiliate signs up to your program, a new replicated web page will be created in your JAM_REPLICATION_DIRECTORY, and can be used by your affiliate as their website.  An example of this would be:

    http://www.yourdomain.com/affiliates/pages/joesmith.php

    Where joesmith is the affiliate's username

 

How to Add Your Affiliate's Picture on a Replicated Web Page

JAM allows you to have up to 5 custom fields that can be used for anything you want on your web page.  In this example, you can set one of the custom fields to a URL of an image for your affiliate.

For instance, you can set the first custom field value to your affiliate's image: 

http://www.domain.com/affiliateimage.gif

In your replicated.html template, you can then set it like this:

<img src="%%%CUSTOM_FIELD_1%%%" />

When the replicated website gets created, it will show the following link, and the image for your affiliate:

<img src="http://www.domain.com/affiliateimage.gif" />

How To Point an Affiliate Link to a Replicated Website

If you use the Replicated Website Option in JAM, you can point your regular affiliate links automatically to your affiliate's replicated web page.

To do this, follow these steps:

  1. First, enable the Replication Feature.  For instructions on this, click here
  2. Go to Programs > Edit Program.
  3. Edit the URL To Redirect To option and type in the following:

    http://www.YOURDOMAIN.COM/AFFILIATES/PAGES/%%%USERNAME%%%.php

    *Make sure to change YOURDOMAIN.COM/AFFILIATES to point to your JAM URL.

    *Make sure to change PAGES to point to the directory that you replicated websites are at.

    *Make sure to change .php to reflect the proper extension you set in your /includes/config.php

  4. Save your Settings.
  5. Go to Settings > System Settings and make sure that the Append Cookie to URL is set to Disable
  6. If you still need to append the cookie to your URL, just change the URL to Redirect To, like this:

    http://www.YOURDOMAIN.COM/AFFILIATES/PAGES/%%%USERNAME%%%.php?jrox=%%%COOKIE_ID%%%
  7. Now, all affiliate links will go to your affiliate's replicated web page.

What is a Replicated Website?

A replicated website is basically a website template that gets copied to be used by someone.  Most of the time, that website template has information that gets changed with unique information for the user of the site, such as links, URLs, names, etc.  This makes the replicated website unique to that user.

JAM allows you to create replicated sites for your users to use, so that they can promote those sites as if it were really theirs.

For more information on the website replication feature, click here.

 


Text Ads

Text Ad Management

Adding Text Ads

You can add an unlimited number of Text Ads that your members can publish on their site to promote your products and services.

To add a new Text Ads, follow these steps:

  1. Click on Marketing > Text Ads > Add
  2. The Add New Text Ads form appears.
  3. Text Ad Status - Set this Text Ad to Active/Inactive
  4. Select Program - Select which program this Text Ad will be associated to.
  5. Text Ad Name - A short name for your Text Ad
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Text Ad Title - The title of your Text Ad
  9. Text Ad Width - The width of your text ad in pixels.
  10. Text Ad Content - The content of your Text Ad
  11. Text Ad Notes - Any side notes you may want for this Text Ad

* When creating the Text Ad, make sure to use the Custom Tags available in the HTML Editor to represent certain information on the Text Ads, such as the affiliate URL, or Name.  You will need these so that when an affiliate copies and pastes this Text Ads on their site, their affiliate links would have been automatically generated for them already.

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Text Links

Text Link Management

Adding Text Links

You can add an unlimited number of Text Links that your members can publish on their site to promote your products and services.

To add a new Text Link, follow these steps:

  1. Click on Marketing > Text Links > Add
  2. The Add New Text Link form appears.
  3. Text Link Status - Set this Text Link to Active/Inactive
  4. Select Program - Select which program this Text Link will be associated to.
  5. Text Link Name - A short name for your Text Link
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Text Link Notes - Any side notes you may want for this Text Link

What is click-through rate (CTR)?

According to Wikipedia:

Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the number of users who clicked on an ad on a web page by the number of times the ad was delivered (impressions). For example, if your banner ad was delivered 100 times (impressions delivered) and 1 person clicked on it (clicks recorded), then the resulting CTR would be 1%.

Banner ad click-through rates have fallen over time, often measuring significantly less than 1%. By selecting an appropriate advertising site with high affinity (e.g. a movie magazine for a movie advertisement), the same banner can achieve a substantially higher click-through rate. Personalized ads, unusual formats, and more obtrusive ads typically have higher click-through rates than standard banner ads.

CTR is most commonly defined as number of clicks divided by number of impressions and generally not in terms of number of persons who clicked. This is an important difference because if one person clicks 10 times on the same advertisement instead of once then the CTR would increase in the earlier definition but would stay the same in term of later definition.


Viral PDFs

How To Create Your First Viral PDF

In JAM versions 1.6.2 and higher, you have the option to create Viral PDFs that can have your affiliate's links embedded dynamically.  This allows your affiliates to distribute your PDF ebooks all across the Internet, and still get credit for any sales that get generated from it.

Please remember, this is not an HTML to PDF converter.  Only certain formatting codes are allowed when creating your PDF content.

These instructions will help you to create and format your first Viral PDF correctly.

  1. Go to Marketing > Viral PDFs > Edit
  2. The Viral PDF Configuration > Add New screen appears.
  3. Select Viral PDF File - If you have other Viral PDFs, select it from the list to edit.

    Delete - Delete the selected PDF
    Download - Download a sample PDF so you can view it.  JAM automatically selects a random affiliate from the JAM database and uses his/her values for your dynamic data.
  4. Status - Set the PDF to Enable or Disable
  5. Program - Select which program this PDF will show under in the Members Area
  6. Title - Enter the title to your PDF
  7. Author - Enter an optional author to your PDF
  8. Website URL - The URL that you want to show on the PDF Cover Page
  9. Logo Image - You can enter the URL to a JPEG logo of your choice.  This is optional, and only JPEG files are allowed.  This will show up on your PDF Cover Page
  10. Logo Width And  Height - If you entered a logo image, you can enter the height and width of it here
  11. Logo X-Position - This is the postion from left to right on the PDF Cover page of your logo.  The greater the number, the more your logo will be placed to the right of the PDF page.
  12. Filename - the filename that you want to name your PDF.  Do not include the .pdf extension.
  13. Description - A short description of your PDF file. 

Generating your PDF Content

The PDF Text Area is where you type or paste in your PDF content.  The allowed Custom Tags are the tags you use for dynamically placing your affiliate member's info into the PDF when they download it. 

For example, if you type in %%%FIRST_NAME%%% in the PDF Text Area, this will be changed to your affiliate's first name when they download the PDF.

Some formatting codes are available on the tool bar right above the PDF Text area such as B for Bold, I for Italic, and U for Underline.  Other commands are:

*There is currently no support for HTML conversion or embedded images. 

For other settings such as editing the default font used, you can open up the /plugins/tools/Viral_PDFs/tool.template.values.php

You can also add an extra page right after the PDF cover page by adding your text in /plugins/tools/Viral_PDFs/custom/custom.pdf.text.php. This will be good for things such as copyright info or introduction.

 


Membership Management

Setting Up and Managing Memberships in JAM

Custom Members Area Login

JAM allows you to create different and customizable members' areas for each of your affiliate programs.  JAM supports a complete redirect to a different URL after login, custom content publishing for each program, your own HTML custom section, or the default members' main menu icons.

Custom URL Redirect after Login

You can create your own affiliate members' area by setting a different URL After Login option in your Program's Settings.  If you set this to a different URL, we recommend securing those pages using JAM's copy and paste authentication header for your web pages.

More information and instructions on using JAM's Authentication Module can be found here

How to Add a New Downloadable File

Adding a new downloadable file is easy in JAM. Just follow these steps:

  1. Click on Programs > Downloadable Files
  2. In the Add Downloadable Files screen, enter the required fields.

    * If you are using a Physical Redirect for the Download Location, you must first upload your downloadable file to your web hosting account.  Make sure that JAM can access the folder where it is physically located.  You can do this via FTP or SFTP.

    * Make sure to enter the full physical path to your file in the Download Path field, for example: /home/username/downloads/file.zip

    * If you just want JAM to redirect the download to a URL, select the URL Redirect option for the Download Location and enter the download path.
  3. Click Save Downloadable File.
  4. Once it is saved, you will be able to select it from the drop down menu that appears in the Downloadable Files section.  Select it from the list, and you will be presented with a URL Link that you can use to link directly to this download.
  5. You can now use that download link and publish it for use in your members area.  You can publish this either through the Content Publisher, or your own custom content pages.

*Remember, the link can only be used when an affiliate member is logged into JAM.  If they are not logged into JAM, clicking on the download link will not work.

How to Charge Membership Fees

JAM allows you to charge membership fees for your programs. 

To enable this feature, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on one of the listed Membership Payment Modules you want to use for payment.
  4. A dialogue box will come up. Enter all required fields.
  5. Do this for all the payment options you want to enable
  6. Go to Programs > Edit.  Select the program you want to charge fees for.
  7. Scroll down to the bottom.
  8. Under Membership Payment Settings, fill in the required fields
  9. Select Optional or Required under the Require Payment drop down menu.
  10. Click Save Program Details

The next time you have an affiliate signup, they will either have the option to pay for your membership program or will be required to pay for it.

How To Create Your Own Custom Payment Processor Module

JAM allows you to create your own custom payment processors, provided you have advanced knowledge of PHP and web application programming.

*This is for advanced users only, if you do not know how to create and edit PHP scripts, we strongly advise you against creating your own payment processor and consult a web developer.

  1. Create a folder in /plugins/processors and name it your payment processor.  For example:

    /plugins/processors/Processor_Name
  2. Copy all .php files from the /plugins/processors/Egold.  We will use this as the template for the payment processor.  These files include:

    processor.template.config.php
    processor.template.form.php
    processor.template.values.php
    index.php
  3. Open up the processor.template.config.php file. This file is used in the JAM admin area under Settings > Payment Settings for inserting and updating  fields in the jx_processor_config database table that will be used by your payment processor.
  4. Edit the $payment_type variable and set it as the name of your processor.  Make sure it is the same name as the processor folder.
  5. There are 3 required fields: Status, Description, and Default.  Keep these form fields intact when editing the form.
  6. You can have up to 20 fields for use in your payment processor.  These will be available for you to use when you run the payment processor.  For example, in the EGold processor, we use the config_1 field for the EGold Merchant ID.  You can create 20 fields, naming them config_1, config_2, config_3 and so on.
  7. Once you've finished creating the form, save it and upload it in your custom processor folder.
  8.   Open up the processor.template.form.php file.  This file will have the main payment form that sends data to your payment processor/gateway.
  9. You can edit the form here to have the form for your payment processor.  The variables available are:

    $module - This is an array from the jx_processor_config table that has any data that you need from saving it via the processor.template.config.php file in the admin area. Values are:

    $module['id']
    $module['status']
    $module['name']
    $module['description']
    $module['default_payment']
    $module['config_1'] - $module['config_20']


    Other required variables:

    $product_name - Name of your Program
    $membership_full_amount - the amount you are charging for this payment
    $vcode - verification code used to activate the affiliate membership after payment.  This variable must be transmited back to either the return URL or the notify URL in order to activate the affiliate membership automatically.

    Optional variables:

    $membership_length - the length of the membership as specified in Programs > Edit Program.  This can be any of the following:

    0 - No expiration
    1 - Monthly
    3 - Quarterly
    6 - Semi-Annually
    12 - Annually

    Return URL
    - This URL is for returning your members back to JAM for confirmation.  This is the following PHP value:

    MEMBERS_HOME_BASE_URL.HOME_BASE_AFFILIATE_DIRECTORY.'/process/'.$jam_return;

    Notify URL - If your payment processor supports a separate notification URL, you can use this as well.  This is the following PHP value:

    MEMBERS_HOME_BASE_URL.HOME_BASE_AFFILIATE_DIRECTORY.'/ccprocess.php?type='.$processor_option;

    *If your payment processor does not use a separate notification URL, you can set the Notify URL given above as the Return URL

  10. Once you are done configuring the processor.template.form.php file, save it to your processor folder.
  11. Open up the processor.template.values.php file. This is used for mapping the variables that your payment processor posts back to JAM after payment is made.
  12. Make sure you map the variables posted by your payment processor to the variables required b JAM.  For example, if your payment processor posts the sale amount as $_POST['payment_amount'], you need to map this to the required JAM variable for amount:

    $amount = $_POST['payment_amount'];

    The required variables here are:

    $process_affiliate_payment - Set this to true if your payment processor successfully processed the payment
    $process_affiliate - Set this to true if you want to generate commissions from this affiliate payment
    $amount - the amount paid
    $trans_id - the transaction ID used for this payment
    $vcode - the variable you used to post the verification code variable from processor.template.form.php
  13. Once you're done, save the file as processor.template.values.php into your processor folder.
  14. Run tests to make sure that the affiliate member can pay via your payment processor and that his/her account is automatically created after payment.

How To Import Affiliate Members Into JAM

JAM allows you to import your affiliate members directly into the database via a tab-separated or comma-separated file.

To import your members, follow these steps:

  1. Export or Save your affiliate member data to a tab-separated (.txt) or comma-separated (.csv) file. The proper format is as follows:

    first_name, last_name, email_address, username, password, company_name, address_1, address_2, city, state, country, zip, phone, fax, tax_id, website, paypal_email, stormpay_email, safepay_id, moneybookers_id, alertpay_id, egold_id, bank_transfer, custom_field_value_1, custom_field_value_2, custom_field_value_3, custom_field_value_4, custom_field_value_5 
     
  2. The only required columns for import are first name, last name, and email address. All other columns are optional. Only .txt or .csv file extensions allowed.

  3. Click on Settings > Import / Export > Click Here to Import Data.

  4. Once you are on the Import Screen, browse for your .txt or .csv file.  The maximum upload size is 2 MB, so make sure your file size is less than that.
  5. An example .CSV file is available for you to download and copy as well.

How To Password Protect a Web Page with the JAM Authentication Module

You can password-protect a web page using the JAM authentication module by following these steps:

  1. Open up the /plugins/mis/secure_prepend2.php file.
  2. Edit the following line to point to your JAM installation folder:

    $JAM_Directory = '/var/www/html/affiliates';
  3. Make sure your web page is a .php web page.
  4. Open it up for editing.
  5. On the very first line, add this code:

    <?php
    include '/var/www/html/affiliates/plugins/misc/secure_prepend2.php';
    ?>
  6. Make sure that '/var/www/html/affiliates points to your JAM installation folder.
  7. Your web page is now protected and users must login through the JAM interface.

How to Reactivate Old Subscribers with Payment

* This option is only available on JAM 1.6.2 and higher.

If you use the membership payment option in JAM, you can automatically get inactive or expired users to reactivate their account by sending them to the following link:

http://www.domain.com/affiliates/prupgrade.php?req=payment

Make sure to point it to your JAM installation.  This page will require your member to enter their email address on file, and they will then be presented with your payment options.

Once payment is done, their account will automatically get reactivated.

How To Setup Separate Affiliate or Membership Programs

To allow custom affiliate programs just do the following:

  1. Disable the Showcase Multiple Programs option in Settings > System Settings.

  2. Gather the IDs for all of your programs you want to have separate logins for.

  3. Append the program ID to your affiliate members area, like this:

    http://www.yourdomain.com/affiliates/?pid=2
    http://www.yourdomain.com/affiliates/?pid=3
    http://www.yourdomain.com/affiliates/?pid=4

    (If you use se-friendly URLs, this becomes http://www.yourdomain.com/affiliates/program/4)

  4. Substitute the pid variable for the variable of your program IDs.

  5. You now have custom affiliate programs with custom affiliate commissions, marketing tools, and stats.

* If you don't want affiliates logging into other affiliate programs, just make sure to set the Force Member Login option for the program that they initially signup for, and this will restrict them to only being able to login to the affiliate program that they signed up for.

Protecting a Separate Folder using the JAM Authentication Module

For instructions on how to protect a separate folder using the JAM Authentication Module, view the following document:

http://jam.jrox.com/docs/index.php?article=73#separatefolder

Security Options for Downloadable Files

JAM allows you to set certain security restrictions for downloadable files.  These include:

  1. Expiration Date - If you want the download to expire on a given date, enter the date in the Set Optional Expiry Date box
  2. Maximum Downloads - If you want your users to be able to download this file a certain number of times, enter the number in the Set Optional Max Downloads box.
  3. Restrict to Program - If you want the downloadable file to only be available to certain programs, you can select them in the Restrict To Program list menu
  4. Security Groups - If you use groups, you can restrict the downloadable file for access only to certain groups.  Select these groups in the Select Security Groups list menu.

* When a user tries to access a downloadable file, and you have upgrade options enabled for that program or group, the user will automatically be presented with an option to upgrade for a fee.  This makes it automatic for your users to upgrade and get the downloadable files from you easily.

Using the JAM Authentication Module

JAM has an available Authentication Module if you want to utilize JAM's authentication and membership management features.  This module can be used to create your own custom secure web pages on a totally separate folder from JAM.

By using this module, you have endless possibilities in creating membership sites, affiliate programs, or custom secured content

You can quickly secure php web pages just by copying and pasting a small file on the top line of each web page.

For instance, you created a web page that you only want members to be able to access, just append the following to the top of that page, like this:

<?php
########################################
## PASSWORD PROTECT CERTAIN WEB PAGES ##
########################################

error_reporting(0);
//SET THE HOME DIRECTORY TO YOUR AFFILIATES FOLDER
$JAM_Directory = '/home/USERNAME/public_html/affiliates';
require_once ($JAM_Directory.'/includes/common.php');
require_once ($JAM_Directory.'/includes/mod/mod_members.php');
Login_Check();
?>

Just change the /home/USERNAME/public_html/affiliates  to point to your JAM directory.

You now have that web page protected and all users will have to login through the JAM login form to get access to it.

An example of this is available in the /plugins/misc/secure_page.php file.

Examples for using the Authentication Module

Affiliate or  Membership Site on a Separate but Secured Web Page

JAM can create a membership area for you that uses the Authentication Module that secures the web pages. To do this, do the following:

  1. Create a new Program in JAM. Fill in all the fields, and set the URL to Redirect to After Login to the web page you have secured.

  2. Optionally set the URL Redirect to After Signup to any page you want.

  3. Set the Force Member Login to only allow signups to be able to login to this program

  4. Open up your membership web page for editing and add the authentication code to the very top of your web page. 

  5. Add the authentication code to all the web pages you want to secure.

Securing a separate folder using the Authentication Module

* this might be a bit advanced for some users

Alternatively, if your web host supports it, you can protect an entire folder without having to add the authentication code on each and every page that is in that folder.  This makes it easier to protect any and all files in that folder.

To do this, follow these steps:

  1. Make sure your web host allows the auto_prepend_file option in PHP.  If you do not know this, please ask your web host or systems administrator.
  2. Open up the /docs/htaccess3.txt file.  This is a sample auto_prepend file that can you can use to protect your directory.
  3. Edit the line to reflect the proper path of your JAM installation:

    php_value auto_prepend_file /home/username/public_html/affiliates/plugins/misc/secure_prepend2.php
  4. Save it and upload it to your designated protected directory.
  5. Once it is uploaded, rename it to .htaccess
  6. Open up the /home/username/public_html/affiliates/plugins/misc/secure_prepend2.php file for editing
  7. Change the following line to reflect your proper affiliate installation directory path:

    $JAM_Directory = '/var/www/html/affiliates';
  8. Login to your JAM admin area.
  9. Click on Programs > Edit Program for your chosen Program.
  10. Edit the URL to Redirect to After Login to point to your designated web page in your protected directory.
  11. Click Save Program Details.
  12. You now have JAM protecting that entire folder.

 

What Downloadable Files does JAM support?

JAM allows you to have any type of downloadable file, as long as it can either be stored on your web hosting account or accessible via a URL from JAM.

These files can be any of the following:

By having this option, you can protect your downloadable files by using JAM as the necessary login authentication before giving access to them.


Program Management

Managing Different Affiliate and Membership Programs in JAM

Adding New Programs

To add new programs to JAM, click on Programs > Add New Program and fill in the details.

Add New Program:

Program Status - Set this program as active / inactive. By setting this to inactive, your affiliates will not see any of the tools when they login to this affiliate program

Program Name - Name of your program

Program Description - Short description of your program

Optional Program Image - Upload an optional image to represent your program. The image must be less than 500 KB and between 110 x 110 in size.

URL to Redirect To - Enter the full URL of the website you want this program to redirect to.

Program Type - Select whether this program is Pay-Per-Click or  Pay-Per-Sale

Default Member Site Theme - Select what theme to use for this Program

PPC Interval Type - If you select Pay-Per-Click, you can set whether to only allow payments on unique referrals (using IP Addresses), or allow clicks to be paid after a certain amount of time has elapsed, for instance, after 1 month.

*Make sure this URL points to a domain where your Affiliate Program is installed.  If not, you will have to enable the Append Cookie to URL option and set the cookies separately.

Total Impressions for CPM - Use only if you've set the program to use a CPM Program Type.  Enter how many impressions an affiliate must get first before being issued a commission.

Commission Type - Set this program as having flat or percentage-based commissions.

Set New Commissions To - Set new commissions to either Pending or Unpaid. Setting it to Pending will give you time to check the commission if you want, because it will stay hidden from your affiliates until you approve it.

Auto-Approve Commissions After - You can auto-approve commissions after a certain time.  This is a great feature for you so that you don't have to always check which pending commissions are needed to be approved.

URL to Redirect to After Signup  - You can se this field to be any valid web page that you want to redirect users to after they have signed up for your program. This is where they will go after filling out and submitting your signup form for this program.  Each program can have different URLs to Redirect to After Signup.

URL to Redirect to After Login  - You can set this field to be any valid web page that you want to redirect users to after they have logged into JAM. This option is particularly useful if you want to use JAM's Authentication Module and redirect users to a custom web page.  Each program can have different URLs to Redirect to After Login.  

* The default would be to go to the members area, which is set to http://www.yourdomain.com/affiliates/members/ Change yourdomain.com to point to your domain name and affiliates to point to your affiliates directory.

URL to Redirect to After Sale - If you are using URL Redirect as your primary system integration, enter a valid URL here to send your customers to after completing the sale

Enable Create Account Link - This option shows/hides the Create Account link in the member's login form.  If you charge your members a fee first before signing up, then you should disable this option

Automatically Assign To Group - This option only appears if you have setup groups and would like any new member who signs up for this program to be automatically added to the selected group

Enable Member Main Menu - You can disable the default main menu when affiliates login to the members area.  This is useful if you want to use the Content Publisher to create a custom members home page for this program.

Force Member Login - When this option is enabled, an affiliate will be restricted to only being able to login to this program which he is assigned to.  He will not be able to login to any other programs you offer.

Select Signup Form Type - Select whether to use the default signup form, which separates the personal information from the user account information, or the Single inline form, where all fields are listed in one table. You can also select the aweber form, which integrates directly with aweber.

Commission Levels - Select the number of levels you want to have for this program.  The maximum is 10.

Commission Frequency - Select the amount of time commissions for this product should recur.

Commissions Per Level - Enter the commission amounts for each level set.  Commission levels for your program are set in System Settings.

*For percent-based commissions, make sure to enter the decimal equivalent  for it.  For instance, a 50% commission should be input as .50, its decimal equivalent.

Program Notes - Enter any miscellaneous notes you may have for this program.

Deleting a Program

To delete a program, click on the Delete button for the program you want.  

*You cannot delete the first program in the system.  This is the default product for the entire system.

*If you delete a program which already has marketing tools and data asssociated to it, it will also delete all of these.  Please make sure this is what you want before deleting an active program.  You can also set the program to inactive to stop promoting it with your affiliates.

How To Setup a Pay-Per-Lead Program

Here are instructions on setting up a pay-per-lead campaign:

  1. Go to Programs > Edit Program, and set your Program Type to Pay-Per-Lead.
  2. Scroll to the Commission Per Level area, and enter your flat payout amounts.  Pay-per-lead does not pay on percentages
  3. Go to Settings > System Integration and select the Image Tag method.
  4. Just leave the amount and transaction ID blank.
  5. You now have to copy the image tag integration code onto your form's thank you page.  This is the page where your leads are sent to after registration is completed for that lead.
  6. Now, everytime a lead completes your form/action, a commission is generated for the referring affiliate

How To Setup Separate Affiliate or Membership Programs

To allow custom affiliate programs just do the following:

  1. Disable the Showcase Multiple Programs option in Settings > System Settings.

  2. Gather the IDs for all of your programs you want to have separate logins for.

  3. Append the program ID to your affiliate members area, like this:

    http://www.yourdomain.com/affiliates/?pid=2
    http://www.yourdomain.com/affiliates/?pid=3
    http://www.yourdomain.com/affiliates/?pid=4

    (If you use se-friendly URLs, this becomes http://www.yourdomain.com/affiliates/program/4)

  4. Substitute the pid variable for the variable of your program IDs.

  5. You now have custom affiliate programs with custom affiliate commissions, marketing tools, and stats.

* If you don't want affiliates logging into other affiliate programs, just make sure to set the Force Member Login option for the program that they initially signup for, and this will restrict them to only being able to login to the affiliate program that they signed up for.

How To Upgrade Members from One Program to Another

JAM allows you to automatically allow your members to upgrade from one program to another program that you charge payments for.  For example, if you have one membership program that affiliates can join for free, but also have a second program that you require a membership fee to join.

To enable this option, follow these steps:

  1. If you don't have one yet, create a second program in your JAM admin area. Click on Programs > Add Program.
  2. Make sure you enable the membership payment option for this program.
  3. Add a link either through a main menu content page or a custom content page that your members can click on to upgrade, like this:

    %%%LOGIN_URL%%%prupgrade.php?req=payment&type=upgrade&mode=2&pid=2&mid=%%%MEMBER_ID%%%
  4. Make sure to change the 2 to the program ID you want your members to upgrade to.
  5. When an affiliate clicks on this link in their members area, they will be presented with the payment options for upgrading to this membership program.
  6. Once payment has been made, JAM will automatically assign them to the new program.

Managing Your Affiliate and Membership Programs

With JROX.COM Affiliate Manager, you can create unlimited affiliate and/or membership programs with customized commission structures for each program.

This means, you can have multiple programs with a custom commission structure for each program.  Each program can have their own unique content, welcome email, and payout structures. You can even have sites that are completely different from each other, allowing you to create custom membership programs for different sets of affiliate members.

JAM allows you to have two options when creating multiple affiliate programs or membership sites:

Private Affiliate Network (Showcase Multiple Programs)

With this option ,you can showcase all the different affiliate programs to your members when they login to their members' area.  

In this case, all of your affiliates login to the same members area and get the promotion tools for each program via a drop down menu in the Affiliate Tools section. This allows them to promote any and all of your programs with unique affiliate tracking links.

To use this option, make sure you set the Showcase Multiple Programs option in Settings > System Settings to Enable

Unique Affiliate or Membership Program

JAM also allows you to create multiple affiliate programs or membership sites that are completely separate from each other.  

To set this option, make sure you set the Showcase Multiple Programs option in Settings > System Settings to Disable

 When you use this option, you can create multiple programs by clicking on the Add Program link in the Programs section.

Viewing Program Statistics

You can view how well each program is doing by clicking on the Stats link for each program.  Here, a graphical representation will show you how well each product is generating commissions for you.


Stats and Reporting

Statistics and Reporting Data in JAM

Statistics and Reporting Module

The Reports module for JROX.COM Affiliate Manager is an extensive collection of graphs, statistics and reports on how well each facet of your affiliate program is doing.  This feature will help you analyze how well your affiliates are doing, how much commissions each of your products are generating, how much traffic you are seeing, and so much more.

Here is a list of the reports you can generate with the Reports Module:

  1. Affiliate Signups Per Day - Last 7 Days

  2. Commissions Generated Per Day - Last 7 Days

  3. Total Commissions - By Month

  4. Total Commissions - By Year

  5. Monthly Commission Analysis

  6. Clicks / Sales /Commissions Comparison

  7. Top Performing Affiliates - By Clicks

  8. Top Performing Affiliates - By Commissions

  9. Top Performing Affiliates - By Sales

  10. Total Affiliate Signups - By Month

  11. Total Affiliate Signups - By Year

  12. View Website Referrers - in list format

  13. Total Affiliate Clicks - By Month

  14. Total Affiliate Clicks - By Year

  15. Total Banner Clicks - By Month

  16. Total Banner Clicks - By Year

  17. Total Text Link Clicks - By Month

  18. Total Text Link Clicks - By Year

  19. Total Text Ad Clicks - By Month

  20. Total Text Ad Clicks - By Year

  21. Total Hover Ad Clicks - By Month

  22. Total Hover Ad Clicks - By Year

  23. Total Email Ad Clicks - By Month

  24. Total Email Ad Clicks - By Year

  25. Top Referring Websites by Commissions - By Month

  26. Top Referring Websites by Commissions - By Year

  27. Top Referring Websites by Sales - By Month

  28. Top Referring Websites by Sales - By Year

  29. Top Referring Websites by Clicks - By Month

  30. Top Referring Websites by Clicks - By Year

  31. Affiliate Clicks Per Affiliate - By Month

  32. Affiliate Clicks Per Affiliate - By Year

  33. Affiliate Commissions Per Affiliate - By Month

  34. Affiliate Commissions Per Affiliate - By Year

  35. Commissions Per Product - By Month

  36. Commissions Per Product - By Year

Viewing Marketing Tool Statistics

JAM collects statistics for 6 of your online marketing tools.  These include:

  1. Banner Ads
  2. Text Links
  3. Text Ads
  4. Hover Ads
  5. Email Ads
  6. Articles

The statistics for these tools can be viewed by going to Reports and selecting the drop down menu under Marketing Reports for that particular marketing tool

Additionally, JAM collects the number of impressions and clicks for the following tools:

  1. Banner Ads
  2. Text Ads
  3. Hover Ads
  4. Articles

These stats are viewable by clicking on Marketing > Edit under the tool selected.  JAM also calculates the click-through rate (CTR), total sales and total commissions generated for each of those tools.

 

Viewing Program Statistics

You can view how well each program is doing by clicking on the Stats link for each program.  Here, a graphical representation will show you how well each product is generating commissions for you.


Systems Management

Managing and Monitoring Your JAM system

Exporting Data

The Data Export function allows you export data directly from your JAM database. You can export Affiliates, Commissions and Events.

Export Formats can be: Tab Separated, Comma Separated, or Excel-Format.

Data Export can be run by clicking Settings>Data Export.

To generate the export, click on Export Data once you've chosen your export options.

How to Move JAM from one server to another

To move JAM from one server to another, follow these instructions:

  1. Backup all the files in your /affiliates folder to your new server.
  2. Do a complete database dump of your JAM database. this can be done by command line or PHPMyAdmin
  3. Copy the /affiliates folder over to your new server
  4. Import the database dump onto your new server's MySQL database
  5. Make sure the database details and folder paths are correct and match to your new server in /includes/config.php

JAM Automatic Database Backup

JAM supports the daily, weekly, or monthly automatic database backup of JAM.

*Your web server must support the "exec" command in PHP. If you do not know if your site supports this, please ask your webhost or systems administrator.

To set this up, follow these steps:

  1. create a backup folder on your web hosting account.  We suggest creating this outside your web directory, so that it is not accessible by outsiders. For example, if your web directory is /home/username/public_html, then create the backup folder in /home/username/backup.

    *If you cannot create this folder, you can use the backup folder in your JAM installation directory, although this may be insecure.
  2. Change the permissions to this backup folder to 777 or world-writeable, so that JAM can write data to it.
  3. Open up your includes/config.php for editing.  Scroll down to this area and edit the following to suite your backup preferences:

    //SET TO "true" IF YOU WANT TO ENABLE AUTOMATIC BACKUPS
    define("DB_AUTOMATIC_BACKUPS", false);

    //IF YOU WANT TO ENABLE AUTOMATIC BACKUPS, TYPE IN THE PHYSICAL FOLDER LOCATION HERE
    define("DB_BACKUP_LOCATION", "/home/username/backup");

    //ENTER THE BACKUP SCHEDULE YOU WANT. POSSIBLE VALUES ARE: daily, weekly, monthly
    define("DB_BACKUP_SCHEDULE", "weekly");

    //DAY OF THE WEEK TO DO WEEKLY BACKUPS ON. 
    // POSSIBLE VALUES ARE Sun, Mon, Tue, Wed, Thu, Fri, Sat, Sun. ONLY VALID FOR WEEKLY-BASED BACKUPS
    define("DB_BACKUP_DAY_WEEKLY", "Sun");

    //ENTER THE DAY OF THE MONTH YOU WANT TO DO MONTHLY BACKUPS ON. ONLY VALID FOR MONTHLY-BASED BACKUPS
    define("DB_BACKUP_DAY_MONTHLY", "1");
  4. Save this file and reupload to your JAM /includes folder
  5. Setup the following CRON job. 

    /usr/bin/wget -O - http://www.yourdomain.com/your_affiliate_directory/includes/backupdb.php?pw=cron_password

    Make sure to change yourdomain.com/your_affiliate_directory  to point to your JAM installation directory and the cron_password  to reflect the cron password in your includes/config.php file on this line:

    define("JAM_CRON_JOB_PASSWORD", "cron_password");  

    If your web host does not support the /usr/bin/wget command, try these other ones:

    php -q /home/username/public_html/affiliates/includes/backupdb.php pw=cron_password

    /usr/bin/lynx-protected -accept_all_cookies http://www.yourdomain.com/your_affiliate_directory/includes/backupdb.php?pw=cron_password

  6. Make sure that it matches the preferences you set in your /includes/config.php.  For example, if you selected a weekly backup, and you want to run it on Sunday, then schedule the CRON job to run once a week, on Sundays.
  7. After the backup runs, check the backup folder to make sure that the databse backup file has been generated.

Viewing System Generated Events and Event Logging

The Events Viewer function of JAM allows you to record all the events that occur within your Affiliate Program. Once enabled, you can log five types of events:

  1. Admin Events - Events generated by Administrative actions.

  2. Affiliate Events - Events generated by your affiliates.

  3. Commission Events - Events generated that are related to Commissions.

  4. Security Events - Events related to security issues such as failed logins.

  5. System Events - Events generated by the system, such as management tasks, cron tasks, etc.

Events are also logged by priority.  You can view event priorities as Normal, Warning, High.

  1. Normal - Information only events

  2. Warning - Possible issue that may need to be looked at.

  3. High - Errors have been generated.  Please analyze.

Enabling Events Logging

To enable / disable the events viewer, click Settings > Security Settings, select Enable / Disable on the Enable Events Logging option.

Enable / Disable Certain Events

You can also enable / disable certain event types.  To do so, uncheck which event type you do not want to log in the Security Settings section.

Prune Events After - Select how long events are kept in the database before they are pruned / deleted.

 


Installation

JAM Installation

JAM Installation Requirements

JROX.COM Affiliate Manager currently requires the following system components:

  1. PHP version 4.3 or greater

  2. PHP safe_mode set to Off

  3. register_globals set to Off
  4. MySQL Database version 4 and up

  5. Curl + SSL option compiled into PHP.

  6. Access to sendmail or an SMTP server for emailing functions

  7. Ability to setup CRON jobs or scheduled tasks

  8. Ability to load Ioncube Loaders

  9. For the JAM Admin Area, you are recommended to use Internet Explorer 6 and higher or Firefox 1 and higher as your Internet browsers.

Notes:

For Curl, you must have it enabled with SSL.  To find out if you have Curl enabled with SSL, create a test.php file and in it, type:

<?php phpinfo(); ?>

This will show your current php configuration.  Scroll down to an area that says:

CURL Support

enabled

CURL Information

libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6

 

If your phpinfo says that your CURL Support has something along the lines of OpenSSL/0.9.7a, then you should have SSL enabled for CURL.

*JAM has not been thoroughly tested using PHP on Windows/IIS. Theoretically, it should run, but this configuration is currently not supported.

New Installation

Installation of JAM can be completed in a few easy steps.  This guide will show you how to install the software successfully on your server.

* JAM is not supported when run on the Windows Operating System

Database Creation - MySQL Database

*JROX.COM Affiliate Manager requires access to a MySQL Database Server

Before beginning the Installation, you must first login to your web hosting account or server and create a new MySQL database for this application. You may also use the PHPMyAdmin tool to create a new database via a simple web interface. Otherwise, please consult your server documentation on how to create one.

You can also create the MySQL Database using  the command line.  If you have access to the command line, type in the following commands:

  1. mysql - u username -p
    Change
    username to the username you use to access the database. You will now be asked for your database password.  Type it in.

  2. CREATE DATABASE jrox_affiliates;
    Change
    jrox_affiliates to the database name of your choice.

You now have your database created.  You may proceed with the installation.

Make sure to have your database access details on hand before beginning the installation.

JAM Installer (Windows-based PCs Only)

  1. Download the JAM Ioncube version
  2. Run the jaminstaller.exe file located in the installer folder
  3. Follow the onscreen instructions to begin the installation.
  4. Enter your FTP details:

    FTP Address: ftp.yourdomain.com
    FTP Username: ftp_username
    FTP Password: ftp_password
    Installation Directory:  the directory you want to run JAM from.  Normally set to "affiliates".
    Install Folder: the folder you want to install JAM in.  Normally, "/home/public_html" or "/home/www"
    Install Location URL:  http://www.yourdomain.com

  5. Click Next and Install and it will start uploading your files to your server.

  6. Once you've finished uploading the files, click Finish. This will automatically open a browser window to the web-based portion of the setup. Just follow all the onscreen instructions to continue.

  7. Once you are done, you will need to delete the install.php file before logging in.

Manual FTP Upload

  1. Open up the ftp_upload  folder
  2. You can either unzip the affiliates.zip file onto your machine, or upload it as is and unzip it on your web server
  3. Using an FTP software, upload either the /affiliates folder or affiliates.zip onto your web site. (UPLOAD ALL FILES IN BINARY FORMAT)
  4. Once all files are uploaded, if you uploaded the zip file, then you need to extract this onto your site.  If you use cPanel, you can use the File Manager option in the control panel to extract this to your web directory.  By doing this, it will create an /affiliates folder with all the JAM files in it.
  5. Browse to the /affiliates/includes/config.php file and change the permissions for it to world-writeable or "777"
  6. Browse to the /affiliates/banners folder and change the permissions for it to world-writeable or "777"
  7. Run the web-based installer by going to http://www.YOURDOMAIN.COM/affiliates/install.php and follow the on-screen instructions.
  8. Once the install has finished, you will need to delete the install.php file before logging in.

Post-Installation Checklist

Once you have finished the installation, make sure to go through each of these steps to configure JAM properly.

Your Default Program URLs

Default Admin Login URL:
http://www.DOMAIN.COM/AFFILIATES/admin/

Default Affiliate Members Login URL:
http://www.DOMAIN.COM/AFFILIATES/

Default Affiliate Members Signup Page URL:
http://www.DOMAIN.COM/AFFILIATES/?req=newaccount&pid=1

* Just change the DOMAIN.COM/AFFILIATES to point to your JAM installation

Configure all of your System Settings

  1. Edit System Settings
  2. Edit Affiliate Settings
  3. Edit Payment Settings
  4. Edit Signup Settings
  5. Edit Marketing Settings

Edit Program Settings

  1. Edit Your Programs

Edit System Email Templates

  1. Edit System Email Templates
  2. Edit Welcome Email Templates

Add New Marketing Tools

  1. Add Marketing Tools like banner ads, text ads, and more

Edit Members Area Theme, Header and Footer

  1. Customize your Members Area Header and Footer (optional)
  2. Customize your Members Area Theme (optional)

Edit Your TOS and Program Description

  1. Edit Your Terms of Service / User Agreement Page
  2. Edit Your Affiliate Program Description Page

Configure Scheduled CRON Tasks

  1. Schedule the required daily cron job
  2. Schedule the Automatic Database Backup cron job (optional)
  3. Schedule Affiliate Reports cron job  (optional)

Integrate JAM into your Website  / Application

  1. Integrate Your Website into your Shopping Cart or Payment Processor

Run Initial Tests

  1. Create Test Affiliate Accounts
  2. Create Test Commissions
  3. Test Affiliate Links
  4. Test Reports
  5. Test Commission Generation - Run some test transactions to make sure that affiliate commissions are being generated

Troubleshooting Installation Issues

If you are having issues installing or running JAM, please check the following:

  1. Upload all files in BINARY format - Make sure to upload all files in BINARY format.
  2. Turn on Error Logging - This will display any possible error messages you are having in your browser.

    Open up the /includes/config.php file and set this option to "true":

    //MYSQL ERROR AND DEBUGGING INFORMATION
    //ONLY SET TO "true" IF YOU ARE HAVING ERRORS IN YOUR INSTALLATION
    define("DEBUG_ADVANCED_ERROR", false);

  3. Ioncube  Error - JAM requires either Ioncube for it to run. Ask your web host for assistance in installing the Ioncube Loaders.
  4. Internal Server Error on install.php launch - If you receive a "500 Internal Server Error", you can check and make sure that the .htaccess file in your /affiliates directory is renamed to htaccess.txt.

Upgrade From JAM 1.5 To JAM 1.6

Upgrading Instructions for JAM 1.5.x - BACKUP YOUR DATA!!!

*Before anything, you must first backup both your JAM installation directory and your JAM database. We are not responsible for any issues or errors that may arise from you upgrading, so make sure you backup your data first.

Upgrade Steps

  1. Backup your JAM folder. You can either download all the files to your PC for backup, or generate a backup using your hosting control panel
  2. Backup your JAM database. You can do this via the phpmyadmin tool or your hosting control panel's database management tool.
  3. Take note of any customizations you have made. If you have customized headers and footers, make sure those are backed up as you will need to rename them later. For any changes in the JAM code, those will be overwritten with this update, so make sure you have those changes written down somewhere so you may reapply them (if necessary) later.
  4. If you are using any special features, like the Automatic Signup Module, make sure you have those backed up as it will get overwritten.  Once the update is done, you can edit those files with the proper information once again.
  5. Open up your /includes/config.php file for viewing. You will need to get some values off of this file during the upgrade.
  6. Run the JAM Windows Installer or upload the files to your JAM directory and overwrite all files. (UPLOAD ALL FILES IN BINARY FORMAT)
    Once all files have been uploaded, run the install.php file and select the Upgrade from 1.5.x Option.
  7. Follow all on-screen instructions.
  8. Once the upgrade has finished, login to JAM and make sure all your settings are correct.  There are a few things you will need to look at:

    - Default Member Site Theme in Programs > Edit Program
    - Your customized headers and footers must be copied from includes/html/themes/templates/custom to includes/html/templates/custom
    -
    Any plugins you may be using such as the Automatic Signup Module and Automatic Refund Module. 
    - Some of the plugins are now directly available in the admin interface, such as autoresponder integration, so you may need to look at those.

 

 

Upgrading From JAM 1.2.x To JAM 1.6

Upgrading from JAM 1.2

  1. BACKUP EVERYTHING, both database and your JAM files.
  2. Copy and overwrite all files in your /affiliates folder with the files for version 1.6.
  3. Once the 1.6 files are uploaded, run the install.php and select the Upgrade From 1.2.x Option. Follow the onscreen instructions.
  4. Enter your license key in Settings > License Information.

Again, make sure to FIRST BACKUP ALL DATA, including database and files in case you run into any issues.

If you are using custom commissions for any of your affiliates, you will need to reinput these as those values are not carried over during the upgrade.

Upgrading from JAM 1.6.x to the most recent 1.6 release

Upgrading from JAM 1.6.x to the most recent 1.6 release
  1. BACKUP EVERYTHING, both database and your JAM files.
  2. chmod your /includes/config.php file to 777
  3. Unzip the jamaffiliates.zip file
  4. upload and overwrite all files  EXCEPT FOR YOUR /includes/config.php in your /affiliates folder with the new files from 1.6.2
  5. Once the 1.6 files are uploaded, run the install.php and select the Upgrade From 1.6.x Option. Follow the onscreen instructions.
  6. Enter your license key in Settings > License Information.

Again, make sure to FIRST BACKUP ALL DATA, including database and files in case you run into any issues.


Quick Config / How Tos

Adding Banners

You can add an unlimited number of Banners that your members can publish on their site to promote your products and services.

* Only .gif, .jpeg, or .swf (flash) banners are allowed to be used in JAM.

To add a new Banner, follow these steps:

  1. Click on Marketing > Banner Ads > Add
  2. The Add New Banner form appears.
  3. Banner Status - Set this Banner to Active/Inactive
  4. Select Program - Select which program this Banner will be associated to.
  5. Banner Name - A short name for your Banner
  6. Redirect to Custom URL - If you want users to go to a different URL other than the default Program URL, set this to Yes
  7. URL To Redirect To - If you enable the Redirect to Custom URL option, enter the URL address here
  8. Banner Dimensions - The width and height of your banner
  9. Upload Banner - Click the Browse button to search for your banner to upload in your computer.
  10. Store in Database - If you want to store the banner in the database, set this to Yes.

    * Storing the banner in your database may use up unnecessary resources on your database, as each and every time someone calls your banner picture, it will need to be retrieved from the database.  If you don't have a dedicated server, set this option to No.
  11. Banner Notes - Any side notes you may want for this Banner

Adding New Commissions Manually

To add a new commission, click on the Commissions drop-down menu and select Add Commission.

Add Commission Details:

  1. Date - Date the commission is generated. To enter a date, click on the calendar icon to select a date.
  2. Program- Select the product that is associated with this commission.
  3. Use Program  Values - Use the commission values that you have set for that program.
  4. Status - Set the commission as unpaid, paid, or pending.
  5. Username - Select the affiliate to associate this commission with.
  6. Transaction ID - Enter the transaction ID for this commission.
  7. Recur Commission - Select whether to recur this commission again in the future.
  8. Commission Amount - Enter the commission amount.
  9. Commission Level - If there are multiple levels for this product, enter the level you want.
  10. Total Sale Amount - Enter the total sale amount.
  11. Website Referrer - If you want to enter a website URL that referred this commission, enter it here
  12. Ad Tracker - If an affiliate used an ad tracker, and you want to put it here, you can.
  13. Credit Upline - If the program you selected has more than 1 level, you can check this box to credit any upline members this affiliate has.
  14. Custom Extra Fields - You have up to 5 fields to add miscellaneous data to.
  15. Commission Notes - Enter any miscellaneous notes you may want with this commission.

Adding New Programs

To add new programs to JAM, click on Programs > Add New Program and fill in the details.

Add New Program:

Program Status - Set this program as active / inactive. By setting this to inactive, your affiliates will not see any of the tools when they login to this affiliate program

Program Name - Name of your program

Program Description - Short description of your program

Optional Program Image - Upload an optional image to represent your program. The image must be less than 500 KB and between 110 x 110 in size.

URL to Redirect To - Enter the full URL of the website you want this program to redirect to.

Program Type - Select whether this program is Pay-Per-Click or  Pay-Per-Sale

Default Member Site Theme - Select what theme to use for this Program

PPC Interval Type - If you select Pay-Per-Click, you can set whether to only allow payments on unique referrals (using IP Addresses), or allow clicks to be paid after a certain amount of time has elapsed, for instance, after 1 month.

*Make sure this URL points to a domain where your Affiliate Program is installed.  If not, you will have to enable the Append Cookie to URL option and set the cookies separately.

Total Impressions for CPM - Use only if you've set the program to use a CPM Program Type.  Enter how many impressions an affiliate must get first before being issued a commission.

Commission Type - Set this program as having flat or percentage-based commissions.

Set New Commissions To - Set new commissions to either Pending or Unpaid. Setting it to Pending will give you time to check the commission if you want, because it will stay hidden from your affiliates until you approve it.

Auto-Approve Commissions After - You can auto-approve commissions after a certain time.  This is a great feature for you so that you don't have to always check which pending commissions are needed to be approved.

URL to Redirect to After Signup  - You can se this field to be any valid web page that you want to redirect users to after they have signed up for your program. This is where they will go after filling out and submitting your signup form for this program.  Each program can have different URLs to Redirect to After Signup.

URL to Redirect to After Login  - You can set this field to be any valid web page that you want to redirect users to after they have logged into JAM. This option is particularly useful if you want to use JAM's Authentication Module and redirect users to a custom web page.  Each program can have different URLs to Redirect to After Login.  

* The default would be to go to the members area, which is set to http://www.yourdomain.com/affiliates/members/ Change yourdomain.com to point to your domain name and affiliates to point to your affiliates directory.

URL to Redirect to After Sale - If you are using URL Redirect as your primary system integration, enter a valid URL here to send your customers to after completing the sale

Enable Create Account Link - This option shows/hides the Create Account link in the member's login form.  If you charge your members a fee first before signing up, then you should disable this option

Automatically Assign To Group - This option only appears if you have setup groups and would like any new member who signs up for this program to be automatically added to the selected group

Enable Member Main Menu - You can disable the default main menu when affiliates login to the members area.  This is useful if you want to use the Content Publisher to create a custom members home page for this program.

Force Member Login - When this option is enabled, an affiliate will be restricted to only being able to login to this program which he is assigned to.  He will not be able to login to any other programs you offer.

Select Signup Form Type - Select whether to use the default signup form, which separates the personal information from the user account information, or the Single inline form, where all fields are listed in one table. You can also select the aweber form, which integrates directly with aweber.

Commission Levels - Select the number of levels you want to have for this program.  The maximum is 10.

Commission Frequency - Select the amount of time commissions for this product should recur.

Commissions Per Level - Enter the commission amounts for each level set.  Commission levels for your program are set in System Settings.

*For percent-based commissions, make sure to enter the decimal equivalent  for it.  For instance, a 50% commission should be input as .50, its decimal equivalent.

Program Notes - Enter any miscellaneous notes you may have for this program.

How to Add Flash Banners To Work with JAM Affiliate Links

You can also upload Flash banners. However, Flash banners cannot be stored in the
database.

To use Flash banners, you must make sure that when you create your Flash banner,
the hyperlink action in flash points to an external URL like this:

on (release) {
affiliate_link = JROX_URL;
getURL(affiliate_link, "_blank");
}

You can now add flash-banners to your program.

How to Add New Affiliates

You can add affiliates into JAM using two methods.  First, you can use the signup form or add them manually in the admin area by clicking on Affiliates > Add New Affiliate

The only required fields when adding affiliates are First Name, Last Name, Email Address, and whatever fields you set in Settings > Signup Settings

How to Add Your Affiliate's Picture on a Replicated Web Page

JAM allows you to have up to 5 custom fields that can be used for anything you want on your web page.  In this example, you can set one of the custom fields to a URL of an image for your affiliate.

For instance, you can set the first custom field value to your affiliate's image: 

http://www.domain.com/affiliateimage.gif

In your replicated.html template, you can then set it like this:

<img src="%%%CUSTOM_FIELD_1%%%" />

When the replicated website gets created, it will show the following link, and the image for your affiliate:

<img src="http://www.domain.com/affiliateimage.gif" />

How To Allow Affiliates to Redirect to Any Custom Page on your Website

JAM has the option to let your affiliate members point their affiliate links to any page on your site.

To do this, follow these steps:

  1. Go to Settings > Affiliate Settings
  2. Set the Allow Affiliates to Redirect to Custom URL setting to Yes
  3. Set the Select Affiliate Links To Use to Regular
  4. Save your Settings
  5. You now have given your affiliates the option to append any URL to their affiliate link by setting the jxURL variable at the end of their link, like this:

    http://www.domain.com/affiliates/jrox.php?id=1000&jxURL=http://www.yourdomain.com/anypage.html

*If you will allow them to redirect to web pages that have variables in the URL, then you need to replace every & symbol with its encoded counterpart %26. For example, if your URL is like this:

http://www.domain.com/store/index.php?id=1&category=4&product=5

You will need to tell your affiliates to link to it like this:

http://www.domain.com/affiliates/jrox.php?id=1000&jxURL=http://www.domain.com/store/index.php?id=1%26category=4%26product=5

How to Change the Affiliate Folder Name Where JAM is Installed

If you want to change the folder where you installed JAM, follow these steps:

you can change the folder name in /includes/config.php, under

define("HOME_BASE_DIRECTORY", "/home/username/public_html/affiliates");

//ENTER THE NAME OF YOUR AFFILIATE PROGRAM DIRECTORY
//DO NOT INCLUDE A TRAILING SLASH
define("HOME_BASE_AFFILIATE_DIRECTORY", "/affiliates");

you can then edit the URL to Redirect to, URL to Redirec to after signup, and URL to redirect to After Login in Programs > Edit Program

How to Change the Default Currency for Paypal Payments

If you want to change the default currency used when paying affiliates for Paypal, you can change it by opening up the /includes/config.php file, and editing this line:

define("PAYPAL_CURRENCY_CODE", "USD");

How to Change the Domain Name for JAM

If you are moving JAM to a different domain, and need to change the domain name associated with it, follow these steps:

  1. Make sure you have moved the files and database over to your new domain.
  2. you need to change this in /includes/config.php

    define("JAM_DOMAIN_NAME", "yourdomain.com");
    define("JAM_SUBDOMAIN_NAME", "www");
    define("COOKIE_DOMAIN", "yourdomain.com");
  3. Save it and then reupload it back to your new domain.
  4. Change the following fields in Program > Edit Program to reflect the new domain name:

    URL to Redirect To
    URL to Redirect To After Signup
    URL to Redirect to After Login

  5. Go to Settings > System Settings and change the Default URL
  6. If you have the licensed version of JAM, you need to re-enter a new license key in Settings > License Information

How to change the jrox.php file to your own custom file name

* This option is only available on JAM 1.6.2 and higher

JAM allows you to rename the jrox.php file to your own custom file.  To do this follow these directions:

  1. Open up your /includes/config.php file for editing
  2. Scroll to the following line, and change it to your own custom name.  Do not include the .php file name:

    define("JAM_AFFILIATE_LINK_FILE", "jrox");
  3. Rename your jrox.php file to your new file name.
  4. JAM will now use your own custom file name for all affiliate links.

How to Charge Membership Fees

JAM allows you to charge membership fees for your programs. 

To enable this feature, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on one of the listed Membership Payment Modules you want to use for payment.
  4. A dialogue box will come up. Enter all required fields.
  5. Do this for all the payment options you want to enable
  6. Go to Programs > Edit.  Select the program you want to charge fees for.
  7. Scroll down to the bottom.
  8. Under Membership Payment Settings, fill in the required fields
  9. Select Optional or Required under the Require Payment drop down menu.
  10. Click Save Program Details

The next time you have an affiliate signup, they will either have the option to pay for your membership program or will be required to pay for it.

How To Create a Custom Automatic Signup Module

JAM allows you to create your own custom Automatic Signup Module for integration into your web applications.

To do this, follow these steps:

  1. Create a folder structure like this, where CUSTOM is the name of your custom ASM:

    /plugins/signup_automation/external/CUSTOM
    /plugins/signup_automation/external/CUSTOM/config.autosignup.inc.php
  2. Inside the config.autosignup.inc.php file, you can map the JAM variables with your web applications data values. Here is an example of  the variables that you can map:

    $JAM_First_Name = $_POST['first_name'];
    $JAM_Last_Name = $_POST['last_name'];
    $JAM_Primary_Email = $_POST['payer_email'];
    $JAM_Username = '';
    $JAM_Company = '';
    $JAM_Address_1 = $_POST['address_street'];
    $JAM_City = $_POST['address_city'];
    $JAM_State = $_POST['address_state'];
    $JAM_Country = $_POST['address_country_code'];
    $JAM_Zip = $_POST['address_zip'];
    $JAM_Phone = '';
    $JAM_Website = '';
    $JAM_ISO_Country = 1;
  3. The only required fields are the following:

    $JAM_First_Name = $_POST['first_name'];
    $JAM_Last_Name = $_POST['last_name'];
    $JAM_Primary_Email = $_POST['payer_email'];


    Everything else can be blank.
  4. Once you are done, just point to it the same way as the other ASM modules and integrate it to your post-signup page:

    //BLOCK FOR JAM-ASM MODULE INTEGRATION
    $JAM_Aff_Directory = '/home/username/public_html/affiliates_directory';
    $JAM_ASM_Type = 'CUSTOM';
    require $JAM_Aff_Directory . '/plugins/signup_automation/external/plugin.autosignup.php';
    //END JAM-ASM MODULE INTEGRATION

How To Create Your Own Custom Payment Processor Module

JAM allows you to create your own custom payment processors, provided you have advanced knowledge of PHP and web application programming.

*This is for advanced users only, if you do not know how to create and edit PHP scripts, we strongly advise you against creating your own payment processor and consult a web developer.

  1. Create a folder in /plugins/processors and name it your payment processor.  For example:

    /plugins/processors/Processor_Name
  2. Copy all .php files from the /plugins/processors/Egold.  We will use this as the template for the payment processor.  These files include:

    processor.template.config.php
    processor.template.form.php
    processor.template.values.php
    index.php
  3. Open up the processor.template.config.php file. This file is used in the JAM admin area under Settings > Payment Settings for inserting and updating  fields in the jx_processor_config database table that will be used by your payment processor.
  4. Edit the $payment_type variable and set it as the name of your processor.  Make sure it is the same name as the processor folder.
  5. There are 3 required fields: Status, Description, and Default.  Keep these form fields intact when editing the form.
  6. You can have up to 20 fields for use in your payment processor.  These will be available for you to use when you run the payment processor.  For example, in the EGold processor, we use the config_1 field for the EGold Merchant ID.  You can create 20 fields, naming them config_1, config_2, config_3 and so on.
  7. Once you've finished creating the form, save it and upload it in your custom processor folder.
  8.   Open up the processor.template.form.php file.  This file will have the main payment form that sends data to your payment processor/gateway.
  9. You can edit the form here to have the form for your payment processor.  The variables available are:

    $module - This is an array from the jx_processor_config table that has any data that you need from saving it via the processor.template.config.php file in the admin area. Values are:

    $module['id']
    $module['status']
    $module['name']
    $module['description']
    $module['default_payment']
    $module['config_1'] - $module['config_20']


    Other required variables:

    $product_name - Name of your Program
    $membership_full_amount - the amount you are charging for this payment
    $vcode - verification code used to activate the affiliate membership after payment.  This variable must be transmited back to either the return URL or the notify URL in order to activate the affiliate membership automatically.

    Optional variables:

    $membership_length - the length of the membership as specified in Programs > Edit Program.  This can be any of the following:

    0 - No expiration
    1 - Monthly
    3 - Quarterly
    6 - Semi-Annually
    12 - Annually

    Return URL
    - This URL is for returning your members back to JAM for confirmation.  This is the following PHP value:

    MEMBERS_HOME_BASE_URL.HOME_BASE_AFFILIATE_DIRECTORY.'/process/'.$jam_return;

    Notify URL - If your payment processor supports a separate notification URL, you can use this as well.  This is the following PHP value:

    MEMBERS_HOME_BASE_URL.HOME_BASE_AFFILIATE_DIRECTORY.'/ccprocess.php?type='.$processor_option;

    *If your payment processor does not use a separate notification URL, you can set the Notify URL given above as the Return URL

  10. Once you are done configuring the processor.template.form.php file, save it to your processor folder.
  11. Open up the processor.template.values.php file. This is used for mapping the variables that your payment processor posts back to JAM after payment is made.
  12. Make sure you map the variables posted by your payment processor to the variables required b JAM.  For example, if your payment processor posts the sale amount as $_POST['payment_amount'], you need to map this to the required JAM variable for amount:

    $amount = $_POST['payment_amount'];

    The required variables here are:

    $process_affiliate_payment - Set this to true if your payment processor successfully processed the payment
    $process_affiliate - Set this to true if you want to generate commissions from this affiliate payment
    $amount - the amount paid
    $trans_id - the transaction ID used for this payment
    $vcode - the variable you used to post the verification code variable from processor.template.form.php
  13. Once you're done, save the file as processor.template.values.php into your processor folder.
  14. Run tests to make sure that the affiliate member can pay via your payment processor and that his/her account is automatically created after payment.

How to Customize the Pay Affiliates Invoice Option

If you want to print out the affiliate payment invoices generated by JAM and want to customize, you can do so using the following steps:

  1. Open up /admin/includes/html/templates/forms/form_admin_pay_affiliates_invoice.php
  2. Edit this as you see fit.
  3. Save and reupload.

 

How to Hide the Copyright Information in the Members Area for Licensed Versions

You can hide this by editing the style.css file for your selected theme. The stylesheet is located here:

/affiliates/includes/html/themes/default/style.css

Change default to point to your selected theme.

find the line that says copyright_1.  On this line, add the last line:

text-align: center;
 margin:auto;
 font-family: Arial, Helvetica, sans-serif;
 font-size: 10px;
 color: #666666;
 text-decoration: none;
 bottom: auto;
visibility:hidden;

Save the style.css and upload it back


This will only work if you have a license with JAM

If you want to add your own copyright information, you will need to edit the footer template itself.  For information on this, click here

How To Import Affiliate Members Into JAM

JAM allows you to import your affiliate members directly into the database via a tab-separated or comma-separated file.

To import your members, follow these steps:

  1. Export or Save your affiliate member data to a tab-separated (.txt) or comma-separated (.csv) file. The proper format is as follows:

    first_name, last_name, email_address, username, password, company_name, address_1, address_2, city, state, country, zip, phone, fax, tax_id, website, paypal_email, stormpay_email, safepay_id, moneybookers_id, alertpay_id, egold_id, bank_transfer, custom_field_value_1, custom_field_value_2, custom_field_value_3, custom_field_value_4, custom_field_value_5 
     
  2. The only required columns for import are first name, last name, and email address. All other columns are optional. Only .txt or .csv file extensions allowed.

  3. Click on Settings > Import / Export > Click Here to Import Data.

  4. Once you are on the Import Screen, browse for your .txt or .csv file.  The maximum upload size is 2 MB, so make sure your file size is less than that.
  5. An example .CSV file is available for you to download and copy as well.

How to Move JAM from one server to another

To move JAM from one server to another, follow these instructions:

  1. Backup all the files in your /affiliates folder to your new server.
  2. Do a complete database dump of your JAM database. this can be done by command line or PHPMyAdmin
  3. Copy the /affiliates folder over to your new server
  4. Import the database dump onto your new server's MySQL database
  5. Make sure the database details and folder paths are correct and match to your new server in /includes/config.php

How To Password Protect a Web Page with the JAM Authentication Module

You can password-protect a web page using the JAM authentication module by following these steps:

  1. Open up the /plugins/mis/secure_prepend2.php file.
  2. Edit the following line to point to your JAM installation folder:

    $JAM_Directory = '/var/www/html/affiliates';
  3. Make sure your web page is a .php web page.
  4. Open it up for editing.
  5. On the very first line, add this code:

    <?php
    include '/var/www/html/affiliates/plugins/misc/secure_prepend2.php';
    ?>
  6. Make sure that '/var/www/html/affiliates points to your JAM installation folder.
  7. Your web page is now protected and users must login through the JAM interface.

How To Point an Affiliate Link to a Replicated Website

If you use the Replicated Website Option in JAM, you can point your regular affiliate links automatically to your affiliate's replicated web page.

To do this, follow these steps:

  1. First, enable the Replication Feature.  For instructions on this, click here
  2. Go to Programs > Edit Program.
  3. Edit the URL To Redirect To option and type in the following:

    http://www.YOURDOMAIN.COM/AFFILIATES/PAGES/%%%USERNAME%%%.php

    *Make sure to change YOURDOMAIN.COM/AFFILIATES to point to your JAM URL.

    *Make sure to change PAGES to point to the directory that you replicated websites are at.

    *Make sure to change .php to reflect the proper extension you set in your /includes/config.php

  4. Save your Settings.
  5. Go to Settings > System Settings and make sure that the Append Cookie to URL is set to Disable
  6. If you still need to append the cookie to your URL, just change the URL to Redirect To, like this:

    http://www.YOURDOMAIN.COM/AFFILIATES/PAGES/%%%USERNAME%%%.php?jrox=%%%COOKIE_ID%%%
  7. Now, all affiliate links will go to your affiliate's replicated web page.

How to Redirect Customers using the jxURL option when you have a URL that has variables

For URLs that have variables, such as shopping cart products, you will need to edit the URL  so that JAM can redirect it properly.

For example, if your URL is similar to this, or it has the ampersand (&) in it:

http://www.domain.com/store/index.php?main_page=product_info&products_id=76

you will need to change the "&" to "%26", like this:
 
http://www.domain.com/store/index.php?main_page=product_info%26products_id=76

How to Redirect New Affiliates to the Signup Form Using an Affiliate Link

JAM allows you to redirect potentially new affiliates using an affiliate link.  All you have to do is append the signup variable to your affiliate link, like this:

http://www.DOMAIN.COM/AFFILIATES/jrox.php?id=1000&signup=1

This will automatically send anyone who clicks this link to the signup form page instead of the  URL To Redirect To Page.

If you want new affiliates to signup for a different program, just set the signup variable to the program ID you want them to signup to.  For example, if you want them to signup for program ID #3, then set that as the signup value:

http://www.DOMAIN.COM/AFFILIATES/jrox.php?id=1000&signup=3

How To Send Customers Directly to the Affiliate Description Page Using an Affiliate Link

If you want your affiliates to send their new recruits directly to the affiliate program's description page while still getting credit for it, do the following:

On their affiliate link, just append the following value to their affiliate link

http://www.domain.com/affiliates/jrox.php?id=1000&desc=1

Where the 1 is the program ID you want them to go to.

How to Send Customers Directly to the Affiliate Signup Page Using an Affiliate Link

If you want your affiliates to send their new recruits directly to the affiliate's signup page while still getting credit for it, do the following:

On their affiliate link, just append the following value to their affiliate link

http://www.domain.com/affiliates/jrox.php?id=1000&signup=1

Where the 1 is the program ID you want them to signup to.

How To Set a Random Affiliate Cookie when None is available

If you want to set a random affiliate cookie on your web page when no affiliate cookie is set, you can use the following JavaScript and insert it on your selected web page:

<script language="JavaScript" type="text/javascript" src=http://www.yourdomain.com/your_affiliate_directory/randomaff.php></script>

This will set a randomly selected affiliate on your web page when no affiliate cookie has been set.

How to Set An Affiliate Cookie on a Separate Web Page Using JavaScript without Redirecting from an Affiliate Link

If you want to set the affiliate cookie on a separate web page automatically without having to redirect the user with an affiliate link, you can set the affiliate cookie on that page using JavaScript.

This is useful for things such as the replicated web page, so that the affiliate cookie gets set automatically when a visitor visits the web site.  This means that the visitor does not necessarily have to click on an affiliate link for them to be tracked.

To set this up, follow these steps:

  1. Open up the separate HTML page that you want to set the cookie on.  This page has to be on the same domain name as your JAM installation.
  2. Copy the following JavaScript into your web page:

    <script language="JavaScript" type="text/javascript" src=http://www.domain.com/affiliates/setcookie.php?mid=1000></script>
  3. Edit the 1000 to be the correct affiliate ID.  If you are using the replicated site, set this to be %%%MEMBER_ID%%%, so that the affiliate ID automatically gets filled in.
  4. If you want to track it for certain programs, append the pid variable to the end of fthe URL, like so:

    www.domain.com/affiliates/setcookie.php?mid=1000&pid=2
  5. Make sure to change the www.domain.com/affiliates to point to your JAM installation URL.

How To Set the JAM Affiliate Cookie in a Remote Domain

If you host several websites on different domains and want to use JAM for affiliate management of those domains, you can still do it.

JAM allows you to transmit the affiliate cookie to a different domain altogether to keep track of affiliate cookies. It can then be set on the different domain, and read when payment is made.

To set the cookie in a separate domain, you need to go to Settings > System Settings > Append Cookie to URL and set that to Enable.

The cookie value will now always be appended to the redirect URL of your product, even if it is in a separate domain.

For this to work, you will need to either append a small PHP or JavaScript code on the web page of your redirect URL.

For php, you could use something like this, input on the very first line of your web page:

PHP Pages:
=============================


<?php
if (!empty($_GET['jrox']))
{
     $cookie_expires = 1 * 60 * 60 * 24 * 365;
     $cookie_domain = '.your_domain.com'; //DON'T FORGET THE . (dot) before the domain
     setcookie("jrox", $_GET['jrox'], time()+$cookie_expires,"/", $cookie_domain);
}
?>


This will set the same cookie that your affiliate uses on the different domain, so they can get credited the commission later.

Change your_domain.com to the current domain name it is redirected to.

You can change the cookie expiration time by changing the 1 to whatever number you want, then the 365 can be changed to represent the following:

1 = day
7 = week
30 = month
365 = year



JavaScript Code:
=============================


If you don't use .php pages, try this:

In between <head> </head> tags of your web page, insert the following JavaScript:

<script type="text/javascript">
function Set_Cookie( name, value, expires, path, domain, secure ) {
var today = new Date();
today.setTime( today.getTime() );
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function GetJAMVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var z=0; z<vars.length; z++) {
    var pair1 = vars[z].split("=");
   if (pair1[0] == variable) {
      Set_Cookie( 'jrox', pair1[1], 365, '/', '', '' );
    }
  }
}
</script>


Then right after the <body> tag:

<script>
  GetJAMVariable("jrox");
</script>


You can change 365 to however many days you want to set the affiliate cookie to last.

How To Setup a Pay-Per-Lead Program

Here are instructions on setting up a pay-per-lead campaign:

  1. Go to Programs > Edit Program, and set your Program Type to Pay-Per-Lead.
  2. Scroll to the Commission Per Level area, and enter your flat payout amounts.  Pay-per-lead does not pay on percentages
  3. Go to Settings > System Integration and select the Image Tag method.
  4. Just leave the amount and transaction ID blank.
  5. You now have to copy the image tag integration code onto your form's thank you page.  This is the page where your leads are sent to after registration is completed for that lead.
  6. Now, everytime a lead completes your form/action, a commission is generated for the referring affiliate

How To Upgrade Members from One Program to Another

JAM allows you to automatically allow your members to upgrade from one program to another program that you charge payments for.  For example, if you have one membership program that affiliates can join for free, but also have a second program that you require a membership fee to join.

To enable this option, follow these steps:

  1. If you don't have one yet, create a second program in your JAM admin area. Click on Programs > Add Program.
  2. Make sure you enable the membership payment option for this program.
  3. Add a link either through a main menu content page or a custom content page that your members can click on to upgrade, like this:

    %%%LOGIN_URL%%%prupgrade.php?req=payment&type=upgrade&mode=2&pid=2&mid=%%%MEMBER_ID%%%
  4. Make sure to change the 2 to the program ID you want your members to upgrade to.
  5. When an affiliate clicks on this link in their members area, they will be presented with the payment options for upgrading to this membership program.
  6. Once payment has been made, JAM will automatically assign them to the new program.

Post-Installation Checklist

Once you have finished the installation, make sure to go through each of these steps to configure JAM properly.

Your Default Program URLs

Default Admin Login URL:
http://www.DOMAIN.COM/AFFILIATES/admin/

Default Affiliate Members Login URL:
http://www.DOMAIN.COM/AFFILIATES/

Default Affiliate Members Signup Page URL:
http://www.DOMAIN.COM/AFFILIATES/?req=newaccount&pid=1

* Just change the DOMAIN.COM/AFFILIATES to point to your JAM installation

Configure all of your System Settings

  1. Edit System Settings
  2. Edit Affiliate Settings
  3. Edit Payment Settings
  4. Edit Signup Settings
  5. Edit Marketing Settings

Edit Program Settings

  1. Edit Your Programs

Edit System Email Templates

  1. Edit System Email Templates
  2. Edit Welcome Email Templates

Add New Marketing Tools

  1. Add Marketing Tools like banner ads, text ads, and more

Edit Members Area Theme, Header and Footer

  1. Customize your Members Area Header and Footer (optional)
  2. Customize your Members Area Theme (optional)

Edit Your TOS and Program Description

  1. Edit Your Terms of Service / User Agreement Page
  2. Edit Your Affiliate Program Description Page

Configure Scheduled CRON Tasks

  1. Schedule the required daily cron job
  2. Schedule the Automatic Database Backup cron job (optional)
  3. Schedule Affiliate Reports cron job  (optional)

Integrate JAM into your Website  / Application

  1. Integrate Your Website into your Shopping Cart or Payment Processor

Run Initial Tests

  1. Create Test Affiliate Accounts
  2. Create Test Commissions
  3. Test Affiliate Links
  4. Test Reports
  5. Test Commission Generation - Run some test transactions to make sure that affiliate commissions are being generated

your default affiliate signup URL

your default affiliate signup URL is usually:

http://www.yourdomain.com/affiliates/index.php?req=newaccount&pid=1

alternatively,  you can click on the 'create account link on your affiliate's login page to get to it.

Troubleshooting

Troubleshooting Installation Issues

If you are having issues installing or running JAM, please check the following:

  1. Upload all files in BINARY format - Make sure to upload all files in BINARY format.
  2. Turn on Error Logging - This will display any possible error messages you are having in your browser.

    Open up the /includes/config.php file and set this option to "true":

    //MYSQL ERROR AND DEBUGGING INFORMATION
    //ONLY SET TO "true" IF YOU ARE HAVING ERRORS IN YOUR INSTALLATION
    define("DEBUG_ADVANCED_ERROR", false);

  3. Ioncube  Error - JAM requires either Ioncube for it to run. Ask your web host for assistance in installing the Ioncube Loaders.
  4. Internal Server Error on install.php launch - If you receive a "500 Internal Server Error", you can check and make sure that the .htaccess file in your /affiliates directory is renamed to htaccess.txt.

Missing Ioncube Loaders

The Ioncube version of JAM comes with ioncube loaders for linux only.  If you are on a different system, such as FreeBSD, CentOS, or Windows, you will need to download the ioncube loaders for these operating systems, and upload them into the ioncube  folder in JAM.

To download new ioncube loaders, visit the ioncube site:

http://www.ioncube.com/loaders.php

 

Mass Emails not being Sent

If your mass emails are not being sent, you need to doublecheck a few things:

  1. Check if your cron job is running .
  2. Check if your cron job password is correct.

To check if the password is correct, try running the cron.php file directly in your web browser:

http://www.domain.com/affiliates/includes/cron.php?pw=CRON_PASSWORD

If this works, then check your cron job to make sure it is running.  Ask your web host to make sure your cron job command works and is correct.

How to Enable Advanced Error Logging in JAM

JAM allows you to turn on advanced error logging to see if there are any errors in your JAM installation.

Turn on Error Logging 

This will display any possible error messages you are having in your browser.

Open up the /includes/config.php file and set this option to "true":

//MYSQL ERROR AND DEBUGGING INFORMATION
//ONLY SET TO "true" IF YOU ARE HAVING ERRORS IN YOUR INSTALLATION
define("DEBUG_ADVANCED_ERROR", false);

Sending errors to your email

JAM can also send you error logs to a specified email address. Open up the /includes/config.php file.

//ONLY SET TO "true" IF YOU WANT THE DEBUGGING INFO EMAILED TO YOU. BE CAREFUL WITH THIS ONE, IT MAY FLOOD YOU WITH EMAILS
define("DEBUG_EMAIL", false);

//EMAIL ADDRESS TO SEND DEBUGGING INFORMATION TO
define("DEBUG_EMAIL_TO", "
you@yourdomain.com");

//EMAIL ADDRESS THAT DEBUGGING INFORMATION IS SENT FROM
define("DEBUG_EMAIL_FROM", "
error@@yourdomain.com");

*Be careful when using the email logging, as this can flood your email address.  Make sure to only use it for a short period of time for debugging.

No Errors Showing

If no errors still show when you enable the error logging option in the config.php file, it is possible that your PHP configuration is set to not display any errors by default.  You can change this by doing the following:

  1. Create a .htaccess file.
  2. In this file, enter the following on the very first line:

    php_ini display_errors on
  3. Upload it to your web folder.

 

Viewing System Generated Events and Event Logging

The Events Viewer function of JAM allows you to record all the events that occur within your Affiliate Program. Once enabled, you can log five types of events:

  1. Admin Events - Events generated by Administrative actions.

  2. Affiliate Events - Events generated by your affiliates.

  3. Commission Events - Events generated that are related to Commissions.

  4. Security Events - Events related to security issues such as failed logins.

  5. System Events - Events generated by the system, such as management tasks, cron tasks, etc.

Events are also logged by priority.  You can view event priorities as Normal, Warning, High.

  1. Normal - Information only events

  2. Warning - Possible issue that may need to be looked at.

  3. High - Errors have been generated.  Please analyze.

Enabling Events Logging

To enable / disable the events viewer, click Settings > Security Settings, select Enable / Disable on the Enable Events Logging option.

Enable / Disable Certain Events

You can also enable / disable certain event types.  To do so, uncheck which event type you do not want to log in the Security Settings section.

Prune Events After - Select how long events are kept in the database before they are pruned / deleted.

 


Configuration

Affiliate Tracking Options

JAM offers 3 different tracking options:  cookies, sessions and IP addresses.

  1. Cookies - this is the default option and is most widely used.  Cookies are small text files that get placed on a user's computer after they click on an affiliate's link.  Inside this text file, JAM places the affiliate ID. They are then used to track a customer so that when they purchase your product, the approprate affiliate is credited the commission.  This option allows you to track affiliates for a set period of time.  For example, 1 month, 1 year, etc.  The disadvantage of this method is that cookies are sometimes erased from a customer's computer.
  2. Sessions - sessions are a server-based tracking mechanism where customer's are tracked only during the current browser session.  Once they close the browser, the customer is no longer tracked.
  3. IP Addresses - this method tracks customers using the IP address that their computer connected from.  This IP address is the network technology used by which computers connect and communicate with other computing devices.  JAM collects this IP address, and when a commission is triggered, it queries the database for the matching IP address and its corresponding affiliate referral.

How to Change Currency and Number Format

You can change the currency symbol in JAM by doing the following:

  1. Going to Settings > Payment Settings > Currency Setting.
  2. Type in the currency symbol there.

To change the number format, do the following:

  1. Open your /includes/config.php file.
  2. Scroll down to the following area and make your changes:

    //CONFIGURE NUMBER FORMATTING
    //DEFINE HOW YOU WILL BE DISPLAYING YOUR COMMISSION VALUES
    define("DECIMAL_SEPARATOR", ".");
    define("THOUSANDS_SEPARATOR", ",");
    define("DECIMAL_PLACES", 2);
  3. Save the file and reupload.

How to Change the Default Country in the Country Drop Down List

On the signup form, there is a preset default country selected.  If you want to change this to a different country, please follow these steps:

  1. Open up the /includes/mod/mod_members.php file
  2. Scroll to the line that says:

    function Country_Menu_Members($country)
  3. This function lists all countries.  Look for the country of your choice.
  4. Copy the exact name of that country, for example: Australia
  5. Open up the /includes/config.php file
  6. Scroll to the following area:

    //SET THE DEFAULT COUNTRY TO CHOOSE FROM  IF YOU WANT TO CHANGE THIS YOU NEED TO LOOK AT THE COUNTRY LIST FUNCTION
    //HERE ARE SOME COMMON VALUES: Canada, United Kingdom, France, Germany, China, Japan
    define("JAM_DEFAULT_COUNTRY", "United States");
  7. Change the define statement line to your selected country, for example:

    define("JAM_DEFAULT_COUNTRY", "Australia");
  8. Save the file.
  9. You now have your preferred country as the default country on the signup form.

How to Configure JAM to Use Persistent MySQL Connections

By default, JAM uses non-persistent connections to connect to the MySQL Database.  If for some reason, you want to use persistent connections, follow these steps:

  1. Open up the /includes/config.php file
  2. Scroll to the following line:

    define("ENABLE_PERSISTENT_MYSQL_CONNECTIONS", false);
  3. Just change this option to true
  4. Save the file
  5. You now have JAM using persistent database connections.

How to Enable SSL Security in JAM

JAM allows you to use SSL for the Members Area, the Admin Area, or the Affiliate Links.

To use SSL security, you must have a valid SSL certificate. If you don't have one, please ask your web host.

To enable SSL, follow these steps:

  1. Open up /includes/config.php
  2. Scroll down to the area and make your changes:

    ##########################
    ## URL AND SSL SETTINGS ##
    ##########################
    //SPECIFY WHETHER TO USE HTTP:// OR HTTPS:// FOR AFFILIATE LINKS
    define("HTTP_TRANSPORT", "http://");
    //SPECIFY WHETHER TO USE SSL FOR ADMIN AREA
    define("USE_SSL_ADMIN_AREA", false); //SET TO "true" TO USE SSL
    //SET TO true TO USE  A SHARED SSL CERTIFICATE FOR THE ADMIN AREA
    define("USE_SHARED_CERT_ADMIN", false);
    //SPECIFY WHETHER TO USE SSL FOR MEMBERS AREA
    define("USE_SSL_MEMBERS_AREA", false); //SET TO "true" TO USE SSL
    //SPECIFY THE URL FOR YOUR SHARED SSL CERTIFICATE
    //DO NOT INCLUDE A TRAILING SLASH
    define("JAM_SHARED_SSL_URL", "srv.domain.com/~affiliates");
  3. The shared SSL option can only be used in the Admin Area.
  4. Save the file and reupload.

 

How to Redirect New Affiliates to the Signup Form Using an Affiliate Link

JAM allows you to redirect potentially new affiliates using an affiliate link.  All you have to do is append the signup variable to your affiliate link, like this:

http://www.DOMAIN.COM/AFFILIATES/jrox.php?id=1000&signup=1

This will automatically send anyone who clicks this link to the signup form page instead of the  URL To Redirect To Page.

If you want new affiliates to signup for a different program, just set the signup variable to the program ID you want them to signup to.  For example, if you want them to signup for program ID #3, then set that as the signup value:

http://www.DOMAIN.COM/AFFILIATES/jrox.php?id=1000&signup=3

How To Set the JAM Affiliate Cookie in a Remote Domain

If you host several websites on different domains and want to use JAM for affiliate management of those domains, you can still do it.

JAM allows you to transmit the affiliate cookie to a different domain altogether to keep track of affiliate cookies. It can then be set on the different domain, and read when payment is made.

To set the cookie in a separate domain, you need to go to Settings > System Settings > Append Cookie to URL and set that to Enable.

The cookie value will now always be appended to the redirect URL of your product, even if it is in a separate domain.

For this to work, you will need to either append a small PHP or JavaScript code on the web page of your redirect URL.

For php, you could use something like this, input on the very first line of your web page:

PHP Pages:
=============================


<?php
if (!empty($_GET['jrox']))
{
     $cookie_expires = 1 * 60 * 60 * 24 * 365;
     $cookie_domain = '.your_domain.com'; //DON'T FORGET THE . (dot) before the domain
     setcookie("jrox", $_GET['jrox'], time()+$cookie_expires,"/", $cookie_domain);
}
?>


This will set the same cookie that your affiliate uses on the different domain, so they can get credited the commission later.

Change your_domain.com to the current domain name it is redirected to.

You can change the cookie expiration time by changing the 1 to whatever number you want, then the 365 can be changed to represent the following:

1 = day
7 = week
30 = month
365 = year



JavaScript Code:
=============================


If you don't use .php pages, try this:

In between <head> </head> tags of your web page, insert the following JavaScript:

<script type="text/javascript">
function Set_Cookie( name, value, expires, path, domain, secure ) {
var today = new Date();
today.setTime( today.getTime() );
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function GetJAMVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var z=0; z<vars.length; z++) {
    var pair1 = vars[z].split("=");
   if (pair1[0] == variable) {
      Set_Cookie( 'jrox', pair1[1], 365, '/', '', '' );
    }
  }
}
</script>


Then right after the <body> tag:

<script>
  GetJAMVariable("jrox");
</script>


You can change 365 to however many days you want to set the affiliate cookie to last.

How to Use the Built-In HTML Editor

The HTML Editor is a feature in JAM that allows you to add /edit/ and create HTML-based templates and ads easily, with very minimal HTML knowledge.

The HTML Editor is available to use if you use the following browsers:

  1. Internet Explorer 5.5 and up

  2. Netscape / Firefox 1.0 and up

The icons in the HTML Editor can do the following:

 Preview

Search

Paste from Microsoft Word

Undo

Redo

Foreground Color

Background Color

Insert Hyperlink

Insert Image

Insert Table

Absolute

Special Characters

Insert Line

Remove Formatting

View /Edit HTML Source

Setting Up a Forced Matrix System

To enable the forced matrix option in JAM, do the following:

  1. Click on Settings > System Settings
  2. Scroll down to the Commission Settings area.
  3. Set the Enable Forced Matrix option to Enable
  4. Select the width of your Forced Matrix. JAM supports between 2 and 5 maximum members for the width of the matrix.

 

What is a Forced Matrix System?

JROX.COM Affiliate Manager allows you to create a custom commission structure with multiple levels and a forced matrix option. You can have up to 10 commission levels and a maximum matrix width of 5 members.

What is Forced Matrix System?

A Forced Matrix is a system where there is a limit to the number of referrals any affiliate member can refer . For example, if you set the matrix width to be 4, an affiliate member (Affiliate 1) can refer a maximum number of 4 people.  Any future referrals will automatically be placed below one of the 4 members he referred right below him, forcing the matrix to fill up, up to the number of commission levels you have specified.

Setting up Multiple Commission Levels and / or Enabling the Forced Matrix

To enable  the forced matrix option, click on Settings>System Settings.

To enable the number of commission levels, click Programs > Edit Program for the program you want to specify the commission levels for. Under the Commissions Per Level heading, you can select how many levels you want your commission structure to be, as well as enable / disable the forced matrix option and matrix width.

*You should only change these settings once per installation.  Once you've set these options, do not change them, or any future commission calculations for your downline will not work properly.  So make sure to plan out what commission structure you want for your sites, so that you don't have to make any changes again in the future.

 


Content Publishing

How to publish different types of content using the Content Publisher option in JAM

Adding / Editing Custom Content

Adding custom content in JAM is quite easy.  Just follow these steps:

  1. Click on Programs > Content Publisher
  2. Click on the Custom Content link.
  3. Start typing in your content in the built-in HTML editor.

Here's a short description of all fields:

Add Custom Content:

  1. HTML Editor - Enable/Disable the HTML editor for use
  2. Program Name - Select which program you want this content page to be accessible from
  3. Title - The title of your content page
  4. HTML Content - The content of your message is typed in here.  You can use the custom tags to specify your affiliate's unique information

When you're done creating your content, just make sure to select Yes in the Enable section on the top right corner of the form, and hit Submit. This will automatically be available in your affiliate members area once you link to it.

Adding / Editing Members Area Content

You can add/edit your Members Area Main Menu easily.  Just follow these steps:

  1. Click on Programs > Content Publisher
  2. Click on the Main Menu link.
  3. Start typing in your content in the built-in HTML editor.

Here's a short description of all fields:

Terms of Service Content Pages:

  1. HTML Editor - Enable/Disable the HTML editor for use
  2. Program Name - Select which program you want to edit the program description for.
  3. Title - The title of your program description page.
  4. HTML Content - The content of your message is typed in here.

When you're done editing, just hit Submit.

* This content will show up on the very first page of your affiliate members area main menu.

Editing Your Affiliate Program Description Page

You can edit your Affiliate Program Description Page easily.  Just follow these steps:

  1. Click on Programs > Content Publisher
  2. Click on the Program Description link.
  3. Start typing in your content in the built-in HTML editor.

Here's a short description of all fields:

Program URL - This is the URL of the program description page. You can link to this from your main home page.

Terms of Service Content Pages:

  1. HTML Editor - Enable/Disable the HTML editor for use
  2. Program Name - Select which program you want to edit the program description for.
  3. Title - The title of your program description page.
  4. HTML Content - The content of your message is typed in here.

When you're done editing, just hit Submit.

Editing your Terms of Service / User Agreement

You can edit your Terms of Service or User Agreement easily.  Just follow these steps:

  1. Click on Programs > Content Publisher
  2. Click on the Terms of Service link.
  3. Start typing in your content in the built-in HTML editor.

Here's a short description of all fields:

TOS URL - This is the URL of the terms of service for the selected program

Terms of Service Content Pages:

  1. HTML Editor - Enable/Disable the HTML editor for use
  2. Program Name - Select which program you want this terms of service agreement to be associated to.
  3. Title - The title of your terms of service page.
  4. HTML Content - The content of your message is typed in here.

When you're done editing your terms of service file, just hit Submit. This will automatically be updated to have your own custom terms of service agreement.

How to Create a One-Time Offer

To setup a one-time offer for your programs, follow these steps:

  1. Click on Programs > Content Publisher > One Time Offers
  2. You will be presented with the One Time Offer Content From
  3. Fill out the required fields.
  4. Make sure to set the Enable option to Yes.
  5. Once you are done, click Submit to Save.

When creating a one-time offer, make sure you create two links:

  1. The link to take advantage of your one-time offer
  2. A link to NOT take advantage of your one-time offer

 

How to Enable the Content Dropdown Menu

JAM allows you to have a content dropdown menu in your affiliate members area, so that they can easily select the web pages from one location.

To enable this option, follow these steps:

  1. Go to Settings > Affiliate Settings
  2. Scroll down and set the Enable Custom Content Selector to Yes
  3. Click  Edit Settings
  4. You now have a drop down menu for all custom content on the upper part of your members area for easy selection by members.

How to Include External Pages to the Content Dropdown Menu

JAM allows you to add any extra html or php pages from a specified folder outside of JAM to the content dropdown menu.  This is optional, but can work great if you publish other static pages in a different folder, and want your members to easily access it.

To enable this option, follow these steps:

  1. Open up your /includes/config.php file for editing
  2. Scroll down to the area that says the following:

    ##########################
    ## CUSTOM CONTENT PAGES ##
    ##########################
    //SET THIS TO true TO ADD ANY CUSTOM CONTENT PAGES TO THE CONTENT DROP DOWN MENU
    define("JAM_ENABLE_CUSTOM_CONTENT_PAGES", false);
    //IF YOU ENABLE THE JAM_ENABLE_CUSTOM_CONTENT_PAGES OPTION, ENTER THE PHYSICAL LOCATION HERE
    define("JAM_CUSTOM_CONTENT_FOLDER", "/home/username/public_html/affiliates/members/pages");
    //ENTER THE FULL URL PATH TO YOUR CUSTOM CONTENT PAGES FOR REDIRECTION
    define("JAM_CUSTOM_CONTENT_URL", "
    http://www.yourdomain.com/affiliates/members/pages");
    //PAGE EXTENSIONS TO STRIP OFF FROM FILE NAME, SEPARATED BY COMMAS AND ENCLOSED IN FORWARD SLASHES
    define("JAM_CUSTOM_CONTENT_PAGE_EXTENSIONS", "/.html/,/.htm/,/.php/");
  3. Edit the required fields, and save your config.php file.
  4. JAM will read any pages in the designated folder and add it to the content drop down menu.

* JAM will use the page's file name as the title to show on the content drop down, so you may want to rename the files something that is relevant to its content.

Protecting a Separate Folder using the JAM Authentication Module

For instructions on how to protect a separate folder using the JAM Authentication Module, view the following document:

http://jam.jrox.com/docs/index.php?article=73#separatefolder

Using the JAM Authentication Module

JAM has an available Authentication Module if you want to utilize JAM's authentication and membership management features.  This module can be used to create your own custom secure web pages on a totally separate folder from JAM.

By using this module, you have endless possibilities in creating membership sites, affiliate programs, or custom secured content

You can quickly secure php web pages just by copying and pasting a small file on the top line of each web page.

For instance, you created a web page that you only want members to be able to access, just append the following to the top of that page, like this:

<?php
########################################
## PASSWORD PROTECT CERTAIN WEB PAGES ##
########################################

error_reporting(0);
//SET THE HOME DIRECTORY TO YOUR AFFILIATES FOLDER
$JAM_Directory = '/home/USERNAME/public_html/affiliates';
require_once ($JAM_Directory.'/includes/common.php');
require_once ($JAM_Directory.'/includes/mod/mod_members.php');
Login_Check();
?>

Just change the /home/USERNAME/public_html/affiliates  to point to your JAM directory.

You now have that web page protected and all users will have to login through the JAM login form to get access to it.

An example of this is available in the /plugins/misc/secure_page.php file.

Examples for using the Authentication Module

Affiliate or  Membership Site on a Separate but Secured Web Page

JAM can create a membership area for you that uses the Authentication Module that secures the web pages. To do this, do the following:

  1. Create a new Program in JAM. Fill in all the fields, and set the URL to Redirect to After Login to the web page you have secured.

  2. Optionally set the URL Redirect to After Signup to any page you want.

  3. Set the Force Member Login to only allow signups to be able to login to this program

  4. Open up your membership web page for editing and add the authentication code to the very top of your web page. 

  5. Add the authentication code to all the web pages you want to secure.

Securing a separate folder using the Authentication Module

* this might be a bit advanced for some users

Alternatively, if your web host supports it, you can protect an entire folder without having to add the authentication code on each and every page that is in that folder.  This makes it easier to protect any and all files in that folder.

To do this, follow these steps:

  1. Make sure your web host allows the auto_prepend_file option in PHP.  If you do not know this, please ask your web host or systems administrator.
  2. Open up the /docs/htaccess3.txt file.  This is a sample auto_prepend file that can you can use to protect your directory.
  3. Edit the line to reflect the proper path of your JAM installation:

    php_value auto_prepend_file /home/username/public_html/affiliates/plugins/misc/secure_prepend2.php
  4. Save it and upload it to your designated protected directory.
  5. Once it is uploaded, rename it to .htaccess
  6. Open up the /home/username/public_html/affiliates/plugins/misc/secure_prepend2.php file for editing
  7. Change the following line to reflect your proper affiliate installation directory path:

    $JAM_Directory = '/var/www/html/affiliates';
  8. Login to your JAM admin area.
  9. Click on Programs > Edit Program for your chosen Program.
  10. Edit the URL to Redirect to After Login to point to your designated web page in your protected directory.
  11. Click Save Program Details.
  12. You now have JAM protecting that entire folder.

 

What is the Content Publisher?

The Content Publisher allows you to create your own custom content pages, as well as edit content on other parts of JAM, such as the affiliate members' main menu, terms of service, and affiliate program descriptions.

By using the Content Publisher, you will be able to use a built-in HTML editor to publish new content on your membership areas without having to create or upload separate HTML pages.

Here are the content pages you can create/edit in JAM:

  1. Main Menu Content - when created, this content appears in your members' main menu area, directly below the default main menu icons.  You can use this to publish a welcome message to your affiliate member, or even some news/details of your affiliate or membership program.
  2. One Time Offers - this section allows you to create one time offers to your affiliate members during initial signup.  This works great if you want to give your users some one time incentives, such as upgrades, exclusive programs and services, or even products you sell. This only appears once during the affiliate signup process, so once an affiliate member clicks away from this page, he/she can no longer go back to it later. This option works great for getting members to take action on something you want right away.
  3. Terms of Service - this section edits your terms of service agreement or end-user agreement.  You can edit different terms of service agreements for each program created in JAM.
  4. Program Description - This option edits the description of what your program has to offer.  You can link to each of these pages so that users can read about what your affiliate or membership program has to offer. A program description is available for each program created in JAM.
  5. Custom Content - Create an unlimited number of custom content pages for each program.  Use this to publish any type of content that is accessibly exclusively by your members in the members area.

 


Downloadable Files

How to provide downloadable files and products using JAM.

How to Add a New Downloadable File

Adding a new downloadable file is easy in JAM. Just follow these steps:

  1. Click on Programs > Downloadable Files
  2. In the Add Downloadable Files screen, enter the required fields.

    * If you are using a Physical Redirect for the Download Location, you must first upload your downloadable file to your web hosting account.  Make sure that JAM can access the folder where it is physically located.  You can do this via FTP or SFTP.

    * Make sure to enter the full physical path to your file in the Download Path field, for example: /home/username/downloads/file.zip

    * If you just want JAM to redirect the download to a URL, select the URL Redirect option for the Download Location and enter the download path.
  3. Click Save Downloadable File.
  4. Once it is saved, you will be able to select it from the drop down menu that appears in the Downloadable Files section.  Select it from the list, and you will be presented with a URL Link that you can use to link directly to this download.
  5. You can now use that download link and publish it for use in your members area.  You can publish this either through the Content Publisher, or your own custom content pages.

*Remember, the link can only be used when an affiliate member is logged into JAM.  If they are not logged into JAM, clicking on the download link will not work.

Security Options for Downloadable Files

JAM allows you to set certain security restrictions for downloadable files.  These include:

  1. Expiration Date - If you want the download to expire on a given date, enter the date in the Set Optional Expiry Date box
  2. Maximum Downloads - If you want your users to be able to download this file a certain number of times, enter the number in the Set Optional Max Downloads box.
  3. Restrict to Program - If you want the downloadable file to only be available to certain programs, you can select them in the Restrict To Program list menu
  4. Security Groups - If you use groups, you can restrict the downloadable file for access only to certain groups.  Select these groups in the Select Security Groups list menu.

* When a user tries to access a downloadable file, and you have upgrade options enabled for that program or group, the user will automatically be presented with an option to upgrade for a fee.  This makes it automatic for your users to upgrade and get the downloadable files from you easily.

What Downloadable Files does JAM support?

JAM allows you to have any type of downloadable file, as long as it can either be stored on your web hosting account or accessible via a URL from JAM.

These files can be any of the following:

By having this option, you can protect your downloadable files by using JAM as the necessary login authentication before giving access to them.


Payment Modules

How to Configure Payment Modules

Receiving Payments via Paypal

JAM allows you to receive membership payments via Paypal.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the Paypal icon to launch the Paypal configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.
  14. Make sure you have renamed the htaccess.txt file in your JAM affiliates folder to .htaccess

* Make sure to enable the Instant Payment Notification (IPN) option in your Paypal > Profile > Instant Payment Notification and Preferences.

You now have JAM configured to accept payment via Paypal after a new affiliate/member signs up.

What is a Commission Payment Module?

A Commission Payment Module is used by the affiliate administrator to pay affiliates for commissions generated.  For example, you can use the Paypal Commission Payment Module to generate a Paypal Mass Payment File for paying affiliate commissions.

The current commission payment modules availabe are:

  1. Paypal
  2. Check
  3. Stormpay
  4. SafePay
  5. Moneybookers
  6. AlertPay
  7. E-Gold
  8. Bank Transfer
  9. Other

What is a Membership Payment Module?

A Membership Payment Module is used by JAM to allow the affiliate administrator to charge a membership fee for joining the program.  These payment modules can be used to charge potential members a one-time, monthly, quarterly, semi-annually, or annually payment.

By charging members a fee, you can charge members access to membership programs, exclusive group downloads, or higher commission payouts.

The current Membership Payment Modules available are:

  1. 2Checkout
  2. AlertPay
  3. Authorize.Net
  4. E-Gold
  5. Moneybookers
  6. Paypal
  7. SafePay Solutions

Commission Payments

These are used to pay affiliate commissions

Creating Custom Commissions

There is an option to create custom commission amounts.  For example, you can pay a percentage of 10% as set  within the Programs area of JAM, and still add $2.00 to each commission when it is calculated.  This is done by editing a file called custom.comm.php, inside the /includes folder.

  1. First, go to Settings > Signup Settings, and enable the automatic signup module with password 
  2. Rename the custom.comm.CUSTOM.php file to custom.comm.php, inside the /includes folder
  3. Open up this file for editing.
  4. Set the automatic signup password on this line:

    $JAM_Secret = "autosignupsecretword";

  5. Create your custom commission amount by creating a new line right before the ?> php tag, like this:

    $commission_amount = $commission_amount - "2.99";
  6. This will add 2.99 to your commission amount.

You have now created a custom commission amount.

Paying Affiliates via AlertPay

JAM allows you to pay your affiliates via AlertPay.

You can pay affiliates via an online direct AlertPay payment, or by generating a AlertPay Mass Payment File.

To pay affiliates via AlertPay, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the AlertPay option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. To pay an affiliate via AlertPay directly, click on the AlertPay icon. 

    *The AlertPay icon will only appear if the affiliate member has an actual AlertPay email address on file. If they don't, you cannot pay them via AlertPay.
  4. To generate a AlertPay Mass Payment file, select the checkboxes on the right of the Pay Affiliates screen, and scroll down to the bottom.
  5. Select AlertPay Mass Payment in the Mark Checked For box and click Go.
  6. This will generate the proper AlertPay Mass Payment file for you to upload to AlertPay for payment to affiliates.
  7. Once you've paid affiliates, select the Completed Payment - AlertPay option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

Paying Affiliates via Check or Invoice Printing

JAM allows you to pay your affiliates via Check or Other Payment.

To pay affiliates via Check, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the Check option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. You can print out an invoice for all pending affiliate payments by checking the check box on the right of each affiliate.
  4. Select the Invoice Printing option in the Mark Checked For box and click Go.  This will print out the invoices for use when sending out checks.
  5. If you decide to pay affiliates outside of JAM, you can select the Completed Payment - E-Gold option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

Paying Affiliates via E-Gold

JAM allows you to pay your affiliates via E-Gold.

You can pay affiliates via an online direct E-Gold payment.

To pay affiliates via E-Gold, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the E-Gold option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. To pay an affiliate via E-Gold directly, click on the E-Gold icon. 

    *The E-Gold icon will only appear if the affiliate member has an actual E-Gold email address on file. If they don't, you cannot pay them via E-Gold.
  4. If you decide to pay affiliates outside of JAM, you can select the Completed Payment - E-Gold option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

Paying Affiliates via Moneybookers

JAM allows you to pay your affiliates via Moneybookers.

You can pay affiliates via an online direct Moneybookers payment, or by generating a Moneybookers Mass Payment File.

To pay affiliates via Moneybookers, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the Moneybookers option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. To pay an affiliate via Moneybookers directly, click on the Moneybookers icon. 

    *The Moneybookers icon will only appear if the affiliate member has an actual Moneybookers email address on file. If they don't, you cannot pay them via Moneybookers.
  4. To generate a Moneybookers Mass Payment file, select the checkboxes on the right of the Pay Affiliates screen, and scroll down to the bottom.
  5. Select Moneybookers Mass Payment in the Mark Checked For box and click Go.
  6. This will generate the proper Moneybookers Mass Payment file for you to upload to Moneybookers for payment to affiliates.
  7. Once you've paid affiliates, select the Completed Payment - Moneybookers option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

Paying Affiliates via Paypal

JAM allows you to pay your affiliates via Paypal.

You can pay affiliates via an online direct Paypal payment, or by generating a Paypal Mass Payment File.

To pay affiliates via Paypal, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the Paypal option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. To pay an affiliate via paypal directly, click on the Paypal icon. 

    *The Paypal icon will only appear if the affiliate member has an actual Paypal email address on file. If they don't, you cannot pay them via Paypal.
  4. To generate a Paypal Mass Payment file, select the checkboxes on the right of the Pay Affiliates screen, and scroll down to the bottom.
  5. Select Paypal Mass Payment in the Mark Checked For box and click Go.
  6. This will generate the proper Paypal Mass Payment file for you to upload to paypal for payment to affiliates.
  7. Once you've paid affiliates, select the Completed Payment - Paypal option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

Paying Affiliates via SafePay Solutions

JAM allows you to pay your affiliates via SafePay.

You can pay affiliates via an online direct SafePay payment, or by generating a SafePay Mass Payment File.

To pay affiliates via SafePay, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the SafePay option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. To pay an affiliate via SafePay directly, click on the SafePay icon. 

    *The SafePay icon will only appear if the affiliate member has an actual SafePay email address on file. If they don't, you cannot pay them via SafePay.
  4. To generate a SafePay Mass Payment file, select the checkboxes on the right of the Pay Affiliates screen, and scroll down to the bottom.
  5. Select SafePay Mass Payment in the Mark Checked For box and click Go.
  6. This will generate the proper SafePay Mass Payment file for you to upload to SafePay for payment to affiliates.
  7. Once you've paid affiliates, select the Completed Payment - SafePay option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

Paying Affiliates via StormPay

JAM allows you to pay your affiliates via Stormpay.

You can pay affiliates via an online direct Stormpay payment, or by generating a Stormpay Mass Payment File.

To pay affiliates via Stormpay, follow these steps:

  1. Go to Settings > Payment Settings. Make sure that the Stormpay option is checked under Commission Payment Options
  2. Click on Affiliates > Pay Affiliates.  If there are any approved, unpaid commissions, it will show up here. 
  3. To pay an affiliate via Stormpay directly, click on the Stormpay icon. 

    *The Stormpay icon will only appear if the affiliate member has an actual Stormpay ID on file. If they don't, you cannot pay them via Stormpay.
  4. To generate a Stormpay Mass Payment file, select the checkboxes on the right of the Pay Affiliates screen, and scroll down to the bottom.
  5. Select Stormpay Mass Payment in the Mark Checked For box and click Go.
  6. This will generate the proper Stormpay Mass Payment file for you to upload to Stormpay for payment to affiliates.
  7. Once you've paid affiliates, select the Completed Payment - Stormpay option in the Mark Checked For box to mark all the checked affiliates as paid.  This will automatically mark all unpaid commissions as paid as well.

What is a Commission Payment Module?

A Commission Payment Module is used by the affiliate administrator to pay affiliates for commissions generated.  For example, you can use the Paypal Commission Payment Module to generate a Paypal Mass Payment File for paying affiliate commissions.

The current commission payment modules availabe are:

  1. Paypal
  2. Check
  3. Stormpay
  4. SafePay
  5. Moneybookers
  6. AlertPay
  7. E-Gold
  8. Bank Transfer
  9. Other

Membership Payments

These are used for collecting payment from affiliates / members

How to Charge Membership Fees

JAM allows you to charge membership fees for your programs. 

To enable this feature, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on one of the listed Membership Payment Modules you want to use for payment.
  4. A dialogue box will come up. Enter all required fields.
  5. Do this for all the payment options you want to enable
  6. Go to Programs > Edit.  Select the program you want to charge fees for.
  7. Scroll down to the bottom.
  8. Under Membership Payment Settings, fill in the required fields
  9. Select Optional or Required under the Require Payment drop down menu.
  10. Click Save Program Details

The next time you have an affiliate signup, they will either have the option to pay for your membership program or will be required to pay for it.

Receiving Payments via 2Checkout

JAM allows you to receive membership payments via 2Checkout.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the 2Checkout icon to launch the 2Checkout configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. If you want to use the secret word, you will need to make sure that this matches what you have in your 2Checkout account, under Look and Feel > Settings > Secret Word.
  6. Click Submit to save.
  7. Click on the Programs link.
  8. Click on the Edit link for the program that you want to charge a fee for.
  9. Scroll down to the Membership Payment Settings area.
  10. Set the Require Payment option to either Optional or Required
  11. Select a Membership Length for this Program
  12. Enter the amount you want to charge in Membership Fee Amount
  13. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  14. Click Save Program Details.
  15. Login to your 2Checkout account and click on Look and Feel > Settings.
  16. Scroll down to the area called "Approved URL".
  17. Type in the following in the text field:

    http://www.DOMAIN.COM/AFFILIATES/ccprocess.php?type=2Checkout

    *Change DOMAIN.COM/AFFILIATES to point to your JAM installation
  18. Click Save Changes

You now have JAM configured to accept payment via 2Checkout after a new affiliate/member signs up.

Receiving Payments via AlertPay

JAM allows you to accept Payments for Membership via AlertPay.

To enable this option, follow these directions:

  1. Login to your AlertPay account and set the Alert Url to your JAM AlertPay URL:

    http://www.domain.com/affiliates/processtype/AlertPay
  2. Make sure that the htaccess.txt file in your JAM folder is renamed to .htaccess
  3. Click on Settings > Payment Settings > Membership Payment Settings > AlertPay
  4. Set the Status to Enable and Enter the details as required.
  5. Go to Programs > Edit Program > Membership Payment Settings
  6. Set the Require Payment Option to either Required or Optional
  7. Select the Membership Length
  8. Enter the Membership Fee Amount.
  9. You can now charge membership payments for JAM via AlertPay.

*If you want to charge a trial amount for AlertPay, you will need to manually edit the /plugins/processors/AlertPay/processor.template.form.php file.

Receiving Payments via Authorize.Net

JAM allows you to receive membership payments via Authorize.Net.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the Authorize.Net icon to launch the Authorize.Net configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.

You now have JAM configured to accept payment via Authorize.Net after a new affiliate/member signs up.

Receiving Payments via E-Gold

JAM allows you to receive membership payments via E-Gold.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the E-Gold icon to launch the E-Gold configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.

You now have JAM configured to accept payment via E-Gold after a new affiliate/member signs up.

Receiving Payments Via Linkpoint Central

JAM allows you to receive membership payments via Linkpoint Central.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the Linkpoint Central icon to launch the E-Gold configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.
  14. Login to your Linkpoint Central Account.
  15. Click on the Customization Link on the top header, then click on Settings
  16. Under the Confirmation Page text field, enter the following URL (change DOMAIN.COM/AFFILIATES to reflect your own JAM URL)

    http://www.DOMAIN.COM/AFFILIATES/ccprocess.php?type=Linkpoint_Central
  17. Save the Settings.

You now have JAM configured to accept payment via Linkpoint Central after a new affiliate/member signs up.

 

Receiving Payments via Moneybookers

JAM allows you to receive membership payments via Moneybookers.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the Moneybookers icon to launch the Moneybookers configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.

You now have JAM configured to accept payment via Moneybookers after a new affiliate/member signs up.

Receiving Payments via Paypal

JAM allows you to receive membership payments via Paypal.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the Paypal icon to launch the Paypal configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.
  14. Make sure you have renamed the htaccess.txt file in your JAM affiliates folder to .htaccess

* Make sure to enable the Instant Payment Notification (IPN) option in your Paypal > Profile > Instant Payment Notification and Preferences.

You now have JAM configured to accept payment via Paypal after a new affiliate/member signs up.

Receiving Payments via SafePay Solutions

JAM allows you to receive membership payments via SafePay Solutions.

To charge members a fee for your program, follow these steps:

  1. Click on Settings > Payment Settings.
  2. Scroll down to the Membership Payment Settings
  3. Click on the SafePay Solutions icon to launch the SafePay Solutions configuration form
  4. Fill in all the fields and select Enable on the Status option
  5. Click Submit to save.
  6. Click on the Programs link.
  7. Click on the Edit link for the program that you want to charge a fee for.
  8. Scroll down to the Membership Payment Settings area.
  9. Set the Require Payment option to either Optional or Required
  10. Select a Membership Length for this Program
  11. Enter the amount you want to charge in Membership Fee Amount
  12. If you are using groups, you can assign this affiliate to be in a group after payment has been made.
  13. Click Save Program Details.

You now have JAM configured to accept payment via SafePay Solutions after a new affiliate/member signs up.

What is a Membership Payment Module?

A Membership Payment Module is used by JAM to allow the affiliate administrator to charge a membership fee for joining the program.  These payment modules can be used to charge potential members a one-time, monthly, quarterly, semi-annually, or annually payment.

By charging members a fee, you can charge members access to membership programs, exclusive group downloads, or higher commission payouts.

The current Membership Payment Modules available are:

  1. 2Checkout
  2. AlertPay
  3. Authorize.Net
  4. E-Gold
  5. Moneybookers
  6. Paypal
  7. SafePay Solutions

Signup Modules

Optional Signup Modules and how to configure them

What is a Signup Module?

JAM uses signup modules to process any extra tasks after an affiliate signs up. These tasks can range from adding the user to an external autoresponder, or creating an account on a different application.  These signup modules are used to extend JAM even further so as to provide you with as much flexibility as possible.

Optional Signup modules are located in Settings > Signup Settings > Optional Signup Modules.  You can configure these for use by clicking on their link and filling in the required fields.

Current Signup Modules available in JAM are:

  1. AutoresponsePlus
  2. Aweber
  3. ListMail
  4. ResponseMagic
  5. Custom Autoresponder

 

Setting Up the AutoresponsePlus Signup Module

AutoresponsePlus is a third-party autoresponder system that can integrate into JAM.  JAM can be configured to automatically send form data to AutoresponsePlus so that the affiliate signup is subscribed to a given mailing list.  This can work well if you want to use AutoresponsePlus to send your affiliates a sequence of messages, or subscribe them to a newsletter / mailing list.

* Make sure you have a valid installation of AutoresponsePlus. If you don't, and want to use this application, you will need to purchase one and install it first.

To configure AutoresponsePlus with JAM, follow these steps:

  1. Go to Settings > Signup Settings.
  2. Scroll down to the Optional Signup Modules section.
  3. Click on the AutoresponsePlus icon
  4. Fill in the required fields for integration.
  5. Set the Status field to Enable
  6. Click Submit

You now have AutoresponsePlus integrated into JAM. The next time someon signs up for your program, they will automatically be subscribed to the given mailing list in AutoresponsePlus as well.

Setting Up the Aweber Signup Module

Aweber is a third-party autoresponder service that can be integrated into JAM.  JAM can be configured to automatically send form data to Aweber so that the affiliate signup is subscribed to a given mailing list.  This can work well if you want to use Aweber to send your affiliates a sequence of messages, or subscribe them to a newsletter / mailing list.

* Make sure you have a valid subscription to Aweber. If you don't, and want to use the Aweber service, you will need to subscribe to their service first.

To configure Aweber with JAM, follow these steps:

  1. Login to your Aweber account and get the HTML form code to use for registering subscribers. If you don't know how to do this, please consult your Aweber documentation.
  2. Make sure you the Forward Variables option checked so that Aweber forwards all form data back to JAM.
  3. Make sure you have your HTML form code available for viewing.
  4. Go to Programs > Edit > Select Signup Form Type
  5. Choose aweber from the drop down menu
  6. Go to Settings > Signup Settings.
  7. Scroll down to the Optional Signup Modules section.
  8. Click on the Aweber icon
  9. Fill in the required fields for integration. These fields are all on your Aweber HTML form code. Just copy those values from your aweber form into the JAM integration fields. For example, for the meta_web_form_id, just enter the value given on your Aweber HTML form code.
  10. Set the Status field to Enable
  11. Click Submit

You now have Aweber integrated into JAM. The next time someone signs up for your program, they will first be redirected to Aweber to submit the mailing list data, then redirected back to JAM to continue the signup process.

Setting Up the ListMailPro Signup Module

ListMailPro is a third-party autoresponder system that can integrate into JAM.  JAM can be configured to automatically send form data to ListMailPro so that the affiliate signup is subscribed to a given mailing list.  This can work well if you want to use ListMailPro to send your affiliates a sequence of messages, or subscribe them to a newsletter / mailing list.

* Make sure you have a valid installation of ListMailPro. If you don't, and want to use this application, you will need to purchase one and install it first.

To configure ListMailPro with JAM, follow these steps:

  1. Go to Settings > Signup Settings.
  2. Scroll down to the Optional Signup Modules section.
  3. Click on the ListMailPro icon
  4. Fill in the required fields for integration. These fields are taken from your ListMailPro HTML signup form code.
  5. Set the Status field to Enable
  6. Click Submit

You now have ListMailPro integrated into JAM. The next time someon signs up for your program, they will automatically be subscribed to the given mailing list in ListMailPro as well.

Setting Up the ResponseMagic Signup Module

ResponseMagic is a third-party autoresponder system that can integrate into JAM.  JAM can be configured to automatically send form data to ResponseMagic so that the affiliate signup is subscribed to a given mailing list.  This can work well if you want to use ResponseMagic to send your affiliates a sequence of messages, or subscribe them to a newsletter / mailing list.

* Make sure you have a valid subscription to ResponseMagic. If you don't, and want to use it, you will need to subscribe with them first.

To configure ResponseMagic with JAM, follow these steps:

  1. Login to your ResponseMagic account.
  2. Get your HTML Signup Form code.  If you don't know where this is, please consult ResponseMagic.
  3. Go to Settings > Signup Settings.
  4. Scroll down to the Optional Signup Modules section.
  5. Click on the ResponseMagic icon
  6. Fill in the required fields for integration. These fields are taken from your ResponseMagicPro HTML signup form code.
  7. Set the Status field to Enable
  8. Click Submit

You now have ResponseMagic integrated into JAM. The next time someon signs up for your program, they will automatically be subscribed to the given mailing list in ResponseMagic as well.

Setting up a Custom Autoresponder

JAM can be integrated into a third-party autoresponder when an affiliate signs up.  This can work well if you have you own mailing list software you want to use to send emails to your affiliates, or possibly subscribe them to a sequential autoresponder for timed To enable integration with a third party autoresponder:

  1. First, get the signup form code from your autoresponder service.  This is normally the HTML signup form code that is used to subscribe prospects via an HTML form. Here's an example:

  2. In this example, the form fields we need are list, fname, lname, and email, with list having the value of 1.
     
  3. List down the necessary form fields that are required for subscribing via an email form.  This is usually something like first_name, last_name, and email_address, similar to what we have above.  Make sure to take note of any hidden fields that must be sent when subscribing, typically the list id.

    <form method=post action=http://www.domain.com/list/signup.php>
    <input type=hidden name=list value=1>
    First Name: <input type=text name=fname size=10>
    Last Name: <input type=text name=lname size=10>
    Email: <input type=text name=email>
    <input type=submit name=sup value="Subscribe Me!">
    </form>

  4. Open up /plugins/signup_automation/internal/customautoresponder/internal.signup.template.form.php 
  5. You can setup JAM to redirect a particular JAM affiliate program to a certain mailing list with the use of the program ID to mailing list mapping function. This is useful if you have multiple JAM programs and want to have separate mailing lists for each program. Here's how it works:

    - Get the program ID's you have in JAM.  These are normally numbers like 1,2, or 3.

    - The JAM program ID's are represented as "program_group" in the mapping. For example, to map program ID #1, you would write as follows:

    $program_group == 1;

    - Get the list numbers or codes from your mailing list, for example your mailing list code is "5".   To map the JAM Program ID 1 to your mailing list code of 5, you can do this:

    if ($program_group == 1 )
    {
    $listcode = 5;
    }


    $listcode will represent the correct number for your hidden mailing list code.

    You can have as many JAM program mappings to mailing lists as you want.  Just type them in succession of one another, like this:

    if ($program_group == 1 )
    {
    $listcode = 5;
    }
    if ($program_group == 2 )
    {
    $listcode = 6;
    }
    if ($program_group == 3 )
    {
    $listcode = 7;
    }
    if ($program_group == 4 )
    {
    $listcode = 10;
    }
     
  6. Now in the following area, you will need to edit the code to represent the proper form fields to send to your autoresponder.  In our example above, we used list, fname, lname, and email. Change the following values to the proper form field values to send to your mailing list form.

    $email_values = array
    (
    //THESE ARE THE NAME-VALUE PAIRS THAT YOU NEED TO SUBSCRIBE TO YOUR EXTERNAL AUTORESPONDER
    "fname" => $F_First_Name,
    "lname" => $F_Last_Name,
    "email" => $F_Primary_Email,
    "list" => $listcode,
    );

  7. Save the file and test it by signing up an affiliate in JAM.


Settings

The different configuration settings and options in JAM

Admin Settings

JAM allows you to have up to 25 different administrators to access and manage your affiliate program.

Adding Administrators

To add new administrators, go to Settings>Admin Settings, and click on Add New Administrator.

Create a New Administrator Details:

  1. Administrator Username - Enter a username for your administrator between 7 and 14 alphanumeric characters long.
  2. Email From Name - This is the name that will appear on all outgoing emails sent by this Administrator from within the Affiliate Program.
  3. Primary Email - This is the email address that will appear on all outgoing emails sent by this Administrator from within the Affiliate Program.
  4. Enable Flash-Based Admin Reports - Enable / Disable Flash-Generated Reports for this Administrator
  5. Default Email Format - Set the default email format that will first appear when creating emails from within the Program.
  6. Default Date Format - Select the date format you want all dates to appear like in the Program.
  7. Enable Email Alerts on New Affiliate Signups - Enable / Disable email alerts to this administrator when new affiliates signup.
  8. Enable Email Alerts on New Commissions - Enable / Disable email alerts to this administrator when a new commission is generated.
  9. Administrator Security Level - Select Full Control, Change, or View Only.
    - Full Control - Admin has full control to all parts of the Program
    - Change - Admin has control to all parts of the Program except the Settings module.
    - View Only - Admin can only view data, not change anything in the Program.
  10. Admin Control Panel Theme - Select the theme that this admin will use after logging in.
  11. Administrator Status - Set this administrator as active/inactive.

Change Admin Password:

  1. New Password - Enter a new password for this Administrator
  2. Confirm Password - Confirm the new password.

Viewing and Editing Administrators

To view all of your administators, click on Settings > Admin Settings

To edit an administrator, click on the Edit icon on the administator list.

Deleting an Administrator

To delete an administrator, click on the Administator's username and click on the Delete button.

Affiliate Settings

  1. Settings related to your Affiliate Members.  To access this section, click on Settings>Affiliate Settings.

Here is a brief description for each field:

Affiliate Member Settings:

  1. Member Site Background Color - Enter the background color for your Affiliate Members Area.  This will only work if you pick the Default, Darknight, or Simplelight themes, or make edits to the style.css file for the other themes.
  2. Allow Members to Select Theme - Select the default theme that will be used when accessing the Affiliate Members Area.
  3. Use Usernames as Affiliate URL IDs - If you want to use usernames instead of IDs in the affiliate URL, set this to Yes. 
  4. Allow Username Change - Allow / Disallow your members to change their usernames.
  5. Allow Account Details Change - Allow / Disallow your members to change their account details in the Members Area.
  6. Enable Flash-Based Member Charts - Enable / Disable Flash-based charts for your members.
  7. Enable Affiliate Status Reports - Enable / Disable the emailing of monthly reports to your affiliates. The monthly reports can be customized to your own preference by editing the Affiliate - Monthly Reports Template in the Email Templates section.
  8. Alert Affiliate on Downline Signup - Enable / Disable email alerts to your members when an affiliate signs up beneath them.
  9. Alert Affiliate on New Commission - Enable / Disable email alerts to your members when a new commission is generated by them.  Only runs if new commissions are set to unpaid first.
  10. Allow Affiliates to Redirect to Custom URL - By enabling this option, you can allow your affiliates to append the jxURL variable to their affiliate links and have them redirect to any web page that they want.  This works well if you want them to directly send their referrals to different web pages  on your site, allowing for the same link but different web pages.
  11. Allow Members to View Downline - Enable / Disable the ability of your members to view their downline.
  12. Show Downline Names - Allow affiliate members to see the names of their downline members if the Allow Members to View Downline option is enabled.
  13. Show Downline Email Addresses - Allow affiliate members to see their downline affiliates' email addresses for contacting purposes.
  14. Allow Members to Email Entire Downline - Enable / Disable the ability of your members to email their entire downline using the Downline Email Module.
  15. Enable Member HTML Editor - Enable / Disable the HTML editor for your members to use when emailing their downline.
  16. Enable Custom Content Selector - If you have custom content that you want to publish as links in a drop-down menu in the affiliate members' area, you can enable this option.
  17. Select Affiliate Links To Use - Select which type of affiliate links you want to generate for your members. For more on customizing affiliate links, click here.
  18. Encrypt Affiliate URL IDs - This option allows you to encrypt your affiliates' links so that it cannot be viewed or changed by others.  However, by enabling this feature, you cannot use the Allow Affiliates to Redirect to Custom URL option or the Allow Ad Tracker Links option.

    *Once you encrypt affiliate links and you have your users using it, you can no longer disable this option or your affiliates' URLs will no longer work.
  19. Subdomain List - This option is only needed if you use the dynamic affiliate links option.  If you are using dynamic subdomain affiliate links, list down the subdomains you want to reserve here, in comma separated format.
  20. Enable the Tell-a-Friend Tool - Enable / Disable the Tell-a-Friend Tool in the Members Area.
  21. Allow Ad Tracker Links - Enable / Disable the use of Ad Tracker Links for your affiliates to use to track their ads.
  22. Enable Affiliate Link Protector - By enabling this option, you will allow your affiliates to download a web page in the affiliate members' area that they can upload to their website.  This will hide their affiliate links from their visitors, helping them protect their affiliate IDs from being stripped off.
  23. Set Expired Members Inactive After - This option is only needed if you charge members a membership fee and set the options to have monthly, quarterly, or annual payment options.
  24. Current Groups - Add / Edit / Delete Groups to sort your affiliates with. This is used for grouping certain affiliates or members for security access to downloads as well as group commission amounts.

Affiliate Groups

  1. Affiliate Group Name - The name of your group
  2. Commissions Per Level - Set the amount of commissions per level for this group.  The flat or percentage setting is taken from the affiliate program that the member signs up for.  This is found in Programs > Edit Program > Commission Type
  3. Affiliate Group Description - A description for your group.  This is used as the description shown when your affiliate member wants to upgrade or signup for this group.

Licensing

The current licensing structure for JAM allows everyone to use it for free.  The only restriction in the free version is that the number of affiliates are limited to a total of 50.

Once you have reached the limit of 50, you can no longer add or signup anymore affiliates.

To view the license information for your site,  click on Settings > License Information inside your JAM admin area.

 Purchase a License

To purchase a license, click on the Click Here To Upgrade link on the heading section of the Free Edition of JAM,or click on to Settings > License Information > Buy License.

This will launch a new website, where you can purchase a license for your copy of JAM.

Once you've finished payment, input the license key into the licensing information section of JAM.

Marketing Settings

The Marketing Settings section of your JAM installation handles all the marketing configuration.  Here, you can enable / disable certain marketing tools, or redirect your affiliates to a custom marketing URL if you so desire.

To access this section, click on Settings > Marketing Settings.

Marketing Tools Settings:

  1. Enable Marketing Tools - Enable / Disable the JAM Affiliate Manager Marketing Tools
  2. Marketing Tools Redirect URL - If you disable the JAM Marketing Tools, you can set a custom website address that will redirect your affiliate members to for your marketing tools
  3. Enable Banner Ads - If you don't want to use banner ads, you can hide it from your affiliate members area by disabling it.
  4. Enable Text Links -  If you don't want to use text links, you can hide it from your affiliate members area by disabling it.
  5. Enable Text Ads -  If you don't want to use text ads, you can hide it from your affiliate members area by disabling it.
  6. Default Text Ad Title Font Color - Enter the color you want for the title of your text ads.
  7. Default Text Ad Title Background Color - Enter the color you want for the background of your text ad titles.
  8. Default Text Ad Content Background Color - Enter the color you want for the background of your text ad content.
  9. Enable Hover Ads - If you don't want to use hover ads, you can hide it from your affiliate members area by disabling it.
  10. Default Hover Ad Title Font Color - Enter the color you want for the title of your hover ads
  11. Default Hover Ad Title Background Color - Enter the color you want for the background of your hover ad titles.
  12. Default Hover Ad Content Background Color - Enter the color you want for the background of your hover ad content.
  13. Enable Email Ads -  If you don't want to use email ads, you can hide it from your affiliate members area by disabling it.
  14. Enable Articles -  If you don't want to use email ads, you can hide it from your affiliate members area by disabling it.
  15. Enable Follow Ups - If you want to be able to send your affiliates automatic follow up email messages, you can enable this option.  For more information on the Automatic Follow-Up Module, click here
  16. Enable Offline Marketing - If you want to utilize the Offline Marketing Module, enable this option.
  17. Offline Prefix - If you are using the Offline Marketing Module, these are the prefixes you would use for your offline codes.  For more information on the Offline Marketing Module, click here
  18. Offline Separator - Select which symbol to use to separate the offline prefix code from the affiliate custom ID. For more information on the Offline Marketing Module, click here

Payment Settings

The Payment Settings section handles all payment-relates settings for JAM.

To edit your payment settings, click on Settings>Payment Settings.

Payment Settings:

  1. Commission Payment Options - Select which payment options you want to use for commission payments.
  2. Specify Other Payment Option - If you select Other for payment type, you can enter the name of your payment type here
  3. Currency Setting - Enter the currency symbol you want to use for payment. Examples: $, €, £, ¥.  You can also use the HTML equivalents of your currency symbols. 
  4. Minimum Commission Amount Required - Specify the minimum commission amount needed before a payment is made.
  5. Payment Reminder Each Month - Enter the day that you will be paying your affiliates each month. This setting is only used to alert you via the Daily Statistics Report Email when your payment day is.  
  6. Enable Affiliate Signup Bonus - You can give your affiliates a signup bonus when they sign up.  Enable / Disable it here.
  7. Signup Bonus Amount -  If you enable the affiliate signup bonus, enter the amount here.
  8. Enable Performance-Based Bonus - If you want to give your affiliates a bonus based on their performance, enable it here.
  9. Performance Criteria - Select what criteria to base your affiliates' performance on. Select from Commission Amount, Sales Amount, Sales Quantity.
  10. Performance Bonus Amount - Enter the bonus amount you want to pay your affiliates for their performance.
  11. Performance Amount Required - Enter the amount needed for your affiliates to attain the performance bonus amount.
  12. Payment Information and Address - Enter the payment information that will appear on your payment invoices.

Membership Payment Settings:

The payment modules listed in this section are used for membership payment management.  If you want to charge members a fee, you can configure one of these payment modules to require payment after signup before being granted access to your program.

Current payment modules included in JAM are:

  1. 2Checkout
  2. AlertPay
  3. Authorize.Net
  4. E-Gold
  5. Moneybookers
  6. Paypal
  7. SafePay Solutions

To configure a membership payment module, just click on the payment processor of your choice to launch its configuration options. 

Automatic Refund Module (ARM):

The Automatic Refund Module allows you to integrate your existing ECommerce Application or Shopping Cart Refund Process to automatically do affiliate refunds in JAM. This gives you the option to automatically refund any affiliate commission that you already paid to an affiliate due to a customer refund or chargeback.  The refund is automatically generated and reflected in the Affiliate's commission payments. For more information on the Automatic Refund Module and how to set it up, click here.

* This option currently only works with Paypal IPN and StormPay IPN

  1. Enable Automatic Refund Module - Enable/Disable the ARM
  2. Refund Secret Word - The secret word used for connecting to your ARM module
  3. Refund Status for Pending or Unpaid Commissions - Select what to do with Pending or Unpaid Commissions that receive a refund.
  4. Integration Code - This is only used for those that want to create a custom ARM integration module

Security Settings

The Security Settings section handles all the logging and security features of your JAM installation.

To edit your security settings, click on Settings>Security Settings.

Security Settings:

  1. Enable Events Logging - Enable / Disable logging of events.
  2. Select Events to Log - Select which types of events you want to log.
  3. Prune Events After - Select how long you want events to stay in the database before they are pruned / deleted.
  4. Affiliate Password Reset via Email - Enable / Disable the ability of your affiliates to reset their passwords via email
  5. Admin Password Reset via Email -  Enable / Disable the ability of your administrators to reset their passwords via email.
  6. Enable Admin Lockout Timer - Enable / Disable the admin lockout timer.  If enabled, after 5 unsuccessful attempts to login, that person will be locked out for a minimum of one hour, before they can login again.
  7. Email Admin on Failed Logins - If you want to be alerted on failed admin login attempts, you can enable it here.

Signup Settings

The Signup Settings section involves configuring your Affiliate Signup Form.

To edit signup settings, click on System > Signup Settings.

Affiliate Signup Form Settings:

  1. Require Admin Approval on Signup - If you want to manually approve all affiliate signups, enable it here.

  2. Require Affiliate Confirmation via Email - To require confirmation from your affiliates via email after signing up, enable it here.

  3. Enable Automatic Signup Module - If you want to use and integrate the JAM Automatic Signup Module with your shopping cart, enable this option.  

  4. Auto Signup Secret Word - This is used in conjunction with the Automatic Signup Module.

    * For more information on the JAM Automatic Signup Module, click here

Custom Form Fields:

  1. Show Sponsor on Signup Form - If you want to show the affiliate sponsor on the signup form, enable it here.

  2. Require Sponsor on Signup - If you want to make sure all affiliate signups have sponsor, enable it here.

  3. Require Company on Signup Form - Set the Company field to be hidden, optional or mandatory when an affiliate signs up.

  4. Require Address 1 on Signup Form - Set the Address 1 field to be hidden, optional or mandatory when an affiliate signs up.

  5. Require Address 2 on Signup Form - Set the Address 2 field to be hidden, optional or mandatory when an affiliate signs up.

  6. Require City on Signup Form - Set the City field to be hidden, optional or mandatory when an affiliate signs up.

  7. Require State on Signup Form - Set the State field to be hidden, optional or mandatory when an affiliate signs up.

  8. Require Country on Signup Form - Set the Country field to be hidden, optional or mandatory when an affiliate signs up.

  9. Require Zip / Postal Code on Signup Form - Set the Zip / Postal Code field to be hidden, optional or mandatory when an affiliate signs up.

  10. Require Phone on Signup Form - Set the Phone field to be hidden, optional or mandatory when an affiliate signs up.

  11. Require Fax on Signup Form - Set the Fax field to be hidden, optional or mandatory when an affiliate signs up.

  12. Require Check Name on Signup Form - Set the Check Name to be hidden, optional or mandatory when an affiliate signs up.

  13. Require Username on Signup Form - Set the Username field to be hidden, optional or mandatory when an affiliate signs up.

  14. Require Password on Signup Form - Set the Password field to be hidden, optional or mandatory when an affiliate signs up.

  15. Require Website URL on Signup Form -To require a website URL upon affiliate signup, enable it here.

  16. Require Paypal Email on Signup Form - If you require your affiliates to have a paypal account upon signup, enable it here.

  17. Require Stormpay ID on Signup Form - If you require your affiliates to have a stormpay account upon signup, enable it here.

  18. Require SafePay ID on Signup Form - If you require your affiliates to have a safepay account upon signup, enable it here.

  19. Require Moneybookers ID on Signup Form - If you require your affiliates to have a moneybookers account upon signup, enable it here.

  20. Require Alertpay ID on Signup Form - If you require your affiliates to have an alertpay account upon signup, enable it here.

  21. Require Egold ID on Signup Form - If you require your affiliates to have an e-gold account upon signup, enable it here.

  22. Require Bank Transfer on Signup Form - If you require your affiliates to have their bank transfer or wire transfer information upon signup, enable it here.

  23. Require SSN / Tax ID on Signup Form - If you require your affiliates to have their SSN or Tax ID upon signup, enable it here.

  24. Mark TOS as checked or hidden - Make the Term of Service check box hidden, unchecked, or automaticall checked.

  25. Show Payment Options on Signup Form - If you want your new signups to select which payment option to use, you can set this to Yes

    * You can enable up to 5 separate custom form fields of your choice. Once enabled, these fields will show up on your affiliate signup form

  26. Enable Custom Field 1 - If you have custom fields for entry on the signup form, enable this option.

  27. Custom Field 1 Name - If you enable the custom field 1, enter the name of the field here.

  28. Enable Custom Field 2 - If you have custom fields for entry on the signup form, enable this option.

  29. Custom Field 2 Name - If you enable the custom field 2, enter the name of the field here.

  30. Enable Custom Field 3 - If you have custom fields for entry on the signup form, enable this option.

  31. Custom Field 3 Name - If you enable the custom field 3, enter the name of the field here.

  32. Enable Custom Field 4 - If you have custom fields for entry on the signup form, enable this option.

  33. Custom Field 4 Name - If you enable the custom field 4, enter the name of the field here.

  34. Enable Custom Field 5 - If you have custom fields for entry on the signup form, enable this option.

  35. Custom Field 5 Name - If you enable the custom field 5, enter the name of the field here.

  36. Enable Custom HTML on Form - If you want to display your own custom html code at the bottom of the signup page, you can enable it here.

  37. Custom HTML Code - Type in your custom html code here.  No PHP code.

Optional Signup Modules:

The modules listed here are used during the affiliate signup process.  Things such as external autoreponders can be setup here.

The current signup modules available for JAM are:

  1. AutoresponsePlus
  2. Aweber
  3. ListMail
  4. ResponseMagic
  5. Custom Autoresponder

If you want to use any of these modules, just click on the signup module of your choice and enter the stated values.

System Settings

The System Settings section handles the general system settings of your JAM installation.

To edit your system settings, click on Settings > System Settings.

Here is a brief description for each field:

System Settings:

  1. Affiliate Program Name - The General Name of your Affiliate Program
  2. Affiliate Program Description - Short Description of your Affiliate Program
  3. Default Redirect URL - Type in the default URL for your program. This is the website address all links will default to if there is no other URL set. For example, dead links, deleted ads, etc.
  4. Showcase Multiple Programs - Showcase multiple programs in your affiliate members area.  If this is enabled, your affiliates will be able to choose which affiliate programs / products of yours they want to promote.

    * By disabling the Showcase Multiple Programs option, you can create different affiliate programs for different products.  You will be able to separate affiliate programs or membership sites for different sets of users.

  5. Default Site Language - Select the default language for your program.
  6. Enable Language Selector - Enable / Disable the language drop-down menu on your affiliate members login page.
  7. System Email Address - Enter the email address that will be used by your JAM installation for system-generated emails.
  8. Enter JAM Affiliate ID - If you want to promote the JAM affiliate program, enter your numeric affiliate ID here.

Commission Settings:

  1. Enable Forced Matrix - Enable / Disable the Forced Matrix.  For more on Forced Matrix settings, click here.
  2. Matrix Width - If you enable the Forced Matrix option, select the matrix width here.

Affiliate Cookie and Commission Timer Settings

  1. Select Affiliate Tracking Methods - You can track your affiliates using Cookies, IP addresses, and/or PHP sessions.
    • Cookie Tracking - This option will always be enabled and JAM will always try to set a cookie when an affiliate link is clicked as well as read an existing cookie when processing a commissions.

    • IP Address Tracking - If there is no cookie available and this option is enabled, JAM will try to match the current user's IP address to your list of IP addresses in the JAM database and credit the affiliate listed in that row with the commission. 

    • Session Tracking - When you enable this option, JAM will set PHP session variables for affiliate tracking during the affiliate's visit.  If the customer buys during that time, the affiliate who referred that customer will get the sale. Session tracking is limited to the current session of the customer.  

  2. Cookie Timer - Enter how long you want affiliate cookies to last.
  3. Overwrite Existing Affiliate Cookie - Sometimes, a customer clicks on different affiliate's URL links.  If you want to keep the first affiliate as the referring affiliate, disable this setting.  If you want to always overwrite any cookie with the new affiliate cookie, enable this setting.
  4. Enable Duplicate Transaction Monitoring - You can minimize multiple commissions by enabling this setting. Sometimes, customers click "Refresh" on their browsers, and multiple commissions may be recorded.  To minimize this risk, enable this setting. You can select to monitor an IP address only, which works well if you use thank you pages.  Or you can monitor IP and Transaction ID, so any duplicate transactions from the same IP address are monitored.  This option works well with payment processors, such as Paypal.
  5. Duplicate Transaction Monitor in Minutes - If you enable the Duplicate Transaction Monitoring, enter the number of minutes here that the Duplicate Transaction Monitor will wait before allowing any new transactions from the same user.
  6. Append Cookie to URL - If you want the cookie value to be appended to your product URL after it is redirected from an affiliate link, you can enable it here.  For example, if you enable this option, your product URL to redirect to will look like this:

    http://www.domain.com/index.php?jrox=1000-Unknown-1

    *If you want to use JAM's tracking abilities on a different domain, you will have to enable this option and use one of the following methods to set the affiliate cookie in the domain other than where JAM is installed:

    For php, you could use something like this, input on the very first line of your web page:

    PHP Pages:
    =============================


    <?php
    if (!empty($_GET['jrox']))
    {
         $cookie_expires = 1 * 60 * 60 * 24 * 365;
         $cookie_domain = '.your_domain.com'; //DON'T FORGET THE . (dot) before the domain
         setcookie("jrox", $_GET['jrox'], time()+$cookie_expires,"/", $cookie_domain);
    }
    ?>

    This will set the same cookie that your affiliate uses on the different domain, so they can get credited the commission later.

    Change your_domain.com to the current domain name it is redirected to.

    You can change the cookie expiration time by changing the 1 to whatever number you want, then the 365 can be changed to represent the following:

    1 = day
    7 = week
    30 = month
    365 = year

    JavaScript Code:
    =============================


    If you don't use .php pages, try this:

    In between <head> </head> tags of your web page, insert the following JavaScript:

    <script type="text/javascript">
    function Set_Cookie( name, value, expires, path, domain, secure ) {
    var today = new Date();
    today.setTime( today.getTime() );
    if ( expires )
    {
    expires = expires * 1000 * 60 * 60 * 24;
    }
    var expires_date = new Date( today.getTime() + (expires) );

    document.cookie = name + "=" +escape( value ) +
    ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
    ( ( path ) ? ";path=" + path : "" ) +
    ( ( domain ) ? ";domain=" + domain : "" ) +
    ( ( secure ) ? ";secure" : "" );
    }
    function GetJAMVariable(variable) {
      var query = window.location.search.substring(1);
      var vars = query.split("&");
      for (var z=0; z<vars.length; z++) {
        var pair1 = vars[z].split("=");
       if (pair1[0] == variable) {
          Set_Cookie( 'jrox', pair1[1], 365, '/', '', '' );
        }
      }
    }
    </script>

    Then right after the <body> tag:

    <script>
      GetJAMVariable("jrox");
    </script>


    You can change 365 to however many days you want to set the affiliate cookie to last.

    This method may be a bit advanced, if you need help, just post a new topic in the JAM Support Forum, and we'll gladly help.


Email Settings

Email Templates and Settings

Custom Email Templates

You can create custom email templates that you can use over and over again for emailing to your affiliates.  To do this, you can create your own custom email templates by clicking on Settings > Email Templates, Add New Template

Add New Template:

  1. Select Email Type - Select HTML, Text, or Both
  2. Email Template Name - Enter a friendly name for your email template
  3. From Name - Enter the from name that will appear when this email is sent out.
  4. From Email Address - Enter the from email address that will appear when this email is sent out.
  5. Email Subject - Enter the subject for this email template.
  6. Email Template Message - Enter the HTML and /or Text Content of your Email Template.

 Once you've created the template, it will automatically appear in the Load a Custom Template drop-down list in Email Affiliates section.

Email Send Options

JAM has a number of options when sending out emails in JAM. These settings only need to be edited if the default installation of JAM does not work.  Please test your JAM application first before having to edit these settings.

To edit the email sending options, follow these steps:

  1. Open up the /includes/config.php file for editing.  Scroll down to the following line and edit it to your preferences.

    //ENTER "php" or "smtp"
    define("MAILER_SEND_TYPE", "php");
    //THIS NUMBER REPRESENTS THE TOTAL NUMBER OF EMAILS THAT WILL BE SENT VIA THE SCHEDULED JOB AT REGULAR INTERVALS
    //IF YOU WANT TO SEND ALL EMAILS AT ONCE, ENTER 0 (ZERO);
    define("EMAILS_PER_BATCH", "1000");
    //THE EMAIL SERVER YOU WILL BE USING TO SEND EMAILS.  TYPICALLY SET TO "localhost"
    define("SMTP_HOST", "localhost");
    //THIS ENABLES/DISABLES THE NEED FOR SMTP AUTHENTICATION. SET TO "true" IF YOU REQUIRE AUTHENTICATION
    define("SMTP_AUTHENTICATION", false);
    //THE USERNAME NEEDED TO USE TO SEND EMAILS. ONLY NECESSARY WHEN USING sendmail AS THE "MAILER_SEND_TYPE"
    define("SMTP_USERNAME", "smtp_username");
    //THE PASSWORD NEEDED TO SEND EMAILS. ONLY NECESSARY WHEN USING sendmail AS THE "MAILER_SEND_TYPE"
    define("SMTP_PASSWORD", "smtp_password");
    //SMTP PORT NUMBER IF NEEDED
    define("SMTP_PORT", "25");
    //IF YOU WANT TO SEND ALL MASS EMAILS IMMEDIATELY INSTEAD OF WAITING FOR THE CRON JOB TO RUN, SET THIS TO true
    define("JAM_SEND_MASS_EMAILS_IMMEDIATELY", false);
  2. Save the /includes/config.php file and reupload.

Follow Up Email Templates

Follow Up Email Templates are used when you want to utilize the follow-up sequence tool in JAM.  This allows you to send timed emails to your new members separated by a number of days that you specify.  

JAM allows you to schedule up to 20 Follow-Up messages that can go out to your members separated by the number of days that you set.  

This works great for sending your members training tools or affiliate promotion ideas in an automated fashion.

These templates are completely customizable by you, so that it reflects your company image.

For more information on the Affiliate Follow-Up Module, click here

To edit your Follow Up Email Templates,  You first need to enable this option in Settings > Marketing Settings > Enable Follow Ups, then click on Settings>Email Templates, and click Add Follow Up in the Follow Up Templates section to start adding new Follow Up Templates.

Edit Email Template:

  1. Select Email Type - Select HTML, Text, or Both
  2. Email Template Name - Enter a friendly name for your email template
  3. From Name - Enter the from name that will appear when this email is sent out.
  4. From Email Address - Enter the from email address that will appear when this email is sent out.
  5. Email Subject - Enter the subject for this email template.
  6. Email Template Message - Enter the HTML and /or Text Content of your Email Template.

 *Don't forget to include the custom tags for each Follow Up Email Template

How to Use the Built-In HTML Editor

The HTML Editor is a feature in JAM that allows you to add /edit/ and create HTML-based templates and ads easily, with very minimal HTML knowledge.

The HTML Editor is available to use if you use the following browsers:

  1. Internet Explorer 5.5 and up

  2. Netscape / Firefox 1.0 and up

The icons in the HTML Editor can do the following:

 Preview

Search

Paste from Microsoft Word

Undo

Redo

Foreground Color

Background Color

Insert Hyperlink

Insert Image

Insert Table

Absolute

Special Characters

Insert Line

Remove Formatting

View /Edit HTML Source

Setting Up Affiliate Follow-Up Messages

You can create up to 20 follow-up messages to automatically send to your affiliate members.

* This option requires you to have the CRON job setup and running.  If the cron does not run, your messages will not be sent.  Click here for more information on setting up the required CRON job.

Setting up the Affiliate Follow-Up Module

To setup the Affiliate Follow-Up Module, follow these steps:

  1. Click on Settings > Marketing Settings > Enable Follow Ups Option and set this to Enable

  2. Click on Settings > Email Templates > Add Follow Up near the bottom of the page, under the Follow Up Templates section.

  3. In the Add New Template area, go ahead and fill in the appropriate fields:

    Select Email Type
    - Select HTML, Text, or Bothz
    Email Template Name - Enter a friendly name for your email follow up.From Name - Enter the from name that will appear when this email is sent out.
    From Email Address - Enter the from email address that will appear when this email is sent out.
    Email Subject - Enter the subject for this email follow up.
    Email Template Message - Enter the HTML and /or Text Content of your Follow Up.

  4. Click on Save Email Template to save this email follow up.

  5. Repeat these steps for all of your follow up messages, up to a maximum of 20 follow ups.

  6. Once you've finished adding your follow up templates, go back to Settings > Email Templates and scroll down to the Follow Ups  section.  Here you will edit the sequence of your follow ups as well as the number of days each follow will wait before being sent. *Make sure to keep the sequence numbers in numerical order, (for example 1,2,3,4,5,6,7,8,910) as JAM calculates the next follow up sequence according to the next sequence number.

  7. Once you're done updating the sequence of your follow ups, just click on Update Follow-Up Sequence and you should be set.  The next time an affiliate signs up for your program, they will automatically be queued for the first follow up message to be sent on the day set for it.

System Email Templates

System Email Templates are email templates used for certain emailing functions of JAM.  For instance, the Affiliate - Password Reset Template is the email template used when your affiliates request a password reset.  

These templates are completely customizable by you, so that it reflects your company image.

To edit your System Email Templates,  click on Settings>Email Templates, and select the System Email Template to edit.

Edit Email Template:

  1. Select Email Type - Select HTML, Text, or Both
  2. Email Template Name - Enter a friendly name for your email template
  3. From Name - Enter the from name that will appear when this email is sent out.
  4. From Email Address - Enter the from email address that will appear when this email is sent out.
  5. Email Subject - Enter the subject for this email template.
  6. Email Template Message - Enter the HTML and /or Text Content of your Email Template.

    *Don't forget to include the custom tags for each System Email Template

 

Welcome Email Templates

Welcome Email Templates are email templates that go out after an affiliate / member signs up with you.  This is used to introduce your website / business to the new member, along with any user details that they need to know, like affiliate URL, username, password, and so forth.

Each Welcome Email is linked to a Program that you have created in JAM.  For example, the first Welcome Email Template is used for the default program in JAM, so all users who sign up for this program will receive this Welcome Email Template.

These templates are completely customizable by you, so that it reflects your company image.

To edit your Welcome Email Templates,  click on Settings>Email Templates, and select the System Email Template to edit.

Edit Email Template:

  1. Select Email Type - Select HTML, Text, or Both
  2. Email Template Name - Enter a friendly name for your email template
  3. From Name - Enter the from name that will appear when this email is sent out.
  4. From Email Address - Enter the from email address that will appear when this email is sent out.
  5. Email Subject - Enter the subject for this email template.
  6. Email Template Message - Enter the HTML and /or Text Content of your Email Template.

 *Don't forget to include the custom tags for each Follow Up Email Template


Cron Jobs

Setting up CRON jobs or scheduled tasks in JAM

JAM Automatic Database Backup

JAM supports the daily, weekly, or monthly automatic database backup of JAM.

*Your web server must support the "exec" command in PHP. If you do not know if your site supports this, please ask your webhost or systems administrator.

To set this up, follow these steps:

  1. create a backup folder on your web hosting account.  We suggest creating this outside your web directory, so that it is not accessible by outsiders. For example, if your web directory is /home/username/public_html, then create the backup folder in /home/username/backup.

    *If you cannot create this folder, you can use the backup folder in your JAM installation directory, although this may be insecure.
  2. Change the permissions to this backup folder to 777 or world-writeable, so that JAM can write data to it.
  3. Open up your includes/config.php for editing.  Scroll down to this area and edit the following to suite your backup preferences:

    //SET TO "true" IF YOU WANT TO ENABLE AUTOMATIC BACKUPS
    define("DB_AUTOMATIC_BACKUPS", false);

    //IF YOU WANT TO ENABLE AUTOMATIC BACKUPS, TYPE IN THE PHYSICAL FOLDER LOCATION HERE
    define("DB_BACKUP_LOCATION", "/home/username/backup");

    //ENTER THE BACKUP SCHEDULE YOU WANT. POSSIBLE VALUES ARE: daily, weekly, monthly
    define("DB_BACKUP_SCHEDULE", "weekly");

    //DAY OF THE WEEK TO DO WEEKLY BACKUPS ON. 
    // POSSIBLE VALUES ARE Sun, Mon, Tue, Wed, Thu, Fri, Sat, Sun. ONLY VALID FOR WEEKLY-BASED BACKUPS
    define("DB_BACKUP_DAY_WEEKLY", "Sun");

    //ENTER THE DAY OF THE MONTH YOU WANT TO DO MONTHLY BACKUPS ON. ONLY VALID FOR MONTHLY-BASED BACKUPS
    define("DB_BACKUP_DAY_MONTHLY", "1");
  4. Save this file and reupload to your JAM /includes folder
  5. Setup the following CRON job. 

    /usr/bin/wget -O - http://www.yourdomain.com/your_affiliate_directory/includes/backupdb.php?pw=cron_password

    Make sure to change yourdomain.com/your_affiliate_directory  to point to your JAM installation directory and the cron_password  to reflect the cron password in your includes/config.php file on this line:

    define("JAM_CRON_JOB_PASSWORD", "cron_password");  

    If your web host does not support the /usr/bin/wget command, try these other ones:

    php -q /home/username/public_html/affiliates/includes/backupdb.php pw=cron_password

    /usr/bin/lynx-protected -accept_all_cookies http://www.yourdomain.com/your_affiliate_directory/includes/backupdb.php?pw=cron_password

  6. Make sure that it matches the preferences you set in your /includes/config.php.  For example, if you selected a weekly backup, and you want to run it on Sunday, then schedule the CRON job to run once a week, on Sundays.
  7. After the backup runs, check the backup folder to make sure that the databse backup file has been generated.

Required CRON job for JAM

JAM requires at least one cron job to run every 10 minutes.  If your host cannot run it every 10 minutes, then you can run it every 15 or 30 minutes, although we recommend it to be 10.

*Make sure that the CRON job is scheduled to run at the 10 minute interval of the clock, such as 1:00, 1:10, 1:20, 1:30, 1:40, 1:50

This is the required CRON job you need to run every 10 minutes:

/usr/bin/wget -O - http://www.yourdomain.com/your_affiliate_directory/includes/cron.php?pw=cron_password

Make sure to change yourdomain.com/your_affiliate_directory  to point to your JAM installation directory and the cron_password  to reflect the cron password in your includes/config.php file on this line:

define("JAM_CRON_JOB_PASSWORD", "cron_password");  

If your web host does not support the /usr/bin/wget command, try these other ones:

php -q /home/username/public_html/affiliates/includes/cron.php pw=cron_password

/usr/bin/lynx-protected -accept_all_cookies http://www.yourdomain.com/your_affiliate_directory/includes/cron.php?pw=cron_password

JAM also has other optional cron jobs that you may want to enable.  These include the affiliate report alerts and automatic database backups

  1. JAM Automatic Database Backup
  2. Sending out Affiliate Email Reports

Sending out Affiliate Email Reports

JAM supports the automatic sending of affiliate statistics and reports via email.  This is setup via a cron job setting.

To set this up, follow these steps:

  1. Click on Settings > Email Templates > Affiliate - Monthly Reports Template
  2. Edit this template to suit your preference.  This is the same email template that will be used when sending out affiliate reports.
  3. Open up your /includes/config.php file for editing.
  4. Scroll down to the following area, and edit it to suit your preference:

    //SET WHEN AFFILIATE MONTHLY REPORTS WILL GO OUT
    //CHANGE TO daily or weekly or monthly
    define("JAM_SEND_AFFILIATE_REPORTS", "monthly");
  5. Setup the cron job for this:

    /usr/bin/wget -O - http://www.yourdomain.com/your_affiliate_directory/includes/affreports.php?pw=cron_password

    Make sure to change yourdomain.com/your_affiliate_directory  to point to your JAM installation directory and the cron_password  to reflect the cron password in your includes/config.php file on this line:

    define("JAM_CRON_JOB_PASSWORD", "cron_password");  

    If your web host does not support the /usr/bin/wget command, try these other ones:

    php -q /home/username/public_html/affiliates/includes/affreports.php pw=cron_password

    /usr/bin/lynx-protected -accept_all_cookies http://www.yourdomain.com/your_affiliate_directory/includes/affreports.php?pw=cron_password

  6. Make sure that it matches the preferences you set in your /includes/config.php.  For example, if you selected a weekly schedule, and you want to run it on Sunday, then schedule the CRON job to run once a week, on Sundays.  If it is set for daily reports, set it to run once a day. For monthly reports, set it to run on the 1st of the month.

 

What is a CRON Job?

A CRON job, also known as a scheduled task, is a process that your web server/computer runs at preset intervals.  This operation usually does things such as process management tasks, update data, or do backup at the preset time that it is configured to do so.

Here are some examples of what a CRON job does:

  1. Backup your data files at 1:00 AM every day to a specified archive folder
  2. Check for any recurring commissions that need to be created on a daily basis
  3. Send out email alerts every night with reports on how your system is running

JAM requires the use of CRON jobs to run its daily management tasks and to setup recurring commissions, if any. Please check to make sure your web host supports CRON or some other sort of task scheduler whereby you can run a specific program at least every 30 minutes.


Customization

Customizing Payment Invoices

If you plan to use the Payment Invoices feature to print out invoices for paying your affiliates, you can customize it by opening and editing the the following template file:

admin/includes/html/themes/theme_name/templates/forms/form_admin_pay_affiliates_invoice.php

*Change theme_name to the name of the theme you are currently using.

You can now edit the file as you see fit.  Just make sure to keep the PHP Variables intact if you want it to auto-generate the data for you before printing it.

Editing Language Files

You can edit the included language files in JAM by going to the following folder:

/includes/lang/LANGUAGE/index.php

LANGUAGE is the name of the language you want to edit.

One language file is used for both the admin and members area.

Current language files available in JAM are:

You can add your own language file as well.  For instructions on how to do this, click here

 

How to Change the Affiliate Folder Name Where JAM is Installed

If you want to change the folder where you installed JAM, follow these steps:

you can change the folder name in /includes/config.php, under

define("HOME_BASE_DIRECTORY", "/home/username/public_html/affiliates");

//ENTER THE NAME OF YOUR AFFILIATE PROGRAM DIRECTORY
//DO NOT INCLUDE A TRAILING SLASH
define("HOME_BASE_AFFILIATE_DIRECTORY", "/affiliates");

you can then edit the URL to Redirect to, URL to Redirec to after signup, and URL to redirect to After Login in Programs > Edit Program

Members Area Theme Customization

The Affiliate Members Area can be customized to fit your style.  Currently, there are eight included themes that you can quickly use for your members area:

  1. Default

  2. Darknight

  3. Simplelight

  4. Redeye

  5. Smooth

  6. Greenland

  7. Blackice

  8. xblue

These can be changed by going to Programs > Edit Program > Default Member Site Theme in the Admin Area.

Adding a Custom Theme

You can also add your own custom theme just by copying the same file structure as one of the themes above, and uploading to the /includes/html/themes folder with a unique name.

To add a custom theme, follow these steps:

  1. Download one of the theme folders listed above to your computer, for instance, the xblue theme.
  2. Rename the folder to something unique, like custom1
  3. Edit the header.php, footer.php, style.css and images as you see fit.  Make sure that all file names stay the same.
  4. Once you've edited this theme to your liking, upload the entire custom1 folder into /includes/html/themes.
  5. Log into JAM and go to Programs > Edit Program > Default Member Site Theme in the Admin Area. 
  6. Select your new theme.
  7. You now have a custom theme for your designated program.
  8. Whenever you add a new program, you can keep using this theme or create a new theme for your new program as well.


Custom Links

Information on custom affiliate links

Appending member fields to your links

JAM allows you to append certain member information to the following affiliate links for further processing or use:

  1. URL to Redirect to - the URL to where your customers are sent to
  2. URL to Redirect to After Signup - the URL to where your customers are sent to after signup

You can use the following variables for appending to the URL:

Here's an example of how you could use this:

You want to send your affiliate's first name, last name and username to your web page after signing up. Your URL to Redirect After Signup is set at http://www.domain.com/web1.php. To append this data so that it is accessible on that page as variables, change your URL to Redirect to After Signup to this:

http://www.domain.com/web1.php?fname=%%%FIRST_NAME%%%&lname=%%%LAST_NAME%%%&uname=%%%USERNAME%%%

Now, when an affiliate signs up, they will be redirected to this link but their first name, last name, and username will be available for use as $_GET variables, like this:

http://www.domain.com/web1.php?fname=Joe&lname=Test&uname=joetest

You can now manipulate these variables for you to use on your pages as you see fit.

*Security Note - Make sure you only send out data that is relevant to your needs.  Do not append data that may compromise your members account or privacy.

 

 

 

Customizing Admin and Member Help Links

To have the little help icon in both the Admin area and Members area point to a custom support page, open up the includes/config.php and edit the following lines with the full URL of the support pages:

//HELP URL SETTINGS
define("ADMIN_HELP_URL", "http://jam.jrox.com/userguide/admin/"); //URL TO LAUNCH THE ADMIN HELP GUIDE
define("MEMBER_HELP_URL", "http://jam.jrox.com/userguide/member/"); //URL TO LAUNCH THE MEMBER HELP GUIDE

How To Allow Affiliates to Redirect to Any Custom Page on your Website

JAM has the option to let your affiliate members point their affiliate links to any page on your site.

To do this, follow these steps:

  1. Go to Settings > Affiliate Settings
  2. Set the Allow Affiliates to Redirect to Custom URL setting to Yes
  3. Set the Select Affiliate Links To Use to Regular
  4. Save your Settings
  5. You now have given your affiliates the option to append any URL to their affiliate link by setting the jxURL variable at the end of their link, like this:

    http://www.domain.com/affiliates/jrox.php?id=1000&jxURL=http://www.yourdomain.com/anypage.html

*If you will allow them to redirect to web pages that have variables in the URL, then you need to replace every & symbol with its encoded counterpart %26. For example, if your URL is like this:

http://www.domain.com/store/index.php?id=1&category=4&product=5

You will need to tell your affiliates to link to it like this:

http://www.domain.com/affiliates/jrox.php?id=1000&jxURL=http://www.domain.com/store/index.php?id=1%26category=4%26product=5

How to change the jrox.php file to your own custom file name

* This option is only available on JAM 1.6.2 and higher

JAM allows you to rename the jrox.php file to your own custom file.  To do this follow these directions:

  1. Open up your /includes/config.php file for editing
  2. Scroll to the following line, and change it to your own custom name.  Do not include the .php file name:

    define("JAM_AFFILIATE_LINK_FILE", "jrox");
  3. Rename your jrox.php file to your new file name.
  4. JAM will now use your own custom file name for all affiliate links.

How To Point an Affiliate Link to a Replicated Website

If you use the Replicated Website Option in JAM, you can point your regular affiliate links automatically to your affiliate's replicated web page.

To do this, follow these steps:

  1. First, enable the Replication Feature.  For instructions on this, click here
  2. Go to Programs > Edit Program.
  3. Edit the URL To Redirect To option and type in the following:

    http://www.YOURDOMAIN.COM/AFFILIATES/PAGES/%%%USERNAME%%%.php

    *Make sure to change YOURDOMAIN.COM/AFFILIATES to point to your JAM URL.

    *Make sure to change PAGES to point to the directory that you replicated websites are at.

    *Make sure to change .php to reflect the proper extension you set in your /includes/config.php

  4. Save your Settings.
  5. Go to Settings > System Settings and make sure that the Append Cookie to URL is set to Disable
  6. If you still need to append the cookie to your URL, just change the URL to Redirect To, like this:

    http://www.YOURDOMAIN.COM/AFFILIATES/PAGES/%%%USERNAME%%%.php?jrox=%%%COOKIE_ID%%%
  7. Now, all affiliate links will go to your affiliate's replicated web page.

How to Redirect Customers using the jxURL option when you have a URL that has variables

For URLs that have variables, such as shopping cart products, you will need to edit the URL  so that JAM can redirect it properly.

For example, if your URL is similar to this, or it has the ampersand (&) in it:

http://www.domain.com/store/index.php?main_page=product_info&products_id=76

you will need to change the "&" to "%26", like this:
 
http://www.domain.com/store/index.php?main_page=product_info%26products_id=76

How to Set An Affiliate Cookie on a Separate Web Page Using JavaScript without Redirecting from an Affiliate Link

If you want to set the affiliate cookie on a separate web page automatically without having to redirect the user with an affiliate link, you can set the affiliate cookie on that page using JavaScript.

This is useful for things such as the replicated web page, so that the affiliate cookie gets set automatically when a visitor visits the web site.  This means that the visitor does not necessarily have to click on an affiliate link for them to be tracked.

To set this up, follow these steps:

  1. Open up the separate HTML page that you want to set the cookie on.  This page has to be on the same domain name as your JAM installation.
  2. Copy the following JavaScript into your web page:

    <script language="JavaScript" type="text/javascript" src=http://www.domain.com/affiliates/setcookie.php?mid=1000></script>
  3. Edit the 1000 to be the correct affiliate ID.  If you are using the replicated site, set this to be %%%MEMBER_ID%%%, so that the affiliate ID automatically gets filled in.
  4. If you want to track it for certain programs, append the pid variable to the end of fthe URL, like so:

    www.domain.com/affiliates/setcookie.php?mid=1000&pid=2
  5. Make sure to change the www.domain.com/affiliates to point to your JAM installation URL.

How To Set the JAM Affiliate Cookie in a Remote Domain

If you host several websites on different domains and want to use JAM for affiliate management of those domains, you can still do it.

JAM allows you to transmit the affiliate cookie to a different domain altogether to keep track of affiliate cookies. It can then be set on the different domain, and read when payment is made.

To set the cookie in a separate domain, you need to go to Settings > System Settings > Append Cookie to URL and set that to Enable.

The cookie value will now always be appended to the redirect URL of your product, even if it is in a separate domain.

For this to work, you will need to either append a small PHP or JavaScript code on the web page of your redirect URL.

For php, you could use something like this, input on the very first line of your web page:

PHP Pages:
=============================


<?php
if (!empty($_GET['jrox']))
{
     $cookie_expires = 1 * 60 * 60 * 24 * 365;
     $cookie_domain = '.your_domain.com'; //DON'T FORGET THE . (dot) before the domain
     setcookie("jrox", $_GET['jrox'], time()+$cookie_expires,"/", $cookie_domain);
}
?>


This will set the same cookie that your affiliate uses on the different domain, so they can get credited the commission later.

Change your_domain.com to the current domain name it is redirected to.

You can change the cookie expiration time by changing the 1 to whatever number you want, then the 365 can be changed to represent the following:

1 = day
7 = week
30 = month
365 = year



JavaScript Code:
=============================


If you don't use .php pages, try this:

In between <head> </head> tags of your web page, insert the following JavaScript:

<script type="text/javascript">
function Set_Cookie( name, value, expires, path, domain, secure ) {
var today = new Date();
today.setTime( today.getTime() );
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function GetJAMVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var z=0; z<vars.length; z++) {
    var pair1 = vars[z].split("=");
   if (pair1[0] == variable) {
      Set_Cookie( 'jrox', pair1[1], 365, '/', '', '' );
    }
  }
}
</script>


Then right after the <body> tag:

<script>
  GetJAMVariable("jrox");
</script>


You can change 365 to however many days you want to set the affiliate cookie to last.

Options for Affiliate Links

JAM supports a number of different types of affiliate links.

  1. Regular - http://www.domain.com/affiliates/jrox.php?id=1000
  2. Search Engine Friendly - http://www.domain.com/affiliates/id/1000
  3. Dynamic Subdomain - http://affiliate.domain.com

Alternatively, JAM also supports affiliate usernames in the URL instead of the affiliate ID:

  1. Regular - http://www.domain.com/affiliates/jrox.php?id=username
  2. Search Engine Friendly - http://www.domain.com/affiliates/id/username

Finally, JAM allows you to encrypt affiliate links:

  1. Regular Encrypted - http://www.domain.com/affiliates/jrox.php?id=Ml8zWmQHchpoCWoPdRk3BzgJ
  2. Search Engine Friendly Encrypted - http://www.domain.com/affiliates/id/Ml8zWmQHchpoCWoPdRk3BzgJ

For instructions on how to setup search-engine-friendly URLs, click here

For instructions on how to setup dynamic subdomain URLs, click here

Pointing Individual Affiliate Links to Custom Web Pages

Sometimes, you may have an affiliate that requires a special web page you need to point to.

JAM gives you the option of customizing where a particular affiliate's link will point to.  This option gives you a way for certain affiliates to point to a particular website, instead of the default web page that you've specified in a product group or marketing tool.  By enabling this option, all URLs will be overridden and the affiliate's link will go directly to the site you specify.

To enable custom affiliate urls:

  1. Go to the Affiliate you want to edit by clicking on Affiliates > Edit / Delete Affiliates on the Main Menu

  2. Click on the Edit icon to edit the affiliate.

  3. Scroll down to the option that says Use Custom URL > Select Enable

  4. Type in the URL you want this particular affiliate's link to be redirected to in the Custom Affiliate URL field.

  5. Click Save Member Details.

  6. Your affiliate's link will now be redirected to the custom URL specified every time.

Setting Up Dynamic Subdomain Affiliate Links

*Setting up dynamic subdomains takes a bit of technical expertise.  If you are not familiar with editing your server configuration files, please do not attempt this or at least consult your system administrator first.

Dynamic Subdomain Affiliate Link Requirements:

Access to your DNS records

You will need to be able to edit your DNS or name server records to enable dynamic subdomains.

Access to your Apache Web Server Configuration File

You will need to be able to edit your Apache's httpd.conf file to enable dynamic subdomains.

Steps to Enable Dynamic Subdomain Affiliate Links:

  1. Your home page must be in php, such as index.php
     

  2. Edit Your Name Server / DNS Records - You will need to enter a wildcard subdomain entry for your DNS records.  If you use BIND as your name server, it would go as the last line on your DNS record as follows:

    @               IN      SOA     ns1.jrox.com. admin.jrox.com. (
                            4  ; serial
                            8H ; refresh
                            2H ; retry
                            2W ; expire
                            1D ; default_ttl
                            )
                   IN      A       192.168.1.233
                   IN      NS      ns1.jrox.com.
                   IN      NS      ns2.jrox.com.
    www        IN      A       192.168.1.233
    *             IN      A       192.168.1.233

     

     

  3. Edit Your Apache httpd.conf file - You will need to edit your httpd.conf file and add a ServerAlias entry near the bottom of your Virtual Host record as follows:

    <VirtualHost 255.255.255.0>
    DocumentRoot /home/username/public_html
    ServerName
    www.domain.com
    ServerAlias domain.com
    ServerAlias *.domain.com
    </VirtualHost>

     

     

  4. Verify that mod_rewrite is enabled in Apache - To enable the search-engine friendly affiliate links, you must have mod_rewrite enabled in Apache.  To verify this, ask your systems administrator.

  5. Enable Dynamic Subdomain Links option - To enable / disable dynamic subdomain affiliate links, click on Settings>Affiliate Settings, select Dynamic on the Select Affiliate Links To Use option.

  6. List and Reserve all of your current subdomains - You will need to get a list of the subdomains you currently use now, and type those into the Subdomain List, under Settings>Affiliate Settings, so that it is not used.  Type it in comma separated format, as follows: www,ftp,mail,webmaster

  7. Reserve the "id" folder name - You will need to use the folder name id for redirecting dynamic subdomain links, so don't use that for anything else.

  8. Upload / Edit .htaccess file - You must also upload and/or edit a .htaccess file into your root web directory.  There is a sample .htaccess file included with your program, which is located in the /docs folder, named "htaccess2.txt".  You can just upload this file into your affiliates directory and rename it to ".htaccess".  Make sure you are not overwriting any other .htaccess files in your hosting directory.  If you are already using a .htaccess file, make sure to append the following line to the end of your .htaccess file:

    RewriteRule ^id/(.+)$ /index.php?id=$1 [l,nc]

  9. Update your index.php Home Page - Once you have finished making the previous configuration changes, you will need to edit your index.php home page, (This page is Your Own Home Page, not any page within your affiliate directory) and add the following lines to the very top of your home page:

    <?php
     include 'PATH_TO_YOUR_AFFILIATE_DIRECTORY/dynamic.php';
    ?>

    * Change PATH_TO_YOUR_AFFILIATE_DIRECTORY to point to your existing affiliate directory

  10. Test Your Links - Test your Affiliate Links to make sure they are redirecting properly.
     

Setting Up Search-Engine Friendly Affiliate Links

Search- Engine Affiliate Link Requirements:

Verify that mod_rewrite is enabled in Apache

To enable the search-engine friendly affiliate links, you must have mod_rewrite enabled in Apache.  To verify this, ask your systems administrator.

Reserve the "id" folder name

You will need to use the folder name id for redirecting se-friendly links, so don't use that for anything else.

Enable SE-Friendly Links option

To enable / disable se-friendly affiliate links, click on Settings > Affiliate Settings, select SE-Friendly on the Select Affiliate Links To Use option.

Upload / Edit .htaccess file

You must also upload and/or edit a .htaccess file into your /affiliates directory.  There is a sample .htaccess file included with your program, which is located in your affiliates folder, named htaccess.txt.  You can just rename it to ".htaccess".  Make sure you are not overwriting any other .htaccess files in your hosting directory. If you are already using a .htaccess file, make sure to append the following line to the end of your .htaccess file:

RewriteRule ^id/(.+)$ jrox.php?id=$1 [l,nc]

Showing Your Affiliate Name / ID on Web Pages

If you'd like to showcase your affiliate's name or their ID code on your web pages, you need to insert the following JavaScript where you want their Name / ID to appear.

To view an affiliate's full name:

<script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/your_affiliate_directory/showaff.php?id=fname"></script>

To view an affiliate's  username:

<script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/your_affiliate_directory/showaff.php?id=name"></script>

To view an affiliate's website URL:

<script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/your_affiliate_directory/showaff.php?id=website"></script>

To view an affiliate's custom ID:

<script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/your_affiliate_directory/showaff.php?id=customid"></script>

To view an affiliate's ID Number:

<script language="JavaScript" type="text/javascript" src="http://www.yourdomain.com/your_affiliate_directory/showaff.php"></script>

*Change yourdomain.com to your domain name and your_affiliate_directory to the name of your affiliate directory.

Using usernames instead of IDs for affiliate links

JAM allows you to use usernames instead of IDs when affiliate links are generated.

To do this, follow these steps.

  1. Click on Settings > Affiliate Settings
  2. Set the Use Usernames as Affiliate URL IDs as Yes
  3. JAM will now generate affiliate links using the affiliate username, like this:

    Regular - http://www.domain.com/affiliates/jrox.php?uid=username
    Search-Engine Friendly - http://www.domain.com/affiliates/uid/username

 


Language

How to add or edit the language files

Adding a New Language File

JAM allows you to add new language files quite easily. 

First, you need to translate one of the included language files to your chosen language.  These are located in:

/includes/lang/LANGUAGE/index.php

LANGUAGE is the name of the language available.

Once you've finished translating it, just name upload it to a new language folder in /includes/lang/NEW_LANGUAGE/index.php

NEW_LANGUAGE is the name of your new language file

Once it is uploaded, you can go to Settings > System Settings > Default Site Language and it will be available as a drop down option.  It will also be available as an option in the Language Selector, if you have this enabled.

Editing Language Files

You can edit the included language files in JAM by going to the following folder:

/includes/lang/LANGUAGE/index.php

LANGUAGE is the name of the language you want to edit.

One language file is used for both the admin and members area.

Current language files available in JAM are:

You can add your own language file as well.  For instructions on how to do this, click here

 


Members Area

How to customize the look and feel of the members area

Adding / Editing Custom Content

Adding custom content in JAM is quite easy.  Just follow these steps:

  1. Click on Programs > Content Publisher
  2. Click on the Custom Content link.
  3. Start typing in your content in the built-in HTML editor.

Here's a short description of all fields:

Add Custom Content:

  1. HTML Editor - Enable/Disable the HTML editor for use
  2. Program Name - Select which program you want this content page to be accessible from
  3. Title - The title of your content page
  4. HTML Content - The content of your message is typed in here.  You can use the custom tags to specify your affiliate's unique information

When you're done creating your content, just make sure to select Yes in the Enable section on the top right corner of the form, and hit Submit. This will automatically be available in your affiliate members area once you link to it.

Adding / Editing Members Area Content

You can add/edit your Members Area Main Menu easily.  Just follow these steps:

  1. Click on Programs > Content Publisher
  2. Click on the Main Menu link.
  3. Start typing in your content in the built-in HTML editor.

Here's a short description of all fields:

Terms of Service Content Pages:

  1. HTML Editor - Enable/Disable the HTML editor for use
  2. Program Name - Select which program you want to edit the program description for.
  3. Title - The title of your program description page.
  4. HTML Content - The content of your message is typed in here.

When you're done editing, just hit Submit.

* This content will show up on the very first page of your affiliate members area main menu.

Adding Custom HTML sections in your Members Area

To Add a Custom HTML Section to the Member's Area Main Menu:

includes/html/templates/custom/template_member_custom_section_home.php.CUSTOM

Edit this file as you see fit, save it as template_member_custom_section_home1.php, and upload it into the custom directory. You will now have a customized section in your affiliate members area without having to edit any other template file.

To Add a Custom HTML Section to the Member's Area Affiliate Tools Page:

includes/html/templates/custom/template_member_custom_section_tools.php.CUSTOM

Edit this file as you see fit, save it as template_member_custom_section_tools1.php, and upload it into the custom directory. You will now have a customized section in your affiliate tools area without having to edit any other template file. By doing this, you can post affiliate downloads, papers, PDFs for your affiliates to view.

To Add Custom