Forums

[resolved] WP-Forum Plugin and WP 2.1.1 (3 posts)

  1. houseofboyd
    Member
    Posted 1 year ago #

    I've been using the WP-Forum plugin since WP 2.0.5. Even though you can't do a fresh activation of the plugin with WP 2.1 or 2.1.1, it will still work as long as you just upgrade Wordpress. The plugin web site is here:

    http://www.fahlstad.se/wp-plugins/wp-forum/

    My issue is this. Since I upgraded from WP 2.1 to 2.1.1, the "You Last Visited" part of the WP-Forum plugin no longer works. It actually shows my last visit as the day upgraded WP from 2.1 to 2.1.1. I'm not sure exactly what has changed in WP to prevent this from working. The WP-Forum plugin apparently isn't being supported by the author at this time, so I'm left to figure this out on my own. I know it's not a critical issue, but I'd like to have it working again. Any help is appreciated.

    You can see the forum here:

    http://www.houseofboyd.com/blog/our-forums/

  2. drmike
    Member
    Posted 1 year ago #

    Why not ask at the author's support forum? I know the author has taken off *grumble* but there are other folks monitoring the forums.

  3. houseofboyd
    Member
    Posted 1 year ago #

    Ok I’ve had a look into this and think I think I’ve found the problem. In the cookie.php file in the ul($user_ID) function, when a user is logged in their lastvist usermeta isn’t being updated.

    function ul($user_id){
    if(!isset($_COOKIE[’session’])){
    update_usermeta( $user_id, ‘lastvisit’, time() );
    return true;
    }
    return false;
    }

    I’ve fixed it by removing the not on the if statement.

    function ul($user_id){
    if(isset($_COOKIE[’session’])){
    update_usermeta( $user_id, ‘lastvisit’, time() );
    return true;
    }
    return false;
    }

    You can see it working with WP 2.1.2 here: http://www.houseofboyd.com/blog

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags