![]() |
Last Seen Online
The Last Seen indicator shows the date and time when a user was last
online (and active) on your forum. Original idea by DjSap (https://vborg.vbsupport.ru/showthread.php?t=37201) Screenshot and instructions attached! |
Nice idea, how many queries does it run?
|
from the looks of it does not require any extra queries to be run;)
|
That's right, it's a pretty simple hack... no queries involved :)
|
That's cool :)
*install |
sounds good to me :)
|
installed, thanks.
|
*Installs
Nice little hack! :tired: |
very nice, thank you! :)
*clicks install |
I requested this! THANKS ALOT!
|
Fantastic,a long awaited hack for me ;)
|
This is great, thanks! :) I set it so it displays Last Seen Online when you move the cursor over the username. This is nice if you don't want to add another line to the postbit. :)
|
Very cool. How do I add the same info to the user's profile?
|
It should already be there. It should say something like Last Activity: Today 22:36
|
Oh!! Duh!!
Thanks |
I just noticed that this hack sorta defeats the purpose of giving your users the option to be "invisible." Several of my users have complained, so I need to slide a template conditional into this hack to not display this line if the user is invisible.
|
Can you share that conditional?
|
Certainly, when I find it.
|
It apparently doesn't exist :(
The closest thing is functions_bigthree.php which passes a variable to the postbit_onlinestatus template to chose which icon gets used. I suppose it could be modified to pass the variable we need, but before I go muking with it I need to know if it is called for each post or if it uses some sort of array. |
I love it! thanks!
|
very nice hack .. going to install this one
|
Quote:
|
That conditional would be:
Code:
<if condition="$post['invisible']==0"> ... </if> So this: Code:
<if condition="$post['lastactivity']"><div>$vbphrase[last_seen_online]: $post[lso_date] ($post[lso_time])</div></if> Code:
<if condition="$post['invisible']==0"><if condition="$post['lastactivity']"><div>$vbphrase[last_seen_online]: $post[lso_date] ($post[lso_time])</div></if></if> |
I followed the instructions, all I get is this
Last Seen: () Sorry if it sounds stupid, I am clueless on coding, I just installed this board yesterday. Any help would be appreciated Mike |
Fixed it, forgot to edit functions_showthread.php, told you i'm a dope
I like the hack |
Great hack, really easy peasy install, thanks for this.
BTW - something I've never really understood - why would some people want to remain hidden? Why would saying when they were last seen make a difference. Surely they still don't show up in Who's Online? |
is there anyway to make it just show the date they were last online and leave out the exact time in brackets ..
*installed* anyway |
nevermind i tried doing it myself and it worked ! :)
|
Good job, Jordeh.
Thank you. :) |
What would be the conditional to only display if the user is not invisible, UNLESS the person viewing is an Admin (in which case it would be visible)...?
|
Quote:
|
|
Ahh... excellent, I've been looking for this. Many thanks Jordeh! :classic:
|
Installed today. Quick question, what do I need to do to get the text: "Last Seen" to be bold in the postbit?
|
Quote:
Craig |
don't mean to sound silly but where it says:
## NEW PHRASES ################################################## ######### ################################################## ######################## Phrase Type: GLOBAL Varname: last_seen_online Text: Last Seen Where do you edit Phrases??? Edited::: Ok I figured it out. I was getting frustrated and decided to do a search on the Vbulletin manual and found it. for those who have the same noobish problem as me, its: "Languages and Phrases" tab in your admin cp. "installed" Works great. Nice hack. |
awesome
|
is there a conditional that would disallow this to show when users are online?
"Last Seen" seems like user would be away... so when users are online, this wouldn't show... help please..lol thanks |
Does this work with 3.0.7?
|
Hi, sorry to exhume such an old thread, but does this work with 3.6.8?
I can't find the functions_showthread.php file to modify... - - Oh, duh, never mind. I found "last visit" in the settings and that's perfect. |
All times are GMT. The time now is 02:50 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:
|