Phoenix Thumbnail Rotator


Russian Version of this page is here

Adult Niche Traffic Exchange

Promote My Amateur PaySite and Make Money!

Free Hosting for your TGP Galleries

Trade Traffic with my CJ/TGP sites

Submit Your Galleries to my TGP

This is very simple, but still quite powerful FREE thumbnail rotator for your CJ or TGP sites.

It's designed for lazy webmasters who do not want to make thumbnails manually and do not want to care much about adding galleries or editing galleries database.

However you should be warned that it has it's drawbacks. Since you are too lazy to work with galleries, you must have some extra traffic to let the rotator do your job of picking up proper thumbnails. Rotator is not a human, so it does this pretty much with a method of random seek. So you must be ready for a low productivity at first, untill rotator finds several first more or less clickable thumbnails. The final results however may be better than manual method. Because what surfers click - is far not always the same as you THINK they should click.

The main reason to use this rotator is still your laziness and/or shortage of time. Indeed a professional adult webmaster can do better manually than any automatic rotator ever will be able to do. But this is "set and forget" kind of script, and that is it's main advantage.

This rotator is compatible with ANY CJ script, you just need to set up out urls correctly. However this has drawbacks as well. It cannot work with multiple blocks (you can have several thumbnail blocks on your CJ face, indeed, but this rotator can treat them only as one combined block) so it cannot work with multiple niches, and it cannot work with text descriptions. It works only with thumbnails. Well... but what do you expect from a FREE rotator???

To be honest, it's not absolutelly free. Though I made it just in two days, I would not care to do it if there is no any profit in this for me - I'm lazy too. This rotator doesn't force-take any traffic, but it loads galleries from my database. The galleries are mostly FHGs of different partnership programs and don't contain any shit like trojans and dialers. And you can minimize their amount by selecting proper option during install, if you don't like to use them. But some of them will be still loaded. Indeed if you are too lazy to pick up lots of galleries for your CJ - then it's only good for you. Because I have quite a big database of clean galleries and I update it continuously. And I hope you understand the difference between when user is force-redirected to hell knows where (which usually happens when the percent of traffic is taken as a payment) and when he goes to the gallery he wanted to see...

If you wish to donload it, just use this link: DOWNLOAD PHOENIX ROTATOR

Make sure to read readme.txt file. It's pretty much the manual of use.

If you will have any problems with this rotator or will find any bugs, please feel free to mail me to webmaster [at] smutty-pages [dot] com



Here comes a dublicate of readme file, so you can get more familiar with this rotator before downloading it:

=================================================================================

Warning!!!

This rotator require some traffic to start working efficiently! Don't try to start CJ with it from zero without external traffic! If you already have CJ running - be warned that installing this rotator may cause essential productivity and traffic loss in several first days.

It will take hours or days, depending on how many traffic you have, to get it working. But after productivity got up usually it requires very little attention. You will have only to watch your traders for cheating and add galleries from time to time if you wish. You may do not bother yourself deleting old, not popular galleries, they will be shown very rarely anyway. But if you wish you can delete them manually.



Requirments:

MySQL
Php + Zend Optimizer
GD Lib
ImageMagic // old versions may result in bad thumbnails quality

Most recent versions are appreciated.

Reading of external URLs from PHP scripts must be enabled (consult your server admin if you don't know what's this)



Istallation:

1. Unpack and copy all the files to your CJ/TGP root directory.

For example, if your CJ main URL is http://www.somedomain.com/ - copy into its root directory. If your CJ main URL is http://www.somedomain.com/tgp/ - copy into "tgp" directory.

Chmod folders to 777.

Now you must have the following:

your CJ root:
|
|--phrot (rights=777)
| |-cjthumbs (rights=777) empty dir
| |-cur (rights=777) empty dir
| |-addnewgalleries.php
| |-browsegals.php
| |-config.php
| |-install.php
| |-scheduller.php
| +-startinit.php
+-gallery.php

* if you already have a file with name "gallery.php" in you CJ script, you can rename it to whatewer you want - gal.php, pics.php whatever, the name is not important, just keep in mind how exactly you have renamed it.

MAKE SURE the rights are set to 777 or the rotator will NOT work properly!!!



2. Edit config.php:

=================================
define('DB_HOST','localhost'); // this is mostly "localhost", but can be IP, or domain name, ask your server admin if you don't know
define('DB_LOGIN','dblogin'); // this is MySQL username/login to database, ask your server admin if you don't know
define('DB_PASS','pass'); // this is your MySQL password, ask your server admin if you don't know
define('DB_DEVICE','database'); // this is your MySQL database name, ask your server admin if you don't know
// - if your CJ script uses MySQL, you can simply copy all those values from it's config

define('CJ_OUT_URL','cj_out.php'); // This is your CJ script out URL leading to out (not to content!), can be out.php, out.cgi or something else
define('CJ_CONT_URL','cj_out.php?p=50&url=GALLERY_URL'); // this is you CJ script out URL WITH all parameters to send to content

// if your out URL is not located in the root directory of CJ, use full path - for example: http://www.yourdomain.com/myout/cj_out.php...
// GALLERY_URL - is a string that will be replaced with gallery URL, so leave it exactly as it's written, just put it into proper place

