TNX and how to hide PR 0 pages

At the moment my best money maker by far is TNX. Web devs are notorious for not clicking ads, the money I’m making from CPC is ridiculous, no one is clicking.


It was only when I started with TLA that I started seeing some money in my PayPal account, pitiful as the sums are they are still more than I make from for instance Ad-sense by far.

TNX is even better because it allows me to to sell links on individual posts. There is only one problem though, the amount you are getting for PR0 pages is pathetic. It’s not worth the risk of having Google punish them before they even reach PR1. Coincidentally it seems like the crappiest campaigns are also going for zero ranked pages too, you know the Viagra boys.

Having to login and manually remove these PR0 pages from the TNX system every other day started to become a chore I could live without. Obviously the solution to the problem would be to find some way of fetching the PR when a page is loading and simply not include the TNX script if the returned value is 0.

As it turns out there is a Wordpress plugin by Sajith.M.R that will do just that. Unfortunately there was some display related stuff in there that was completely uninteresting for my purposes so I simply ripped it out, I named the result pr.php and uploaded it straight into my theme folder where the TNX script is also located.

Currently I have the following in my logic that renders each post:

require_once( dirname(__FILE__) . '/pr.php');
$pr = retrieve_pagerank() + 0;
$pr_arr = array(-1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
if(in_array($pr, $pr_arr, true))
  require_once( dirname(__FILE__) . '/tnx.php');

Note the + 0 to make sure we convert properly to an integer. Note also that -1 is a value that will render the TNX stuff. Apparently this is the value Google will return if they ban you from their PR retrieval service, if that happens to me I don’t want the TNX stuff to disappear, better then to fall back to manual deletion.

Anyway, problem solved! :)


Related Posts

Tags: , ,