ComusThumbz 문서
관리자 로그인

Question about macros

will the macros below pull 25 random text links from all the galleries I have?

{{all-link-1}}
{{all-link-2}}
{{all-link-3}}
{{all-link-4}}
{{all-link-5}}
{{all-link-6}}
{{all-link-7}}
{{all-link-8}}
{{all-link-9}}
{{all-link-10}}
{{all-link-11}}
{{all-link-12}}
{{all-link-13}}
{{all-link-14}}
{{all-link-15}}
{{all-link-16}}
{{all-link-17}}
{{all-link-18}}
{{all-link-19}}
{{all-link-20}}
{{all-link-21}}
{{all-link-22}}
{{all-link-23}}
{{all-link-24}}
{{all-link-25}}

 

When no queries are assigned the macro defaults to new which is basically random, but also takes many other things into consideration....

the actual default query for {{all-thumb-1}} is..
periodsshown>-1 order by periodsshown , if(used,1,-refreshdelay), CTR DESC, rand()

Which means..
newest first (which means all galleries where age=0 days).
then
if the gallery has been used before (rotated) it has 2nd priority over those that have not...
if the gallery has never been used or rotated before it has top priority
If the gallery is scheduled then it has higher priority,
so group the galleries into 3 sets,
scheduled galleries at the top.
unscheduled below.
used and rotated galleries below that.
Then
Order the galleries by their Click Through Rating (CTR) in descending order, but keep them in their sets.
** if a gallery is new then they should all have a 0 CTR **
however, if you are building with new thumbs once per day and have a refresh rate of 10 mins, the thumbs
will resort themselves by this rule, placing the scheduled galleries at the top of the list and sorting the galleries
by order of the clicks they have collected for the day.
Finally the galleries are sorted randomly, so in the case of the first build for the day, or a site that builds once per day
the CTR=0 so the galleries are basically grouped into 2 sets..
set 1 = scheduled galleries and go at the top of the list.
set 2 = non scheduled and go at the bottom of the list.

There are 2 types of builds..
1. Builds that pull new thumbs on every build of the day.. {{allowdupes}} and {{prodbooster}} builds.
2. Builds that only pull new thumbs on a page, once per day. (does not have {{allowdupes}} or {{prodbooster}} on page)

so there are 2 things to consider...
1. What happens on the first build of the day, when new thumbs are required.
2. What happens on subsequent builds of the day.

For Type 1 or prod booster builds...
On the first build of the day all thumbs are sorted randomly within their sets.
As the day progresses the thumbs are resorted by the click popularity and new thumbs are pulled in progressively using'
the same rules as the first build of the day. Scheduled galleries can trickle into the site.
For Type 2 or daily builds...
On the first build of the day all thumbs are sorted randomly within their sets.
As the day progresses on each build, the thumbs are resorted by the click popularity, no new thumbs are introduced again until the new day, even though a macro might say -new}} it only resorts the existing galleries on the page.

so is it random?

hmm.. yeah pretty much.