Re: Plus Emulator Questions
Quote:
Originally Posted by
Explicable
So I'm using the plus emulator habboon edit. I have two questions. First: How do you link the {online} variable to the emulator? I find that it isn't recieving any data from the emulator so it just says users online with no number. Also I have an issue where revcms keeps saying username does not exist when trying to login. But when i go to register again it says username is taken (cuz i have an account). I also find clearing the user table and registering again, then trying to log back into that account doesnt work.
1.
Code:
$count = mysql_num_rows(mysql_query("SELECT id FROM users WHERE online ='1'"));
2. Are you sure you've linked up your DB correctly? Or maybe you have a fucked up mismatched PW hashing system?
Re: Plus Emulator Questions
Quote:
Originally Posted by
Jonteh
1.
Code:
$count = mysql_num_rows(mysql_query("SELECT id FROM users WHERE online ='1'"));
2. Are you sure you've linked up your DB correctly? Or maybe you have a fucked up mismatched PW hashing system?
I have fixed the login system, it was a glitch with PW hashing when swapping housekeeping (no idea how that happened). But the online connection isn't updating still, not too sure why.
Re: Plus Emulator Questions
Quote:
Originally Posted by
Explicable
I have fixed the login system, it was a glitch with PW hashing when swapping housekeeping (no idea how that happened). But the online connection isn't updating still, not too sure why.
So find where the template variables is assigned for {online} and make it:
Code:
$count = mysql_num_rows(mysql_query("SELECT id FROM users WHERE online ='1'"));