WordPress.org

Ready to get started?Download WordPress

Forums

'wp-since last visit' plugin working with WP2? (5 posts)

  1. snowcrash
    Member
    Posted 8 years ago #

    Hello

    I'd like to use the wp-since last visit plugin, http://www.alexking.org/index.php?content=software/wordpress/content.php#wp_120
    but the original author is no longer giving support

    There have a few threads on this support forum, but it doesn't appear if anyone has got it working for WP2?

    Over at tamba's site, it give some instructions: http://www.tamba2.org.uk/wordpress/lastvisit/
    But it's not clear to me where to find the header or index files to edit. Are these different for WP2?

    Any help in getting this most useful plugin will be appreciated

  2. adamstone
    Member
    Posted 8 years ago #

    Has anyone helped this person fix it? I'd also like to know how to use the plugin with WP 2.0.

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

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

  4. adamstone
    Member
    Posted 8 years ago #

    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.

  5. elmsblog
    Member
    Posted 7 years ago #

    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: * http://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)); }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.