New Rotation Banners
View all banners in Rotation - Banners. You can also add banners when editing a sponsor. Each banner belongs to a sponsor.
Start by adding banners for each sponsor. A banner is an image with surrounding HTML. The basic (and most common) option is:
<a target=_blank href='/goto/<!--GALLERY_SLUG-->/'><img src='<!--THUMB_URL-->'></a>
Banners work like thumbnails with similar tags. The script auto-generates GALLERY_SLUG, and THUMB_URL is your uploaded image. You can use gallery links, but /goto is cleaner for banners. Add this rewrite:
RewriteRule ^goto/([^/]+)/$ /scj/cgi/out.php?url=content&p=100&skip_to_cookie=true&skip_sell=true&go=banner&slug=$1 [L] for nginx rewrite ^/goto/([^/]+)/$ /scj/cgi/out.php?url=content&p=100&skip_to_cookie=true&skip_sell=true&go=banner&slug=$1 last;
Banners also have groups. Banner groups are separate from trader groups and rotation categories—they organize banners by size or placement (e.g., vertical or horizontal banners).
In your template, use the banner tag:
<banner num=1></banner> - outputs the top banner by CTR. The <banner tag follows the same rules as thumbnails: <banner sponsor=sponsor_name num=1></banner> - outputs a specific sponsor's banner <banner banner_group="100x100" num=1></banner> - outputs the top banner from the banner group (note: this is banner groups, not trader groups or categories) <banner category=some_category num=1></banner> - outputs a banner for a specific rotation category. Banners can target sponsor, banner group, and rotation category. If rotation category isn't specified, the banner shows everywhere. For custom galleries, you can output: <banner sponsor=CURRENT_ITEM_SPONSOR num=1></banner> - the top banner of the current gallery's sponsor <banner sponsor=CURRENT_ITEM_SPONSOR num=2></banner> - the second-ranked banner by CTR Organize banners by size in groups. For example, a sponsor might have 5 banners: 2 at 100x100 and 3 at 200x200. On a custom gallery, you can output: <banner sponsor=CURRENT_ITEM_SPONSOR num=1 banner_group="100x100"></banner> - the top 100x100 banner for that sponsor, fitting your design while rotating banners. You could have 3 placements for one size, with the most clicked banner appearing first.
Add banners in Rotation - Banners. Banner URL is where clicks go. Banner Source can be a URL (image downloaded from there) or upload from your computer. Description (HTML) is the banner sub-template.
Multi-banners - You might have one banner concept in multiple variants. For example, a cam site banner might feature 10 different models. Showing all 10 separately wastes space; you want the most clicked one. When adding a banner, the [+] next to Banner image lets you add more versions. You create one banner record with 10 different images. Like a gallery with 10 rotation thumbnails, the script tests all versions and eventually shows only the best performer.
