23
Thanks for taking your time Trabis, and your code may very well work. However, I wouldn't know because it simply will not pick up my uid as anything else than 0, regardless of which user I use to log in with. And I suspect this has nothing to do with your code, as this is the case regardless if I use any custom code or not.
Let me give you an example using the the standard system who's online block:
I use my regular computer and go to my site. The who's online block shows 1 guest. I log in, and the block shows 1 guest and 1 user. I use my server to go to the site as well and the block show 2 guests and 1 user. I log in with a different user and the block shows 2 guests and 2 users.
It seems whenever I'm logged on, the system sees me as both a guest and a user, and I just can't seem to get hold of any other ID than the guest ID. Why?