RevCMS & Phoenix Emulator - Disconnecting Friend Requests

zMagenta

Posting Freak
Jul 15, 2011
1,414
682
Hi!

I'm running on RevCMS and Phoenix Emulator. I keep having this errors, when users accept friend requests, the user who sent and the user who accepts get disconnected.

Any ideas?
 

Puridee

Member
Jan 20, 2011
63
9
Hi!

I'm running on RevCMS and Phoenix Emulator. I keep having this errors, when users accept friend requests, the user who sent and the user who accepts get disconnected.

Any ideas?

Either the database or the Phoenix version you are using is out of date. Update both just to be positive.
 

Brad

Well-Known Member
Jun 5, 2012
2,320
993
Find this in Class.users.php
PHP:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gend er,motto,credits,activity_points,last_online,accou nt_created,ip_reg) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','','" . date('d-M-Y') . "','". $_SERVER['REMOTE_ADDR'] . "')");
$id = intval(mysql_result(dbquery("SELECT id FROM users WHERE username = '" . $username . "' ORDER BY id DESC LIMIT 1"), 0));

Replace it with

Code:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gender,motto,credits,activity_points,last_online,account_created,ip_reg) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','', UNIX_TIMESTAMP() ,'" .$_SERVER['REMOTE_ADDR'] . "')");
$id = intval(mysql_result(dbquery("SELECT id FROM users WHERE username = '" . $username . "' ORDER BY id DESC LIMIT 1"), 0));


Then Run This Is your Database

PHP:
update users set last_online = UNIX_TIMESTAMP();



Then Right Click On Users Click Design Table

Then Set this:
HRjQMiZ.png



to this :
luhNq8J.png



Should work it worked For me
:)
 

Rahmat

New Member
Jun 24, 2014
13
0
Find this in Class.users.php
PHP:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gend er,motto,credits,activity_points,last_online,accou nt_created,ip_reg) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','','" . date('d-M-Y') . "','". $_SERVER['REMOTE_ADDR'] . "')");
$id = intval(mysql_result(dbquery("SELECT id FROM users WHERE username = '" . $username . "' ORDER BY id DESC LIMIT 1"), 0));
Replace it with

Code:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gender,motto,credits,activity_points,last_online,account_created,ip_reg) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','', UNIX_TIMESTAMP() ,'" .$_SERVER['REMOTE_ADDR'] . "')");
$id = intval(mysql_result(dbquery("SELECT id FROM users WHERE username = '" . $username . "' ORDER BY id DESC LIMIT 1"), 0));
Then Run This Is your Database

PHP:
update users set last_online = UNIX_TIMESTAMP();

Then Right Click On Users Click Design Table

Then Set this:
HRjQMiZ.png



to this :
luhNq8J.png



Should work it worked For me
:)


What about GTE ?
 

Users who are viewing this thread

Top