Quote:
|
Originally Posted by genoxide
thats not right.
try
Code:
getusrinfo($user);
$uname = $userinfo['username'];
Make sure to put global $userinfo;
|
Thanks, I tried that the first time and still didn't work. I put it in the Who's Online block right below the cookiedecode($user); line. That's why I used the $cookie[1] array to get the username. I also tried adding your code above the getusrinfo call to no avail.
Quote:
|
Originally Posted by genoxide
cookies are encoded and sent to the storage pc in lower case, that's the reason you see it like that.
|
If that's the case, why is it when I log in with all caps, it shows up that way in the Who's Online block? If it's not stored in the cookie case sensitive, then where does it store it. That's where I need to change it.
Quote:
|
Originally Posted by genoxide
The way i told u is getting the username like IT IS in the users table. Yes it does an extra query but i don't see any other solution.
|
Yeah, I see getusrinfo does a query but I theorize that somewhere when you log in, nuke sets your cookie to your username because all these other blocks (who's online) are pulling that username from the cookie. So, if we set it correctly in the cookie in the first place, we should have no more problems. I just can't find where that is. I checked include/sessions.php and couldn't find where it would set the username. Maybe someone has a suggestion for this.
Thanks guys, keep the ideas coming.