I’ve been playing with the PHP file. I’ve determined that the function that compares the cookied date (the user’s last visit) and the date of each post works correctly. This is the function that is responsible for putting the ‘NEW’ image or text beside each posting.
Everything else is borked.
The banner code does not work predictably. I haven’t determined exactly how it figures out how many posts and comments are new, but it’s definitely broken (at least on my server). I don’t think I’ll have time to look into it in too much detail tonight, but perhaps tomorrow I will be able to.
There seems to be some time factor involved in determining what is new and what isn’t which bothers me. I say that because there’s a bunch of code that plays with hours, time differences, and the magic 3600 number. I’m not sure what that’s all about; it seems to me that the banner should be a simple SQL select that counts all posts with a post date newer than the cookie date and prints out that number for the ‘new posts’ bit. Same with the ‘new comments’ bit.
As for the individual NEW indicators on posts and comments, it’s obvious that the comments and posts are done differently because the posts works, but the comments don’t.
In short, the only thing that works on my server is the NEW indicator beside posts.
Since that works, though, I’m pretty confident I can hack Alex’s code to make it work on my server.
As for why it works for podz and not me, I don’t really know. I can only assume some server difference that is significant enough to cause different outputs, but not significant enough to throw an error.
What would really, really, really, really help is some documentation on the wp-last-visit.php file. I’m guessing what the time difference and hours variables do and it takes time-consuming testing to verify whether each of my guesses is right or not.
I’ll post whatever I find.