I spent the better part of the weekend burning on Candied Pop writing a couple of articles and re-posting some of my reviews from here–bootstrap content–but mainly I’ve been tightening up the technical aspects of the site. It is the first time I’ve worked with ad content so I’ve been operating on a bit of a learning curve trying figure out the best mix and arrangement of individual items.
One of the things I looked into doing was having some of the ads rotate through a pre-determined set, mostly the Amazon ones, so I looked around for plugins that would do the trick. I couldn’t get CG-Amazon nor AdRotator to work, the former threw errors when activated and the other, well, no errors but it just didn’t work as advertised. In the midst of my head scratching I stumbled upon a plugin, Witty, that serves up quotes from a file. It worked right out of the box but it only works with a single file which doesn’t quite what I needed, so a little code tweaking and I have a plugin that works like I need.
Here’s the code in question:
function witty ($before = ”, $after = ”) {
$file_path = “witty.txt”;
$witty_file = (ABSPATH . “wp-content/” . $file_path);
And the tweak I applied:
function witty ($file = ”, $before = ”, $after = ”) {
$file_path = $file;
$witty_file = (ABSPATH . “wp-content/” . $file_path);
Wicked simple tweak which allows us to reuse the plugin anywhere on the page with multiple ad files. The curious thing of it is that this code is pretty similar to AdRotator but for some reason the latter did not read the file. Never no mind as we now have a solution for dynamic ads.

I’ve been sitting on my thoughts about this book for close to a week; it was such a quick read and I fell into it immediately after Purgatory that I needed a little bit of time to collect my thoughts.
Purgatory is the second in the Galactic Comedy series and of the three it could be considered the slow burner due to the fact that political and social intrigue is more understated and the over arching conflicts presented are more cursory in their description than the other two novels. Instead it focuses more on the personalities involved in the process of colonization and is presented in a deeply fatalistic manner. The only sure things in Purgatory are hubris and incredulous amounts of shortsightedness. Compassion and understanding is superseded by tendencies towards self-destruction which gives the novel and its events the feeling that no matter what action the protagonists undertake each and every action shares the same end. Purgatory reads like a long, quiet sign of hopelessness.
Comments
James, Dale
james, Mike
james, Mike, james [...]
james, Mike
james, Mike
james, Kyle Daigle