Overview -------- This is a thumbnail only template that is designed to be used for sites where you will only be doing a "Build With New" once per day. There are three sections of thumbnails on the page, one for the newly added galleries, one for the galleries from yesterday, and one for the galleries from two days ago. In all sections there will be 20 thumbnails with 4 rows and 5 columns. The first {galleries} function will pull 20 new galleries each time a "Build With New" type of build is done. When a "Build" type build is done, it will simply redisplay the galleries in the same order. This is a good way to build up clicks on the newly added galleries so that they can be sorted by their productivity when they move to the yesterday and two-day old sections. The second {galleries} function will pull the 20 galleries from the previous day that were displayed in the top section. They will be sorted by their productivity. The third {galleries} function will pull the 20 galleries from two days ago that were displayed in the top section. They will also be sorted by their productivity. Make sure you configure the click.php click tracking script as described in the software manual and place it in the same directory as your TGP pages. Template Code ------------- {define name=globaldupes value=true} {define name=pagedupes value=false} TGP
TGP
Links to {$total_thumbnails|tnumber_format} free pictures and movies!
Updated {date value='today' format='m-d-Y'}

{* TODAYS GALLERIES SECTION *} {* Load 20 new galleries *} {galleries var=$galleries preview=true type=submitted category=MIXED amount=20 getnew=true allowused=true age=0 order=date_approved reorder=date_displayed DESC, date_approved} {* Display loaded galleries as thumbnails in a 5 per row format *} {foreach from=$galleries var=$gallery counter=$counter} {insert location=+5 counter=$counter max=15} {/insert} {/foreach}
Today's Galleries
Thumb

{* YESTERDAYS GALLERIES SECTION *} {* Load 20 galleries from yesterday *} {galleries var=$galleries preview=true type=submitted category=MIXED amount=20 getnew=false age=1 order=date_displayed DESC, date_approved} {* Display loaded galleries as thumbnails in a 5 per row format *} {foreach from=$galleries var=$gallery counter=$counter} {insert location=+5 counter=$counter max=15} {/insert} {/foreach}
Yesterday's Galleries
Thumb

{* 2 DAYS AGO GALLERIES SECTION *} {* Load 20 galleries from 2 days ago *} {galleries var=$galleries preview=true type=submitted category=MIXED amount=20 getnew=false age=2 order=date_displayed DESC, date_approved} {* Display loaded galleries as thumbnails in a 5 per row format *} {foreach from=$galleries var=$gallery counter=$counter} {insert location=+5 counter=$counter max=15} {/insert} {/foreach}
{datelocale value='-2 day' format="%A"}'s Galleries
Thumb

Submit A Gallery