![]() |
Idle? Member's name turns grey.
Looking for some help building a hack. If a member does not move pages for 5 minutes, their username turns grey to symbolize that they are idle.
|
there is a var called "last action" or something similar in the $vbulletin->session var which should be of use for your idea. Just check if the number is greater than $whatever_amount_of_seconds, then make the name grey, otherwise don't.
|
Can you nudge me in the right direction.
I have experience with template variables (if conditionals), however I am lost when you mention $vbulletin->session var |
in template conditionals, you normally use regular php code, so... yeah. Something like this maybe:
HTML Code:
<vb:if condition="$vbulletin->session['lastactivity'] > 3600"><span class="idle"><vb:else /><span class="normal"></vb:if> Replace 3600 with any amount in seconds after you want the user to be idle. |
Thanks, However I went into postbit_legacy and where it shows the username I added your code... with no effect
I've got to be missing something. HTML Code:
<if condition="$show['profile']"> |
I am running Vbulletin 3.6.8 By the way, I think your above posts are referencing to vbulletin 4.0+
|
kpf1827's code is for vB3 ;)
|
All times are GMT. The time now is 11:16 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|