PDA

View Full Version : Not able to see Last Activity description


Elixar
11-10-2015, 03:19 PM
It shows the time of their last activity, but not where exactly they are.

MarkFL
11-10-2015, 04:26 PM
In the "user" table, the column "lastactivity" is a timestamp, so it isn't designed to show the last location, but simply the time of a user's last activity. If a user is online, you will see where they are under "Current Activity."

Elixar
11-11-2015, 01:02 AM
In the "user" table, the column "lastactivity" is a timestamp, so it isn't designed to show the last location, but simply the time of a user's last activity. If a user is online, you will see where they are under "Current Activity."

I have a user online right now and it won't show what their activity currently is, pretty weird.

MarkFL
11-11-2015, 01:42 AM
I have a user online right now and it won't show what their activity currently is, pretty weird.

I was able to determine that even for a user who is online, you do not have anything in the variable $prepared['action']. I have no idea why though. :confused:

Elixar
11-11-2015, 06:47 PM
Could it be from a mod?

MarkFL
11-11-2015, 06:58 PM
Could it be from a mod?

It could be. To test this theory, edit the file:

includes/config.php

to add at the top the line:

define('DISABLE_HOOKS', true);

and then see if the problem persists. Then when you are done, comment that line out, so it will be there in the future in case you need to turn off all plugins in the future. Change it to:

//define('DISABLE_HOOKS', true);

Elixar
11-12-2015, 10:30 PM
It could be. To test this theory, edit the file:

includes/config.php

to add at the top the line:

define('DISABLE_HOOKS', true);

and then see if the problem persists. Then when you are done, comment that line out, so it will be there in the future in case you need to turn off all plugins in the future. Change it to:

//define('DISABLE_HOOKS', true);


Nope, I was able to see activity for the others that were online once I added that to the code.

MarkFL
11-12-2015, 10:34 PM
Nope, I was able to see activity for the others that were online once I added that to the code.

Okay, that means one of the add-ons is interfering in some way. I will look into it tonight and see if I can resolve the issue. :)

--------------- Added 1447390876 at 1447390876 ---------------

Okay, I found and fixed the problem. It was caused by a combination of two add-ons...DragonByte Tech: Advanced Post Thanks / Like (Lite) and VSa - Login To User Account. If both are active, then a dirty cache issue causes the needed variable to disappear. Fortunately another coder had provided a version of the VSa add-on that resolves the issue, so I downloaded and installed it and all seems to be good now. :)

Here's a link to the post containing the the hack of Valter's mod:

https://vborg.vbsupport.ru/showthread.php?p=2294051#post2294051