2008
12.16

Incentaclick Fail

So apparently some genius thought he could make some quick cash by combining affiliate links from Incentaclick/CX Digital and bit-torrent. There’s only one catch…..it resulted in a massive DDOS attack on the incentaclick servers, knocking them offline for practically all day. Needless to say, some people were pissed (shit, I don’t even want to think about all folks who just lost big $$ due to their PPC links being dead). Rumor going around on #cakes (irc.freenode.com – don’t be a stranger) is that it’s more than just their servers that were hit, the ping attack took-out part of their entire network. If that’s the case then don’t plan on switching back to your incentaclick links anytime soon… such a shame.

Brilliant work kid!

2008
12.12

Affiliate Link Countdown Clock

A great way to scrub referrals (and help cloak affiliate links from Google) is by sending your users to a ‘middleman’ redirect page before handing them off to the Advertiser. With some offers though it’d be nice to be able to deliver one final ‘parting’ message or chance for up-sell before having them leave your site. For those situations I’ve found it handy to build out the ‘middleman’ pages using a javascript redirect timer that lets me delay the eventual redirect for however long I think is necessary for the visitor to read my farewell message or see that ‘last-minute-offer.’

So that the user will know this is all part of the website experience, a simple countdown timer is shown letting them see how much time is left before the page changes. There’s even a secondary option in the script that allows for a short one-liner to be displayed during the eventual redirect, though the transition is typically too quick for anyone to read (so it isn’t mandatory, if left blank it will default to say “Redirecting…”).

Download countdownRedirect.js

/**
 * Copyright (C) 2006-2009, QuietAffiliate.com. All rights reserved.
 *
 * Script Name: Countdown Redirect
 *
 * THIS SOURCE CODE MAY BE USED FREELY PROVIDED THAT
 * YOU DO NOT REMOVE THIS MESSAGE.
 *
 * You can obtain this script at http://www.QuietAffiliate.com
 */

function countdownRedirect(url, msg)
{
   var TARG_ID = "COUNTDOWN_REDIRECT";
   var DEF_MSG = "Redirecting...";

   if( ! msg )
   {
      msg = DEF_MSG;
   }

   if( ! url )
   {
      throw new Error('You didn\'t include the "url" parameter');
   }

   var e = document.getElementById(TARG_ID);

   if( ! e )
   {
      throw new Error('"COUNTDOWN_REDIRECT" element id not found');
   }

   var cTicks = parseInt(e.innerHTML);

   var timer = setInterval(function()
   {
      if( cTicks )
      {
         e.innerHTML = --cTicks;
      }
      else
      {
         clearInterval(timer);
         document.body.innerHTML = msg;
         location = url;
      }

   }, 1000);
}

To use just upload the countdownRedirect.js script to your webserver and add the following code to the header on your ‘middleman’ page:

<script src="countdownRedirect.js" type="text/javascript"></script>

In order to have the countdown start automatically once the page is loaded, you’re going to want to then add the ‘onload’ attribute to the main ‘body’ tag. This is also where you’ll tell the script what page to eventually redirect the user to as well as what (if any) redirect message to display:

in this example the eventual redirect will be to http://www.QuietAffiliate.com with no secondary redirect message

<body onload='countdownRedirect("http://www.QuietAffiliate.com")'>

If I wanted to change the default redirect message, “Redirecting…”, to something different (i.e. “Thank You For Visiting”), then I would use:

<body onload='countdownRedirect("http://www.QuietAffiliate.com", "Thank You For Visiting")'>

Now build-out your page as desired. The only thing missing is to tell the script how long the countdown is for and then display the timer on the page. We do that by adding the following code in with our content:

in this example I have the countdown timer set to 10 seconds, you can adjust accordingly

<span class="counter" id="COUNTDOWN_REDIRECT">10</span>

There you go! You can change how the countdown timer looks via CSS. This is the most basic example of how you can use this script but hopefully it saves you some time/gives you some ideas.

Here’s the code for a demo page using the above options:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>QuietAffiliate.com Javascript Countdown Redirect Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
body {
   color: black;
   background: white;
   font: bold 18pt Verdana, Arial, Helvetica, sans-serif;
   text-align: center;
}

span.counter {
   color: red;
   cursor: default;
   font-size: larger;
}

div.info {
   margin: 0 auto;
   text-align: left;
   font-size: smaller;
   width: 80%;
   margin-top: 2em;
}
</style>

<script src="countdownRedirect.js" type="text/javascript"></script>
</head>

<body onload='countdownRedirect("http://www.QuietAffiliate.com", "Thanks For Visiting")'>

<div>QuietAffiliate.com - countdownRedirect.js Demo Page</div>

<div class="info">This is a demo page of the redirect script in action, code and instructions can be found at <strong>QuietAffiliate.com</strong><br /><br /><center>You will automatically be redirected in <span class="counter" id="COUNTDOWN_REDIRECT">10</span> seconds.</center>
</div>
</body>
</html>

Visit Live Demo | Download Demo Page (with countdownRedirect.js)

2008
12.03

Facebook Ad Manager Greasemonkey Script

Let’s face it, the UI for the Ad Manager in Facebook is horrible, especially if you’ve got a large set of campaigns & are having to deal w/ the ebb and flow of interns rejecting + accepting ads (not to mention deleting/re-submitting them after they’ve been rejected).

Apparently there are other scripts/add-ons available that make this process a whole lot easier, but as was recently pointed out over on the WickedFire Forums, there’s a guy out there who’s actually trying to sell this script for $99.95 (or if you’re dumb enough to send him $25 now to secure your spot in the ‘pre-order’ the script would only be $85 after his discount). He’s since updated his blog to announce that his program would not be released on time after-all, adding that:

…Some rookie on WF totally stole my steam and posted some FireFox plug-in that works pretty sweet with FB to do lots of stuff I had planned.

Well, that rookie just knocked out a working script in one night (while allegedly drunk) meanwhile you’ve only been talking about the project since November 20th….hope you learned a lesson in being quiet.

Nathan from WF from just released what he claims was a drunken coding effort, but regardless is a great Greasemonkey script that streamlines managing Facebook ads. He even was so kind enough to add in a ‘dickroll’ option allowing you to partake in the kind of entertainment that only makemonies.com can provide.

You’ll need the Greasemonkey Firefox add-on in order to use this, install that first from the mozilla add-on site then, after installing & restarting Firefox, download and open (with Firefox) Nathan’s fbo.user.js script (which should then add it to Greasemonkey). Just head on over to the Facebook Ad Manager and partake in your newly acquired abilities of awesomeness.

Some brief features:
Here’s the old campaign screen, forcing you to click through far too many screens just to perform basic ad management functions:
The old Facebook Campaign Screen Before Installing The Greasemonkey Script

Here’s the improved campaign screen, now with added shortcuts:
Facebook Campaign Screen With Greasemonkey Script Installed

Now this wouldn’t be complete without the MakeMonies shout-out…
The Old Menu Bar:
The Facebook Ad Manager Menu Before Installing The Greasemonkey script

The *New* Menu Bar:
The new Facebook Ad Manager Menu After Installing The Greasemonkey Script