How to use the script for posting to TGP

You can easily post galleries to TGP for additional traffic. Here's why this approach works well:

  1. If you already have custom galleries, you can immediately post them to TGP
  2. For those just doing TGP posting, this method manages content effectively
  3. You can quickly create galleries from sponsor zip archives (http://smartcj.com/wiki/doku.php?id=ru:update_48#custom_galleries_from_zip)

Important points for posting to TGP:

  1. Gallery code should not change at all
  2. Different recipes are needed for different TGPs

How to set it up:

<? if ($_GET['recip'] == '1') { ?>
recipes 1 here
<? } ?>

<? if ($_GET['recip'] == '2') { ?>
recipes 2 here
<? } ?>

Add as many recipe blocks as needed.

Also remove the rot_in and scj_include tags from this template, since they can change.

RewriteRule ^gallery/([^/]+)/recip_([^\.]+).html$ /scj/tube/?slug=$1&force_template=tgp_pic&recip=$2 [L]

http://domain/gallery/<!--GALLERY_SLUG-->/recip_1.html
http://domain/gallery/<!--GALLERY_SLUG-->/recip_2.html

Where 1, 2, etc. represent the recipes. You can replace these numbers with TGP names if preferred.

How to generate this URL format

There's no dedicated section for recipe URLs, but you can go to Rotation - Export and select “Slug URL” in any pattern field. The script will generate URLs like:

http://domain/gallery/cool_gal/index.html

Then replace `index.html` with `recip_1.html`, `recip_2.html`, etc. using any text editor or during your TGP posting process.