vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Not able to see Last Activity description (https://vborg.vbsupport.ru/showthread.php?t=320753)

Elixar 11-10-2015 03:19 PM

Not able to see Last Activity description
 
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

Quote:

Originally Posted by MarkFL (Post 2558538)
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

Quote:

Originally Posted by Elixar (Post 2558565)
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

Quote:

Originally Posted by Elixar (Post 2558599)
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:

PHP Code:

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:

PHP Code:

//define('DISABLE_HOOKS', true); 


Elixar 11-12-2015 10:30 PM

Quote:

Originally Posted by MarkFL (Post 2558600)
It could be. To test this theory, edit the file:

includes/config.php

to add at the top the line:

PHP Code:

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:

PHP Code:

//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

Quote:

Originally Posted by Elixar (Post 2558656)
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 [DATE]1447390876[/DATE] at [TIME]1447390876[/TIME] ---------------

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/showthrea...51#post2294051


All times are GMT. The time now is 02:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01020 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete