Alex King has a tantalizingly great plugin called WP-Last-Visit. On his blog, he notes that he has only released the old version, because he does not appreciate rude comments asking for help. So I am not asking him for help. I am instead asking here.
I have a few problems right off the bat. I am using Wp 2.1.1. Installation and Activation of the plugin went fine. But when I follow step 3, adjusting for the age of the documentation, my blog fails to load properly.
Add this line within the <head> tags of your index.php and wp-comments-popup.php pages.
<?php require(bloginfo(‘url;’).’/wp-content/plugins/wp-last-visit.php?type=js’); ?>
I put the code into header.php, as there are no <head> tags in my index.php. Still nothing. I changed require to include, and the page loads, leading me to believe that the path was incorrect. I did some research and changed bloginfo(‘url;’) to bloginfo(‘wpurl’) as my install is in a non-standard location. Still nothing.
So I hardcoded the path into the require. Now it at least gets the file (it outputs some of the file’s code, the js part, so I know it is finding the file, more on that in a later post).
So, please, someone explain to me why this:
<?php require 'http://mysiteurl.com/wordpress/wp-content/plugins/wp-last-visit.php?type=js'; ?>
works, but this:
<?php require (bloginfo('wpurl').'/wp-content/plugins/wp-last-visit.php?type=js'); ?>
does not, when the url used is exactly the same (I have checked).
- The topic ‘Help with wp-last-visit’ is closed to new replies.