This is an old revision of the document!
Table of Contents
Toplist
Add new toplist
To create a new toplist, navigate to the Toplist / Index & Templates menu and click on the Add new
button. In the “Add new toplist window” you can choose between two different input methods:
(Web)
To add toplist template directly from the admin interface, selectForm input
method from the toolbar of the“Add new” toplist window. For the start, you can copy-paste the example template (below) into theToplist template
field. Specify where would you like to save your template in theSave template as
field, e.g.,/full/path/to/public_html/toplist.tpl
Next, you have to enterFile output path
, e.g.,/full/path/to/public_html/toplist.html
(FTP)
Open your favorite text editor, copy-paste the example template (below), save it as, e.g.,toplist.tpl
and upload it by using “FTP” into thepublic_html
directory on your server. SelectFile input
method from the toolbar of the “Add new” toplist window. SpecifyTemplate file input
as/full/path/to/public_html/toplist.tpl
andToplist file output
as/full/path/to/public_html/toplist.html
The rest of the fields in the “Add toplist” window should be self-explainable.
Standard template tags
##name:x## - site name Example: ##name:4## will print "site name" for trade number 4.
##domain:x## - domain name (domain.com) Example: ##domain:6## will print "domain name" for trade number 6.
##raw:x## - incoming raws Example: ##raw:7## will print "incoming raws" for trade number 7.
##uniq:x## - incoming uniques Example: ##uniq:3## will print "incoming uniques" for trade number 3.
##clk_t:x## - clicks sent to trades Example: ##clk_t:4## will print "clicks sent to trades" for trade number 4.
##clk_tg:x## - clicks sent to trades & galleries Example: ##clk_tg:2## will print "clicks sent to trades & galleries" for trade number 2.
##out:x## - outgoing hits Example: ##out:5## will print "outgoing hits" for trade number 5.
##out_uniq:x## - outgoing uniques Example: ##out_uniq:6## will print "outgoing uniques" for trade number 6.
##value:x## - value of a trade (Clk T / Out T) Example: ##value:2## will print "value of a trade" for trade number 2.
##owed:x## - owed (Outgoing list / traffic distribution is based on the owed ratio) Example: ##owed:13## will print "owed" for trade number 13.
##ratioraw:x## - ratio raw (Out T / Raw) Example: ##ratioraw:5## will print "ratio raw" for trade number 5.
##balanceraw:x## - balance raw (outgoing total - incoming raws) Example: ##balanceraw:3## will print "balance raw" for trade number 3.
##balanceratioraw:x## - balance ratio raw (incoming raws / outgoing total) Example: ##balanceratioraw:8## will print "balance ratio raw" for trade number 8.
##balanceuniq:x## - balance uniq (outgoing total - incoming uniques) Example: ##balanceuniq:3## will print "balance uniq" for trade number 3.
##balanceratiouniq:x## - balance ratio uniq (incoming uniques / outgoing total) Example: ##balanceratiouniq:8## will print "balance ratio uniq" for trade number 8.
##return_url:x## - return URL ( http://www.example.com/ ) Example: ##return_url:7## will print "return URL" for trade number 7.
##nick:x## - webmaster's nickname Example: ##nick:2## will print "webmaster's nickname" for trade number 2. "Nickname" is an optional attribute. If you would like to use this toplist tag, make sure you have it entered.
##email:x## - webmaster's e-mail Example: ##email:8## will print "webmaster's e-mail" for trade number 8. "E-mail" is an optional attribute. If you would like to use this toplist tag, make sure you have it entered.
##icq:x## - webmaster's ICQ Example: ##icq:5## will print "webmaster's ICQ" for trade number 5. "ICQ" is an optional attribute.If you would like to use this toplist tag, make sure you have it entered.
Example template
Example toplist:
<table> <tr><td><a href="/te3/out.php?id=##domain:1##">##name:1##</a></td></tr> <tr><td><a href="/te3/out.php?id=##domain:2##">##name:2##</a></td></tr> <tr><td><a href="/te3/out.php?id=##domain:3##">##name:3##</a></td></tr> </table>
Advanced template tags
Learn everything about “Description tags” and how to use them here!
Learn everything about “Image tags” and how to use them here!
History
To display history stats on the toplist, select History
from the Type
pulldown in the “Add new” toplist window. Use the same toplist tags as you use for the last 24h toplist, but add h_
in front of the tags.
Example: Last 24h tag for “incoming raws” looks like this: ##raw:x##
, while history tag for “incoming raws” looks like this: ##h_raw:x##
.
Of course you should only add h_
in front of the tags where it makes sense. You can't add h_
in front of the tags such as: return_url
, domain
, nick
, email
, icq
…
How to include toplist into your web page
- PHP (.php pages)
<?php include "toplist.html"; ?>
- SSI (.shtml pages)
<!--#include virtual="toplist.html" -->