[an error occurred while processing this directive] [an error occurred while processing this directive]
AT CORE documentation

ATC - trade types


The ATXv2 toplist engine accepts can build webpages from your trades database, based on a template file.
ATXv2 allows you to control the output via the template system, which supports a large amount of tags and extensions.
On this page you will find the following
1) toplist syntax codes: which codes the template system supports to display your trades data.

2) toplist extensions: toplist extensions allow you to set conditions trades must meet in order to get listed in the toplist

3) examples: several ready to go examples of toplists, with explanations


1. Toplist Syntax Codes

code in templateoutput
Trade info
%%tid_000%%trade id
%%dom_000%%domain
%%url_000%%url
%%lnk_000%%link
%%tit_000%%title
%%des_000%%description
%%img_000%%image
%%att00_000%%custom attribute 1
%%att01_000%%custom attribute 2
%%att02_000%%custom attribute 3
Stats of last 60 minutes
%%rin60_000%%raw hits in
%%uin60_000%%unique hits in
%%out60_000%%hits sent to trade
%%clk60_000%%raw clicks
%%cef60_000%%effective clics
%%rec60_000%%repeated clicks
%%ctt60_000%%to-trade clicks
%%ctg60_000%%to-gallery clicks
Stats of last 24 hours
%%rin24_000%%raw hits in
%%uin24_000%%unique hits in
%%out24_000%%hits sent to trade
%%clk24_000%%raw clicks
%%cef24_000%%effective clics
%%rec24_000%%repeated clicks
%%ctt24_000%%to-trade clicks
%%ctg24_000%%to-gallery clicks
Stats of last 7 days*
%%rin07_000%%raw hits in
%%uin07_000%%unique hits in
%%out07_000%%hits sent to trade
%%clk07_000%%raw clicks
%%cef07_000%%effective clics
%%rec07_000%%repeated clicks
%%ctt07_000%%to-trade clicks
%%ctg07_000%%to-gallery clicks
Stats of all time
%%rin99_000%%raw hits in
%%uin99_000%%unique hits in
%%out99_000%%hits sent to trade
%%clk99_000%%raw clicks
%%cef99_000%%effective clics
%%rec99_000%%repeated clicks
%%ctt99_000%%to-trade clicks
%%ctg99_000%%to-gallery clicks


%%dom_000%% prints the first domain.
%%dom_001%% prints the second domain.
%%dom_002%% prints the third domain, etc.




2. Toplist Extensions

Toplist Extensions allow you to extend to basic functionality of a toplist system, by adding conditions.
These conditions act like filters, they only allow a trade to get listed in the toplist when it meets a certain condition.
To use the Toplist Extensions System, place the following code at the absolute top of your toplist template

<tlxt>
domains=google.com,sex.com,porn.com,sometrade.com
condition=value
rin60=50
rin24=600
</tlxt>

The format is condition=value
In this example, there are 3 conditions

domains=google.com,sex.com,porn.com,sometrade.com
This will only load the trades google.com, sex.com, porn.com and sometrade.com

rin60=50
This will only load trades that have sent at least 50 hits in the last 60 minutes

rin24=600
This will only load trades that have sent at least 600 hits in the last 24 hours.

ATXv2 supports a lot more extensions:
extensioncondition
conditions based on last 60 minutes
rin60=XXtrade needs to have at least XX raw ins in the last 60 minutes
uin60=XXtrade needs to have at least XX unique ins in the last 60 minutes
out60=XXtrade needs to have at least XX outs in the last 60 minutes
cef60=XXtrade needs to have at least XX effective clicks in the last 60 minutes
ctt60=XXtrade needs to have at least XX clicks to trade in the last 60 minutes
ctg60=XXtrade needs to have at least XX clicks to galleries in the last 60 minutes
conditions based on last 24 hours
rin24=XXtrade needs to have at least XX raw ins in the last 24 hours
uin24=XXtrade needs to have at least XX unique ins in the last 24 hours
out24=XXtrade needs to have at least XX outs in the last 24 hours
cef24=XXtrade needs to have at least XX effective clicks in the last 24 hours
ctt24=XXtrade needs to have at least XX clicks to trade in the last 24 hours
ctg24=XXtrade needs to have at least XX clicks to galleries in the last 24 hours
conditions based on last 7 days *
rin07=XXtrade needs to have at least XX raw ins in the last 07* days
uin07=XXtrade needs to have at least XX unique ins in the last 07* days
out07=XXtrade needs to have at least XX outs in the last 07* days
cef07=XXtrade needs to have at least XX effective clicks in the last 07* days
ctt07=XXtrade needs to have at least XX clicks to trade in the last 07* days
ctg07=XXtrade needs to have at least XX clicks to galleries in the last 07* days
additional conditions
cprod=XXtrade need a raw click prod of at least XX % during the past 24 hours (raw clk / raw in)
domains=a.com,b.comtrade domain must be a.com or b.com
skipdomains=c.bom,d.comtrade domain must not be c.com or d.com
group=toptradestrade must be listed in the group "toptrades"


* the amount of days is set in the ATX admin,
via menu --> stats --> main overview --> settings --> display the statistics of the past __ days
The syntax of the extension remains the same, always ending with 07



3. Toplist Examples

A toplist link is constructed in the following way:
<a href="/cgi-bin/a2/out.cgi?id=66&l=bigtop&u=http://url_of_trade.com">visit my friend</a>

id=66 - the trade with ID 66 receives +1 out in the statistics
l=bigtop - bigtop is set as the linktag, which can be later retrieved via the atx admin
u=http://url_of_trade.com - this is the url the surfer gets redirected to.
This isn't neccesarily the url of trade 66, but it makes the most sense that it is of course.




%%lnk_000%% gets replaced with id=%%tid_000%%&u=%%url_000%%
which is a valid toplist link, without a linktag
This toplist displays the title of every trade, and prints the amount of raw hits in behind the title.



This toplist displays the trade image and the trade description as a linkobject to the trade. The linktag is set to top10

[an error occurred while processing this directive]