2.) File and Directory Structure
All third party scripts must be uploaded into the /xflow_data/scripts/ directory of the web server. Every time one of many actions occur, xFlow will check to see if a script exists at the needed location, and if exists, will automatically execute that script. The below table lists the exact location where all scripts must be placed, and the action which will execute them.

All locations listed in the below table are relative to the /xflow_data/scripts/ directory. For example, if the location is "/database/create.pl", the actual location of the script is /xflow_data/scripts/database/create.pl.

Action
Script Location
Description
New member created
/database/create.pl
When a new member is added to the database
Member deleted
/database/delete.pl
When any member is deleted from the database
Member activated
/database/activate.pl
When any member in the database, is activated
Deactivated
/database/deactivate.pl
When any member in the database, is deactivated
Member type changed
/database/member_type.pl
When the member type of any member changes
Transaction added
/transaction/[TRANSID].pl
When a new transaction is placed into the database, on any member's account. The [TRANSID] represents the ID# of the transaction which was added. (explained below)
Downline position created
/genealogy/create/[PROGRAMID].pl
When a downline position is created in the [PROGRAMID] program structure
Downline position deleted
/genealogy/delete/[PROGRAMID].pl
When a downline position is deleted from the database, in the [PROGRAMID] program structure
Matrix filled
/genealogy/matrix_fill/[PROGRAMID].pl
When a member fills their matrix with the maximum number of members, in the [PROGRAMID] program structure.


As you have noticed, the location for all transaction scripts is /transaction/[TRANSID].pl. To determine [TRANSID], go to the Transaction->Transaction Settings menu of the Admin Control Panel. Next, click on the appropriate View Details link, to find the needed transaction. The table on the next page contains an ID column, which is the [TRANSID]. For example, if the ID# of the transaction is 108, the location of the script would be /transaction/108.pl. The same goes for the [PROGRAMID] in the geneology scripts. To determine [PROGRAMID], simply go to the Setup->Program Settings menu of the Admin Control Panel. A table will be displayed, which includes the ID# of every program structure.