====== Create a thumb toplist ======
~~NOTOC~~
We'll be using three fictitious trades (''http://www.yourtrade1.com/'', ''http://www.yourtrade2.com/'' and ''http://www.yourtrade1.com/'') for the purpose of this tutorial. If your database is empty at this stage, [[te3:add_trade_single_tutorial|add three of your trades]]. If your database includes more than three trades, your results will differ from ours.
Since **thumb toplist** gets much more attention than the ordinary text toplist, we should try to create one:
===== 1. Download thumbs =====
The first thing you need are images. TE3 can automatically grab images from your trades and crop them to preferred size. Navigate to the Toplist / [[te3:toplist_thumb_grabber|Thumb grabber]] menu.
“Thumb grabber” module can be set to crawl trades in your database every x hours and to **automatically** download a specified amount of thumbs from trader's website. We are going to trigger "Thumb grabber" **manually**:
==== Step by step ====
{{:te3:tut_step_1.png?nolink|}} You can normally download as many thumbs per trade as you want, but we only need one thumb right now - set ''Thumbs per trade'' to ''1'' and click {{:te3:button_update.png?nolink|}}.
{{:te3:thumb_grabber3.png?nolink|}}
{{:te3:tut_step_2.png?nolink|}} TE3 can only download thumbs (manually or automatically), if at least one "Thumb crops" condition is set! Click {{:te3:add_button.png?nolink|}} icon, specify conditions for cropping (''Width'', ''Height'' and ''Quality'' are required) and click {{:te3:button_save.png?nolink|}}.
{{:te3:thumb_grabber4.png?nolink|}}
{{:te3:tut_step_3.png?nolink|}} After you have specified how many thumbs per trade you want to download and how you want them cropped, click {{:te3:button_download.png?nolink|}} to start the process.
{{:te3:thumb_grabber5.png?nolink|}}
{{:te3:tut_step_4.png?nolink|}} To view and manage images downloaded by the "Thumb grabber", navigate to Toplist / [[te3:toplist_images|Images]] menu:
{{:te3:tut_toplist_grabber5.png?nolink|}}
In this menu you can manage all “Images” for all trades from a single page. Simply place your mouse pointer over {{:te3:icon_preview.png?nolink|}} icon to view an individual thumb.
----
===== 2. Create a thumb toplist template =====
TE3 toplist module can build toplists from your trades database, based on a template file and the first thing you need to do is to **build a toplist template** using TE3 template tags.
++++ List of TE3 template tags |
|< 100% 15% 25% 60% >|
^ Parameter ^ Description ^ Example ^
| ##img:x## | Image | ##img:1## will print image for trade 1. If multiple images exist for the respective trade, they'll be randomly rotated each time toplist is generated. |
| ''##name:x##'' | **Site name** | ''##name:4##'' will print "site name" for trade number ''4''. |
| ''##domain:x##'' | **Domain name** (domain.com) | ''##domain:6##'' will print "domain name" for trade number ''6''. |
| ''##raw:x##'' | **Incoming raws** | ''##raw:7##'' will print "incoming raws" for trade number ''7''. |
| ''##uniq:x##'' | **Incoming uniques** | ''##uniq:3##'' will print "incoming uniques" for trade number ''3''. |
| ''##clk_t:x##'' | **Clicks sent to trades** | ''##clk_t:4##'' will print "clicks sent to trades" for trade number ''4''. |
| ''##clk_tg:x##'' | **Clicks sent to trades & galleries** | ''##clk_tg:2##'' will print "clicks sent to trades & galleries" for trade number ''2''. |
| ''##out:x##'' | **Outgoing hits** | ''##out:5##'' will print "outgoing hits" for trade number ''5''. |
| ''##out_uniq:x##'' | **Outgoing uniques** | ''##out_uniq:6##'' will print "outgoing uniques" for trade number ''6''. |
| ''##value:x##'' | **Value of a trade** (Clk T / Out T) | ''##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) | ''##owed:13##'' will print "owed" for trade number ''13''. |
| ''##ratioraw:x##'' | **Ratio raw** (Out T / Raw) | ''##ratioraw:5##'' will print "ratio raw" for trade number ''5''. |
| ''##balanceraw:x##'' | **Balance raw** (outgoing total - incoming raws) | ''##balanceraw:3##'' will print "balance raw" for trade number ''3''. |
| ''##balanceratioraw:x##'' | **Balance ratio raw** (incoming raws / outgoing total) | ''##balanceratioraw:8##'' will print "balance ratio raw" for trade number ''8''. |
| ''##balanceuniq:x##'' | **Balance uniq** (outgoing total - incoming uniques) | ''##balanceuniq:3##'' will print "balance uniq" for trade number ''3''. |
| ''##balanceratiouniq:x##'' | **Balance ratio uniq** (incoming uniques / outgoing total) | ''##balanceratiouniq:8##'' will print "balance ratio uniq" for trade number ''8''. |
| ''##return_url:x##'' | **Return URL** (http://www.example.com/) | ''##return_url:7##'' will print "return URL" for trade number ''7''. |
| ''##nick:x##'' |** Webmaster's nickname** | ''##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** | ''##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** | ''##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. |
++++
TE3 template tags allow you to create completely unique toplists, but for the purpose of this tutorial use the example template we've prepared below:
##desc:1##
|
##desc:2##
|
##desc:3##
|