• Hi,
    I followed the instructions but it is not working. I get database errors. You can see it on my site. Anyone knows how to fix it?
    Patrick

Viewing 8 replies - 1 through 8 (of 8 total)
  • hi patrick…
    it seems the tables needed arent installed…
    the script is a little bit bugy….
    but run the install file..

    Thread Starter patrickwesseling

    (@patrickwesseling)

    Hi,
    Yes that did the trick. It shows now “1 User Online Online” which I am sure I can change to only one “online”. Also it is a bit big. Can you change the font size too?
    Patrick

    To shrink the font size, just surround your plugin call with a div, give it a class attribute (let’s say “users”), and in your css assign that class a smaller font-size property.

    Thread Starter patrickwesseling

    (@patrickwesseling)

    Hi,
    That actually makes sence. ?? I am trying some things to see how it goes.
    Patrick

    Thread Starter patrickwesseling

    (@patrickwesseling)

    Hi,
    I got it smaller now and I know how to change the font. But I am not sure were to look to get rid of “”1 User Online Online”. There is one online to many.
    Patrick

    For a fix, simple question first: Have you placed the text “Online” at the end of the script call? I just grabbed the plugin, and can see that it writes out in full “# User(s) Online”.
    If not, open the plugin (useronline.php) and near the end, make sure there is no duplication in the $useronline variable.

    Thread Starter patrickwesseling

    (@patrickwesseling)

    Hi,
    Got it. For a moment there I had 2 users (busy times) but it said 2 user online. Now I changed the code to:
    if($useronline > 1) {
    $useronline = “<b>$useronline</b> $user”;
    } else {
    $useronline = “<b>$useronline</b> $user”;
    }
    return $useronline;
    To get the double online out. I suspect I need to change the $user in the second line to $users right?
    Patrick

    Thread Starter patrickwesseling

    (@patrickwesseling)

    Hi,
    Thanks! Got it! ??
    Patrick

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WordPress 1.2 User Online not working’ is closed to new replies.