Rotation Pages

These are page templates.

A template is HTML with special tags that indicate where and how to display thumbnails. When saving a template, define it as a table with dimensions (columns × rows) and specify the PATH (NOT URL!) where to save the output. Nothing appears at this path until processing—templates live in the database.

Each template must have a hidden image, by which the script determines - whether images were loaded or if it was a bot and you should not count image views.

<img src="/scj/cgi/rot_in.php?crc=<!--PAGE_CRC-->" border=0 width=0 height=0 style="position: absolute; top: -100; left: -100">

Add at least one subtemplate. Example:

``` thumb <a href=“/out.php?url=<!–URL–>&link=<!–LINK–>&p=<!–SKIMMING–>” > <img src=“<!–THUMB_URL–>”> <!–DESCRIPTION–></a> ```

You can have multiple subtemplates. Important: The script counts clicks using the &link parameter, so it must be present in your template for click counting to work.

Available variables

<!--URL--> also known as <!--GAL_URL--> - URL of the gallery.
<!--SKIMMING--> - skimming
<!--THUMB_URL--> URL of the thumb
<!--DESCRIPTION-->  Description
<!--ID--> ID of the thumb in the database
<!--ALT--> alternative description
<!--CONTENT_TYPE--> gallery content type
<!--CREATED--> page creation time
<!--LINK--> - link, mandatory parameter, the rotation parameter, it forms a string like images/12x34x45.

The &link parameter serves dual purposes:

1. Link tracking - Use &link=block1, &link=block2, etc. to identify which page areas get the most clicks. View results in Trade - Stats - Links. 2. Rotation - The script uses &link in the format images/12x34x45 for internal rotation. This format avoids confusion with tracking links like block1. Rotation links don't appear in statistics.

Specify where thumbs display using tags:

``` <thumb num=1></thumb> ```

Or use the syntax `<!–subtemplatename_thumbnum–>`:

``` <!–default_1–> ```

Both examples display the top-ranked thumb using the default subtemplate. For the `<thumb>` tag, if no subtemplate is specified, it defaults to “default”.

You can specify ranges:

``` <thumb num=1-5></thumb> <!–default_1-5–> ```

Both display the top 5 thumbs.

Add parameters inside the tag:

``` <thumb num=1 group=Images></thumb> ```

Displays the top thumb from the Images group. Group names are case-sensitive.

``` <thumb num=1 group=Images template=my_tpl></thumb> ```

Displays the top thumb from Images using the my_tpl template. Template names are case-sensitive.

Tags must be closed:

``` <thumb parameters>[optional template]</thumb> ```

The optional template parameter lets you override the default template for specific thumbs.

Templates are stored in the database. Files don't appear on disk immediately after creation. To force generation, go to Rotation - Specials - Force rotation.

Insert the generated output into your page using an SSI include:

``` <!–#include file=“scj/rot_pages/test.html”–> ```


Examples:

In the installation there is a default page named test.html, it is saved in scj/rot_pages/.

Default subtemplate

<a href="/out.php?url=<!--URL-->&link=<!--LINK-->&p=65"><img src="<!--THUMB_URL-->" height="180" width="240"></a> <!--DESCRIPTION_20-->

example of a page using this template

<html>
<title>Test</title>
<body>
<thumb num=1></thumb>
<thumb num=2></thumb>
<thumb num=3></thumb>
<thumb num=4></thumb>
<thumb num=5></thumb>
<thumb num=6></thumb>
<thumb num=7></thumb>
<thumb num=8></thumb>
</body>
</html>

After processing this template, a file scj/rot_pages/test.html will be created, which can then be specified in CJPages.

Templates process according to Rotation - Settings (e.g., every 10 minutes or 1000 clicks). To process immediately, click Rotation - Specials - Force Rotation.

Archives

Enable archive creation with the “Create Archives” checkbox for each template.

For example, if template test.html displays 10 thumbs, enabling “Create Archives” creates test1.html through test10.html (fewer files if insufficient thumbs).

Add cross-links between archives using direct URLs in the templates.