Alex King’s Since Last Visit and WP 2.0.5
-
I neglected my old WordPress blog and recently got new hosting and started another. One of my favorite plug-ins for my old site was Alex King’s Since Last Visit, but I can’t seem to get it to run on WordPress 2.0.5, and I’m not sure if it’s the plug-in, WordPress, my host, or just my lack of coding experience.
My first hurdle was that my new host, DreamHost, disables allow_url_fopen, so instead of:
<?php require(bloginfo(‘url;’).’/wp-content/plugins/wp-last-visit.php?type=js’); ?>
I put:
<?php $type = “js”;
require(‘/home/dinhluong/dinhternet.com/wp-content/plugins/wp-last-visit.php’); ?>into my theme’s header.php file.
In wp-last-visit.php itself, I changed lines 55-57 (of version 2.2) to read:
if ($type == “js”) {
$wplastvisit_output = “javascript”;
}And line 62 to read:
include(“/home/dinhluong/dinhternet.com/wp-blog-header.php”);And after all that, I got my main page to display properly, with no errors or fail messages.
Now, I’m trying to put the slvBanner() call in my sidebar, but nothing shows up where I placed it. Any idea what my next step should be?
Thanks!
- The topic ‘Alex King’s Since Last Visit and WP 2.0.5’ is closed to new replies.