Creatingtoplists
Previous  Next

When you've created your templates, you can start creating toplists, in the account->toplists screen.

You can create 2 kinds of toplist, 'hardlink' toplists and 'normal' toplists.

Normal toplists,

Creates a standard toplist.

Fields:

Name                                       - the name of your toplist

            Hardlink                                    - indicate if its a hardlink toplist (see below)

            Sort Type                                  - on which field should the list be sorted

            Template                                  - the template file, located in the templates folder of the TradeControl server application. Make sure, this is the filename only, not a path.
            
            Target file(s)                             - the absolute path of the result file (for example /www/mysite/inc/mytoplist.php, or /www/mysite/inc/mytoplist_[ACCOUNT_DOMAIN].php)

            Interval                                     - the interval in minutes, after which a toplist should be recreated
            
            From                                        - the offset of the toplist
            
            To                                            - the maximum of the toplist (not the amount)


Hardlink toplists.

Creates a toplist file, for every niche, and only include the trades with the 'HardLink' enabled.

Fields:

(all the fields in the normal toplist)

HardLink Container Template     - A template for the including all HardLink files. Use the code [FILENAME] , for example: <?php include '[FILENAME]'; ?> This is mainly usefull, if you want one large summary of hardlink, seperated by niche, and you have many niches.

HardLink Container File             - The output file for encapsulating all generated Hardlink files

Using hardlink toplists, you can use wildcards in your target file(s):-

(for example, target files)
/www/mysite/inc/inc_hardlink_*.php

This will create a file for every niche you have. Par default it will create a NONICHE file, in this case:
/www/mysite/inc/inc_hardlink_NONICHE.php

Including all trades without a niche.

(for example, if you have 2 niches, Blond and Big, the files:

/www/mysite/inc/inc_hardlink_Blond.php and
/www/mysite/inc/inc_hardlink_Big.php

would be created.

Another wildcard you can use in the target file, is the '[ACCOUNT_DOMAIN]' wildcard.
This will insert the domain of the account it is generated for.

For example, if you have a toplist created on mydomain.com, and you have 2 niches, Blond and Big, you can do the following:-

Insert the following in the target file input box:-
/www/mysite/inc/inc_hardlink_[ACCOUNT_DOMAIN]_*.php

This will generate the following files:-

/www/mysite/inc/inc_hardlink_mydomain.com_Big.php
/www/mysite/inc/inc_hardlink_mydomain.com_Blond.php
/www/mysite/inc/inc_hardlink_mydomain.com_NONICHE.php

Adding to one account

This adds the toplist to just one account.

Adding to all local accounts

This adds the toplist to all local accounts, useful if you have added wildcards in your target files, and you do not want to add toplists manually to all your accounts.

All active trades as hardlink

This will set the Hardlink status of all active trades, in ALL accounts to active.

graphic