====== TopList ======
You can create multiple toplists. The script generates them and saves them in /scj/top. Include them on your pages like:
PHP pages:
SHTML pages:
Use file paths (not URLs), either absolute or relative.
Variables in templates
_MEMBER_1_ - domain of first trader
_MEMBER_1_B64_ - domain of first trader encoded with base64 algorithm, to hide the real trader domain in the URL
_MEMBER_1_URL_ - URL of first trader
_MEMBER_1_NAME_ - title of first trader's site
_MEMBER_1_DESC_ - description of first trader's site
_MEMBER_1_FULL_DESC_ - description
_MEMBER_1_CLICKS_ number of clicks
_MEMBER_1_UNI_IN_ - unique hits
_MEMBER_1_RAW_IN_ - all hits
_MEMBER_1_OUT_ - number of clicks sent to trader
_MEMBER_1_IMAGE_ - trader's image
_MEMBER_1_IMAGE_.extra.jpg - trader's extra image
_MEMBER_1_IMAGE2_ - 2nd trader's thumbnail if you create more than one for each trader
_MEMBER_1_TOTAL_ROW_ - the same including all history
_MEMBER_1_TOTAL_UNI_ - the same including all history
_MEMBER_1_TOTAL_CLICKS_ - the same including all history
_MEMBER_1_TOTAL_OUT_ - the same including all history
_MEMBER_1_GROUP_URL_ - if trader has personal group url
There are additional modifiers for each template, their use is optional. Modifiers are inserted anywhere in the template, usually at the very beginning.
- this top will only include traders from the teen group.
sort traders in this toplist by a different parameter than specified in Settings -> CJ Settings
Parameters:
rd => Raw
ud => Uniques
cd => Clicks Total
ctd => Clicks Trade
cud => Clicks to URL
priority => Priority
prod_trade => day trade productivity
prod_total => day total prod
SmartCJ can also create preview thumbnails for each trader in the top. To enable this function you need to set Yes in Settings -> CJ Settings -> Create thumbs for TOPlist. The script takes one random thumbnail from the first 10 of the trader, creates a preview of the needed size (Rotation -> Settings) and saves it as /scj/top/tt/trader_domain.jpg. So for example for domain asd.com the file will be called /scj/top/tt/asd.com.jpg
This can be used in the toplist template as
Example of a toplist:
| 1. | _MEMBER_1_ - [_MEMBER_1_UNI_IN_] - _MEMBER_1_DESC_ |
| 2. | _MEMBER_2_ - [_MEMBER_2_UNI_IN_] - _MEMBER_2_DESC_ |
| 3. | _MEMBER_3_ - [_MEMBER_3_UNI_IN_] - _MEMBER_3_DESC_ |
| 4. | _MEMBER_4_ - [_MEMBER_4_UNI_IN_] - _MEMBER_4_DESC_ |
.top.html'); ?>