TGPs are like women. Can't live with them, can't do without them. Assuming you pressed all the right clicks, you should have a decent amount of traffic from trades, linkbacks and gallery submissions. Let's say you have 30K traffic daily. Considering that TGP traffic converts at an average of 1: 10,000, that's 3 sales. What's to be done with the other 27,997 visitors? They're costing you a pretty packet in bandwidth and even if you are sending a lot of them to trades, there's still a massive amount of unused potential here. I'll show you a way to get rid of the shitty traffic seamlessly, saving a lot of bandwidth charges, making your stats look very pretty and best of all, it's totally free. All you have to do is play around with a bit of code.
Now what you have to do first is study where your traffic is coming from - break it up into countries and work out which countries are converting, and which are not. Next, use CJOverkill ( I'm not sure if other traffic trade scripts have this facility - if so, use it ) and set the country filters to redirect surfers from unproductive countries to pay per click sponsors, trades or anywhere you want. A note of warning - Be best not to do this on individual galleries which you are submitting to other TGPs, since TGP owners to whom you submit might object. Any page which you haven't submitted, do it.
SSI PARSING ON .HTML PAGES
Important question - You have .html pages and not php or .shtml. You want to trade traffic, georedirect, count bookmarks, etc which require SSI parsing. How do you do it? Here's how-
On every .html page where you want SSI includes,
put in an iframe with the width and height set to 1 right
at the top, where you would normally put the SSI include in
a php or shtml page and set the iframe to call the SSI include.
While following this, I ran up into an unexpected
problem with georedirection. The page inside the iframe at
the top gets redirected, but the main page remains the same.
After surfing google for a couple of hours, I came up a solution,
which if not pure genius, can at least be regarded as brilliant.
All you have to do is, save a page in your root which contains
the following frame breaking code and set your trade script's
country filter to send the visitor to this page. Feel free
to test and try.
This iframe at the top of every page where you want it to
Since I use CJ, it's in.php. Use whatever SSI include you
normally use instead of in.php and of course, change the path
to in.php, from every page where you use the iframe.
This code inside the page which you place in your root, to
which you want to send the visitors from specific countries::
if (window != top) top.location.href = location.href;
Replace http://www.yahoo.com/ with wherever you want the visitor
to end up at. That's it. Done. You now have a fully functional
traffic georedirection system installed with SSI parsing on
static .html pages.
SEO OPTIMIZATION FOR TGPs
Now, you may ask why I went through all the rigmorale described
above, instead of just using php or shtml pages. I did, at
first, and the spiders wouldn't touch the pages. I changed
over to html, and the search engine bots are squatters on
the TGP and refuse to leave. Which brings us to one more problem
- how do you rotate images, text descriptions, make updates,
etc. without going mad? Get ready for some more genius ( heh
GENERATING STATIC HTML PAGES USING PHP - MYSQL
What we need is an html page which behaves
like a php page ( rotation of thumb, descriptions, updated
database content, etc ). Ok, all you need to do is add a bit
of code at the top and bottom of each php page and set it
to generate an html page every xx minutes using a cron job.
This script will generate a page only if the time you set
inside the code below has elapsed. If this page is run during
that interval, it will exit without executing the main contents
of the page. Here's the code:
This code at the top of each php page. Replace the path and page name with whatever you want it to be seen as.::
$cachefile = "path/to/page.html";
$cachetime = 30 * 60; // 30 minutes
// Serve from the cache if it is younger than $cachetime
if (file_exists($cachefile) && (time() - $cachetime
echo "<!-- Cached ".date('jS F Y H:i', filemtime($cachefile))."
ob_start(); // start the output buffer
This is where the actual contents of the php page go.
This code after the page contents:
<?php // open the cache file for
$fp = fopen($cachefile, 'w');
// save the contents of output buffer to the file
// close the file
// Send the output to the browser
Okay, so, if you do this for all your php
pages, and set up a cron job to run these pages at a specified
interval, it'll automatically generate html pages for every
php page you have. On a side note, if you don't have the facility
to setup a cron job, then you can put in image links calling
the php pages on high traffic pages, like so:
This will call the php page, which will check
if the html page needs to be generated, and if so, will generate
it, else, it will exit. Note of warning - do not call the
parent php generating page from the generated html page, else
it'll go into an infinite loop and your server will blow its
guts. Best solution is to call all the php pages from one
html page, like your warning or index page, which gets a lot
of traffic, and does not have to be generated itself, since
it's contents very rarely need to be changed.
To sum it up - You have a fully functional
georedirection system implemented, SSI parsing on html pages,
automatic update of these html pages at prespecified intervals,
saving of bandwidth charges on account of filtered traffic,
saving of server resources and faster loading of pages since
the page no longer needs access to the database for every
visitor and - best of all, it's all totally free. You love
it, your server loves it and the search engine spiders love
it. Life is good, eh?