hi patrick…
it seems the tables needed arent installed…
the script is a little bit bugy….
but run the install file..
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.
Hi,
That actually makes sence. 🙂 I am trying some things to see how it goes.
Patrick
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.
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
Hi,
Thanks! Got it! 🙂
Patrick