Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 11-10-2015, 03:19 PM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Not able to see Last Activity description

It shows the time of their last activity, but not where exactly they are.
Reply With Quote
  #2  
Old 11-10-2015, 04:26 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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."
Reply With Quote
  #3  
Old 11-11-2015, 01:02 AM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
  #4  
Old 11-11-2015, 01:42 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elixar View Post
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.
Reply With Quote
  #5  
Old 11-11-2015, 06:47 PM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could it be from a mod?
Reply With Quote
  #6  
Old 11-11-2015, 06:58 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elixar View Post
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); 
Reply With Quote
  #7  
Old 11-12-2015, 10:30 PM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
  #8  
Old 11-12-2015, 10:34 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elixar View Post
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03843 seconds
  • Memory Usage 2,236KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete