Viewing 4 replies - 1 through 4 (of 4 total)
  • Has anyone helped this person fix it? I’d also like to know how to use the plugin with WP 2.0.

    Have you followed the link above and if so, where did you get stuck?

    I basically don’t know which files to edit. The link above is not clear. They appear to refer to wp 1.5 files, not wp 2.0 files.

    Just another vote here to have this plugin resurrected.

    I followed the tamba links above and edited my header file and get the following error(s): [sorry, it’s long]

    Warning: main(../../header.php): failed to open stream: No such file or directory in /home/content/p/t/u/ptuttle/html/wp-content/plugins/wp-last-visit.php on line 62

    Warning: main(../../header.php): failed to open stream: No such file or directory in /home/content/p/t/u/ptuttle/html/wp-content/plugins/wp-last-visit.php on line 62

    Warning: main(): Failed opening '../../header.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/p/t/u/ptuttle/html/wp-content/plugins/wp-last-visit.php on line 62

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/p/t/u/ptuttle/html/wp-content/themes/newblog/header.php:5) in /home/content/p/t/u/ptuttle/html/wp-content/plugins/wp-last-visit.php on line 63
    // var slvIndicator = 'New'; var slvIndicator = 'New'; function slvBanner() { var posts = slvGetCookie('wplastvisit_posts'); var comments = slvGetCookie('wplastvisit_comments'); if (posts == null || comments == null) { return false; } var banner = ''; if (posts == 1) { banner += posts + ' new post and '; } else { banner += posts + ' new posts and '; } if (comments == 1) { banner += comments + ' new comment since your last visit.'; } else { banner += comments + ' new comments since your last visit.'; } document.write(banner); } function slvShowNewIndicator(date) { if (parseInt(date) > parseInt(slvGetCookie('wplastvisit'))) { document.write(slvIndicator); } } function slvGetCookie(name) { /** * Read the JavaScript cookies tutorial at: * https://www.netspade.com/articles/javascript/cookies.xml */ var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘‘wp-since last visit’ plugin working with WP2?’ is closed to new replies.