User Tools

Site Tools


Translations of this page:



external_thumb_rotators

External Thumb Rotators

If you're using an external rotator, follow these examples to integrate it with SmartCJ.

Smart Thumbs

1. Go to Settings > General Settings and configure:

  1. Url encode/encrypt URL: Yes
  2. Thumb trade script URLs: `/out.php?url=#url#&p=#skim#`

2. Connect ST and SmartCJ using one of these two methods:

  1. Method 1: ST generates main.html with thumbnails, SmartCJ displays it as the index
    1. ST: Settings > General settings > Output files: set to `main.html`
    2. SmartCJ: Settings > CJPages: enter the path to main.html
    3. Copy `scj/cgi/index.php` to your domain root (see Start Here)
    4. ST creates main.html with thumbnails, SmartCJ displays it as the index
  1. Method 2: ST generates index.shtml, SmartCJ includes PHP processing
    1. ST: Settings > General settings > Output files: set to `index.shtml`
    2. In the ST template, add after the `</head>` tag:

`<!–#include virtual=“/scj/cgi/include.php?${QUERY_STRING}”–>`

Groups in ST — To use groups, create links with a group variable:

<a href="#ur0_group10#&var1=pictures" ..

Then set your Thumb trade script URLs in ST admin:

`/scj/cgi/out.php?url=#url#&group=#var1#`

Stream

To track traffic with Stream:

0. Follow the setup in Start Here — rewrite index.php, out.php, and common.php to your domain root.

1. Create `main.php` with this content:

`<?php include("streamrotator/in.php");?>`
 and upload it to your domain root.

2. In SmartCJ Settings > CJpages, enter the PATH (not URL) to main.php.

3. In your Stream template, write a link to out like this:

`href="stream/out.php?l=#POS#&u=/scj/cgi/out.php?url=#GAL#"`

(Adjust paths as needed for your setup.)

Rolling Thumbs

To integrate Rolling Thumbs with SmartCJ, set the log type in Rolling settings to “SmartCJ.”

Tech support note: The path setting doesn't matter for Smart. The key requirement is that Rolling Thumbs and SmartCJ use the same database. If they don't, migrate the Rolling Thumbs database to the SmartCJ database (the tables don't overlap) and update the database name in `rt/lib/mysql/db_config.php`.

DTR

  1. Set the DTR rotator script to 100% content so SmartCJ alone controls skimming.
  2. To pass a parameter to SmartCJ (not DTR), replace the `&` before that parameter with `%`.

Example: If you want to pass `&link` to SmartCJ:

  1. Original: `/dtr/link.php?gr=1&id=#ID#&url=/out.php?url=#URL#&link=gall`
  2. Modified: `/dtr/link.php?gr=1&id=#ID#&url=/out.php?url=#URL#%link=gall`
external_thumb_rotators.txt · Last modified: 2026/03/21 10:11 by 127.0.0.1