define('USER','admin'); // this is simply your login to the rotator for adding or reviewing galleries
define('USER_PASS','admin'); // this is simply your password to the rotator for adding or reviewing galleries

// it's wise to change password to something else

// All below are rotator settings:

$tn_width = 120; // this is desired thumbnail width - use whatever you wish
$tn_height = 160; // this is desired thumbnail height - use whatever you wish
// it's wise to use commonly used on TGP sizes like 120x160, 90x120, 120x120, 88x88 etc.

$tn_quality = 80; // Quality of thumbnails jpeg compression - 80 - recommended.
// If you get too heavy thumbnails, try to reduce this to 70 or 60.

$unsharp_level = 2; // 2 - recommended. You may try 1 or 3. Better not to try other values.

$tn_total_count = 50; // this is a total amount of thumbnails you wish to rotate on you CJ face
// all thumbnails must be shown on the face!!! If you have only 40 thumbnails on your CJ face - DON'T enter more than 40!!!
// you can however enter less, if you have some fixed thumbnails on your CJ face, of thumbnails rotated with other rotator

$upper_block_size = 20; // this is a number of thumbnails in your most UPPER thumbnails block. I.e. most clicklable area.
// It's where new thumbnails will be introduced after each reset.

$tn_new_count = 4; // this is a number of new thumbnails that will be added into upper block after each reset.
// It's not wise to set it more or less than 1/5 - 1/4 from an $upper_block_size value.
// I.e. if your $upper_block_size = 30, better set $tn_new_count = 6 or 7

$urlencode_enable = 1; // I found out that some scripts do not need url encoding, if you see 404 error all the time instead of out to gallery, set this to 0
$video_record = 1; // if this =1 rotator will write record "VIDEO" on thumbnails made for video galleries, if = 0 - there will be no any writting
$delete_old_gals = 0; // if you want old unpopular galleries removed automatically - set this to 1


===============================




3. Now run .../phrot/install.php

If your server configuration doesn't meet requirments - you will not be able to install

Select one of the options:

- Load galleries from database during install and use them
- I have my own galleries, but I want to use galleries from database as an addition (they will be loaded later after you add yours)
- I don't want any other galleries exept my own (minimal amount of galleries will be still loaded from database later)

And select the most appropriate niche. This is important. Be warned that if you select wrong niche - you will have unappropriate galleries rotated on your CJ.

Hit "Install", wait untill it writes "All Done".

Delete file "install.php" from "phrot" directory.



4. Add New Galleries if you need it.

Just use ../phrot/addnewgalleries.php

DO NOT urlencode URLs and do not replace '&' symbols if there are any!!! Rotator will take care of this. If you do this - you may have problems with twice encoded urls.

Note: If you did not select to load galleries from database - you MUST load your galleries before running startinit!



5. Run .../phrot/startinit.php and wait while the page is fully loaded. Untill you see "All Done" writtings.

Note: If you did not select to load galleries from database - you MUST load your galleries BEFORE running startinit!

It may be quite long, because this script make first pack of thumbnails. The time depends on your server connectivity.

When it finished - you can delete file "startinit.php" from "phrot" directory.



Now you can use it.

Using is very simple:

Just place html strings into your CJ face page like this:

<a href="gallery.php?id=1"><img src="phrot/cur/1.jpg" width="yourwidth" height="yourheight"></a>
<a href="gallery.php?id=2"><img src="phrot/cur/2.jpg" width="yourwidth" height="yourheight"></a>
<a href="gallery.php?id=3"><img src="phrot/cur/3.jpg" width="yourwidth" height="yourheight"></a>
.....

<a href="gallery.php?id=15"><img src="phrot/cur/15.jpg" width="yourwidth" height="yourheight"></a>
...
<a href="gallery.php?id=30"><img src="phrot/cur/30.jpg" width="yourwidth" height="yourheight"></a>

etc.

Maximum id and jpg number should be no more than $tn_total_count parameter from phrot/config.php

"yourwidth" and "yourheight" obviously should be equal to $tn_width and $tn_height parameters

If you have renamed file gallery.php - just use whatever name you gave it. For example, if you renamed it to "pics.php" - use like this:
<a href="pics.php?id=1"><img src="phrot/cur/1.jpg" width="yourwidth" height="yourheight"></a>



IMPORTANT!!!

Place a string <img src="phrot/scheduller.php" width=0 height=0> somewhere on you CJ face page. Better not too much in the bottom.

If you do not do this - rotator WILL NOT work!!!



Deleting old galleries.

Use ../phrot/browsegals.php

For your convenience, not popular galleries are usually shown among first pages.

Rules to delete galleries:

Cycles > 30 and Rating < 4 - you are free to delete it.
If Cycles < 20 or Rating > 4 - better leave it in the database.

Basically, the main thing you should get into account is Rating. The higher it is - the more popular gallery is.
Values of Rating less than 4 means that users almost do not click it at all.
However, if the amount of Cycles is too low - it means that gallery just did not have much chances to show it's potential.
Do not ever delete galleries with Cycles less than 10.